json10 13.1.44 → 13.1.45
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/esm2020/json10.mjs +4 -4
- package/browser/esm2020/lib/index.mjs +53 -53
- package/browser/esm2020/public-api.mjs +1 -1
- package/browser/fesm2015/json10.mjs +51 -51
- package/browser/fesm2020/json10.mjs +51 -51
- package/browser/json10.d.ts +4 -4
- package/browser/lib/index.d.ts +14 -14
- package/client/README.md +24 -24
- package/client/esm2020/json10.mjs +4 -4
- package/client/esm2020/lib/index.mjs +53 -53
- package/client/esm2020/public-api.mjs +1 -1
- package/client/fesm2015/json10.mjs +51 -51
- package/client/fesm2020/json10.mjs +51 -51
- package/client/json10.d.ts +4 -4
- package/client/lib/index.d.ts +14 -14
- package/client/package.json +33 -31
- package/index.d.ts +1 -1
- package/index.js.map +1 -1
- package/lib/index.d.ts +15 -15
- 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 +37 -35
- package/websql/README.md +24 -24
- package/websql/esm2020/json10.mjs +4 -4
- package/websql/esm2020/lib/index.mjs +53 -53
- package/websql/esm2020/public-api.mjs +1 -1
- package/websql/fesm2015/json10.mjs +51 -51
- package/websql/fesm2020/json10.mjs +51 -51
- package/websql/json10.d.ts +4 -4
- package/websql/lib/index.d.ts +14 -14
|
@@ -2,59 +2,59 @@ 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
|
-
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/browser';
|
|
|
2
2
|
import { walk } from 'lodash-walk-object/browser';
|
|
3
3
|
import { CLASS } from 'typescript-class-helpers/browser';
|
|
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 };
|
package/client/json10.d.ts
CHANGED
package/client/lib/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { Models } from 'lodash-walk-object/browser';
|
|
3
|
-
export declare type Circ = Models.Circ;
|
|
4
|
-
export declare class JSON10 {
|
|
5
|
-
static structureArray(anyJSON: Object, options?: {
|
|
6
|
-
include?: string[];
|
|
7
|
-
exclude?: string[];
|
|
8
|
-
}): any[];
|
|
9
|
-
static cleaned(json: any, onCircs?: (circs: Circ[]) => any, options?: {
|
|
10
|
-
exclude?: string[];
|
|
11
|
-
include?: string[];
|
|
12
|
-
breadthWalk?: boolean;
|
|
13
|
-
}): any;
|
|
14
|
-
static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any): string;
|
|
15
|
-
static parse(json: string, circs?: Circ[]): any;
|
|
2
|
+
import { Models } from 'lodash-walk-object/browser';
|
|
3
|
+
export declare type Circ = Models.Circ;
|
|
4
|
+
export declare class JSON10 {
|
|
5
|
+
static structureArray(anyJSON: Object, options?: {
|
|
6
|
+
include?: string[];
|
|
7
|
+
exclude?: string[];
|
|
8
|
+
}): any[];
|
|
9
|
+
static cleaned(json: any, onCircs?: (circs: Circ[]) => any, options?: {
|
|
10
|
+
exclude?: string[];
|
|
11
|
+
include?: string[];
|
|
12
|
+
breadthWalk?: boolean;
|
|
13
|
+
}): any;
|
|
14
|
+
static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any): string;
|
|
15
|
+
static parse(json: string, circs?: Circ[]): any;
|
|
16
16
|
}
|
package/client/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json10",
|
|
3
3
|
"description": "Handle circural references, comments and many more inside JSON",
|
|
4
|
-
"version": "13.1.
|
|
4
|
+
"version": "13.1.45",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "mocha --require ts-node/register src/**/*.spec.ts",
|
|
7
7
|
"test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/darekf77/json10#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"lodash-walk-object": "~13.1.
|
|
24
|
+
"lodash-walk-object": "~13.1.45"
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"private": false,
|
|
28
|
-
"lastBuildTagHash": "
|
|
28
|
+
"lastBuildTagHash": "9813456456aa743d2e5a7753f97743549c430375",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@angular-devkit/build-angular": "~13.3.9",
|
|
31
31
|
"@angular-devkit/core": "~13.3.9",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@angular/compiler": "~13.3.0",
|
|
38
38
|
"@angular/compiler-cli": "~13.3.0",
|
|
39
39
|
"@angular/core": "~13.3.0",
|
|
40
|
+
"@angular/elements": "~13.3.0",
|
|
40
41
|
"@angular/flex-layout": "~13.0.0-beta.38",
|
|
41
42
|
"@angular/forms": "~13.3.0",
|
|
42
43
|
"@angular/material": "~13.3.9",
|
|
@@ -97,9 +98,9 @@
|
|
|
97
98
|
"@types/watch": "1.0.0",
|
|
98
99
|
"accepts": "1.3.4",
|
|
99
100
|
"angular-material-css-vars": "5.0.0",
|
|
100
|
-
"any-project-cli": "~13.1.
|
|
101
|
+
"any-project-cli": "~13.1.27",
|
|
101
102
|
"axios": "1.3.5",
|
|
102
|
-
"background-worker-process": "~13.1.
|
|
103
|
+
"background-worker-process": "~13.1.44",
|
|
103
104
|
"base32": "0.0.7",
|
|
104
105
|
"bcryptjs": "2.4.3",
|
|
105
106
|
"better-sqlite3": "7.6.2",
|
|
@@ -120,7 +121,7 @@
|
|
|
120
121
|
"concurrently": "3.5.1",
|
|
121
122
|
"content-type": "1.0.4",
|
|
122
123
|
"cookie-parser": "1.4.3",
|
|
123
|
-
"copy-paste": "1.3
|
|
124
|
+
"copy-paste": "1.5.3",
|
|
124
125
|
"cors": "2.8.4",
|
|
125
126
|
"cpr": "3.0.1",
|
|
126
127
|
"cross-spawn": "7.0.3",
|
|
@@ -141,12 +142,12 @@
|
|
|
141
142
|
"file-loader": "1.1.5",
|
|
142
143
|
"file-saver": "2.0.5",
|
|
143
144
|
"firedev": "^13",
|
|
144
|
-
"firedev-crud": "~13.1.
|
|
145
|
-
"firedev-crud-deamon": "~13.1.
|
|
146
|
-
"firedev-ports": "~13.1.
|
|
147
|
-
"firedev-storage": "~13.2.
|
|
148
|
-
"firedev-typeorm": "~13.1.
|
|
149
|
-
"firedev-ui": "~13.2.
|
|
145
|
+
"firedev-crud": "~13.1.49",
|
|
146
|
+
"firedev-crud-deamon": "~13.1.39",
|
|
147
|
+
"firedev-ports": "~13.1.44",
|
|
148
|
+
"firedev-storage": "~13.2.36",
|
|
149
|
+
"firedev-typeorm": "~13.1.31",
|
|
150
|
+
"firedev-ui": "~13.2.9",
|
|
150
151
|
"fkill": "6.1.0",
|
|
151
152
|
"font-awesome": "4.7.0",
|
|
152
153
|
"form-data": "4.0.0",
|
|
@@ -160,18 +161,18 @@
|
|
|
160
161
|
"http-proxy-middleware": "0.19.1",
|
|
161
162
|
"http-server": "0.11.1",
|
|
162
163
|
"immutable": "4.3.0",
|
|
163
|
-
"incremental-compiler": "~13.1.
|
|
164
|
+
"incremental-compiler": "~13.1.26",
|
|
164
165
|
"inquirer": "7.3.3",
|
|
165
166
|
"inquirer-autocomplete-prompt": "1.3.0",
|
|
166
167
|
"is-elevated": "3.0.0",
|
|
167
|
-
"isomorphic-region-loader": "~13.1.
|
|
168
|
+
"isomorphic-region-loader": "~13.1.37",
|
|
168
169
|
"istanbul-instrumenter-loader": "2.0.0",
|
|
169
170
|
"jasmine-core": "4.0.0",
|
|
170
171
|
"jscodeshift": "0.6.3",
|
|
171
172
|
"json-stringify-safe": "5.0.1",
|
|
172
|
-
"json10": "~13.1.
|
|
173
|
-
"json10-writer": "~13.1.
|
|
174
|
-
"json5": "2.1
|
|
173
|
+
"json10": "~13.1.44",
|
|
174
|
+
"json10-writer": "~13.1.40",
|
|
175
|
+
"json5": "2.2.1",
|
|
175
176
|
"json5-writer": "0.2.0",
|
|
176
177
|
"jszip": "3.10.1",
|
|
177
178
|
"karma": "6.3.0",
|
|
@@ -183,21 +184,21 @@
|
|
|
183
184
|
"lnk": "1.0.1",
|
|
184
185
|
"localforage": "1.10.0",
|
|
185
186
|
"lockfile": "1.0.4",
|
|
186
|
-
"lodash": "4.17.
|
|
187
|
+
"lodash": "4.17.20",
|
|
187
188
|
"lowdb": "1.0.0",
|
|
188
|
-
"magic-renamer": "~13.1.
|
|
189
|
+
"magic-renamer": "~13.1.41",
|
|
189
190
|
"material-design-icons": "3.0.1",
|
|
190
191
|
"method-override": "2.3.10",
|
|
191
192
|
"minimist": "1.2.0",
|
|
192
193
|
"mkdirp": "0.5.1",
|
|
193
194
|
"mocha": "5.2.0",
|
|
194
|
-
"moment": "2.
|
|
195
|
-
"morphi": "~13.2.
|
|
195
|
+
"moment": "2.29.3",
|
|
196
|
+
"morphi": "~13.2.11",
|
|
196
197
|
"ng-in-viewport": "13.0.1",
|
|
197
198
|
"ng-packagr": "13.0.0",
|
|
198
199
|
"ng-talkback": "~13.1.19",
|
|
199
|
-
"ng2-logger": "~13.1.
|
|
200
|
-
"ng2-rest": "~13.2.
|
|
200
|
+
"ng2-logger": "~13.1.25",
|
|
201
|
+
"ng2-rest": "~13.2.8",
|
|
201
202
|
"ngx-ace-wrapper": "12",
|
|
202
203
|
"ngx-editor": "12.2.1",
|
|
203
204
|
"ngx-highlightjs": "6.1.3",
|
|
@@ -238,25 +239,26 @@
|
|
|
238
239
|
"socket.io": "2.4.1",
|
|
239
240
|
"sort-package-json": "1.11.0",
|
|
240
241
|
"sql.js": "1.8.0",
|
|
241
|
-
"static-columns": "~13.3.
|
|
242
|
+
"static-columns": "~13.3.8",
|
|
242
243
|
"string-similarity": "4.0.2",
|
|
243
244
|
"sudo-block": "3.0.0",
|
|
244
245
|
"systeminformation": "3.45.7",
|
|
245
246
|
"task.js": "0.1.5",
|
|
246
247
|
"threads": "1.7.0",
|
|
247
|
-
"tnp-cli": "~13.1.
|
|
248
|
-
"tnp-config": "~13.1.
|
|
249
|
-
"tnp-core": "~13.2.
|
|
250
|
-
"tnp-db": "~13.1.
|
|
251
|
-
"tnp-helpers": "~13.1.
|
|
252
|
-
"tnp-models": "~13.1.
|
|
248
|
+
"tnp-cli": "~13.1.60",
|
|
249
|
+
"tnp-config": "~13.1.76",
|
|
250
|
+
"tnp-core": "~13.2.20",
|
|
251
|
+
"tnp-db": "~13.1.21",
|
|
252
|
+
"tnp-helpers": "~13.1.38",
|
|
253
|
+
"tnp-models": "~13.1.27",
|
|
253
254
|
"ts-debug": "1.3.0",
|
|
254
255
|
"ts-loader": "2.3.1",
|
|
255
256
|
"ts-node": "10.7.0",
|
|
256
257
|
"tslib": "~2.3.0",
|
|
258
|
+
"turndown": "7.1.2",
|
|
257
259
|
"typeorm": "~0.3.10",
|
|
258
260
|
"typescript": "~4.6.2",
|
|
259
|
-
"typescript-class-helpers": "~13.2.
|
|
261
|
+
"typescript-class-helpers": "~13.2.13",
|
|
260
262
|
"typescript-formatter": "~7.2.2",
|
|
261
263
|
"underscore": "1.9.1",
|
|
262
264
|
"uuid": "8.3.2",
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './lib';
|
|
1
|
+
export * from './lib';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["./src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Models } from 'lodash-walk-object';
|
|
2
|
-
export declare type Circ = Models.Circ;
|
|
3
|
-
export declare class JSON10 {
|
|
4
|
-
static structureArray(anyJSON: Object, options?: {
|
|
5
|
-
include?: string[];
|
|
6
|
-
exclude?: string[];
|
|
7
|
-
}): any[];
|
|
8
|
-
static cleaned(json: any, onCircs?: (circs: Circ[]) => any, options?: {
|
|
9
|
-
exclude?: string[];
|
|
10
|
-
include?: string[];
|
|
11
|
-
breadthWalk?: boolean;
|
|
12
|
-
}): any;
|
|
13
|
-
static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any): string;
|
|
14
|
-
static parse(json: string, circs?: Circ[]): any;
|
|
15
|
-
}
|
|
1
|
+
import { Models } from 'lodash-walk-object';
|
|
2
|
+
export declare type Circ = Models.Circ;
|
|
3
|
+
export declare class JSON10 {
|
|
4
|
+
static structureArray(anyJSON: Object, options?: {
|
|
5
|
+
include?: string[];
|
|
6
|
+
exclude?: string[];
|
|
7
|
+
}): any[];
|
|
8
|
+
static cleaned(json: any, onCircs?: (circs: Circ[]) => any, options?: {
|
|
9
|
+
exclude?: string[];
|
|
10
|
+
include?: string[];
|
|
11
|
+
breadthWalk?: boolean;
|
|
12
|
+
}): any;
|
|
13
|
+
static stringify(anyJSON: Object, replace?: any, spaces?: number, onCircs?: (circs: Circ[]) => any): string;
|
|
14
|
+
static parse(json: string, circs?: Circ[]): any;
|
|
15
|
+
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/lib/index.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json10",
|
|
3
3
|
"description": "Handle circural references, comments and many more inside JSON",
|
|
4
|
-
"version": "13.1.
|
|
4
|
+
"version": "13.1.45",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "mocha --require ts-node/register src/**/*.spec.ts",
|
|
7
7
|
"test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/darekf77/json10#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"lodash-walk-object": "~13.1.
|
|
24
|
+
"lodash-walk-object": "~13.1.45"
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"private": false,
|
|
28
|
-
"lastBuildTagHash": "
|
|
28
|
+
"lastBuildTagHash": "9813456456aa743d2e5a7753f97743549c430375",
|
|
29
29
|
"devDependencies": {}
|
|
30
30
|
}
|