@sentry/server-utils 11.13.0 → 11.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/build/cjs/chunks/config.js +19 -5
  2. package/build/cjs/chunks/config.js.map +1 -1
  3. package/build/cjs/chunks/exports.js +72 -26
  4. package/build/cjs/chunks/exports.js.map +1 -1
  5. package/build/cjs/chunks/moduleInjectedTransform.js +6 -5
  6. package/build/cjs/chunks/moduleInjectedTransform.js.map +1 -1
  7. package/build/cjs/index.js +161 -65
  8. package/build/cjs/index.js.map +1 -1
  9. package/build/cjs/orchestrion/bundler/rollup.js +4 -4
  10. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  11. package/build/esm/ai/google-genai/constants.js +2 -1
  12. package/build/esm/ai/google-genai/constants.js.map +1 -1
  13. package/build/esm/ai/google-genai/decisions.js +25 -0
  14. package/build/esm/ai/google-genai/decisions.js.map +1 -0
  15. package/build/esm/ai/google-genai/index.js +16 -5
  16. package/build/esm/ai/google-genai/index.js.map +1 -1
  17. package/build/esm/ai/mistral/index.js +9 -8
  18. package/build/esm/ai/mistral/index.js.map +1 -1
  19. package/build/esm/ai/mistral/streaming.js +3 -7
  20. package/build/esm/ai/mistral/streaming.js.map +1 -1
  21. package/build/esm/ai/mistral/utils.js +9 -1
  22. package/build/esm/ai/mistral/utils.js.map +1 -1
  23. package/build/esm/ai/vercel-ai/index.js +3 -1
  24. package/build/esm/ai/vercel-ai/index.js.map +1 -1
  25. package/build/esm/ai/workers-ai/index.js +8 -7
  26. package/build/esm/ai/workers-ai/index.js.map +1 -1
  27. package/build/esm/ai/workers-ai/streaming.js +3 -7
  28. package/build/esm/ai/workers-ai/streaming.js.map +1 -1
  29. package/build/esm/index.js +3 -2
  30. package/build/esm/index.js.map +1 -1
  31. package/build/esm/integrations/cron.js +2 -2
  32. package/build/esm/integrations/cron.js.map +1 -1
  33. package/build/esm/integrations/google-genai.js +10 -6
  34. package/build/esm/integrations/google-genai.js.map +1 -1
  35. package/build/esm/integrations/mistral.js +4 -3
  36. package/build/esm/integrations/mistral.js.map +1 -1
  37. package/build/esm/integrations/node-cron.js +5 -4
  38. package/build/esm/integrations/node-cron.js.map +1 -1
  39. package/build/esm/integrations/node-schedule.js +2 -2
  40. package/build/esm/integrations/node-schedule.js.map +1 -1
  41. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +9 -1
  42. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  43. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +6 -5
  44. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  45. package/build/esm/orchestrion/bundler/rollup.js +4 -4
  46. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  47. package/build/esm/orchestrion/config/google-genai.js +19 -5
  48. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  49. package/build/esm/package.json +1 -1
  50. package/build/esm/utils/cronMonitoring.js +128 -50
  51. package/build/esm/utils/cronMonitoring.js.map +1 -1
  52. package/build/types/ai/google-genai/constants.d.ts +3 -0
  53. package/build/types/ai/google-genai/constants.d.ts.map +1 -1
  54. package/build/types/ai/google-genai/decisions.d.ts +8 -0
  55. package/build/types/ai/google-genai/decisions.d.ts.map +1 -0
  56. package/build/types/ai/google-genai/index.d.ts +3 -1
  57. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  58. package/build/types/ai/mistral/index.d.ts.map +1 -1
  59. package/build/types/ai/mistral/streaming.d.ts +1 -1
  60. package/build/types/ai/mistral/streaming.d.ts.map +1 -1
  61. package/build/types/ai/mistral/utils.d.ts +5 -0
  62. package/build/types/ai/mistral/utils.d.ts.map +1 -1
  63. package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
  64. package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +3 -0
  65. package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -1
  66. package/build/types/ai/workers-ai/index.d.ts.map +1 -1
  67. package/build/types/ai/workers-ai/streaming.d.ts +1 -1
  68. package/build/types/ai/workers-ai/streaming.d.ts.map +1 -1
  69. package/build/types/index.d.ts +3 -1
  70. package/build/types/index.d.ts.map +1 -1
  71. package/build/types/integrations/cron.d.ts.map +1 -1
  72. package/build/types/integrations/google-genai.d.ts +3 -3
  73. package/build/types/integrations/google-genai.d.ts.map +1 -1
  74. package/build/types/integrations/mistral.d.ts.map +1 -1
  75. package/build/types/integrations/node-cron.d.ts +1 -1
  76. package/build/types/integrations/node-cron.d.ts.map +1 -1
  77. package/build/types/integrations/node-schedule.d.ts.map +1 -1
  78. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  79. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
  80. package/build/types/orchestrion/bundler/rollup.d.ts +3 -3
  81. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  82. package/build/types/orchestrion/channels.d.ts +1 -0
  83. package/build/types/orchestrion/channels.d.ts.map +1 -1
  84. package/build/types/orchestrion/config/google-genai.d.ts +13 -0
  85. package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
  86. package/build/types/utils/cronMonitoring.d.ts +4 -5
  87. package/build/types/utils/cronMonitoring.d.ts.map +1 -1
  88. package/package.json +3 -3
