UNPKG

@gentrace/core

Version:
1 lines 1.25 kB
{"version":3,"file":"interaction.mjs","sources":["interaction.js"],"sourcesContent":["import { GentraceDeprecationWarning } from \"./warnings\";\n/**\n * @deprecated This package is deprecated. Please use 'npm install gentrace' instead.\n *\n * This function will display a deprecation warning and throw an error to stop execution.\n *\n * @param name - The name of the interaction\n * @param fn - The function to wrap (not executed due to deprecation)\n * @param options - Options for the interaction (not used due to deprecation)\n * @throws {Error} Always throws an error after displaying the deprecation warning\n */\nexport function interaction(name, fn, options) {\n // Display the deprecation warning\n const warning = GentraceDeprecationWarning();\n warning.display();\n // Throw an error to immediately stop execution\n throw new Error(\"Package @gentrace/core is deprecated. Please install and use the new package: npm install gentrace\");\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE;AAC/C;AACA,IAAI,MAAM,OAAO,GAAG,0BAA0B,EAAE,CAAC;AACjD,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;AACtB;AACA,IAAI,MAAM,IAAI,KAAK,CAAC,oGAAoG,CAAC,CAAC;AAC1H;;;;"}