@develit-io/backend-sdk 5.8.0 → 5.8.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/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10,7 +10,7 @@ const consola = require('consola');
|
|
|
10
10
|
const fs = require('fs');
|
|
11
11
|
const crypto$1 = require('node:crypto');
|
|
12
12
|
const path = require('path');
|
|
13
|
-
const
|
|
13
|
+
const main_js = require('jsonc-parser/lib/esm/main.js');
|
|
14
14
|
const superjson = require('superjson');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
@@ -243,7 +243,7 @@ const getDatabaseIdFromWrangler = () => {
|
|
|
243
243
|
const wranglerPath = path__default.resolve("./wrangler.jsonc");
|
|
244
244
|
const wranglerContent = fs__default.readFileSync(wranglerPath, "utf-8");
|
|
245
245
|
const errors = [];
|
|
246
|
-
const config =
|
|
246
|
+
const config = main_js.parse(wranglerContent, errors, { allowTrailingComma: true });
|
|
247
247
|
if (errors.length) {
|
|
248
248
|
throw new Error("Invalid JSONC in wrangler.jsonc");
|
|
249
249
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { consola } from 'consola';
|
|
|
8
8
|
import fs from 'fs';
|
|
9
9
|
import crypto$1 from 'node:crypto';
|
|
10
10
|
import path from 'path';
|
|
11
|
-
import { parse } from 'jsonc-parser';
|
|
11
|
+
import { parse } from 'jsonc-parser/lib/esm/main.js';
|
|
12
12
|
import superjson from 'superjson';
|
|
13
13
|
|
|
14
14
|
const base = {
|