@mastra/deployer 1.83.0-alpha.0 → 1.83.0-alpha.2
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-DJ-g40iE.cjs → analyze-BMEF7WrY.cjs} +16 -3
- package/dist/{analyze-DJ-g40iE.cjs.map → analyze-BMEF7WrY.cjs.map} +1 -1
- package/dist/{analyze-fYsu753O.js → analyze-CZjd0SOO.js} +16 -3
- package/dist/{analyze-fYsu753O.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 +4 -4
- package/dist/build/index.js +4 -4
- 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-DJrBURvF.cjs → build-CefteFGe.cjs} +4 -4
- package/dist/{build-DJrBURvF.cjs.map → build-CefteFGe.cjs.map} +1 -1
- package/dist/{build-dIfHk6xF.js → build-CrmQBpO1.js} +4 -4
- package/dist/{build-dIfHk6xF.js.map → build-CrmQBpO1.js.map} +1 -1
- package/dist/bundler/index.cjs +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/{bundler-DBj7Xv0j.js → bundler-CID-r2aS.js} +4 -4
- package/dist/{bundler-DBj7Xv0j.js.map → bundler-CID-r2aS.js.map} +1 -1
- 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-gVxl78M9.cjs → bundler-fiF6vsGu.cjs} +4 -4
- package/dist/{bundler-gVxl78M9.cjs.map → bundler-fiF6vsGu.cjs.map} +1 -1
- package/dist/{bundlerOptions-DxMLiEfQ.cjs → bundlerOptions-BICFyOWY.cjs} +4 -3
- package/dist/{bundlerOptions-DxMLiEfQ.cjs.map → bundlerOptions-BICFyOWY.cjs.map} +1 -1
- package/dist/{bundlerOptions-CklrCRoZ.js → bundlerOptions-XBDvJpe6.js} +4 -3
- package/dist/{bundlerOptions-CklrCRoZ.js.map → bundlerOptions-XBDvJpe6.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/server/index.d.ts +1 -1
- package/package.json +6 -6
- package/dist/bundler-CbiKhVps.js.map +0 -1
- package/dist/bundler-UKxJsU8E.cjs.map +0 -1
- /package/dist/_types/{@mastra_hono@1.7.25-alpha.0 → @mastra_hono@1.7.25-alpha.2}/dist/auth-middleware.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.25-alpha.0 → @mastra_hono@1.7.25-alpha.2}/dist/browser-stream/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.25-alpha.0 → @mastra_hono@1.7.25-alpha.2}/dist/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.25-alpha.0 → @mastra_hono@1.7.25-alpha.2}/package.json +0 -0
|
@@ -2,7 +2,7 @@ import { n as __toESM, t as __commonJSMin } from "./rolldown-runtime-CO0Nlsmt.js
|
|
|
2
2
|
import { i as MastraError, n as ErrorDomain, r as MastraBaseError, t as ErrorCategory } from "./error-BVvc5jcw.js";
|
|
3
3
|
import { a as getPackageName, c as isBuiltinModule, f as rollupSafeName, i as getNodeResolveOptions, l as isDependencyPartOfPackage, m as slash, r as getCompiledDepCachePath, s as isBareModuleSpecifier, u as isExternalProtocolImport } from "./utils-C8gwr-ur.js";
|
|
4
4
|
import { i as DepsService, o as withPlaceholderVersions } from "./services-BKh9M2E5.js";
|
|
5
|
-
import { a as mastraToolsAliasPlugin, c as removeDeployer, d as moduleAlias, f as getPackageInfo$1, g as esbuild, h as esmShim, i as mastraInternalAliasPlugin, l as protocolExternalResolver, m as getPackageRootPath, o as tsConfigPaths, p as getPackageMetadata, s as subpathExternalsResolver } from "./bundler-
|
|
5
|
+
import { a as mastraToolsAliasPlugin, c as removeDeployer, d as moduleAlias, f as getPackageInfo$1, g as esbuild, h as esmShim, i as mastraInternalAliasPlugin, l as protocolExternalResolver, m as getPackageRootPath, o as tsConfigPaths, p as getPackageMetadata, s as subpathExternalsResolver } from "./bundler-Cl8WL5zI.js";
|
|
6
6
|
import { existsSync, readFileSync } from "fs";
|
|
7
7
|
import { readFile, writeFile } from "fs/promises";
|
|
8
8
|
import * as path$1 from "path";
|
|
@@ -1261,6 +1261,19 @@ function extractTransportsFromArg(arg) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
return targets;
|
|
1263
1263
|
}
|
|
1264
|
+
const TRANSPORT_CALL_RE = /[.[]\s*transport\s*\]?\s*[(<]/;
|
|
1265
|
+
const PINO_SOURCE_RE = /['"]pino['"]/;
|
|
1266
|
+
const GLOBAL_PINO_TRANSPORT_RE = /\bpino\s*(?:\.\s*default\s*)?(?:\.\s*transport\b|\[\s*transport\s*\])/;
|
|
1267
|
+
/**
|
|
1268
|
+
* Cheap text pre-check so callers can skip a full Babel parse of large bundles.
|
|
1269
|
+
* Must stay a superset of what `detectPinoTransports` matches: every match needs a
|
|
1270
|
+
* `.transport(` call and either a `'pino'` import/require source or an unbound `pino` identifier.
|
|
1271
|
+
*/
|
|
1272
|
+
function mayContainPinoTransport(code) {
|
|
1273
|
+
if (!code.includes("pino")) return false;
|
|
1274
|
+
if (!TRANSPORT_CALL_RE.test(code)) return false;
|
|
1275
|
+
return PINO_SOURCE_RE.test(code) || GLOBAL_PINO_TRANSPORT_RE.test(code);
|
|
1276
|
+
}
|
|
1264
1277
|
/**
|
|
1265
1278
|
* Babel plugin to detect pino transport targets in code.
|
|
1266
1279
|
* Matches patterns like:
|
|
@@ -1502,7 +1515,7 @@ async function analyzeBundle(entries, mastraEntry, { outputDir, projectRoot, pla
|
|
|
1502
1515
|
alias: bundlerOptions?.alias,
|
|
1503
1516
|
platform
|
|
1504
1517
|
});
|
|
1505
|
-
transformSync(analyzeResult.output.code, {
|
|
1518
|
+
if (mayContainPinoTransport(analyzeResult.output.code)) transformSync(analyzeResult.output.code, {
|
|
1506
1519
|
filename: "pino-detection.js",
|
|
1507
1520
|
plugins: [() => detectPinoTransports(detectedPinoTransports)],
|
|
1508
1521
|
configFile: false,
|
|
@@ -1618,4 +1631,4 @@ async function analyzeBundle(entries, mastraEntry, { outputDir, projectRoot, pla
|
|
|
1618
1631
|
}
|
|
1619
1632
|
export { aliasHono as a, packWorkspaceDependencies as c, bundleExternals as i, checkConfigExport as n, collectTransitiveWorkspaceDependencies as o, normalizeExternals as r, getWorkspaceInformation as s, analyzeBundle as t };
|
|
1620
1633
|
|
|
1621
|
-
//# sourceMappingURL=analyze-
|
|
1634
|
+
//# sourceMappingURL=analyze-CZjd0SOO.js.map
|