@develit-io/backend-sdk 5.8.0 → 5.8.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/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/jsonc.cjs +16 -0
- package/dist/jsonc.d.cts +1 -0
- package/dist/jsonc.d.mts +1 -0
- package/dist/jsonc.d.ts +1 -0
- package/dist/jsonc.mjs +1 -0
- package/package.json +8 -2
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 = {
|
package/dist/jsonc.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const main_js = require('jsonc-parser/lib/esm/main.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.prototype.hasOwnProperty.call(main_js, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
value: main_js['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
Object.keys(main_js).forEach(function (k) {
|
|
15
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = main_js[k];
|
|
16
|
+
});
|
package/dist/jsonc.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'jsonc-parser/lib/esm/main.js';
|
package/dist/jsonc.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'jsonc-parser/lib/esm/main.js';
|
package/dist/jsonc.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'jsonc-parser/lib/esm/main.js';
|
package/dist/jsonc.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'jsonc-parser/lib/esm/main.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-io/backend-sdk",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.2",
|
|
4
4
|
"description": "Develit Backend SDK",
|
|
5
5
|
"author": "Develit.io",
|
|
6
6
|
"license": "ISC",
|
|
@@ -19,7 +19,13 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
21
|
"import": "./dist/index.mjs",
|
|
22
|
-
"require": "./dist/index.cjs"
|
|
22
|
+
"require": "./dist/index.cjs",
|
|
23
|
+
"types": "./dist/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./jsonc": {
|
|
26
|
+
"import": "./dist/jsonc.mjs",
|
|
27
|
+
"require": "./dist/jsonc.cjs",
|
|
28
|
+
"types": "./dist/jsonc.d.ts"
|
|
23
29
|
},
|
|
24
30
|
"./package.json": "./package.json"
|
|
25
31
|
},
|