@zuplo/cli 1.124.0 → 1.125.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,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="900cc4b4-1ae7-5479-88e9-e4202f881b3f")}catch(e){}}();
3
- import jsoncParser from "jsonc-parser";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bb91947b-169f-57b5-9cc1-ce3da5abcdc6")}catch(e){}}();
3
+ import { parse } from "jsonc-parser";
4
4
  import { existsSync } from "node:fs";
5
5
  import { readFile } from "node:fs/promises";
6
6
  import { resolve } from "node:path";
@@ -45,9 +45,7 @@ async function processZuploConfigurationFile() {
45
45
  return {};
46
46
  }
47
47
  const errors = [];
48
- const data = jsoncParser.parse(fileContents, errors, {
49
- allowTrailingComma: true,
50
- });
48
+ const data = parse(fileContents, errors, { allowTrailingComma: true });
51
49
  if (errors.length > 0) {
52
50
  logger.trace(errors[0], "Failed to parse zuplo.jsonc");
53
51
  await printCriticalFailureToConsoleAndExit("Error: Failed to parse the values from zuplo.jsonc. Check your zuplo.jsonc file.");
@@ -61,4 +59,4 @@ const omitNull = (obj) => {
61
59
  return obj;
62
60
  };
63
61
  //# sourceMappingURL=user-configuration.js.map
64
- //# debugId=900cc4b4-1ae7-5479-88e9-e4202f881b3f
62
+ //# debugId=bb91947b-169f-57b5-9cc1-ce3da5abcdc6
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f0d62b68-7ff8-5a01-80ea-5acb654f8728")}catch(e){}}();
3
- import jsoncParser from "jsonc-parser";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="427b8d5d-9342-514f-bb93-cc1119525f44")}catch(e){}}();
3
+ import { parse } from "jsonc-parser";
4
4
  import { existsSync } from "node:fs";
5
5
  import { readFile, writeFile } from "node:fs/promises";
6
6
  import { join } from "node:path";
@@ -74,9 +74,7 @@ export class VsCodeSettingsJsonUpgrader extends StandardUpgrader {
74
74
  }
75
75
  else {
76
76
  const settingsRaw = await readFile(vsCodeSettingsFile, "utf-8");
77
- const settingsJson = jsoncParser.parse(settingsRaw, [], {
78
- allowTrailingComma: true,
79
- });
77
+ const settingsJson = parse(settingsRaw, [], { allowTrailingComma: true });
80
78
  for (const schema of zuploSchemas) {
81
79
  const existingSchema = settingsJson["json.schemas"].find((s) => s.fileMatch[0] === schema.fileMatch[0]);
82
80
  if (existingSchema) {
@@ -95,4 +93,4 @@ export class VsCodeSettingsJsonUpgrader extends StandardUpgrader {
95
93
  }
96
94
  }
97
95
  //# sourceMappingURL=vscode-settings-json-upgrader.js.map
98
- //# debugId=f0d62b68-7ff8-5a01-80ea-5acb654f8728
96
+ //# debugId=427b8d5d-9342-514f-bb93-cc1119525f44
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e31f79b9-11c8-5dd6-8809-d237a2cf1a75")}catch(e){}}();
3
- import jsoncParser from "jsonc-parser";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a94104ad-6a44-5d00-851d-f9a06e68c72c")}catch(e){}}();
3
+ import { applyEdits, modify } from "jsonc-parser";
4
4
  import { existsSync } from "node:fs";
5
5
  import { readFile, writeFile } from "node:fs/promises";
6
6
  import { join, relative } from "node:path";
@@ -15,10 +15,10 @@ export async function safeMergeConfig(dir, project) {
15
15
  const zuploFallbackConfigFile = join(normalizedDir, ZUPLO_FALLBACK_JSON_FILE);
16
16
  if (existsSync(zuploPreferredConfigFile)) {
17
17
  const originalContents = await readFile(zuploPreferredConfigFile, "utf-8");
18
- const modifyProjectEdit = jsoncParser.modify(originalContents, ["project"], project, {
18
+ const modifyProjectEdit = modify(originalContents, ["project"], project, {
19
19
  getInsertionIndex: () => 2,
20
20
  });
21
- const contentsPostProject = jsoncParser.applyEdits(originalContents, modifyProjectEdit);
21
+ const contentsPostProject = applyEdits(originalContents, modifyProjectEdit);
22
22
  const formatted = prettier.format(contentsPostProject, {
23
23
  parser: "json",
24
24
  quoteProps: "as-needed",
@@ -84,4 +84,4 @@ ZUPLO_SYSTEM_CONFIGURATIONS=${payload["systemConfigurations"]}
84
84
  await writeFile(zuploPreferredConfigFile, content);
85
85
  }
86
86
  //# sourceMappingURL=populate.js.map
87
- //# debugId=e31f79b9-11c8-5dd6-8809-d237a2cf1a75
87
+ //# debugId=a94104ad-6a44-5d00-851d-f9a06e68c72c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.124.0",
3
+ "version": "1.125.0",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "description": "The command-line interface for Zuplo",
@@ -80,7 +80,7 @@
80
80
  "ignore": "^5.2.4",
81
81
  "jose": "^4.14.4",
82
82
  "js-yaml": "^4.1.0",
83
- "jsonc-parser": "^3.2.1",
83
+ "jsonc-parser": "3.2.0",
84
84
  "minimatch": "^9.0.3",
85
85
  "open": "^9.1.0",
86
86
  "pino": "^8.11.0",