@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.
- package/build/cjs/chunks/config.js +19 -5
- package/build/cjs/chunks/config.js.map +1 -1
- package/build/cjs/chunks/exports.js +72 -26
- package/build/cjs/chunks/exports.js.map +1 -1
- package/build/cjs/chunks/moduleInjectedTransform.js +6 -5
- package/build/cjs/chunks/moduleInjectedTransform.js.map +1 -1
- package/build/cjs/index.js +161 -65
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +4 -4
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/ai/google-genai/constants.js +2 -1
- package/build/esm/ai/google-genai/constants.js.map +1 -1
- package/build/esm/ai/google-genai/decisions.js +25 -0
- package/build/esm/ai/google-genai/decisions.js.map +1 -0
- package/build/esm/ai/google-genai/index.js +16 -5
- package/build/esm/ai/google-genai/index.js.map +1 -1
- package/build/esm/ai/mistral/index.js +9 -8
- package/build/esm/ai/mistral/index.js.map +1 -1
- package/build/esm/ai/mistral/streaming.js +3 -7
- package/build/esm/ai/mistral/streaming.js.map +1 -1
- package/build/esm/ai/mistral/utils.js +9 -1
- package/build/esm/ai/mistral/utils.js.map +1 -1
- package/build/esm/ai/vercel-ai/index.js +3 -1
- package/build/esm/ai/vercel-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/index.js +8 -7
- package/build/esm/ai/workers-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/streaming.js +3 -7
- package/build/esm/ai/workers-ai/streaming.js.map +1 -1
- package/build/esm/index.js +3 -2
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/cron.js +2 -2
- package/build/esm/integrations/cron.js.map +1 -1
- package/build/esm/integrations/google-genai.js +10 -6
- package/build/esm/integrations/google-genai.js.map +1 -1
- package/build/esm/integrations/mistral.js +4 -3
- package/build/esm/integrations/mistral.js.map +1 -1
- package/build/esm/integrations/node-cron.js +5 -4
- package/build/esm/integrations/node-cron.js.map +1 -1
- package/build/esm/integrations/node-schedule.js +2 -2
- package/build/esm/integrations/node-schedule.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +9 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +6 -5
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
- package/build/esm/orchestrion/bundler/rollup.js +4 -4
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/orchestrion/config/google-genai.js +19 -5
- package/build/esm/orchestrion/config/google-genai.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/utils/cronMonitoring.js +128 -50
- package/build/esm/utils/cronMonitoring.js.map +1 -1
- package/build/types/ai/google-genai/constants.d.ts +3 -0
- package/build/types/ai/google-genai/constants.d.ts.map +1 -1
- package/build/types/ai/google-genai/decisions.d.ts +8 -0
- package/build/types/ai/google-genai/decisions.d.ts.map +1 -0
- package/build/types/ai/google-genai/index.d.ts +3 -1
- package/build/types/ai/google-genai/index.d.ts.map +1 -1
- package/build/types/ai/mistral/index.d.ts.map +1 -1
- package/build/types/ai/mistral/streaming.d.ts +1 -1
- package/build/types/ai/mistral/streaming.d.ts.map +1 -1
- package/build/types/ai/mistral/utils.d.ts +5 -0
- package/build/types/ai/mistral/utils.d.ts.map +1 -1
- package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +3 -0
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -1
- package/build/types/ai/workers-ai/index.d.ts.map +1 -1
- package/build/types/ai/workers-ai/streaming.d.ts +1 -1
- package/build/types/ai/workers-ai/streaming.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/cron.d.ts.map +1 -1
- package/build/types/integrations/google-genai.d.ts +3 -3
- package/build/types/integrations/google-genai.d.ts.map +1 -1
- package/build/types/integrations/mistral.d.ts.map +1 -1
- package/build/types/integrations/node-cron.d.ts +1 -1
- package/build/types/integrations/node-cron.d.ts.map +1 -1
- package/build/types/integrations/node-schedule.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/rollup.d.ts +3 -3
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +1 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/google-genai.d.ts +13 -0
- package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
- package/build/types/utils/cronMonitoring.d.ts +4 -5
- package/build/types/utils/cronMonitoring.d.ts.map +1 -1
- 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 `
|
|
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 ${
|
|
10799
|
-
const args = exportName ? `${
|
|
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 ${
|
|
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
|