json10 13.1.35 → 13.1.37

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.
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "domain": "json10.example.domain.com",
3
- "name": "local",
4
3
  "isCoreProject": false,
5
4
  "ip": "localhost",
6
5
  "packageJSON": {
@@ -48,7 +47,7 @@
48
47
  },
49
48
  "name": "json10",
50
49
  "description": "Handle circural references, comments and many more inside JSON",
51
- "version": "13.1.35",
50
+ "version": "13.1.37",
52
51
  "scripts": {
53
52
  "test": "mocha --require ts-node/register src/**/*.spec.ts",
54
53
  "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
@@ -68,11 +67,11 @@
68
67
  },
69
68
  "homepage": "https://github.com/darekf77/json10#readme",
70
69
  "dependencies": {
71
- "lodash-walk-object": "~13.1.35"
70
+ "lodash-walk-object": "~13.1.37"
72
71
  },
73
72
  "license": "MIT",
74
73
  "private": false,
75
- "lastBuildTagHash": "e8ff63463b0152980132a6c9ae8c18daad69f7e5",
74
+ "lastBuildTagHash": "e7e442310caa98c8a8038f7fc13327ddfc692a9c",
76
75
  "devDependencies": {
77
76
  "@angular-devkit/build-angular": "~13.3.9",
78
77
  "@angular-devkit/core": "~13.3.9",
@@ -117,7 +116,7 @@
117
116
  "@types/dateformat": "1.0.1",
118
117
  "@types/diff": "3.2.2",
119
118
  "@types/express": "4.11.0",
120
- "@types/express-fileupload": "0.1.1",
119
+ "@types/express-fileupload": "1.4.1",
121
120
  "@types/fs-extra": "7.0.0",
122
121
  "@types/glob": "5.0.35",
123
122
  "@types/http-proxy": "1.16.0",
@@ -130,7 +129,7 @@
130
129
  "@types/lodash": "4.14.92",
131
130
  "@types/lowdb": "1.0.6",
132
131
  "@types/mocha": "5.2.5",
133
- "@types/node": "12.11.1",
132
+ "@types/node": "16.18.21",
134
133
  "@types/node-notifier": "5.4.0",
135
134
  "@types/oauth2orize": "1.8.0",
136
135
  "@types/password-hash": "1.2.19",
@@ -142,9 +141,10 @@
142
141
  "@types/vinyl": "2.0.2",
143
142
  "@types/watch": "1.0.0",
144
143
  "accepts": "1.3.4",
145
- "any-project-cli": "~13.1.21",
146
- "axios": "0.17.1",
147
- "background-worker-process": "~13.1.36",
144
+ "any-project-cli": "~13.1.23",
145
+ "axios": "1.3.5",
146
+ "background-worker-process": "~13.1.38",
147
+ "base32": "0.0.7",
148
148
  "bcryptjs": "2.4.3",
149
149
  "better-sqlite3": "7.6.2",
150
150
  "body-parser": "1.18.2",
@@ -180,20 +180,22 @@
180
180
  "eslint-plugin-jsdoc": "30.7.8",
181
181
  "eslint-plugin-prefer-arrow": "1.2.2",
182
182
  "express": "4.16.3",
183
- "express-fileupload": "0.4.0",
183
+ "express-fileupload": "1.4.0",
184
184
  "express-session": "1.17.3",
185
+ "favicons": "7.1.2",
185
186
  "fbgraph": "1.4.1",
186
187
  "file-loader": "1.1.5",
187
188
  "file-saver": "2.0.5",
188
189
  "firedev": "^13",
189
- "firedev-crud": "~13.1.41",
190
- "firedev-crud-deamon": "~13.1.31",
191
- "firedev-ports": "~13.1.35",
192
- "firedev-storage": "~13.1.26",
193
- "firedev-typeorm": "~13.1.16",
194
- "firedev-ui": "~13.1.5",
190
+ "firedev-crud": "~13.1.43",
191
+ "firedev-crud-deamon": "~13.1.33",
192
+ "firedev-ports": "~13.1.37",
193
+ "firedev-storage": "~13.1.28",
194
+ "firedev-typeorm": "~13.1.18",
195
+ "firedev-ui": "~13.1.8",
195
196
  "fkill": "6.1.0",
196
197
  "font-awesome": "4.7.0",
198
+ "form-data": "4.0.0",
197
199
  "fs-extra": "8.1.0",
198
200
  "fuzzy": "0.1.3",
199
201
  "glob": "7.1.2",
@@ -202,17 +204,17 @@
202
204
  "http-proxy": "1.16.2",
203
205
  "http-proxy-middleware": "0.19.1",
204
206
  "http-server": "0.11.1",
205
- "incremental-compiler": "~13.1.16",
207
+ "incremental-compiler": "~13.1.18",
206
208
  "inquirer": "7.3.3",
207
209
  "inquirer-autocomplete-prompt": "1.3.0",
208
210
  "is-elevated": "3.0.0",
209
- "isomorphic-region-loader": "~13.1.29",
211
+ "isomorphic-region-loader": "~13.1.31",
210
212
  "istanbul-instrumenter-loader": "2.0.0",
211
213
  "jasmine-core": "4.0.0",
212
214
  "jscodeshift": "0.6.3",
213
215
  "json-stringify-safe": "5.0.1",
214
- "json10": "~13.1.34",
215
- "json10-writer": "~13.1.32",
216
+ "json10": "~13.1.36",
217
+ "json10-writer": "~13.1.34",
216
218
  "json5": "2.1.3",
217
219
  "json5-writer": "0.2.0",
218
220
  "jszip": "3.10.1",
@@ -226,32 +228,32 @@
226
228
  "localforage": "1.10.0",
227
229
  "lockfile": "1.0.4",
228
230
  "lodash": "4.17.4",
229
- "lodash.get": ">= 4",
230
- "lodash.isequal": ">= 4",
231
- "lodash.merge": ">= 4",
232
- "lodash.set": ">= 4",
233
231
  "lowdb": "1.0.0",
234
- "magic-renamer": "~13.1.23",
232
+ "magic-renamer": "~13.1.25",
235
233
  "material-design-icons": "3.0.1",
236
234
  "method-override": "2.3.10",
237
235
  "minimist": "1.2.0",
238
236
  "mkdirp": "0.5.1",
239
237
  "mocha": "5.2.0",
240
238
  "moment": "2.22.2",
241
- "morphi": "~13.1.40",
239
+ "morphi": "~13.2.1",
242
240
  "ng-packagr": "13.0.0",
243
241
  "ng-talkback": "~13.1.19",
244
- "ng2-logger": "~13.1.14",
245
- "ng2-rest": "~13.1.12",
242
+ "ng2-file-upload": "1.3.0",
243
+ "ng2-logger": "~13.1.16",
244
+ "ng2-rest": "~13.2.1",
246
245
  "ng4-icons": "~13.1.21",
247
246
  "ng4-modal": "~13.1.23",
248
247
  "ngx-bootstrap": "8.0.0",
249
248
  "ngx-editor": "12.2.1",
249
+ "ngx-highlightjs": "6.1.3",
250
250
  "ngx-moment": "6.0.2",
251
251
  "ngx-pipes": "3.0.0",
252
+ "ngx-progressbar": "8.0.0",
253
+ "ngx-scrollbar": "9.0.2",
252
254
  "ngx-store": "3.1.1",
253
255
  "ngx-toastr": "14.2.2",
254
- "ngx-wig": "13.0.3",
256
+ "ngx-wig": "1.2.7",
255
257
  "node-cli-tester": "~13.1.19",
256
258
  "node-localstorage": "2.1.6",
257
259
  "node-notifier": "6.0.0",
@@ -282,17 +284,17 @@
282
284
  "socket.io": "2.4.1",
283
285
  "sort-package-json": "1.11.0",
284
286
  "sql.js": "1.8.0",
285
- "static-columns": "~13.1.29",
287
+ "static-columns": "~13.3.2",
286
288
  "string-similarity": "4.0.2",
287
289
  "sudo-block": "3.0.0",
288
290
  "systeminformation": "3.45.7",
289
291
  "task.js": "0.1.5",
290
- "tnp-cli": "~13.1.49",
291
- "tnp-config": "~13.1.61",
292
- "tnp-core": "~13.2.5",
293
- "tnp-db": "~13.1.13",
294
- "tnp-helpers": "~13.1.23",
295
- "tnp-models": "~13.1.14",
292
+ "tnp-cli": "~13.1.51",
293
+ "tnp-config": "~13.1.67",
294
+ "tnp-core": "~13.2.9",
295
+ "tnp-db": "~13.1.16",
296
+ "tnp-helpers": "~13.1.26",
297
+ "tnp-models": "~13.1.18",
296
298
  "tnp-ui": "~13.1.27",
297
299
  "ts-debug": "1.3.0",
298
300
  "ts-loader": "2.3.1",
@@ -300,28 +302,28 @@
300
302
  "tslib": "~2.3.0",
301
303
  "typeorm": "~0.3.10",
302
304
  "typescript": "~4.6.2",
303
- "typescript-class-helpers": "~13.1.14",
305
+ "typescript-class-helpers": "~13.2.2",
304
306
  "typescript-formatter": "~7.2.2",
305
307
  "underscore": "1.9.1",
306
308
  "uuid": "8.3.2",
307
309
  "validator": "9.2.0",
308
310
  "vpn-split": "~13.1.23",
309
311
  "watch": "1.0.2",
312
+ "yup": "1.1.1",
310
313
  "zone.js": "~0.11.4"
311
314
  }
