json10 18.0.15 → 18.0.17
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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/fesm2022/json10.mjs.map +1 -1
- package/client/fesm2022/json10.mjs.map +1 -1
- package/migrations/index.d.ts +1 -0
- package/migrations/index.js +6 -0
- package/migrations/index.js.map +1 -0
- package/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/migrations/migrations_index._auto-generated_.js +4 -0
- package/migrations/migrations_index._auto-generated_.js.map +1 -0
- package/package.json +3 -3
- package/tmp-environment.json +32 -29
- package/websql/fesm2022/json10.mjs.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
|
2
2
|
|
|
3
|
-
Assets from this folder are being shipped with this npm package (json10@18.0.
|
|
3
|
+
Assets from this folder are being shipped with this npm package (json10@18.0.17)
|
|
4
4
|
created from this project.
|
|
5
5
|
|
|
6
6
|
THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/browser';\nimport { walk, Models } from 'lodash-walk-object/browser';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/browser';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS;
|
|
1
|
+
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/browser';\nimport { walk, Models } from 'lodash-walk-object/browser';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/browser';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAA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,OAAO,GAAG,CAAC;KACZ;AACF,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/browser';\nimport { walk, Models } from 'lodash-walk-object/browser';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/browser';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS;
|
|
1
|
+
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/browser';\nimport { walk, Models } from 'lodash-walk-object/browser';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/browser';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAI;YAEzC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;aACxB;SAEF,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAC7C,QAAA,OAAO,MAAM,CAAC;KACf;AAGM,IAAA,OAAO,OAAO,CAAC,IAAI,EAAE,OAAgC,EAAE,OAK3D,EAAA;AAED,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAA;AACxC,QAAA,MAAM,OAAO,GAA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C,CAAC;KAC9C;AAEM,IAAA,OAAO,KAAK,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAA;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC3B,QAAA,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAI;AAElD,gBAAA,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;iBAC3B;qBAAM;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;oBACvC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;iBACzB;AAEH,aAAC,CAAC,CAAA;SACH;AACD,QAAA,OAAO,GAAG,CAAC;KACZ;AACF,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './migrations_index._auto-generated_';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,aAAa;AACb,8EAAoD"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations_index._auto-generated_.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,yCAAyC;AAEzC,yCAAyC;AAEzC,yCAAyC"}
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"name": "json10",
|
|
49
49
|
"description": "Handle circural references, comments and many more inside JSON",
|
|
50
|
-
"version": "18.0.
|
|
50
|
+
"version": "18.0.17",
|
|
51
51
|
"scripts": {
|
|
52
52
|
"test": "mocha --require ts-node/register src/**/*.spec.ts",
|
|
53
53
|
"test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
},
|
|
68
68
|
"homepage": "https://github.com/darekf77/json10#readme",
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"lodash-walk-object": "~18.0.
|
|
70
|
+
"lodash-walk-object": "~18.0.17"
|
|
71
71
|
},
|
|
72
72
|
"license": "MIT",
|
|
73
73
|
"private": false,
|
|
74
|
-
"lastBuildTagHash": "
|
|
74
|
+
"lastBuildTagHash": "74d101e67cc84e7050061a1973c6e16de414e049",
|
|
75
75
|
"devDependencies": {},
|
|
76
76
|
"main": "dist/app.electron.js"
|
|
77
77
|
}
|
package/tmp-environment.json
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"name": "json10",
|
|
53
53
|
"description": "Handle circural references, comments and many more inside JSON",
|
|
54
|
-
"version": "18.0.
|
|
54
|
+
"version": "18.0.17",
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "mocha --require ts-node/register src/**/*.spec.ts",
|
|
57
57
|
"test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
},
|
|
72
72
|
"homepage": "https://github.com/darekf77/json10#readme",
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"lodash-walk-object": "~18.0.
|
|
74
|
+
"lodash-walk-object": "~18.0.17"
|
|
75
75
|
},
|
|
76
76
|
"license": "MIT",
|
|
77
77
|
"private": false,
|
|
78
|
-
"lastBuildTagHash": "
|
|
78
|
+
"lastBuildTagHash": "74d101e67cc84e7050061a1973c6e16de414e049",
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@angular-builders/custom-webpack": "~18.0.0",
|
|
81
81
|
"@angular-devkit/build-angular": "~18.1.4",
|
|
@@ -189,6 +189,7 @@
|
|
|
189
189
|
"command-exists": "1.2.2",
|
|
190
190
|
"compression": "1.7.4",
|
|
191
191
|
"concurrently": "8.2.2",
|
|
192
|
+
"console-png": "1.2.1",
|
|
192
193
|
"content-type": "1.0.5",
|
|
193
194
|
"conventional-changelog-cli": "5.0.0",
|
|
194
195
|
"cookie-parser": "1.4.6",
|
|
@@ -239,13 +240,13 @@
|
|
|
239
240
|
"image-focus": "1.2.1",
|
|
240
241
|
"immer": "10.0.2",
|
|
241
242
|
"immutable": "4.3.7",
|
|
242
|
-
"incremental-compiler": "~18.0.
|
|
243
|
+
"incremental-compiler": "~18.0.17",
|
|
243
244
|
"inquirer": "7.3.3",
|
|
244
245
|
"inquirer-autocomplete-prompt": "1.4.0",
|
|
245
246
|
"inquirer-autocomplete-standalone": "0.8.1",
|
|
246
247
|
"inquirer-select-pro": "1.0.0-alpha.7",
|
|
247
248
|
"is-elevated": "3.0.0",
|
|
248
|
-
"isomorphic-region-loader": "~18.0.
|
|
249
|
+
"isomorphic-region-loader": "~18.0.17",
|
|
249
250
|
"istanbul-instrumenter-loader": "3.0.1",
|
|
250
251
|
"jest": "29.7.0",
|
|
251
252
|
"jest-date-mock": "1.0.10",
|
|
@@ -256,8 +257,8 @@
|
|
|
256
257
|
"joi": "17.13.3",
|
|
257
258
|
"jscodeshift": "0.6.3",
|
|
258
259
|
"json-stringify-safe": "5.0.1",
|
|
259
|
-
"json10": "~18.0.
|
|
260
|
-
"json10-writer": "~18.0.
|
|
260
|
+
"json10": "~18.0.16",
|
|
261
|
+
"json10-writer": "~18.0.16",
|
|
261
262
|
"json5": "2.2.3",
|
|
262
263
|
"json5-writer": "0.2.0",
|
|
263
264
|
"jszip": "3.10.1",
|
|
@@ -267,7 +268,7 @@
|
|
|
267
268
|
"lockfile": "1.0.4",
|
|
268
269
|
"lodash": "4.17.21",
|
|
269
270
|
"lowdb": "7.0.1",
|
|
270
|
-
"magic-renamer": "~18.0.
|
|
271
|
+
"magic-renamer": "~18.0.16",
|
|
271
272
|
"material-design-icons": "3.0.1",
|
|
272
273
|
"method-override": "2.3.10",
|
|
273
274
|
"minimist": "1.2.8",
|
|
@@ -278,11 +279,11 @@
|
|
|
278
279
|
"ng-in-viewport": "16.1.0",
|
|
279
280
|
"ng-lock": "18.0.1",
|
|
280
281
|
"ng-packagr": "18.1.0",
|
|
281
|
-
"ng-talkback": "~18.0.
|
|
282
|
-
"ng2-logger": "~18.0.
|
|
282
|
+
"ng-talkback": "~18.0.15",
|
|
283
|
+
"ng2-logger": "~18.0.19",
|
|
283
284
|
"ng2-pdfjs-viewer": "18.0.0",
|
|
284
|
-
"ng2-rest": "~18.0.
|
|
285
|
-
"ng2-rest-swagger-generator": "18.0.
|
|
285
|
+
"ng2-rest": "~18.0.16",
|
|
286
|
+
"ng2-rest-swagger-generator": "18.0.13",
|
|
286
287
|
"ngx-ace-wrapper": "17.0.0",
|
|
287
288
|
"ngx-editor": "17.5.4",
|
|
288
289
|
"ngx-highlightjs": "12.0.0",
|
|
@@ -296,7 +297,7 @@
|
|
|
296
297
|
"ngx-scrolltop": "18.0.0",
|
|
297
298
|
"ngx-store": "3.1.1",
|
|
298
299
|
"ngx-typed-js": "2.1.1",
|
|
299
|
-
"node-cli-tester": "~18.0.
|
|
300
|
+
"node-cli-tester": "~18.0.15",
|
|
300
301
|
"node-localstorage": "2.1.6",
|
|
301
302
|
"node-notifier": "10.0.1",
|
|
302
303
|
"node-polyfill-webpack-plugin": "2.0.1",
|
|
@@ -327,7 +328,7 @@
|
|
|
327
328
|
"q": "1.5.1",
|
|
328
329
|
"rallax.js": "2.0.4",
|
|
329
330
|
"randomcolor": "0.5.3",
|
|
330
|
-
"record-replay-req-res-scenario": "~18.0.
|
|
331
|
+
"record-replay-req-res-scenario": "~18.0.15",
|
|
331
332
|
"reflect-metadata": "0.2.2",
|
|
332
333
|
"rimraf": "2.6.2",
|
|
333
334
|
"rxjs": "~7.8.1",
|
|
@@ -338,24 +339,26 @@
|
|
|
338
339
|
"socket.io": "4.7.5",
|
|
339
340
|
"socket.io-client": "4.7.5",
|
|
340
341
|
"sort-package-json": "1.11.0",
|
|
342
|
+
"sql-template-strings": "2.2.2",
|
|
343
|
+
"sql-template-tag": "5.2.1",
|
|
341
344
|
"sql.js": "1.8.0",
|
|
342
|
-
"static-columns": "~18.0.
|
|
345
|
+
"static-columns": "~18.0.17",
|
|
343
346
|
"string-similarity": "4.0.4",
|
|
344
347
|
"sudo-block": "3.0.0",
|
|
345
348
|
"supertest": "7.0.0",
|
|
346
349
|
"sweetalert2": "11.7.32",
|
|
347
350
|
"systeminformation": "3.45.7",
|
|
348
351
|
"taon": "^18",
|
|
349
|
-
"taon-storage": "18.0.
|
|
350
|
-
"taon-type-sql": "18.0.
|
|
351
|
-
"taon-typeorm": "18.0.
|
|
352
|
+
"taon-storage": "18.0.25",
|
|
353
|
+
"taon-type-sql": "18.0.16",
|
|
354
|
+
"taon-typeorm": "18.0.15",
|
|
352
355
|
"task.js": "0.1.5",
|
|
353
356
|
"threads": "1.7.0",
|
|
354
|
-
"tnp": "~18.0.
|
|
355
|
-
"tnp-config": "~18.0.
|
|
356
|
-
"tnp-core": "~18.0.
|
|
357
|
-
"tnp-helpers": "~18.0.
|
|
358
|
-
"tnp-models": "~18.0.
|
|
357
|
+
"tnp": "~18.0.18",
|
|
358
|
+
"tnp-config": "~18.0.19",
|
|
359
|
+
"tnp-core": "~18.0.43",
|
|
360
|
+
"tnp-helpers": "~18.0.16",
|
|
361
|
+
"tnp-models": "~18.0.18",
|
|
359
362
|
"ts-debug": "1.3.0",
|
|
360
363
|
"ts-json-schema-generator": "2.3.0-next.5",
|
|
361
364
|
"ts-loader": "2.3.1",
|
|
@@ -367,14 +370,14 @@
|
|
|
367
370
|
"typedoc": "0.26.5",
|
|
368
371
|
"typedoc-plugin-markdown": "4.2.3",
|
|
369
372
|
"typescript": "~5.5.4",
|
|
370
|
-
"typescript-class-helpers": "~18.0.
|
|
373
|
+
"typescript-class-helpers": "~18.0.18",
|
|
371
374
|
"typescript-formatter": "~7.2.2",
|
|
372
375
|
"typescript-string-enums": "~1.0.0",
|
|
373
376
|
"underscore": "1.13.7",
|
|
374
377
|
"uuid": "10.0.0",
|
|
375
378
|
"validator": "13.5.2",
|
|
376
379
|
"video.js": "8.3.0",
|
|
377
|
-
"vpn-split": "~18.0.
|
|
380
|
+
"vpn-split": "~18.0.15",
|
|
378
381
|
"vscode": "1.1.37",
|
|
379
382
|
"wait-on": "8.0.1",
|
|
380
383
|
"watch": "1.0.2",
|
|
@@ -387,14 +390,14 @@
|
|
|
387
390
|
"main": "dist/app.electron.js"
|
|
388
391
|
},
|
|
389
392
|
"build": {
|
|
390
|
-
"number":
|
|
391
|
-
"date": "2024-
|
|
392
|
-
"hash": "
|
|
393
|
+
"number": 350,
|
|
394
|
+
"date": "2024-12-31T17:53:11.000Z",
|
|
395
|
+
"hash": "bc1937d8e0e1694460f947bc85e88b53b25208af"
|
|
393
396
|
},
|
|
394
397
|
"currentProjectName": "json10",
|
|
395
398
|
"currentProjectGenericName": "json10",
|
|
396
399
|
"currentProjectType": "isomorphic-lib",
|
|
397
|
-
"currentFrameworkVersion": "18.0.
|
|
400
|
+
"currentFrameworkVersion": "18.0.18",
|
|
398
401
|
"isStandaloneProject": true,
|
|
399
402
|
"isSmartContainer": false,
|
|
400
403
|
"pathesTsconfig": "\"paths\": {\"json10\":[\"./src/lib\"],\"json10/*\":[\"./src/lib/*\"]},",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist-websql/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist-websql/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/websql';\nimport { walk, Models } from 'lodash-walk-object/websql';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/websql';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;({}); // @--end-of-file-for-module=json10 lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,EAAA;QAChG,IAAI,MAAM,GAAG,EAAE;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS;
|
|
1
|
+
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-dist-websql/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist-websql/json10/projects/json10/src/json10.ts"],"sourcesContent":["\n\nimport { _ } from 'tnp-core/websql';\nimport { walk, Models } from 'lodash-walk-object/websql';\nexport type Circ = Models.Circ;\nimport { CLASS } from 'typescript-class-helpers/websql';\n\n\n\n\n\nexport class JSON10 {\n\n public static structureArray(anyJSON: Object, options?: { include?: string[]; exclude?: string[] }) {\n let pathes = []\n const { include, exclude } = options || {} as any;\n walk.Object(anyJSON, (value, lodashPath) => {\n\n if (!_.isUndefined(value)) {\n pathes.push(lodashPath)\n }\n\n }, { include, exclude, checkCircural: true })\n return pathes;\n }\n\n\n public static cleaned(json, onCircs?: (circs: Circ[]) => any, options?:\n {\n exclude?: string[];\n include?: string[];\n breadthWalk?: boolean;\n }) {\n\n const result = _.isArray(json) ? [] : {}\n const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);\n\n const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };\n\n const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {\n\n if (_.isObject(value) && options.isCircural) {\n _.set(result, lodashPath, null)\n } else {\n _.set(result, lodashPath, _.cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (_.isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return _.isFunction(classFN) ? _.merge(new (classFN as any)(), result) : result;\n }\n\n public static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any) {\n const json = this.cleaned(anyJSON, onCircs);\n return JSON.stringify(json, replace, spaces);\n }\n\n public static parse(json: string, circs: Circ[] = []) {\n let res = JSON.parse(json);\n if (_.isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n _.set(res, pathToObj, res)\n } else {\n let v = _.get(res, circuralTargetPath);\n _.set(res, pathToObj, v)\n }\n\n })\n }\n return res;\n }\n}\n\n ;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