@mastra/deployer 1.82.0 → 1.83.0-alpha.1
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/dist/{analyze-DNnGuzqf.cjs → analyze-BMEF7WrY.cjs} +17 -4
- package/dist/{analyze-DNnGuzqf.cjs.map → analyze-BMEF7WrY.cjs.map} +1 -1
- package/dist/{analyze-CW9fEusV.js → analyze-CZjd0SOO.js} +18 -26
- package/dist/{analyze-CW9fEusV.js.map → analyze-CZjd0SOO.js.map} +1 -1
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/babel/detect-pino-transports.d.ts +6 -0
- package/dist/build/babel/detect-pino-transports.d.ts.map +1 -1
- package/dist/build/bundler.cjs +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.cjs +5 -5
- package/dist/build/index.js +5 -5
- package/dist/build/plugins/node-modules-extension-resolver.d.ts.map +1 -1
- package/dist/build/plugins/remove-deployer.d.ts.map +1 -1
- package/dist/build/shared/extract-mastra-option.d.ts.map +1 -1
- package/dist/{build-Cc9X11g7.cjs → build-CefteFGe.cjs} +5 -5
- package/dist/{build-Cc9X11g7.cjs.map → build-CefteFGe.cjs.map} +1 -1
- package/dist/{build-PqRB5M-E.js → build-CrmQBpO1.js} +5 -5
- package/dist/{build-PqRB5M-E.js.map → build-CrmQBpO1.js.map} +1 -1
- package/dist/bundler/index.cjs +1 -1
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/{bundler-DRlNM9-F.js → bundler-CID-r2aS.js} +7 -6
- package/dist/bundler-CID-r2aS.js.map +1 -0
- package/dist/{bundler-CbiKhVps.js → bundler-Cl8WL5zI.js} +5 -3
- package/dist/bundler-Cl8WL5zI.js.map +1 -0
- package/dist/{bundler-UKxJsU8E.cjs → bundler-CoDL07Rb.cjs} +5 -3
- package/dist/bundler-CoDL07Rb.cjs.map +1 -0
- package/dist/{bundler-8GO8sXwa.cjs → bundler-fiF6vsGu.cjs} +7 -6
- package/dist/bundler-fiF6vsGu.cjs.map +1 -0
- package/dist/{bundlerOptions-CPMQkWfY.cjs → bundlerOptions-BICFyOWY.cjs} +6 -4
- package/dist/{bundlerOptions-CPMQkWfY.cjs.map → bundlerOptions-BICFyOWY.cjs.map} +1 -1
- package/dist/{bundlerOptions-ScfCrul-.js → bundlerOptions-XBDvJpe6.js} +6 -4
- package/dist/{bundlerOptions-ScfCrul-.js.map → bundlerOptions-XBDvJpe6.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +33 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/dist/rolldown-runtime-CO0Nlsmt.js +23 -0
- package/dist/server/index.cjs +37 -12
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +37 -12
- package/dist/server/index.js.map +1 -1
- package/dist/services/deps.d.ts.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-DbgqQ_yI.cjs → services-B8neClCI.cjs} +52 -5
- package/dist/services-B8neClCI.cjs.map +1 -0
- package/dist/{services-PA2YqqQJ.js → services-BKh9M2E5.js} +51 -5
- package/dist/services-BKh9M2E5.js.map +1 -0
- package/package.json +9 -6
- package/dist/bundler-8GO8sXwa.cjs.map +0 -1
- package/dist/bundler-CbiKhVps.js.map +0 -1
- package/dist/bundler-DRlNM9-F.js.map +0 -1
- package/dist/bundler-UKxJsU8E.cjs.map +0 -1
- package/dist/services-DbgqQ_yI.cjs.map +0 -1
- package/dist/services-PA2YqqQJ.js.map +0 -1
- /package/dist/_types/{@hono_node-server@2.1.5 → @hono_node-server@2.1.6}/dist/index.d.mts +0 -0
- /package/dist/_types/{@hono_node-server@2.1.5 → @hono_node-server@2.1.6}/package.json +0 -0
- /package/dist/_types/{@mastra_hono@1.7.24 → @mastra_hono@1.7.25-alpha.1}/dist/auth-middleware.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.24 → @mastra_hono@1.7.25-alpha.1}/dist/browser-stream/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.24 → @mastra_hono@1.7.25-alpha.1}/dist/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.24 → @mastra_hono@1.7.25-alpha.1}/package.json +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Bc0pwXKd.cjs");
|
|
2
|
-
const require_services = require("./services-DbgqQ_yI.cjs");
|
|
3
2
|
const require_error = require("./error-CR4whExy.cjs");
|
|
4
3
|
const require_utils = require("./utils-CDNA_ewa.cjs");
|
|
5
|
-
const
|
|
4
|
+
const require_services = require("./services-B8neClCI.cjs");
|
|
5
|
+
const require_bundler = require("./bundler-CoDL07Rb.cjs");
|
|
6
6
|
let fs = require("fs");
|
|
7
7
|
let fs_promises = require("fs/promises");
|
|
8
8
|
let path = require("path");
|
|
@@ -1269,6 +1269,19 @@ function extractTransportsFromArg(arg) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
return targets;
|
|
1271
1271
|
}
|
|
1272
|
+
const TRANSPORT_CALL_RE = /[.[]\s*transport\s*\]?\s*[(<]/;
|
|
1273
|
+
const PINO_SOURCE_RE = /['"]pino['"]/;
|
|
1274
|
+
const GLOBAL_PINO_TRANSPORT_RE = /\bpino\s*(?:\.\s*default\s*)?(?:\.\s*transport\b|\[\s*transport\s*\])/;
|
|
1275
|
+
/**
|
|
1276
|
+
* Cheap text pre-check so callers can skip a full Babel parse of large bundles.
|
|
1277
|
+
* Must stay a superset of what `detectPinoTransports` matches: every match needs a
|
|
1278
|
+
* `.transport(` call and either a `'pino'` import/require source or an unbound `pino` identifier.
|
|
1279
|
+
*/
|
|
1280
|
+
function mayContainPinoTransport(code) {
|
|
1281
|
+
if (!code.includes("pino")) return false;
|
|
1282
|
+
if (!TRANSPORT_CALL_RE.test(code)) return false;
|
|
1283
|
+
return PINO_SOURCE_RE.test(code) || GLOBAL_PINO_TRANSPORT_RE.test(code);
|
|
1284
|
+
}
|
|
1272
1285
|
/**
|
|
1273
1286
|
* Babel plugin to detect pino transport targets in code.
|
|
1274
1287
|
* Matches patterns like:
|
|
@@ -1510,7 +1523,7 @@ async function analyzeBundle(entries, mastraEntry, { outputDir, projectRoot, pla
|
|
|
1510
1523
|
alias: bundlerOptions?.alias,
|
|
1511
1524
|
platform
|
|
1512
1525
|
});
|
|
1513
|
-
(0, _babel_core.transformSync)(analyzeResult.output.code, {
|
|
1526
|
+
if (mayContainPinoTransport(analyzeResult.output.code)) (0, _babel_core.transformSync)(analyzeResult.output.code, {
|
|
1514
1527
|
filename: "pino-detection.js",
|
|
1515
1528
|
plugins: [() => detectPinoTransports(detectedPinoTransports)],
|
|
1516
1529
|
configFile: false,
|
|
@@ -1673,4 +1686,4 @@ Object.defineProperty(exports, "packWorkspaceDependencies", {
|
|
|
1673
1686
|
}
|
|
1674
1687
|
});
|
|
1675
1688
|
|
|
1676
|
-
//# sourceMappingURL=analyze-
|
|
1689
|
+
//# sourceMappingURL=analyze-BMEF7WrY.cjs.map
|