312
315
  },
313
316
  "build": {
314
- "number": 231,
315
- "date": "2023-04-14T21:57:07.000Z",
316
- "hash": "036c3ad04adb05b469d1aedff364c2aeeb9bbe91",
317
+ "number": 235,
318
+ "date": "2023-04-23T03:39:44.000Z",
319
+ "hash": "cc5ac3ef96efc3b3594b5a09327261c2b8a5e0dc",
317
320
  "options": {}
318
321
  },
319
322
  "currentProjectName": "json10",
320
- "currentProjectPort": 4000,
321
323
  "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\"]}]}",
322
324
  "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\"}]}",
323
325
  "currentProjectType": "isomorphic-lib",
324
- "currentFrameworkVersion": "13.1.177",
326
+ "currentFrameworkVersion": "13.1.181",
325
327
  "currentProjectIsStrictSite": false,
326
328
  "currentProjectIsDependencySite": false,
327
329
  "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.
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbjEwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vdG1wLWxpYnMtZm9yLWJ1bmRsZS13ZWJzcWwvanNvbjEwL3Byb2plY3RzL2pzb24xMC9zcmMvanNvbjEwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
@@ -1,54 +1,54 @@
1
- import { _ } from 'tnp-core/websql';
2
- import { walk } from 'lodash-walk-object/websql';
3
- import { CLASS } from 'typescript-class-helpers/websql';
4
- export class JSON10 {
5
- static structureArray(anyJSON, options) {
6
- let pathes = [];
7
- const { include, exclude } = options || {};
8
- walk.Object(anyJSON, (value, lodashPath) => {
9
- if (!_.isUndefined(value)) {
10
- pathes.push(lodashPath);
11
- }
12
- }, { include, exclude, checkCircural: true });
13
- return pathes;
14
- }
15
- static cleaned(json, onCircs, options) {
16
- const result = _.isArray(json) ? [] : {};
17
- const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
18
- const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
19
- const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {
20
- if (_.isObject(value) && options.isCircural) {
21
- _.set(result, lodashPath, null);
22
- }
23
- else {
24
- _.set(result, lodashPath, _.cloneDeep(value));
25
- }
26
- }, { include, exclude, breadthWalk, checkCircural: true });
27
- if (_.isFunction(onCircs)) {
28
- onCircs(circs);
29
- }
30
- return _.isFunction(classFN) ? _.merge(new classFN(), result) : result;
31
- }
32
- static stringify(anyJSON, replace, spaces, onCircs) {
33
- const json = this.cleaned(anyJSON, onCircs);
34
- return JSON.stringify(json, replace, spaces);
35
- }
36
- static parse(json, circs = []) {
37
- let res = JSON.parse(json);
38
- if (_.isArray(circs)) {
39
- circs.forEach(({ circuralTargetPath, pathToObj }) => {
40
- if (circuralTargetPath === '') {
41
- _.set(res, pathToObj, res);
42
- }
43
- else {
44
- let v = _.get(res, circuralTargetPath);
45
- _.set(res, pathToObj, v);
46
- }
47
- });
48
- }
49
- return res;
50
- }
51
- }
52
- ;
53
- ({}); // @--end-of-file-for-module=json10 lib/index.ts
1
+ import { _ } from 'tnp-core/websql';
2
+ import { walk } from 'lodash-walk-object/websql';
3
+ import { CLASS } from 'typescript-class-helpers/websql';
4
+ export class JSON10 {
5
+ static structureArray(anyJSON, options) {
6
+ let pathes = [];
7
+ const { include, exclude } = options || {};
8
+ walk.Object(anyJSON, (value, lodashPath) => {
9
+ if (!_.isUndefined(value)) {
10
+ pathes.push(lodashPath);
11
+ }
12
+ }, { include, exclude, checkCircural: true });
13
+ return pathes;
14
+ }
15
+ static cleaned(json, onCircs, options) {
16
+ const result = _.isArray(json) ? [] : {};
17
+ const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
18
+ const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
19
+ const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {
20
+ if (_.isObject(value) && options.isCircural) {
21
+ _.set(result, lodashPath, null);
22
+ }
23
+ else {
24
+ _.set(result, lodashPath, _.cloneDeep(value));
25
+ }
26
+ }, { include, exclude, breadthWalk, checkCircural: true });
27
+ if (_.isFunction(onCircs)) {
28
+ onCircs(circs);
29
+ }
30
+ return _.isFunction(classFN) ? _.merge(new classFN(), result) : result;
31
+ }
32
+ static stringify(anyJSON, replace, spaces, onCircs) {
33
+ const json = this.cleaned(anyJSON, onCircs);
34
+ return JSON.stringify(json, replace, spaces);
35
+ }
36
+ static parse(json, circs = []) {
37
+ let res = JSON.parse(json);
38
+ if (_.isArray(circs)) {
39
+ circs.forEach(({ circuralTargetPath, pathToObj }) => {
40
+ if (circuralTargetPath === '') {
41
+ _.set(res, pathToObj, res);
42
+ }
43
+ else {
44
+ let v = _.get(res, circuralTargetPath);
45
+ _.set(res, pathToObj, v);
46
+ }
47
+ });
48
+ }
49
+ return res;
50
+ }
51
+ }
52
+ ;
53
+ ({}); // @--end-of-file-for-module=json10 lib/index.ts
54
54
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItYnVuZGxlLXdlYnNxbC9qc29uMTAvcHJvamVjdHMvanNvbjEwL3NyYy9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3BDLE9BQU8sRUFBRSxJQUFJLEVBQVUsTUFBTSwyQkFBMkIsQ0FBQztBQUV6RCxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFNeEQsTUFBTSxPQUFPLE1BQU07SUFFVixNQUFNLENBQUMsY0FBYyxDQUFDLE9BQWUsRUFBRSxPQUFvRDtRQUNoRyxJQUFJLE1BQU0sR0FBRyxFQUFFLENBQUE7UUFDZixNQUFNLEVBQUUsT0FBTyxFQUFFLE9B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oanNvbik7XG4gICAgaWYgKF8uaXNBcnJheShjaXJjcykpIHtcbiAgICAgIGNpcmNzLmZvckVhY2goKHsgY2lyY3VyYWxUYXJnZXRQYXRoLCBwYXRoVG9PYmogfSkgPT4ge1xuXG4gICAgICAgIGlmIChjaXJjdXJhbFRhcmdldFBhdGggPT09ICcnKSB7XG4gICAgICAgICAgXy5zZXQocmVzLCBwYXRoVG9PYmosIHJlcylcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBsZXQgdiA9IF8uZ2V0KHJlcywgY2lyY3VyYWxUYXJnZXRQYXRoKTtcbiAgICAgICAgICBfLnNldChyZXMsIHBhdGhUb09iaiwgdilcbiAgICAgICAgfVxuXG4gICAgICB9KVxuICAgIH1cbiAgICByZXR1cm4gcmVzO1xuICB9XG59XG5cbiA7KHt9KTsgLy8gQC0tZW5kLW9mLWZpbGUtZm9yLW1vZHVsZT1qc29uMTAgbGliL2luZGV4LnRzIl19
@@ -1,2 +1,2 @@
1
- export * from './lib';
1
+ export * from './lib';
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3RtcC1saWJzLWZvci1idW5kbGUtd2Vic3FsL2pzb24xMC9wcm9qZWN0cy9qc29uMTAvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxPQUFPLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYic7XG4iXX0=
@@ -2,59 +2,59 @@ import { _ } from 'tnp-core/websql';
2
2
  import { walk } from 'lodash-walk-object/websql';
3
3
  import { CLASS } from 'typescript-class-helpers/websql';
4
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
- ;
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
54
  ({}); // @--end-of-file-for-module=json10 lib/index.ts
55
55
 
56
- /**
57
- * Generated bundle index. Do not edit.
56
+ /**
57
+ * Generated bundle index. Do not edit.
58
58
  */
59
59
 
60
60
  export { JSON10 };
@@ -2,59 +2,59 @@ import { _ } from 'tnp-core/websql';
2
2
  import { walk } from 'lodash-walk-object/websql';
3
3
  import { CLASS } from 'typescript-class-helpers/websql';
4
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
- ;
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
54
  ({}); // @--end-of-file-for-module=json10 lib/index.ts
55
55
 
56
- /**
57
- * Generated bundle index. Do not edit.
56
+ /**
57
+ * Generated bundle index. Do not edit.
58
58
  */
59
59
 
60
60
  export { JSON10 };
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
- /**
3
- * Generated bundle index. Do not edit.
4
- */
5
- /// <amd-module name="json10" />
2
+ /**
3
+ * Generated bundle index. Do not edit.
4
+ */
5
+ /// <amd-module name="json10" />
6
6
  export * from './public-api';