flatpack-json 10.0.1 → 10.1.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/storage.mjs +1 -4
- package/package.json +4 -4
package/dist/storage.mjs
CHANGED
|
@@ -15,10 +15,7 @@ export function stringify(data, pretty = true, options) {
|
|
|
15
15
|
return pretty ? stringifyFlatpacked(json, stringifyOptions) : JSON.stringify(json);
|
|
16
16
|
}
|
|
17
17
|
export function normalizeOptions(options) {
|
|
18
|
-
let header = dataHeader;
|
|
19
|
-
if (options?.format === 'V1') {
|
|
20
|
-
header = dataHeaderV1_0;
|
|
21
|
-
}
|
|
18
|
+
let header = options?.format === 'V1' ? dataHeaderV1_0 : dataHeader;
|
|
22
19
|
if (options?.format === 'V2') {
|
|
23
20
|
header = dataHeaderV2_0;
|
|
24
21
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "10.
|
|
7
|
+
"version": "10.1.1",
|
|
8
8
|
"description": "A library to normalize / flatten JSON objects to reduce the size.",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"cspell",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"node": ">=22.18.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@cspell/filetypes": "10.
|
|
56
|
+
"@cspell/filetypes": "10.1.1",
|
|
57
57
|
"diff": "^9.0.0",
|
|
58
|
-
"flatted": "^3.4.
|
|
58
|
+
"flatted": "^3.4.4"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "bc3bc22aa1aa1b3073768f2ac9cf0d9a06f65177"
|
|
61
61
|
}
|