@zuplo/cli 6.45.0 → 6.46.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.
@@ -1 +1 @@
1
- {"version":3,"file":"esbuild-config.d.ts","sourceRoot":"","sources":["../../src/test/esbuild-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,GAAG,YAAY,CAqBzE"}
1
+ {"version":3,"file":"esbuild-config.d.ts","sourceRoot":"","sources":["../../src/test/esbuild-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,GAAG,YAAY,CAsBzE"}
@@ -5,6 +5,7 @@ export function generateBuildOptionsForTest(argv) {
5
5
  outdir: `${argv.dir}/${TEST_OUT_FOLDER}`,
6
6
  external: ["chai", "dotenv/config", "node:test"],
7
7
  platform: "node",
8
+ sourcemap: true,
8
9
  bundle: true,
9
10
  treeShaking: true,
10
11
  format: "esm",
@@ -1 +1 @@
1
- {"version":3,"file":"esbuild-config.js","sourceRoot":"","sources":["../../src/test/esbuild-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAGhF,MAAM,UAAU,2BAA2B,CAAC,IAAe;IACzD,OAAO;QAEL,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,eAAe,EAAE;QACxC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,WAAW,CAAC;QAChD,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,IAAI;QAEjB,MAAM,EAAE,KAAK;QAEb,YAAY,EAAE;YACZ,KAAK,EAAE,MAAM;SACd;QAED,OAAO,EAAE;YACP,kBAAkB,CAAC,IAAI,EAAE;gBACvB,aAAa,EAAE,EAAE;aAClB,CAAC;SACH;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { BuildOptions } from \"esbuild\";\nimport { TEST_OUT_FOLDER } from \"../common/constants.js\";\nimport { nodeTestPrepPlugin } from \"./esbuild-plugins/node-test-prep-plugin.js\";\nimport { Arguments } from \"./handler.js\";\n\nexport function generateBuildOptionsForTest(argv: Arguments): BuildOptions {\n return {\n // Put it under the .zuplo folder\n outdir: `${argv.dir}/${TEST_OUT_FOLDER}`,\n external: [\"chai\", \"dotenv/config\", \"node:test\"],\n platform: \"node\",\n bundle: true,\n treeShaking: true,\n // The format needs to be esm for Deno to work with it\n format: \"esm\",\n // Let's keep the extension as .ts since that is what Deno runs\n outExtension: {\n \".js\": \".mjs\",\n },\n // Here is our own plug-in to shim the responses\n plugins: [\n nodeTestPrepPlugin(argv, {\n \"@zuplo/test\": \"\",\n }),\n ],\n };\n}\n"]}
1
+ {"version":3,"file":"esbuild-config.js","sourceRoot":"","sources":["../../src/test/esbuild-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAGhF,MAAM,UAAU,2BAA2B,CAAC,IAAe;IACzD,OAAO;QAEL,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,eAAe,EAAE;QACxC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,WAAW,CAAC;QAChD,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,IAAI;QAEjB,MAAM,EAAE,KAAK;QAEb,YAAY,EAAE;YACZ,KAAK,EAAE,MAAM;SACd;QAED,OAAO,EAAE;YACP,kBAAkB,CAAC,IAAI,EAAE;gBACvB,aAAa,EAAE,EAAE;aAClB,CAAC;SACH;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { BuildOptions } from \"esbuild\";\nimport { TEST_OUT_FOLDER } from \"../common/constants.js\";\nimport { nodeTestPrepPlugin } from \"./esbuild-plugins/node-test-prep-plugin.js\";\nimport { Arguments } from \"./handler.js\";\n\nexport function generateBuildOptionsForTest(argv: Arguments): BuildOptions {\n return {\n // Put it under the .zuplo folder\n outdir: `${argv.dir}/${TEST_OUT_FOLDER}`,\n external: [\"chai\", \"dotenv/config\", \"node:test\"],\n platform: \"node\",\n sourcemap: true,\n bundle: true,\n treeShaking: true,\n // The format needs to be esm for Deno to work with it\n format: \"esm\",\n // Let's keep the extension as .ts since that is what Deno runs\n outExtension: {\n \".js\": \".mjs\",\n },\n // Here is our own plug-in to shim the responses\n plugins: [\n nodeTestPrepPlugin(argv, {\n \"@zuplo/test\": \"\",\n }),\n ],\n };\n}\n"]}
@@ -10,7 +10,7 @@ class MissingNodeExecutableError extends Error {
10
10
  export async function runTests(argv) {
11
11
  const nodeExecutable = process.platform === "win32" ? "node.exe" : "node";
12
12
  if (nodeExecutable) {
13
- const args = ["--test", "--test-reporter=spec"];
13
+ const args = ["--test", "--test-reporter=spec", "--enable-source-maps"];
14
14
  if (argv.filter) {
15
15
  args.push("--test-name-pattern", argv.filter);
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"invoke-test.js","sourceRoot":"","sources":["../../src/test/invoke-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAmB,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,MAAM,0BAA2B,SAAQ,KAAK;IAC5C;QACE,KAAK,CAAC,mDAAmD,CAAC,CAAC;QAC3D,MAAM,CAA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GAAG,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;IACH,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,0BAA0B,EAAE,CAAC;IACzC,CAAC;AACH,CAAC","sourcesContent":["import { execa, ExecaReturnBase } from \"execa\";\nimport { TEST_OUT_FOLDER } from \"../common/constants.js\";\nimport { logger } from \"../common/logger.js\";\nimport { Arguments } from \"./handler.js\";\n\nclass MissingNodeExecutableError extends Error {\n constructor() {\n super(\"Missing executable: Cannot locate node executable\");\n Object.setPrototypeOf(this, MissingNodeExecutableError.prototype);\n }\n}\n\nexport async function runTests(\n argv: Arguments\n): Promise<Pick<ExecaReturnBase<string>, \"exitCode\">> {\n // Assume that \"node\" is in the path\n const nodeExecutable = process.platform === \"win32\" ? \"node.exe\" : \"node\";\n if (nodeExecutable) {\n const args = [\"--test\", \"--test-reporter=spec\"];\n if (argv.filter) {\n args.push(\"--test-name-pattern\", argv.filter);\n }\n\n // Check Node.js version to determine glob pattern\n // See https://github.com/nodejs/node/pull/47653#issuecomment-1692984053\n const nodeVersion = parseInt(process.versions.node.split(\".\")[0], 10);\n const globPattern =\n nodeVersion >= 21\n ? `${argv.dir}/${TEST_OUT_FOLDER}/**/*.test.mjs`\n : `${argv.dir}/${TEST_OUT_FOLDER}`;\n\n args.push(globPattern);\n\n const nodeProcess = execa(nodeExecutable, args);\n nodeProcess.stdout?.pipe(process.stdout);\n nodeProcess.stderr?.pipe(process.stderr);\n try {\n const result = await nodeProcess;\n return result;\n } catch (err) {\n // We do not want to output the err by default since it could be a test failure\n // Test failures are already reported by piping stdout and stderr above\n logger.debug(err);\n return { exitCode: err.exitCode };\n }\n } else {\n throw new MissingNodeExecutableError();\n }\n}\n"]}
1
+ {"version":3,"file":"invoke-test.js","sourceRoot":"","sources":["../../src/test/invoke-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAmB,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAA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MAAM,WAAW,CAAC;YACjC,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YAGb,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAClB,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;QACpC,CAAC;IACH,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,0BAA0B,EAAE,CAAC;IACzC,CAAC;AACH,CAAC","sourcesContent":["import { execa, ExecaReturnBase } from \"execa\";\nimport { TEST_OUT_FOLDER } from \"../common/constants.js\";\nimport { logger } from \"../common/logger.js\";\nimport { Arguments } from \"./handler.js\";\n\nclass MissingNodeExecutableError extends Error {\n constructor() {\n super(\"Missing executable: Cannot locate node executable\");\n Object.setPrototypeOf(this, MissingNodeExecutableError.prototype);\n }\n}\n\nexport async function runTests(\n argv: Arguments\n): Promise<Pick<ExecaReturnBase<string>, \"exitCode\">> {\n // Assume that \"node\" is in the path\n const nodeExecutable = process.platform === \"win32\" ? \"node.exe\" : \"node\";\n if (nodeExecutable) {\n const args = [\"--test\", \"--test-reporter=spec\", \"--enable-source-maps\"];\n if (argv.filter) {\n args.push(\"--test-name-pattern\", argv.filter);\n }\n\n // Check Node.js version to determine glob pattern\n // See https://github.com/nodejs/node/pull/47653#issuecomment-1692984053\n const nodeVersion = parseInt(process.versions.node.split(\".\")[0], 10);\n const globPattern =\n nodeVersion >= 21\n ? `${argv.dir}/${TEST_OUT_FOLDER}/**/*.test.mjs`\n : `${argv.dir}/${TEST_OUT_FOLDER}`;\n\n args.push(globPattern);\n\n const nodeProcess = execa(nodeExecutable, args);\n nodeProcess.stdout?.pipe(process.stdout);\n nodeProcess.stderr?.pipe(process.stderr);\n try {\n const result = await nodeProcess;\n return result;\n } catch (err) {\n // We do not want to output the err by default since it could be a test failure\n // Test failures are already reported by piping stdout and stderr above\n logger.debug(err);\n return { exitCode: err.exitCode };\n }\n } else {\n throw new MissingNodeExecutableError();\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "6.45.0",
3
+ "version": "6.46.0",
4
4
  "repository": "https://github.com/zuplo/zuplo",
5
5
  "author": "Zuplo, Inc.",
6
6
  "type": "module",
@@ -27,11 +27,11 @@
27
27
  "@fastify/static": "^7.0.4",
28
28
  "@inquirer/prompts": "^5.3.8",
29
29
  "@opentelemetry/api": "^1.8.0",
30
- "@sentry/node": "^9.5.0",
30
+ "@sentry/node": "^9.10.0",
31
31
  "@swc/core": "1.10.18",
32
- "@zuplo/core": "^6.45.0",
33
- "@zuplo/openapi-tools": "^6.45.0",
34
- "@zuplo/runtime": "^6.45.0",
32
+ "@zuplo/core": "^6.46.0",
33
+ "@zuplo/openapi-tools": "^6.46.0",
34
+ "@zuplo/runtime": "^6.46.0",
35
35
  "as-table": "^1.0.55",
36
36
  "chalk": "^5.3.0",
37
37
  "chokidar": "^3.5.3",