json10 19.0.4 → 19.0.5

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/browser/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.
@@ -2,6 +2,9 @@ import { _ } from 'tnp-core/browser';
2
2
  import { walk } from 'lodash-walk-object/browser';
3
3
  import { CLASS } from 'typescript-class-helpers/browser';
4
4
 
5
+ // import { Log } from 'ng2-logger'
6
+ // const log = Log.create('JSON10')
7
+ // let counter = 0
5
8
  class JSON10 {
6
9
  static structureArray(anyJSON, options) {
7
10
  let pathes = [];
@@ -14,6 +17,7 @@ class JSON10 {
14
17
  return pathes;
15
18
  }
16
19
  static cleaned(json, onCircs, options) {
20
+ // console.log('BETTER SRUGUB', json)
17
21
  const result = _.isArray(json) ? [] : {};
18
22
  const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
19
23
  const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
@@ -50,8 +54,6 @@ class JSON10 {
50
54
  return res;
51
55
  }
52
56
  }
53
- ;
54
- ({}); // @--end-of-file-for-module=json10 lib/index.ts
55
57
 
56
58
  /**
57
59
  * Generated bundle index. Do not edit.
@@ -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;QACjD,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;;SAG1B,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AAC7C,QAAA,OAAO,MAAM;;AAIR,IAAA,OAAO,OAAO,CAAC,IAAI,EAAE,OAAg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AAC;QAC3C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC;;AAGvC,IAAA,OAAO,KAAK,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAA;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAC1B,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;;qBACrB;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC;oBACtC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;;AAG5B,aAAC,CAAC;;AAEJ,QAAA,OAAO,GAAG;;AAEb;AAEA;AAAC,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
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":["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// import { Log } from 'ng2-logger'\n// const log = Log.create('JSON10')\n\n// let counter = 0\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 // console.log('BETTER SRUGUB', json)\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 * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAIA;AACA;AAEA;MAEa,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;QACjD,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;;SAG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;;IAG1E,OAAO,SAAS,CAAC,OAAe,EAAE,OAAa,EAAE,MAAe,EAAE,OAAgC,EAAA;QACvG,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;QAC3C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC;;AAGvC,IAAA,OAAO,KAAK,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAA;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAC1B,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;;qBACrB;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC;oBACtC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;;AAG5B,aAAC,CAAC;;AAEJ,QAAA,OAAO,GAAG;;AAEb;;AC3ED;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json10/browser",
3
- "version": "19.0.4",
3
+ "version": "19.0.5",
4
4
  "module": "fesm2022/json10.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
package/client/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.
@@ -2,6 +2,9 @@ import { _ } from 'tnp-core/browser';
2
2
  import { walk } from 'lodash-walk-object/browser';
3
3
  import { CLASS } from 'typescript-class-helpers/browser';
4
4
 
5
+ // import { Log } from 'ng2-logger'
6
+ // const log = Log.create('JSON10')
7
+ // let counter = 0
5
8
  class JSON10 {
6
9
  static structureArray(anyJSON, options) {
7
10
  let pathes = [];
@@ -14,6 +17,7 @@ class JSON10 {
14
17
  return pathes;
15
18
  }
16
19
  static cleaned(json, onCircs, options) {
20
+ // console.log('BETTER SRUGUB', json)
17
21
  const result = _.isArray(json) ? [] : {};
18
22
  const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
19
23
  const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
@@ -50,8 +54,6 @@ class JSON10 {
50
54
  return res;
51
55
  }
52
56
  }
53
- ;
54
- ({}); // @--end-of-file-for-module=json10 lib/index.ts
55
57
 
56
58
  /**
57
59
  * Generated bundle index. Do not edit.
@@ -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;QACjD,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;;SAG1B,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AAC7C,QAAA,OAAO,MAAM;;AAIR,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;AACxC,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC;QAE7E,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAA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AK,EAAE,EAAE;oBAC7B,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC;;qBACrB;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC;oBACtC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;;AAG5B,aAAC,CAAC;;AAEJ,QAAA,OAAO,GAAG;;AAEb;AAEA;AAAC,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
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":["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// import { Log } from 'ng2-logger'\n// const log = Log.create('JSON10')\n\n// let counter = 0\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 // console.log('BETTER SRUGUB', json)\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 * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAIA;AACA;AAEA;MAEa,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;QACjD,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;;SAG1B,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AAC7C,QAAA,OAAO,MAAM;;AAIR,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;AACxC,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI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AC,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;;qBACrB;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC;oBACtC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;;AAG5B,aAAC,CAAC;;AAEJ,QAAA,OAAO,GAAG;;AAEb;;AC3ED;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json10/client",
3
- "version": "19.0.4",
3
+ "version": "19.0.5",
4
4
  "module": "fesm2022/json10.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/json10/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["/Users/dfilipiak/projects/npm/taon-dev/json10/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
@@ -1,2 +1,3 @@
1
1
  export declare const BUILD_FRAMEWORK_CLI_NAME = "tnp";
2
- export declare const CURRENT_PACKAGE_VERSION = "19.0.4";
2
+ export declare const PROJECT_NPM_NAME = "json10";
3
+ export declare const CURRENT_PACKAGE_VERSION = "19.0.5";
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CURRENT_PACKAGE_VERSION = exports.BUILD_FRAMEWORK_CLI_NAME = void 0;
3
+ exports.CURRENT_PACKAGE_VERSION = exports.PROJECT_NPM_NAME = exports.BUILD_FRAMEWORK_CLI_NAME = void 0;
4
4
  // THIS FILE IS GENERATED - DO NOT MODIFY
5
5
  exports.BUILD_FRAMEWORK_CLI_NAME = 'tnp';
6
- exports.CURRENT_PACKAGE_VERSION = '19.0.4';
6
+ exports.PROJECT_NPM_NAME = 'json10';
7
+ exports.CURRENT_PACKAGE_VERSION = '19.0.5';
7
8
  // THIS FILE IS GENERATED - DO NOT MODIFY
8
9
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-info._auto-generated_.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/json10/src/lib/build-info._auto-generated_.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAC5B,QAAA,wBAAwB,GAAG,KAAK,CAAC;AACjC,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AAChD,yCAAyC"}
1
+ {"version":3,"file":"build-info._auto-generated_.js","sourceRoot":"","sources":["/Users/dfilipiak/projects/npm/taon-dev/json10/src/lib/build-info._auto-generated_.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAC5B,QAAA,wBAAwB,GAAG,KAAK,CAAC;AACjC,QAAA,gBAAgB,GAAG,QAAQ,CAAC;AAC5B,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AAChD,yCAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index._auto-generated_.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/json10/src/lib/index._auto-generated_.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,8CAA8C;AAC9C,4BAA4B;AAC5B,uDAAuD;AACvD,uDAAuD"}
1
+ {"version":3,"file":"index._auto-generated_.js","sourceRoot":"","sources":["/Users/dfilipiak/projects/npm/taon-dev/json10/src/lib/index._auto-generated_.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,8CAA8C;AAC9C,4BAA4B;AAC5B,uDAAuD;AACvD,uDAAuD"}
package/lib/index.d.ts CHANGED
@@ -12,4 +12,4 @@ export declare class JSON10 {
12
12
  }): any;
13
13
  static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any): string;
14
14
  static parse(json: string, circs?: Circ[]): any;
15
- }
15
+ }
package/lib/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.JSON10 = void 0;
4
- const tnp_core_1 = require("tnp-core");
5
- const lodash_walk_object_1 = require("lodash-walk-object");
6
- const typescript_class_helpers_1 = require("typescript-class-helpers");
4
+ const lib_1 = require("tnp-core/lib");
5
+ const lib_2 = require("lodash-walk-object/lib");
6
+ const lib_3 = require("typescript-class-helpers/lib");
7
7
  // import { Log } from 'ng2-logger'
8
8
  // const log = Log.create('JSON10')
9
9
  // let counter = 0
@@ -11,8 +11,8 @@ class JSON10 {
11
11
  static structureArray(anyJSON, options) {
12
12
  let pathes = [];
13
13
  const { include, exclude } = options || {};
14
- lodash_walk_object_1.walk.Object(anyJSON, (value, lodashPath) => {
15
- if (!tnp_core_1._.isUndefined(value)) {
14
+ lib_2.walk.Object(anyJSON, (value, lodashPath) => {
15
+ if (!lib_1._.isUndefined(value)) {
16
16
  pathes.push(lodashPath);
17
17
  }
18
18
  }, { include, exclude, checkCircural: true });
@@ -20,21 +20,21 @@ class JSON10 {
20
20
  }
21
21
  static cleaned(json, onCircs, options) {
22
22
  // console.log('BETTER SRUGUB', json)
23
- const result = tnp_core_1._.isArray(json) ? [] : {};
24
- const classFN = typescript_class_helpers_1.CLASS.OBJECT(json).isClassObject && typescript_class_helpers_1.CLASS.getFromObject(json);
23
+ const result = lib_1._.isArray(json) ? [] : {};
24
+ const classFN = lib_3.CLASS.OBJECT(json).isClassObject && lib_3.CLASS.getFromObject(json);
25
25
  const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
26
- const { circs } = lodash_walk_object_1.walk.Object(json, (value, lodashPath, changeValueTo, options) => {
27
- if (tnp_core_1._.isObject(value) && options.isCircural) {
28
- tnp_core_1._.set(result, lodashPath, null);
26
+ const { circs } = lib_2.walk.Object(json, (value, lodashPath, changeValueTo, options) => {
27
+ if (lib_1._.isObject(value) && options.isCircural) {
28
+ lib_1._.set(result, lodashPath, null);
29
29
  }
30
30
  else {
31
- tnp_core_1._.set(result, lodashPath, tnp_core_1._.cloneDeep(value));
31
+ lib_1._.set(result, lodashPath, lib_1._.cloneDeep(value));
32
32
  }
33
33
  }, { include, exclude, breadthWalk, checkCircural: true });
34
- if (tnp_core_1._.isFunction(onCircs)) {
34
+ if (lib_1._.isFunction(onCircs)) {
35
35
  onCircs(circs);
36
36
  }
37
- return tnp_core_1._.isFunction(classFN) ? tnp_core_1._.merge(new classFN(), result) : result;
37
+ return lib_1._.isFunction(classFN) ? lib_1._.merge(new classFN(), result) : result;
38
38
  }
39
39
  static stringify(anyJSON, replace, spaces, onCircs) {
40
40
  const json = this.cleaned(anyJSON, onCircs);
@@ -42,14 +42,14 @@ class JSON10 {
42
42
  }
43
43
  static parse(json, circs = []) {
44
44
  let res = JSON.parse(json);
45
- if (tnp_core_1._.isArray(circs)) {
45
+ if (lib_1._.isArray(circs)) {
46
46
  circs.forEach(({ circuralTargetPath, pathToObj }) => {
47
47
  if (circuralTargetPath === '') {
48
- tnp_core_1._.set(res, pathToObj, res);
48
+ lib_1._.set(res, pathToObj, res);
49
49
  }
50
50
  else {
51
- let v = tnp_core_1._.get(res, circuralTargetPath);
52
- tnp_core_1._.set(res, pathToObj, v);
51
+ let v = lib_1._.get(res, circuralTargetPath);
52
+ lib_1._.set(res, pathToObj, v);
53
53
  }
54
54
  });
55
55
  }
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/json10/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,uCAA6B;AAC7B,2DAAkD;AAElD,uEAAiD;AACjD,mCAAmC;AACnC,mCAAmC;AAEnC,kBAAk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,CAAC,KAAK,CAAC,IAAY,EAAE,QAAgB,EAAE;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,kBAAkB,EAAE,SAAS,EAAE,EAAE,EAAE;gBAElD,IAAI,kBAAkB,KAAK,EAAE,EAAE,CAAC;oBAC9B,OAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;gBAC5B,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,GAAG,OAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;oBACvC,OAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;gBAC1B,CAAC;YAEH,CAAC,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAlED,wBAkEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/json10/src/migrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,aAAa;AACb,sEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["/Users/dfilipiak/projects/npm/taon-dev/json10/src/migrations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,aAAa;AACb,sEAAoD"}
@@ -1 +1 @@
1
- {"version":3,"file":"migrations_index._auto-generated_.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/json10/src/migrations/migrations_index._auto-generated_.ts"],"names":[],"mappings":"AAAA,yCAAyC;AAEzC,yCAAyC;AAEzC,yCAAyC"}
1
+ {"version":3,"file":"migrations_index._auto-generated_.js","sourceRoot":"","sources":["/Users/dfilipiak/projects/npm/taon-dev/json10/src/migrations/migrations_index._auto-generated_.ts"],"names":[],"mappings":"AAAA,yCAAyC;AAEzC,yCAAyC;AAEzC,yCAAyC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json10",
3
- "version": "19.0.4",
3
+ "version": "19.0.5",
4
4
  "scripts": {
5
5
  "test": "mocha --require ts-node/register src/**/*.spec.ts",
6
6
  "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
@@ -24,14 +24,14 @@
24
24
  "releaseType": "manual",
25
25
  "targetArtifact": "npm-lib-and-cli-tool",
26
26
  "envName": "__",
27
- "resolvedNewVersion": "19.0.4"
27
+ "resolvedNewVersion": "19.0.5"
28
28
  },
29
29
  "copyToManager": {},
30
30
  "buildInfo": {
31
- "date": "2025-04-27T21:18:54.000Z",
32
- "hash": "eaa94233ffc73f264bb35a3c50c29edca7fe8852"
31
+ "date": "2025-04-27T21:23:59.000Z",
32
+ "hash": "fde2a5c126168310d470d7cd0f6ac40011cb0582"
33
33
  },
34
34
  "currentProjectName": "json10",
35
35
  "currentProjectType": "isomorphic-lib",
36
- "pathsTsconfig": "\"paths\": {\"json10\":[\"./src/lib\"],\"json10/*\":[\"./src/lib/*\"]},"
36
+ "pathsTsconfig": "\"paths\": {\"@lib\":[\"./src/lib\"],\"@lib/*\":[\"./src/lib/*\"],\"json10/src\":[\"./src/lib\"],\"json10/src/*\":[\"./src/lib/*\"]},"
37
37
  }
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.
@@ -2,6 +2,9 @@ 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
+ // import { Log } from 'ng2-logger'
6
+ // const log = Log.create('JSON10')
7
+ // let counter = 0
5
8
  class JSON10 {
6
9
  static structureArray(anyJSON, options) {
7
10
  let pathes = [];
@@ -14,6 +17,7 @@ class JSON10 {
14
17
  return pathes;
15
18
  }
16
19
  static cleaned(json, onCircs, options) {
20
+ // console.log('BETTER SRUGUB', json)
17
21
  const result = _.isArray(json) ? [] : {};
18
22
  const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
19
23
  const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
@@ -50,8 +54,6 @@ class JSON10 {
50
54
  return res;
51
55
  }
52
56
  }
53
- ;
54
- ({}); // @--end-of-file-for-module=json10 lib/index.ts
55
57
 
56
58
  /**
57
59
  * Generated bundle index. Do not edit.
@@ -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;QACjD,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;;SAG1B,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AAC7C,QAAA,OAAO,MAAM;;AAIR,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;AACxC,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC;QAE7E,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;AAErG,QAAA,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,I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C;;qBACrB;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC;oBACtC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;;AAG5B,aAAC,CAAC;;AAEJ,QAAA,OAAO,GAAG;;AAEb;AAEA;AAAC,CAAC,EAAE,EAAE;;AC/EP;;AAEG;;;;"}
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":["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// import { Log } from 'ng2-logger'\n// const log = Log.create('JSON10')\n\n// let counter = 0\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 // console.log('BETTER SRUGUB', json)\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 * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAIA;AACA;AAEA;MAEa,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;QACjD,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;;SAG1B,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AAC7C,QAAA,OAAO,MAAM;;AAIR,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;AACxC,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC;QAE7E,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,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