json10 13.1.45 → 16.0.47
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/README.md +24 -24
- package/browser/lib/index.d.ts +1 -1
- package/browser/package.json +6 -12
- package/client/README.md +24 -24
- package/client/lib/index.d.ts +1 -1
- package/client/package.json +84 -82
- package/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/package.json_devDependencies.json +224 -224
- package/package.json_tnp.json5 +54 -54
- package/tmp-environment.json +89 -87
- package/websql/README.md +24 -24
- package/websql/lib/index.d.ts +1 -1
- package/websql/package.json +6 -12
- package/client/fesm2015/json10.mjs +0 -61
- package/client/fesm2015/json10.mjs.map +0 -1
- package/client/fesm2020/json10.mjs +0 -61
- package/client/fesm2020/json10.mjs.map +0 -1
- package/websql/fesm2020/json10.mjs +0 -61
- package/websql/fesm2020/json10.mjs.map +0 -1
- /package/browser/{esm2020 → esm2022}/json10.mjs +0 -0
- /package/browser/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/browser/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/browser/{fesm2015 → fesm2022}/json10.mjs +0 -0
- /package/browser/{fesm2015 → fesm2022}/json10.mjs.map +0 -0
- /package/browser/{json10.d.ts → index.d.ts} +0 -0
- /package/client/{esm2020 → esm2022}/json10.mjs +0 -0
- /package/client/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/client/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{browser/fesm2020 → client/fesm2022}/json10.mjs +0 -0
- /package/{browser/fesm2020 → client/fesm2022}/json10.mjs.map +0 -0
- /package/client/{json10.d.ts → index.d.ts} +0 -0
- /package/websql/{esm2020 → esm2022}/json10.mjs +0 -0
- /package/websql/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/websql/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/websql/{fesm2015 → fesm2022}/json10.mjs +0 -0
- /package/websql/{fesm2015 → fesm2022}/json10.mjs.map +0 -0
- /package/websql/{json10.d.ts → index.d.ts} +0 -0
package/tmp-environment.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"smartContainerTarget": "",
|
|
28
28
|
"type": "isomorphic-lib",
|
|
29
|
-
"version": "
|
|
29
|
+
"version": "v4",
|
|
30
30
|
"additionalNpmNames": [
|
|
31
31
|
"firedev-json"
|
|
32
32
|
],
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"name": "json10",
|
|
50
50
|
"description": "Handle circural references, comments and many more inside JSON",
|
|
51
|
-
"version": "
|
|
51
|
+
"version": "16.0.47",
|
|
52
52
|
"scripts": {
|
|
53
53
|
"test": "mocha --require ts-node/register src/**/*.spec.ts",
|
|
54
54
|
"test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
|
|
@@ -68,52 +68,54 @@
|
|
|
68
68
|
},
|
|
69
69
|
"homepage": "https://github.com/darekf77/json10#readme",
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"lodash-walk-object": "~
|
|
71
|
+
"lodash-walk-object": "~16.0.47"
|
|
72
72
|
},
|
|
73
73
|
"license": "MIT",
|
|
74
74
|
"private": false,
|
|
75
|
-
"lastBuildTagHash": "
|
|
75
|
+
"lastBuildTagHash": "4fef33b14eb6ddda61ead27af102b5aea9061b5f",
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@angular-devkit/build-angular": "~
|
|
78
|
-
"@angular-devkit/core": "~
|
|
77
|
+
"@angular-devkit/build-angular": "~16.0.5",
|
|
78
|
+
"@angular-devkit/core": "~16.0.5",
|
|
79
79
|
"@angular-material-extensions/fab-menu": "~6.1.0",
|
|
80
|
-
"@angular/animations": "~
|
|
81
|
-
"@angular/cdk": "~
|
|
82
|
-
"@angular/cli": "~
|
|
83
|
-
"@angular/common": "~
|
|
84
|
-
"@angular/compiler": "~
|
|
85
|
-
"@angular/compiler-cli": "~
|
|
86
|
-
"@angular/core": "~
|
|
87
|
-
"@angular/elements": "~
|
|
88
|
-
"@angular/
|
|
89
|
-
"@angular/
|
|
90
|
-
"@angular/
|
|
91
|
-
"@angular/platform-browser": "~
|
|
92
|
-
"@angular/
|
|
93
|
-
"@angular/
|
|
94
|
-
"@angular/
|
|
95
|
-
"@angular/service-worker": "~13.3.11",
|
|
80
|
+
"@angular/animations": "~16.0.0",
|
|
81
|
+
"@angular/cdk": "~16.0.3",
|
|
82
|
+
"@angular/cli": "~16.0.5",
|
|
83
|
+
"@angular/common": "~16.0.0",
|
|
84
|
+
"@angular/compiler": "~16.0.0",
|
|
85
|
+
"@angular/compiler-cli": "~16.0.4",
|
|
86
|
+
"@angular/core": "~16.0.0",
|
|
87
|
+
"@angular/elements": "~16.0.4",
|
|
88
|
+
"@angular/forms": "~16.0.0",
|
|
89
|
+
"@angular/material": "~16.0.3",
|
|
90
|
+
"@angular/platform-browser": "~16.0.4",
|
|
91
|
+
"@angular/platform-browser-dynamic": "~16.0.4",
|
|
92
|
+
"@angular/pwa": "~16.0.5",
|
|
93
|
+
"@angular/router": "~16.0.0",
|
|
94
|
+
"@angular/service-worker": "~16.0.4",
|
|
96
95
|
"@babel/cli": "7.18.6",
|
|
97
96
|
"@iconify/icons-fa-solid": "1.2.2",
|
|
98
97
|
"@iconify/icons-mdi": "1.2.1",
|
|
99
|
-
"@mdi/js": "
|
|
100
|
-
"@ng-matero/extensions": "
|
|
98
|
+
"@mdi/js": "7.2.96",
|
|
99
|
+
"@ng-matero/extensions": "16.0.0",
|
|
101
100
|
"@ngneat/falso": "6.4.0",
|
|
102
|
-
"@ngneat/hot-toast": "
|
|
103
|
-
"@ngneat/overview": "
|
|
104
|
-
"@ngneat/
|
|
105
|
-
"@ngrx/component-store": "~
|
|
106
|
-
"@ngrx/data": "~
|
|
107
|
-
"@ngrx/effects": "~
|
|
108
|
-
"@ngrx/entity": "~
|
|
109
|
-
"@ngrx/router-store": "~
|
|
110
|
-
"@ngrx/schematics": "~
|
|
111
|
-
"@ngrx/store": "~
|
|
112
|
-
"@ngrx/store-devtools": "~
|
|
113
|
-
"@ngx-formly/core": "6.
|
|
114
|
-
"@ngx-formly/material": "6.
|
|
115
|
-
"@ngx-translate/core": "
|
|
116
|
-
"@ngx-translate/http-loader": "
|
|
101
|
+
"@ngneat/hot-toast": "5.0.1",
|
|
102
|
+
"@ngneat/overview": "5.0.0",
|
|
103
|
+
"@ngneat/spectator": "15.0.0",
|
|
104
|
+
"@ngrx/component-store": "~16.0.1",
|
|
105
|
+
"@ngrx/data": "~16.0.1",
|
|
106
|
+
"@ngrx/effects": "~16.0.1",
|
|
107
|
+
"@ngrx/entity": "~16.0.1",
|
|
108
|
+
"@ngrx/router-store": "~16.0.1",
|
|
109
|
+
"@ngrx/schematics": "~16.0.1",
|
|
110
|
+
"@ngrx/store": "~16.0.1",
|
|
111
|
+
"@ngrx/store-devtools": "~16.0.1",
|
|
112
|
+
"@ngx-formly/core": "6.1.7",
|
|
113
|
+
"@ngx-formly/material": "6.1.7",
|
|
114
|
+
"@ngx-translate/core": "15.0.0",
|
|
115
|
+
"@ngx-translate/http-loader": "8.0.0",
|
|
116
|
+
"@testdeck/jasmine": "0.3.3",
|
|
117
|
+
"@testdeck/jest": "0.3.3",
|
|
118
|
+
"@testdeck/mocha": "0.3.3",
|
|
117
119
|
"@types/chai": "4.1.2",
|
|
118
120
|
"@types/chokidar": "2.1.3",
|
|
119
121
|
"@types/dateformat": "1.0.1",
|
|
@@ -125,7 +127,7 @@
|
|
|
125
127
|
"@types/http-proxy": "1.16.0",
|
|
126
128
|
"@types/http-proxy-middleware": "0.19.2",
|
|
127
129
|
"@types/inquirer": "7.3.1",
|
|
128
|
-
"@types/jasmine": "3.
|
|
130
|
+
"@types/jasmine": "4.3.0",
|
|
129
131
|
"@types/json-stringify-safe": "5.0.0",
|
|
130
132
|
"@types/json5": "0.0.29",
|
|
131
133
|
"@types/lockfile": "1.0.0",
|
|
@@ -144,10 +146,10 @@
|
|
|
144
146
|
"@types/vinyl": "2.0.2",
|
|
145
147
|
"@types/watch": "1.0.0",
|
|
146
148
|
"accepts": "1.3.4",
|
|
147
|
-
"angular-material-css-vars": "5.0.
|
|
148
|
-
"any-project-cli": "~
|
|
149
|
+
"angular-material-css-vars": "5.0.2",
|
|
150
|
+
"any-project-cli": "~16.0.29",
|
|
149
151
|
"axios": "1.3.5",
|
|
150
|
-
"background-worker-process": "~
|
|
152
|
+
"background-worker-process": "~16.0.46",
|
|
151
153
|
"base32": "0.0.7",
|
|
152
154
|
"bcryptjs": "2.4.3",
|
|
153
155
|
"better-sqlite3": "7.6.2",
|
|
@@ -188,13 +190,13 @@
|
|
|
188
190
|
"express-session": "1.17.3",
|
|
189
191
|
"file-loader": "1.1.5",
|
|
190
192
|
"file-saver": "2.0.5",
|
|
191
|
-
"firedev": "^
|
|
192
|
-
"firedev-crud": "~
|
|
193
|
-
"firedev-crud-deamon": "~
|
|
194
|
-
"firedev-ports": "~
|
|
195
|
-
"firedev-storage": "~
|
|
196
|
-
"firedev-typeorm": "~
|
|
197
|
-
"firedev-ui": "~
|
|
193
|
+
"firedev": "^16",
|
|
194
|
+
"firedev-crud": "~16.0.51",
|
|
195
|
+
"firedev-crud-deamon": "~16.0.41",
|
|
196
|
+
"firedev-ports": "~16.0.46",
|
|
197
|
+
"firedev-storage": "~16.0.38",
|
|
198
|
+
"firedev-typeorm": "~16.0.34",
|
|
199
|
+
"firedev-ui": "~16.0.4",
|
|
198
200
|
"fkill": "6.1.0",
|
|
199
201
|
"font-awesome": "4.7.0",
|
|
200
202
|
"form-data": "4.0.0",
|
|
@@ -208,51 +210,51 @@
|
|
|
208
210
|
"http-proxy-middleware": "0.19.1",
|
|
209
211
|
"http-server": "0.11.1",
|
|
210
212
|
"immutable": "4.3.0",
|
|
211
|
-
"incremental-compiler": "~
|
|
213
|
+
"incremental-compiler": "~16.0.29",
|
|
212
214
|
"inquirer": "7.3.3",
|
|
213
215
|
"inquirer-autocomplete-prompt": "1.3.0",
|
|
214
216
|
"is-elevated": "3.0.0",
|
|
215
|
-
"isomorphic-region-loader": "~
|
|
217
|
+
"isomorphic-region-loader": "~16.0.39",
|
|
216
218
|
"istanbul-instrumenter-loader": "2.0.0",
|
|
217
|
-
"jasmine-core": "4.
|
|
219
|
+
"jasmine-core": "4.6.0",
|
|
218
220
|
"jscodeshift": "0.6.3",
|
|
219
221
|
"json-stringify-safe": "5.0.1",
|
|
220
|
-
"json10": "~
|
|
221
|
-
"json10-writer": "~
|
|
222
|
+
"json10": "~16.0.46",
|
|
223
|
+
"json10-writer": "~16.0.42",
|
|
222
224
|
"json5": "2.2.1",
|
|
223
225
|
"json5-writer": "0.2.0",
|
|
224
226
|
"jszip": "3.10.1",
|
|
225
|
-
"karma": "6.
|
|
226
|
-
"karma-chrome-launcher": "3.
|
|
227
|
+
"karma": "6.4.0",
|
|
228
|
+
"karma-chrome-launcher": "3.2.0",
|
|
227
229
|
"karma-cli": "1.0.1",
|
|
228
|
-
"karma-coverage": "2.
|
|
229
|
-
"karma-jasmine": "
|
|
230
|
-
"karma-jasmine-html-reporter": "
|
|
230
|
+
"karma-coverage": "2.2.0",
|
|
231
|
+
"karma-jasmine": "5.1.0",
|
|
232
|
+
"karma-jasmine-html-reporter": "2.0.0",
|
|
231
233
|
"lnk": "1.0.1",
|
|
232
234
|
"localforage": "1.10.0",
|
|
233
235
|
"lockfile": "1.0.4",
|
|
234
236
|
"lodash": "4.17.20",
|
|
235
237
|
"lowdb": "1.0.0",
|
|
236
|
-
"magic-renamer": "~
|
|
238
|
+
"magic-renamer": "~16.0.43",
|
|
237
239
|
"material-design-icons": "3.0.1",
|
|
238
240
|
"method-override": "2.3.10",
|
|
239
241
|
"minimist": "1.2.0",
|
|
240
242
|
"mkdirp": "0.5.1",
|
|
241
243
|
"mocha": "5.2.0",
|
|
242
244
|
"moment": "2.29.3",
|
|
243
|
-
"morphi": "~
|
|
244
|
-
"ng-in-viewport": "
|
|
245
|
-
"ng-packagr": "
|
|
245
|
+
"morphi": "~16.0.3",
|
|
246
|
+
"ng-in-viewport": "15.0.2",
|
|
247
|
+
"ng-packagr": "16.0.1",
|
|
246
248
|
"ng-talkback": "~13.1.19",
|
|
247
|
-
"ng2-logger": "~
|
|
248
|
-
"ng2-rest": "~
|
|
249
|
-
"ngx-ace-wrapper": "
|
|
250
|
-
"ngx-editor": "
|
|
251
|
-
"ngx-highlightjs": "
|
|
249
|
+
"ng2-logger": "~16.0.3",
|
|
250
|
+
"ng2-rest": "~16.0.10",
|
|
251
|
+
"ngx-ace-wrapper": "14.0.0",
|
|
252
|
+
"ngx-editor": "15.3.0",
|
|
253
|
+
"ngx-highlightjs": "9.0.0",
|
|
252
254
|
"ngx-moment": "6.0.2",
|
|
253
255
|
"ngx-pipes": "3.0.0",
|
|
254
|
-
"ngx-progressbar": "
|
|
255
|
-
"ngx-scrollbar": "
|
|
256
|
+
"ngx-progressbar": "11.0.0",
|
|
257
|
+
"ngx-scrollbar": "12.0.0",
|
|
256
258
|
"ngx-store": "3.1.1",
|
|
257
259
|
"ngx-typed-js": "2.1.1",
|
|
258
260
|
"node-cli-tester": "~13.1.19",
|
|
@@ -279,33 +281,33 @@
|
|
|
279
281
|
"record-replay-req-res-scenario": "~13.1.20",
|
|
280
282
|
"reflect-metadata": "0.1.10",
|
|
281
283
|
"rimraf": "2.6.2",
|
|
282
|
-
"rxjs": "~7.
|
|
284
|
+
"rxjs": "~7.8.0",
|
|
283
285
|
"semver": "6.3.0",
|
|
284
286
|
"simple-git": "1.96.0",
|
|
285
287
|
"sloc": "0.2.0",
|
|
286
288
|
"socket.io": "2.4.1",
|
|
287
289
|
"sort-package-json": "1.11.0",
|
|
288
290
|
"sql.js": "1.8.0",
|
|
289
|
-
"static-columns": "~
|
|
291
|
+
"static-columns": "~16.0.2",
|
|
290
292
|
"string-similarity": "4.0.2",
|
|
291
293
|
"sudo-block": "3.0.0",
|
|
292
294
|
"systeminformation": "3.45.7",
|
|
293
295
|
"task.js": "0.1.5",
|
|
294
296
|
"threads": "1.7.0",
|
|
295
|
-
"tnp-cli": "~
|
|
296
|
-
"tnp-config": "~
|
|
297
|
-
"tnp-core": "~
|
|
298
|
-
"tnp-db": "~
|
|
299
|
-
"tnp-helpers": "~
|
|
300
|
-
"tnp-models": "~
|
|
297
|
+
"tnp-cli": "~16.0.4",
|
|
298
|
+
"tnp-config": "~16.0.4",
|
|
299
|
+
"tnp-core": "~16.0.8",
|
|
300
|
+
"tnp-db": "~16.0.24",
|
|
301
|
+
"tnp-helpers": "~16.0.3",
|
|
302
|
+
"tnp-models": "~16.0.30",
|
|
301
303
|
"ts-debug": "1.3.0",
|
|
302
304
|
"ts-loader": "2.3.1",
|
|
303
|
-
"ts-node": "10.
|
|
305
|
+
"ts-node": "10.9.1",
|
|
304
306
|
"tslib": "~2.3.0",
|
|
305
307
|
"turndown": "7.1.2",
|
|
306
308
|
"typeorm": "~0.3.10",
|
|
307
|
-
"typescript": "~
|
|
308
|
-
"typescript-class-helpers": "~
|
|
309
|
+
"typescript": "~5.0.2",
|
|
310
|
+
"typescript-class-helpers": "~16.0.15",
|
|
309
311
|
"typescript-formatter": "~7.2.2",
|
|
310
312
|
"underscore": "1.9.1",
|
|
311
313
|
"uuid": "8.3.2",
|
|
@@ -314,13 +316,13 @@
|
|
|
314
316
|
"vpn-split": "~13.1.23",
|
|
315
317
|
"watch": "1.0.2",
|
|
316
318
|
"yup": "1.1.1",
|
|
317
|
-
"zone.js": "~0.
|
|
319
|
+
"zone.js": "~0.13.0"
|
|
318
320
|
}
|
|
319
321
|
},
|
|
320
322
|
"build": {
|
|
321
|
-
"number":
|
|
322
|
-
"date": "2023-06-
|
|
323
|
-
"hash": "
|
|
323
|
+
"number": 257,
|
|
324
|
+
"date": "2023-06-10T09:29:14.000Z",
|
|
325
|
+
"hash": "5726fb4fbea8128364e1b5fe4bcf90e1e6053662",
|
|
324
326
|
"options": {}
|
|
325
327
|
},
|
|
326
328
|
"currentProjectName": "json10",
|
|
@@ -328,7 +330,7 @@
|
|
|
328
330
|
"currentProjectLaunchConfiguration": "{\"version\":\"0.2.0\",\"configurations\":[{\"type\":\"node\",\"request\":\"launch\",\"name\":\"Launch Server standalone\",\"program\":\"${workspaceFolder}/run.js\",\"args\":[\"--ENVoverride=%7B%0A%20%20%20%20%22clientProjectName%22%3A%20%22json10%22%0A%7D\"],\"runtimeArgs\":[\"--nolazy\",\"-r\",\"ts-node/register\",\"--experimental-worker\"]},{\"name\":\"Debugger with ng serve\",\"type\":\"chrome\",\"request\":\"launch\",\"preLaunchTask\":\"Ng Serve\",\"postDebugTask\":\"terminateall\",\"sourceMaps\":true,\"webRoot\":\"${workspaceFolder}\",\"sourceMapPathOverrides\":{\"webpack:/*\":\"${webRoot}/*\",\"/./*\":\"${webRoot}/*\",\"/tmp-src/*\":\"${webRoot}/*\",\"/*\":\"*\",\"/./~/*\":\"${webRoot}/node_modules/*\"}},{\"type\":\"node\",\"request\":\"attach\",\"name\":\"Attach to global cli tool\",\"port\":9229,\"skipFiles\":[\"<node_internals>/**\"]}],\"compounds\":[{\"name\":\"Debug backend/frontend\",\"configurations\":[\"Launch Server standalone\",\"Debugger with ng serve\"]}]}",
|
|
329
331
|
"currentProjectTasksConfiguration": "{\"version\":\"2.0.0\",\"tasks\":[{\"label\":\"terminateall\",\"command\":\"echo ${input:terminate}\",\"type\":\"shell\",\"problemMatcher\":[]},{\"label\":\"Ng Serve\",\"type\":\"shell\",\"command\":\"tnp build\",\"isBackground\":true,\"presentation\":{\"reveal\":\"always\"},\"group\":{\"kind\":\"build\",\"isDefault\":true},\"problemMatcher\":{\"owner\":\"typescript\",\"source\":\"ts\",\"applyTo\":\"closedDocuments\",\"fileLocation\":[\"relative\",\"${cwd}\"],\"pattern\":\"$tsc\",\"background\":{\"activeOnStart\":true,\"beginsPattern\":{\"regexp\":\"(.*?)\"},\"endsPattern\":{\"regexp\":\"Compiled |Failed to compile.\"}}}}],\"inputs\":[{\"id\":\"terminate\",\"type\":\"command\",\"command\":\"workbench.action.tasks.terminate\",\"args\":\"terminateAll\"}]}",
|
|
330
332
|
"currentProjectType": "isomorphic-lib",
|
|
331
|
-
"currentFrameworkVersion": "
|
|
333
|
+
"currentFrameworkVersion": "16.0.3",
|
|
332
334
|
"currentProjectIsStrictSite": false,
|
|
333
335
|
"currentProjectIsDependencySite": false,
|
|
334
336
|
"currentProjectIsStatic": false,
|
package/websql/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# MyLib
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
-
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# MyLib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
+
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
package/websql/lib/index.d.ts
CHANGED
package/websql/package.json
CHANGED
|
@@ -8,23 +8,17 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
10
10
|
},
|
|
11
|
-
"module": "
|
|
12
|
-
"
|
|
13
|
-
"esm2020": "esm2020/json10.mjs",
|
|
14
|
-
"fesm2020": "fesm2020/json10.mjs",
|
|
15
|
-
"fesm2015": "fesm2015/json10.mjs",
|
|
16
|
-
"typings": "json10.d.ts",
|
|
11
|
+
"module": "fesm2022/json10.mjs",
|
|
12
|
+
"typings": "index.d.ts",
|
|
17
13
|
"exports": {
|
|
18
14
|
"./package.json": {
|
|
19
15
|
"default": "./package.json"
|
|
20
16
|
},
|
|
21
17
|
".": {
|
|
22
|
-
"types": "./
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"node": "./fesm2015/json10.mjs",
|
|
27
|
-
"default": "./fesm2020/json10.mjs"
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"esm2022": "./esm2022/json10.mjs",
|
|
20
|
+
"esm": "./esm2022/json10.mjs",
|
|
21
|
+
"default": "./fesm2022/json10.mjs"
|
|
28
22
|
}
|
|
29
23
|
},
|
|
30
24
|
"sideEffects": false
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { _ } from 'tnp-core/browser';
|
|
2
|
-
import { walk } from 'lodash-walk-object/browser';
|
|
3
|
-
import { CLASS } from 'typescript-class-helpers/browser';
|
|
4
|
-
|
|
5
|
-
class JSON10 {
|
|
6
|
-
static structureArray(anyJSON, options) {
|
|
7
|
-
let pathes = [];
|
|
8
|
-
const { include, exclude } = options || {};
|
|
9
|
-
walk.Object(anyJSON, (value, lodashPath) => {
|
|
10
|
-
if (!_.isUndefined(value)) {
|
|
11
|
-
pathes.push(lodashPath);
|
|
12
|
-
}
|
|
13
|
-
}, { include, exclude, checkCircural: true });
|
|
14
|
-
return pathes;
|
|
15
|
-
}
|
|
16
|
-
static cleaned(json, onCircs, options) {
|
|
17
|
-
const result = _.isArray(json) ? [] : {};
|
|
18
|
-
const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
|
|
19
|
-
const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
|
|
20
|
-
const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {
|
|
21
|
-
if (_.isObject(value) && options.isCircural) {
|
|
22
|
-
_.set(result, lodashPath, null);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
_.set(result, lodashPath, _.cloneDeep(value));
|
|
26
|
-
}
|
|
27
|
-
}, { include, exclude, breadthWalk, checkCircural: true });
|
|
28
|
-
if (_.isFunction(onCircs)) {
|
|
29
|
-
onCircs(circs);
|
|
30
|
-
}
|
|
31
|
-
return _.isFunction(classFN) ? _.merge(new classFN(), result) : result;
|
|
32
|
-
}
|
|
33
|
-
static stringify(anyJSON, replace, spaces, onCircs) {
|
|
34
|
-
const json = this.cleaned(anyJSON, onCircs);
|
|
35
|
-
return JSON.stringify(json, replace, spaces);
|
|
36
|
-
}
|
|
37
|
-
static parse(json, circs = []) {
|
|
38
|
-
let res = JSON.parse(json);
|
|
39
|
-
if (_.isArray(circs)) {
|
|
40
|
-
circs.forEach(({ circuralTargetPath, pathToObj }) => {
|
|
41
|
-
if (circuralTargetPath === '') {
|
|
42
|
-
_.set(res, pathToObj, res);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
let v = _.get(res, circuralTargetPath);
|
|
46
|
-
_.set(res, pathToObj, v);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return res;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
;
|
|
54
|
-
({}); // @--end-of-file-for-module=json10 lib/index.ts
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Generated bundle index. Do not edit.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
export { JSON10 };
|
|
61
|
-
//# sourceMappingURL=json10.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-bundle/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-bundle/json10/projects/json10/src/json10.ts"],"sourcesContent":["import { _ } 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":";;;;MASa,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;AAEzC,YAAA,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AACxB,aAAA;SAEF,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAC7C,QAAA,OAAO,MAAM,CAAC;KACf;AAGM,IAAA,OAAO,OAAO,CA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E,OAAa,EAAE,MAAe,EAAE,OAAgC,EAAA;QACvG,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,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;gBAElD,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;AAC3B,iBAAA;AAAM,qBAAA;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;AACzB,iBAAA;AAEH,aAAC,CAAC,CAAA;AACH,SAAA;AACD,QAAA,OAAO,GAAG,CAAC;KACZ;AACF,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AC7EP;;AAEG;;;;"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { _ } from 'tnp-core/browser';
|
|
2
|
-
import { walk } from 'lodash-walk-object/browser';
|
|
3
|
-
import { CLASS } from 'typescript-class-helpers/browser';
|
|
4
|
-
|
|
5
|
-
class JSON10 {
|
|
6
|
-
static structureArray(anyJSON, options) {
|
|
7
|
-
let pathes = [];
|
|
8
|
-
const { include, exclude } = options || {};
|
|
9
|
-
walk.Object(anyJSON, (value, lodashPath) => {
|
|
10
|
-
if (!_.isUndefined(value)) {
|
|
11
|
-
pathes.push(lodashPath);
|
|
12
|
-
}
|
|
13
|
-
}, { include, exclude, checkCircural: true });
|
|
14
|
-
return pathes;
|
|
15
|
-
}
|
|
16
|
-
static cleaned(json, onCircs, options) {
|
|
17
|
-
const result = _.isArray(json) ? [] : {};
|
|
18
|
-
const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
|
|
19
|
-
const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
|
|
20
|
-
const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {
|
|
21
|
-
if (_.isObject(value) && options.isCircural) {
|
|
22
|
-
_.set(result, lodashPath, null);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
_.set(result, lodashPath, _.cloneDeep(value));
|
|
26
|
-
}
|
|
27
|
-
}, { include, exclude, breadthWalk, checkCircural: true });
|
|
28
|
-
if (_.isFunction(onCircs)) {
|
|
29
|
-
onCircs(circs);
|
|
30
|
-
}
|
|
31
|
-
return _.isFunction(classFN) ? _.merge(new classFN(), result) : result;
|
|
32
|
-
}
|
|
33
|
-
static stringify(anyJSON, replace, spaces, onCircs) {
|
|
34
|
-
const json = this.cleaned(anyJSON, onCircs);
|
|
35
|
-
return JSON.stringify(json, replace, spaces);
|
|
36
|
-
}
|
|
37
|
-
static parse(json, circs = []) {
|
|
38
|
-
let res = JSON.parse(json);
|
|
39
|
-
if (_.isArray(circs)) {
|
|
40
|
-
circs.forEach(({ circuralTargetPath, pathToObj }) => {
|
|
41
|
-
if (circuralTargetPath === '') {
|
|
42
|
-
_.set(res, pathToObj, res);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
let v = _.get(res, circuralTargetPath);
|
|
46
|
-
_.set(res, pathToObj, v);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return res;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
;
|
|
54
|
-
({}); // @--end-of-file-for-module=json10 lib/index.ts
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Generated bundle index. Do not edit.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
export { JSON10 };
|
|
61
|
-
//# sourceMappingURL=json10.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-bundle/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-bundle/json10/projects/json10/src/json10.ts"],"sourcesContent":["import { _ } 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":";;;;MASa,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;AAEzC,YAAA,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACzB,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AACxB,aAAA;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,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAE9E,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE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AE;YACpB,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAI;gBAElD,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;AAC3B,iBAAA;AAAM,qBAAA;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;AACzB,iBAAA;AAEH,aAAC,CAAC,CAAA;AACH,SAAA;AACD,QAAA,OAAO,GAAG,CAAC;KACZ;AACF,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AC7EP;;AAEG;;;;"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { _ } from 'tnp-core/websql';
|
|
2
|
-
import { walk } from 'lodash-walk-object/websql';
|
|
3
|
-
import { CLASS } from 'typescript-class-helpers/websql';
|
|
4
|
-
|
|
5
|
-
class JSON10 {
|
|
6
|
-
static structureArray(anyJSON, options) {
|
|
7
|
-
let pathes = [];
|
|
8
|
-
const { include, exclude } = options || {};
|
|
9
|
-
walk.Object(anyJSON, (value, lodashPath) => {
|
|
10
|
-
if (!_.isUndefined(value)) {
|
|
11
|
-
pathes.push(lodashPath);
|
|
12
|
-
}
|
|
13
|
-
}, { include, exclude, checkCircural: true });
|
|
14
|
-
return pathes;
|
|
15
|
-
}
|
|
16
|
-
static cleaned(json, onCircs, options) {
|
|
17
|
-
const result = _.isArray(json) ? [] : {};
|
|
18
|
-
const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
|
|
19
|
-
const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
|
|
20
|
-
const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {
|
|
21
|
-
if (_.isObject(value) && options.isCircural) {
|
|
22
|
-
_.set(result, lodashPath, null);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
_.set(result, lodashPath, _.cloneDeep(value));
|
|
26
|
-
}
|
|
27
|
-
}, { include, exclude, breadthWalk, checkCircural: true });
|
|
28
|
-
if (_.isFunction(onCircs)) {
|
|
29
|
-
onCircs(circs);
|
|
30
|
-
}
|
|
31
|
-
return _.isFunction(classFN) ? _.merge(new classFN(), result) : result;
|
|
32
|
-
}
|
|
33
|
-
static stringify(anyJSON, replace, spaces, onCircs) {
|
|
34
|
-
const json = this.cleaned(anyJSON, onCircs);
|
|
35
|
-
return JSON.stringify(json, replace, spaces);
|
|
36
|
-
}
|
|
37
|
-
static parse(json, circs = []) {
|
|
38
|
-
let res = JSON.parse(json);
|
|
39
|
-
if (_.isArray(circs)) {
|
|
40
|
-
circs.forEach(({ circuralTargetPath, pathToObj }) => {
|
|
41
|
-
if (circuralTargetPath === '') {
|
|
42
|
-
_.set(res, pathToObj, res);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
let v = _.get(res, circuralTargetPath);
|
|
46
|
-
_.set(res, pathToObj, v);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return res;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
;
|
|
54
|
-
({}); // @--end-of-file-for-module=json10 lib/index.ts
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Generated bundle index. Do not edit.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
export { JSON10 };
|
|
61
|
-
//# sourceMappingURL=json10.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json10.mjs","sources":["../../../tmp-libs-for-bundle-websql/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-bundle-websql/json10/projects/json10/src/json10.ts"],"sourcesContent":["import { _ } 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":";;;;MASa,MAAM,CAAA;AAEV,IAAA,OAAO,cAAc,CAAC,OAAe,EAAE,OAAoD,E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AAA;AAEH,aAAC,CAAC,CAAA;AACH,SAAA;AACD,QAAA,OAAO,GAAG,CAAC;KACZ;AACF,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AC7EP;;AAEG;;;;"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|