@@ -1,4 +1,5 @@
1
1
  const require_registration_only = require("./registration-only.js");
2
+ let _sentry_core = require("@sentry/core");
2
3
  // \0@oxc-project+runtime@0.158.0/helpers/esm/typeof.js
3
4
  function _typeof(o) {
4
5
  "@babel/helpers - typeof";
@@ -10783,8 +10784,8 @@ const ORCHESTRION_BUNDLER_MARKER_BANNER = ";(function(){var g=globalThis.__SENTR
10783
10784
  *
10784
10785
  * The specifier is parameterized for bundlers where the bare import emitted
10785
10786
  * inside a transformed `node_modules` file can't resolve (Turbopack under
10786
- * isolated installs); it's embedded via `JSON.stringify` so absolute Windows
10787
- * paths survive.
10787
+ * isolated installs); it's embedded via `stringifyForCodeInjection` so
10788
+ * absolute Windows paths survive.
10788
10789
  *
10789
10790
  * The call result is assigned to a global rather than discarded. The helper
10790
10791
  * returns `void` and `@sentry/server-utils` is `sideEffects: false`, so a bare
@@ -10795,8 +10796,8 @@ const ORCHESTRION_BUNDLER_MARKER_BANNER = ";(function(){var g=globalThis.__SENTR
10795
10796
  */
10796
10797
  function moduleInjectedSnippet(moduleName, exportName, esm, importSpecifier) {
10797
10798
  const bindings = exportName ? `orchestrionModuleInjected, ${exportName}` : "orchestrionModuleInjected";
10798
- const importStmt = esm ? `import { ${bindings} } from ${JSON.stringify(importSpecifier)};` : `const { ${bindings} } = require(${JSON.stringify(importSpecifier)});`;
10799
- const args = exportName ? `${JSON.stringify(moduleName)}, () => ${exportName}()` : JSON.stringify(moduleName);
10799
+ const importStmt = esm ? `import { ${bindings} } from ${(0, _sentry_core.stringifyForCodeInjection)(importSpecifier)};` : `const { ${bindings} } = require(${(0, _sentry_core.stringifyForCodeInjection)(importSpecifier)});`;
10800
+ const args = exportName ? `${(0, _sentry_core.stringifyForCodeInjection)(moduleName)}, () => ${exportName}()` : (0, _sentry_core.stringifyForCodeInjection)(moduleName);
10800
10801
  return `${importStmt}\n${MODULE_INJECTED_SINK} = orchestrionModuleInjected(${args});`;
10801
10802
  }
10802
10803
  /**
@@ -10814,7 +10815,7 @@ function moduleInjectedSnippet(moduleName, exportName, esm, importSpecifier) {
10814
10815
  function selfProvidedSnippet(moduleName, filePath) {
10815
10816
  const marker = "globalThis.__SENTRY_ORCHESTRION__";
10816
10817
  const self = `./${filePath.split("/").pop()}`;
10817
- return `import * as __SENTRY_SELF_PROVIDED__ from ${JSON.stringify(self)};\n(${marker} = ${marker} || {});\n(${marker}.providedModules = ${marker}.providedModules || {});\nObject.defineProperty(${marker}.providedModules, ${JSON.stringify(moduleName)}, { configurable: true, enumerable: true, get() { return __SENTRY_SELF_PROVIDED__; } });`;
10818
+ return `import * as __SENTRY_SELF_PROVIDED__ from ${(0, _sentry_core.stringifyForCodeInjection)(self)};\n(${marker} = ${marker} || {});\n(${marker}.providedModules = ${marker}.providedModules || {});\nObject.defineProperty(${marker}.providedModules, ${(0, _sentry_core.stringifyForCodeInjection)(moduleName)}, { configurable: true, enumerable: true, get() { return __SENTRY_SELF_PROVIDED__; } });`;
10818
10819
  }
10819
10820
  /**
10820
10821
  * The unified `customTransforms` every orchestrion bundler plugin (and the