json10 1.0.34 → 1.0.39

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.
Files changed (41) hide show
  1. package/app.d.ts +0 -0
  2. package/app.js +2 -0
  3. package/app.js.map +1 -0
  4. package/browser/README.md +24 -0
  5. package/browser/esm2020/json10.mjs +5 -0
  6. package/browser/esm2020/lib/index.mjs +56 -0
  7. package/browser/esm2020/public-api.mjs +2 -0
  8. package/browser/{index.js → fesm2015/json10.mjs} +9 -2
  9. package/browser/fesm2015/json10.mjs.map +1 -0
  10. package/{client/index.js → browser/fesm2020/json10.mjs} +9 -2
  11. package/browser/fesm2020/json10.mjs.map +1 -0
  12. package/browser/json10.d.ts +5 -0
  13. package/browser/{index.d.ts → lib/index.d.ts} +0 -0
  14. package/browser/package.json +31 -0
  15. package/browser/public-api.d.ts +1 -0
  16. package/client/README.md +24 -0
  17. package/client/esm2020/json10.mjs +5 -0
  18. package/client/esm2020/lib/index.mjs +56 -0
  19. package/client/esm2020/public-api.mjs +2 -0
  20. package/client/fesm2015/json10.mjs +63 -0
  21. package/client/fesm2015/json10.mjs.map +1 -0
  22. package/client/fesm2020/json10.mjs +63 -0
  23. package/client/fesm2020/json10.mjs.map +1 -0
  24. package/client/json10.d.ts +5 -0
  25. package/client/{index.d.ts → lib/index.d.ts} +0 -0
  26. package/client/package.json +25 -23
  27. package/client/public-api.d.ts +1 -0
  28. package/index.d.ts +1 -15
  29. package/index.js +4 -63
  30. package/index.js.map +1 -1
  31. package/lib/index.d.ts +15 -0
  32. package/lib/index.js +66 -0
  33. package/lib/index.js.map +1 -0
  34. package/package.json +3 -3
  35. package/package.json_tnp.json +6 -2
  36. package/package.json_tnp.json5 +38 -0
  37. package/tmp-environment.json +78 -111
  38. package/browser/es5/index.js +0 -99
  39. package/browser/index.js.map +0 -1
  40. package/client/es5/index.js +0 -99
  41. package/client/index.js.map +0 -1
package/index.js CHANGED
@@ -1,65 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JSON10 = void 0;
4
- var tnp_core_1 = require("tnp-core");
5
- var lodash_walk_object_1 = require("lodash-walk-object");
6
- var typescript_class_helpers_1 = require("typescript-class-helpers");
7
- // import { Log } from 'ng2-logger'
8
- // const log = Log.create('JSON10')
9
- // let counter = 0
10
- var JSON10 = /** @class */ (function () {
11
- function JSON10() {
12
- }
13
- JSON10.structureArray = function (anyJSON, options) {
14
- var pathes = [];
15
- var _a = options || {}, include = _a.include, exclude = _a.exclude;
16
- lodash_walk_object_1.walk.Object(anyJSON, function (value, lodashPath) {
17
- if (!tnp_core_1._.isUndefined(value)) {
18
- pathes.push(lodashPath);
19
- }
20
- }, { include: include, exclude: exclude, checkCircural: true });
21
- return pathes;
22
- };
23
- JSON10.cleaned = function (json, onCircs, options) {
24
- // console.log('BETTER SRUGUB', json)
25
- var result = tnp_core_1._.isArray(json) ? [] : {};
26
- var classFN = typescript_class_helpers_1.CLASS.OBJECT(json).isClassObject && typescript_class_helpers_1.CLASS.getFromObject(json);
27
- var _a = options || { exclude: [], include: [], breadthWalk: false }, exclude = _a.exclude, include = _a.include, breadthWalk = _a.breadthWalk;
28
- var circs = lodash_walk_object_1.walk.Object(json, function (value, lodashPath, changeValueTo, options) {
29
- if (tnp_core_1._.isObject(value) && options.isCircural) {
30
- tnp_core_1._.set(result, lodashPath, null);
31
- }
32
- else {
33
- tnp_core_1._.set(result, lodashPath, tnp_core_1._.cloneDeep(value));
34
- }
35
- }, { include: include, exclude: exclude, breadthWalk: breadthWalk, checkCircural: true }).circs;
36
- if (tnp_core_1._.isFunction(onCircs)) {
37
- onCircs(circs);
38
- }
39
- return tnp_core_1._.isFunction(classFN) ? tnp_core_1._.merge(new classFN(), result) : result;
40
- };
41
- JSON10.stringify = function (anyJSON, replace, spaces, onCircs) {
42
- var json = this.cleaned(anyJSON, onCircs);
43
- return JSON.stringify(json, replace, spaces);
44
- };
45
- JSON10.parse = function (json, circs) {
46
- if (circs === void 0) { circs = []; }
47
- var res = JSON.parse(json);
48
- if (tnp_core_1._.isArray(circs)) {
49
- circs.forEach(function (_a) {
50
- var circuralTargetPath = _a.circuralTargetPath, pathToObj = _a.pathToObj;
51
- if (circuralTargetPath === '') {
52
- tnp_core_1._.set(res, pathToObj, res);
53
- }
54
- else {
55
- var v = tnp_core_1._.get(res, circuralTargetPath);
56
- tnp_core_1._.set(res, pathToObj, v);
57
- }
58
- });
59
- }
60
- return res;
61
- };
62
- return JSON10;
63
- }());
64
- exports.JSON10 = JSON10;
65
- //# sourceMappingURL=index.js.map
3
+ var tslib_1 = require("tslib");
4
+ (0, tslib_1.__exportStar)(require("./lib"), exports);
5
+ //# sourceMappingURL=index.js.map
6
+ // @fixed
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAA6B;AAC7B,yDAAkD;AAElD,qEAAiD;AACjD,mCAAmC;AACnC,mCAAmC;AAEnC,kBAAkB;AAElB;IAAA;IAkEA,CAAC;IAhEe,qBAAc,GAA5B,UAA6B,OAAe,EAAE,OAAoD;QAChG,IAAI,MAAM,GAAG,EAAE,CAAA;QACT,IAAA,KAAuB,OAAO,IAAI,EAAS,EAAzC,OAAO,aAAA,EAAE,OAAO,aAAyB,CAAC;QAClD,yBAAI,CAAC,MAAM,CAAC,OAAO,EAAE,UAAC,KAAK,EAAE,UAAU;YAErC,IAAI,CAAC,YAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;gBACzB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;aACxB;QAEH,CAAC,EAAE,EAAE,OAAO,SAAA,EAAE,OAAO,SAAA,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;QAC7C,OAAO,MAAM,CAAC;IAChB,CAAC;IAGa,cAAO,GAArB,UAAsB,IAAI,EAAE,OAAgC,EAAE,OAK3D;QACD,qCAAqC;QACrC,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MAAe,EAAE,OAAgC;QACvG,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEa,YAAK,GAAnB,UAAoB,IAAY,EAAE,KAAkB;QAAlB,sBAAA,EAAA,UAAkB;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,YAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,UAAC,EAAiC;oBAA/B,kBAAkB,wBAAA,EAAE,SAAS,eAAA;gBAE5C,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,YAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;iBAC3B;qBAAM;oBACL,IAAI,CAAC,GAAG,YAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;oBACvC,YAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;iBACzB;YAEH,CAAC,CAAC,CAAA;SACH;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACH,aAAC;AAAD,CAAC,AAlED,IAkEC;AAlEY,wBAAM"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAAsB"}
package/lib/index.d.ts ADDED
@@ -0,0 +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
+ }
package/lib/index.js ADDED
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JSON10 = void 0;
4
+ var tnp_core_1 = require("tnp-core");
5
+ var lodash_walk_object_1 = require("lodash-walk-object");
6
+ var typescript_class_helpers_1 = require("typescript-class-helpers");
7
+ // import { Log } from 'ng2-logger'
8
+ // const log = Log.create('JSON10')
9
+ // let counter = 0
10
+ var JSON10 = /** @class */ (function () {
11
+ function JSON10() {
12
+ }
13
+ JSON10.structureArray = function (anyJSON, options) {
14
+ var pathes = [];
15
+ var _a = options || {}, include = _a.include, exclude = _a.exclude;
16
+ lodash_walk_object_1.walk.Object(anyJSON, function (value, lodashPath) {
17
+ if (!tnp_core_1._.isUndefined(value)) {
18
+ pathes.push(lodashPath);
19
+ }
20
+ }, { include: include, exclude: exclude, checkCircural: true });
21
+ return pathes;
22
+ };
23
+ JSON10.cleaned = function (json, onCircs, options) {
24
+ // console.log('BETTER SRUGUB', json)
25
+ var result = tnp_core_1._.isArray(json) ? [] : {};
26
+ var classFN = typescript_class_helpers_1.CLASS.OBJECT(json).isClassObject && typescript_class_helpers_1.CLASS.getFromObject(json);
27
+ var _a = options || { exclude: [], include: [], breadthWalk: false }, exclude = _a.exclude, include = _a.include, breadthWalk = _a.breadthWalk;
28
+ var circs = lodash_walk_object_1.walk.Object(json, function (value, lodashPath, changeValueTo, options) {
29
+ if (tnp_core_1._.isObject(value) && options.isCircural) {
30
+ tnp_core_1._.set(result, lodashPath, null);
31
+ }
32
+ else {
33
+ tnp_core_1._.set(result, lodashPath, tnp_core_1._.cloneDeep(value));
34
+ }
35
+ }, { include: include, exclude: exclude, breadthWalk: breadthWalk, checkCircural: true }).circs;
36
+ if (tnp_core_1._.isFunction(onCircs)) {
37
+ onCircs(circs);
38
+ }
39
+ return tnp_core_1._.isFunction(classFN) ? tnp_core_1._.merge(new classFN(), result) : result;
40
+ };
41
+ JSON10.stringify = function (anyJSON, replace, spaces, onCircs) {
42
+ var json = this.cleaned(anyJSON, onCircs);
43
+ return JSON.stringify(json, replace, spaces);
44
+ };
45
+ JSON10.parse = function (json, circs) {
46
+ if (circs === void 0) { circs = []; }
47
+ var res = JSON.parse(json);
48
+ if (tnp_core_1._.isArray(circs)) {
49
+ circs.forEach(function (_a) {
50
+ var circuralTargetPath = _a.circuralTargetPath, pathToObj = _a.pathToObj;
51
+ if (circuralTargetPath === '') {
52
+ tnp_core_1._.set(res, pathToObj, res);
53
+ }
54
+ else {
55
+ var v = tnp_core_1._.get(res, circuralTargetPath);
56
+ tnp_core_1._.set(res, pathToObj, v);
57
+ }
58
+ });
59
+ }
60
+ return res;
61
+ };
62
+ return JSON10;
63
+ }());
64
+ exports.JSON10 = JSON10;
65
+ //# sourceMappingURL=index.js.map
66
+ // @fixed
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;AAAA,qCAA6B;AAC7B,yDAAkD;AAElD,qEAAiD;AACjD,mCAAmC;AACnC,mCAAmC;AAEnC,kBAAkB;AAElB;IAAA;IAkEA,CAAC;IAhEe,qBAAc,GAA5B,UAA6B,OAAe,EAAE,OAAoD;QAChG,IAAI,MAAM,GAAG,EAAE,CAAA;QACT,IAAA,KAAuB,OAAO,IAAI,EAAS,EAAzC,OAAO,aAAA,EAAE,OAAO,aAAyB,CAAC;QAClD,yBAAI,CAAC,MAAM,CAAC,OAAO,EAAE,UAAC,KAAK,EAAE,UAAU;YAErC,IAAI,CAAC,YAAC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;gBACzB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;aACxB;QAEH,CAAC,EAAE,EAAE,OAAO,SAAA,EAAE,OAAO,SAAA,EAAE,aAAa,EAAE,IAA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AAC,IAAK,OAAe,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAClF,CAAC;IAEa,gBAAS,GAAvB,UAAwB,OAAe,EAAE,OAAa,EAAE,MAAe,EAAE,OAAgC;QACvG,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEa,YAAK,GAAnB,UAAoB,IAAY,EAAE,KAAkB;QAAlB,sBAAA,EAAA,UAAkB;QAClD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,YAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACpB,KAAK,CAAC,OAAO,CAAC,UAAC,EAAiC;oBAA/B,kBAAkB,wBAAA,EAAE,SAAS,eAAA;gBAE5C,IAAI,kBAAkB,KAAK,EAAE,EAAE;oBAC7B,YAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,CAAA;iBAC3B;qBAAM;oBACL,IAAI,CAAC,GAAG,YAAC,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;oBACvC,YAAC,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;iBACzB;YAEH,CAAC,CAAC,CAAA;SACH;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACH,aAAC;AAAD,CAAC,AAlED,IAkEC;AAlEY,wBAAM"}
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": "1.0.34",
4
+ "version": "1.0.39",
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,9 +21,9 @@
21
21
  },
22
22
  "homepage": "https://github.com/darekf77/json10#readme",
23
23
  "dependencies": {
24
- "lodash-walk-object": "~1.0.35"
24
+ "lodash-walk-object": "~1.0.41"
25
25
  },
26
26
  "license": "MIT",
27
27
  "private": false,
28
- "lastBuildTagHash": "1f3b4bda57a394916cc92485304255af7d66b564"
28
+ "lastBuildTagHash": "e1b1a1b14addc2b3805bbc5845279e846dce596d"
29
29
  }
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "resources": [],
3
3
  "type": "isomorphic-lib",
4
- "version": "v2",
4
+ "version": "v3",
5
+ "additionalNpmNames": [
6
+ "firedev-json"
7
+ ],
5
8
  "overrided": {
6
9
  "includeAsDev": "*",
7
10
  "includeOnly": [
@@ -30,5 +33,6 @@
30
33
  "ng2-rest",
31
34
  "docs",
32
35
  "documentation"
33
- ]
36
+ ],
37
+ "workerPlugins": {}
34
38
  }
@@ -0,0 +1,38 @@
1
+ {
2
+ "resources": [],
3
+ "overrided": {
4
+ "includeAsDev": "*",
5
+ "includeOnly": [
6
+ "lodash-walk-object"
7
+ ],
8
+ "ignoreDepsPattern": [],
9
+ "dependencies": {},
10
+ "linkedFolders": []
11
+ },
12
+ "linkedProjects": [],
13
+ "libReleaseOptions": {
14
+ "nodts": false,
15
+ "obscure": false,
16
+ "ugly": false
17
+ },
18
+ "type": "isomorphic-lib",
19
+ "version": "v3",
20
+ "additionalNpmNames": [
21
+ "firedev-json"
22
+ ],
23
+ "license": "MIT",
24
+ "private": false,
25
+ "scripts": {
26
+ "test": "mocha --require ts-node/register src/**/*.spec.ts",
27
+ "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
28
+ },
29
+ "description": "Handle circural references, comments and many more inside JSON",
30
+ "author": "Dariusz Filipiak",
31
+ "homepage": "https://github.com/darekf77/json10#readme",
32
+ "keywords": [
33
+ "ng2-rest",
34
+ "docs",
35
+ "documentation"
36
+ ],
37
+ "workerPlugins": {}
38
+ }
@@ -6,8 +6,6 @@
6
6
  "packageJSON": {
7
7
  "tnp": {
8
8
  "resources": [],
9
- "type": "isomorphic-lib",
10
- "version": "v2",
11
9
  "overrided": {
12
10
  "includeAsDev": "*",
13
11
  "includeOnly": [
@@ -23,6 +21,11 @@
23
21
  "obscure": false,
24
22
  "ugly": false
25
23
  },
24
+ "type": "isomorphic-lib",
25
+ "version": "v3",
26
+ "additionalNpmNames": [
27
+ "firedev-json"
28
+ ],
26
29
  "license": "MIT",
27
30
  "private": false,
28
31
  "scripts": {
@@ -36,11 +39,12 @@
36
39
  "ng2-rest",
37
40
  "docs",
38
41
  "documentation"
39
- ]
42
+ ],
43
+ "workerPlugins": {}
40
44
  },
41
45
  "name": "json10",
42
46
  "description": "Handle circural references, comments and many more inside JSON",
43
- "version": "1.0.34",
47
+ "version": "1.0.39",
44
48
  "scripts": {
45
49
  "test": "mocha --require ts-node/register src/**/*.spec.ts",
46
50
  "test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
@@ -59,37 +63,37 @@
59
63
  "url": "https://github.com/darekf77/json10/issues"
60
64
  },
61
65
  "homepage": "https://github.com/darekf77/json10#readme",
66
+ "dependencies": {
67
+ "lodash-walk-object": "~1.0.41"
68
+ },
69
+ "license": "MIT",
70
+ "private": false,
71
+ "lastBuildTagHash": "e1b1a1b14addc2b3805bbc5845279e846dce596d",
62
72
  "devDependencies": {
63
- "@angular-devkit/build-angular": "0.901.3",
64
- "@angular-devkit/build-optimizer": "0.900.0-rc.7",
65
- "@angular-devkit/schematics": "9.0.0-rc.7",
66
- "@angular/animations": "9.1.3",
67
- "@angular/cdk": "9.2.1",
68
- "@angular/cli": "9.1.3",
69
- "@angular/common": "9.1.3",
70
- "@angular/compiler": "9.1.3",
71
- "@angular/compiler-cli": "9.1.3",
72
- "@angular/core": "9.1.3",
73
- "@angular/forms": "9.1.3",
74
- "@angular/http": "7.2.15",
75
- "@angular/language-service": "9.1.3",
76
- "@angular/material": "9.2.1",
77
- "@angular/platform-browser": "9.1.3",
78
- "@angular/platform-browser-dynamic": "9.1.3",
79
- "@angular/pwa": "0.900.0-rc.7",
80
- "@angular/router": "9.1.3",
81
- "@angular/service-worker": "9.1.3",
73
+ "@angular-devkit/build-angular": "~13.2.5",
74
+ "@angular/animations": "~13.2.0",
75
+ "@angular/cdk": "~13.2.4",
76
+ "@angular/cli": "~13.2.5",
77
+ "@angular/common": "~13.2.0",
78
+ "@angular/compiler": "~13.2.0",
79
+ "@angular/compiler-cli": "~13.2.0",
80
+ "@angular/core": "~13.2.0",
81
+ "@angular/forms": "~13.2.0",
82
+ "@angular/material": "~13.2.4",
83
+ "@angular/platform-browser": "~13.2.0",
84
+ "@angular/platform-browser-dynamic": "~13.2.0",
85
+ "@angular/pwa": "~13.2.5",
86
+ "@angular/router": "~13.2.0",
87
+ "@angular/service-worker": "~13.2.0",
82
88
  "@mdi/js": "5.8.55",
83
- "@ngx-formly/bootstrap": "5.5.6",
84
- "@ngx-formly/core": "5.5.6",
85
- "@ngx-formly/ionic": "5.5.6",
86
- "@ngx-formly/material": "5.5.6",
87
- "@ngx-loading-bar/core": "4.2.0",
88
- "@ngx-loading-bar/http": "4.2.0",
89
- "@ngx-loading-bar/router": "4.2.0",
90
- "@ngx-translate/core": "11.0.1",
91
- "@ngx-translate/http-loader": "4.0.0",
92
- "@swimlane/ngx-datatable": "16.0.2",
89
+ "@ngrx/component-store": "~13.0.2",
90
+ "@ngrx/data": "~13.0.2",
91
+ "@ngrx/effects": "~13.0.2",
92
+ "@ngrx/entity": "~13.0.2",
93
+ "@ngrx/router-store": "~13.0.2",
94
+ "@ngrx/schematics": "~13.0.2",
95
+ "@ngrx/store": "~13.0.2",
96
+ "@ngrx/store-devtools": "~13.0.2",
93
97
  "@types/chai": "4.1.2",
94
98
  "@types/chokidar": "2.1.3",
95
99
  "@types/dateformat": "1.0.1",
@@ -101,8 +105,7 @@
101
105
  "@types/http-proxy": "1.16.0",
102
106
  "@types/http-proxy-middleware": "0.19.2",
103
107
  "@types/inquirer": "7.3.1",
104
- "@types/jasmine": "3.5.0",
105
- "@types/jasminewd2": "2.0.3",
108
+ "@types/jasmine": "3.10.0",
106
109
  "@types/json-stringify-safe": "5.0.0",
107
110
  "@types/json5": "0.0.29",
108
111
  "@types/lockfile": "1.0.0",
@@ -114,23 +117,19 @@
114
117
  "@types/oauth2orize": "1.8.0",
115
118
  "@types/password-hash": "1.2.19",
116
119
  "@types/progress": "2.0.3",
117
- "@types/q": "1.0.3",
120
+ "@types/q": "1.5.5",
118
121
  "@types/rimraf": "2.0.2",
119
122
  "@types/systeminformation": "3.23.0",
120
123
  "@types/vinyl": "2.0.2",
121
124
  "@types/watch": "1.0.0",
122
125
  "accepts": "1.3.4",
123
- "angular-tree-component": "7.0.0",
124
126
  "axios": "0.17.1",
125
- "babel-cli": "6.26.0",
126
- "babel-preset-env": "1.7.0",
127
- "background-worker-process": "~0.0.34",
127
+ "background-worker-process": "~0.0.35",
128
128
  "bcryptjs": "2.4.3",
129
129
  "body-parser": "1.18.2",
130
- "bootstrap": "4.3.1",
131
- "bs4-breakpoint": "~2.0.40",
130
+ "bootstrap": "5.1.3",
131
+ "bs4-breakpoint": "~2.0.42",
132
132
  "buffer-shims": "1.0.0",
133
- "button-dropdown": "~1.0.45",
134
133
  "callsite-record": "4.1.3",
135
134
  "chai": "4.2.0",
136
135
  "chalk": "2.3.2",
@@ -138,14 +137,12 @@
138
137
  "cheerio": "1.0.0-rc.3",
139
138
  "chokidar": "3.5.1",
140
139
  "circular-json": "0.5.1",
141
- "codelyzer": "5.1.2",
142
140
  "command-exists": "1.2.2",
143
141
  "compression": "1.7.4",
144
142
  "concurrently": "3.5.1",
145
143
  "content-type": "1.0.4",
146
144
  "cookie-parser": "1.4.3",
147
145
  "copy-paste": "1.3.0",
148
- "core-js-compat": "3.4.0",
149
146
  "cors": "2.8.4",
150
147
  "cpr": "3.0.1",
151
148
  "cross-spawn": "7.0.3",
@@ -170,59 +167,44 @@
170
167
  "fuzzy": "0.1.3",
171
168
  "glob": "7.1.2",
172
169
  "gulp": "3.9.1",
173
- "hammerjs": "2.0.8",
174
170
  "hostile": "1.3.3",
175
- "html-webpack-plugin": "4.3.0",
176
171
  "http-proxy": "1.16.2",
177
172
  "http-proxy-middleware": "0.19.1",
178
173
  "http-server": "0.11.1",
179
- "incremental-compiler": "~1.1.52",
174
+ "incremental-compiler": "~1.1.53",
180
175
  "inquirer": "7.3.3",
181
176
  "inquirer-autocomplete-prompt": "1.3.0",
182
177
  "is-elevated": "3.0.0",
183
178
  "istanbul-instrumenter-loader": "2.0.0",
184
- "jasmine-core": "3.5.0",
185
- "jasmine-spec-reporter": "4.2.1",
179
+ "jasmine-core": "4.0.0",
186
180
  "json-stringify-safe": "5.0.1",
187
- "json10": "~1.0.33",
181
+ "json10": "~1.0.38",
188
182
  "json5": "2.1.3",
189
183
  "json5-writer": "0.2.0",
190
- "karma": "5.0.0",
184
+ "karma": "6.3.0",
191
185
  "karma-chrome-launcher": "3.1.0",
192
186
  "karma-cli": "1.0.1",
193
- "karma-coverage-istanbul-reporter": "2.1.0",
194
- "karma-jasmine": "3.0.1",
195
- "karma-jasmine-html-reporter": "1.4.2",
187
+ "karma-coverage": "2.1.0",
188
+ "karma-jasmine": "4.0.0",
189
+ "karma-jasmine-html-reporter": "1.7.0",
196
190
  "lnk": "1.0.1",
197
191
  "lockfile": "1.0.4",
198
192
  "lodash": "4.17.4",
199
193
  "lowdb": "1.0.0",
200
- "magic-renamer": "~0.0.19",
194
+ "magic-renamer": "~0.0.20",
201
195
  "material-design-icons": "3.0.1",
202
196
  "method-override": "2.3.10",
203
197
  "minimist": "1.2.0",
204
198
  "mkdirp": "0.5.1",
205
199
  "mocha": "5.2.0",
206
200
  "moment": "2.22.2",
207
- "morphi": "~4.0.53",
208
- "ng-modal-lib": "0.0.6",
209
- "ng-packagr": "5.7.1",
210
- "ng-talkback": "~2.4.24",
211
- "ng2-file-upload": "1.3.0",
212
- "ng2-logger": "~8.0.20",
213
- "ng2-rest": "~11.0.41",
214
- "ng4-icons": "~0.0.29",
215
- "ng4-modal": "~0.0.29",
216
- "ngx-bootstrap": "5.2.0",
217
- "ngx-breadcrumbs": "0.0.3",
218
- "ngx-editor": "4.1.0",
219
- "ngx-moment": "3.5.0",
220
- "ngx-pipes": "2.6.0",
221
- "ngx-store": "2.1.0",
222
- "ngx-toastr": "11.2.1",
223
- "ngx-wig": "8.0.0",
201
+ "morphi": "~4.0.54",
202
+ "ng-packagr": "13.0.0",
203
+ "ng-talkback": "~2.4.25",
204
+ "ng2-logger": "~8.0.30",
205
+ "ng2-rest": "~11.0.42",
224
206
  "node-cli-test": "0.0.2",
225
- "node-cli-tester": "~0.0.21",
207
+ "node-cli-tester": "~0.0.22",
226
208
  "node-localstorage": "2.1.6",
227
209
  "node-notifier": "6.0.0",
228
210
  "nodemon": "1.14.11",
@@ -235,65 +217,50 @@
235
217
  "passport-http-bearer": "1.0.1",
236
218
  "password-hash": "1.2.2",
237
219
  "portfinder": "1.0.21",
238
- "prettier": "2.3.2",
239
220
  "progress": "2.0.3",
240
221
  "prompts": "0.1.8",
241
- "protractor": "5.4.3",
242
222
  "ps-list": "6.1.0",
243
223
  "ps-node": "0.1.6",
244
224
  "q": "1.5.1",
245
225
  "randomcolor": "0.5.3",
246
- "record-replay-req-res-scenario": "~0.0.25",
226
+ "record-replay-req-res-scenario": "~0.0.26",
247
227
  "reflect-metadata": "0.1.10",
248
228
  "rimraf": "2.6.2",
249
- "rxjs": "6.5.4",
250
- "rxjs-compat": "6.5.3",
229
+ "rxjs": "~7.5.0",
251
230
  "simple-git": "1.96.0",
252
231
  "sloc": "0.2.0",
253
232
  "socket.io": "2.4.1",
254
233
  "sort-package-json": "1.11.0",
255
- "static-columns": "~2.0.12",
256
234
  "string-similarity": "4.0.2",
257
235
  "sudo-block": "3.0.0",
258
236
  "systeminformation": "3.45.7",
259
237
  "task.js": "0.1.5",
260
- "tnp-cli": "~2.0.20",
261
- "tnp-config": "~1.0.20",
262
- "tnp-core": "~1.0.34",
263
- "tnp-db": "~0.0.42",
264
- "tnp-helpers": "~0.0.70",
265
- "tnp-models": "~0.0.36",
266
- "tnp-tools": "~0.0.45",
267
- "tnp-ui": "~0.0.32",
268
- "ts-loader": "7.0.4",
269
- "ts-node": "8.3.0",
270
- "tsickle": "0.26.0",
271
- "tslib": "2.2.0",
272
- "tslint": "6.1.0",
238
+ "tnp-cli": "~2.0.27",
239
+ "tnp-config": "~1.0.30",
240
+ "tnp-core": "~1.0.59",
241
+ "tnp-db": "~0.0.44",
242
+ "tnp-helpers": "~0.0.73",
243
+ "tnp-models": "~0.0.37",
244
+ "tnp-tools": "~0.0.46",
245
+ "tnp-ui": "~0.0.33",
246
+ "ts-node": "10.7.0",
247
+ "tslib": "~2.3.0",
273
248
  "typeorm": "~0.2.7",
274
- "typescript": "4.1.5",
275
- "typescript-class-helpers": "~1.0.42",
276
- "typescript-formatter": "7.2.2",
277
- "uglifyjs-webpack-plugin": "2.2.0",
249
+ "typescript": "~4.5.2",
250
+ "typescript-class-helpers": "~1.0.49",
251
+ "typescript-formatter": "~7.2.2",
278
252
  "underscore": "1.9.1",
279
253
  "uuid": "8.3.2",
280
254
  "validator": "9.2.0",
281
- "vpn-split": "~0.0.17",
255
+ "vpn-split": "~0.0.18",
282
256
  "watch": "1.0.2",
283
- "webpack-cli": "3.3.11",
284
- "zone.js": "0.10.2"
285
- },
286
- "dependencies": {
287
- "lodash-walk-object": "~1.0.35"
288
- },
289
- "license": "MIT",
290
- "private": false,
291
- "lastBuildTagHash": "1f3b4bda57a394916cc92485304255af7d66b564"
257
+ "zone.js": "~0.11.4"
258
+ }
292
259
  },
293
260
  "build": {
294
- "number": 127,
295
- "date": "2021-10-19T06:51:50.000Z",
296
- "hash": "0d64708f431249f7307aab86e0234cbc4e7c439a",
261
+ "number": 137,
262
+ "date": "2022-03-07T01:20:09.000Z",
263
+ "hash": "6b1fa9f5a015ddb2a8a0bdae15a1e1b83545fa94",
297
264
  "options": {}
298
265
  },
299
266
  "currentProjectName": "json10",
@@ -301,7 +268,7 @@
301
268
  "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\"]}]}",
302
269
  "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\"}]}",
303
270
  "currentProjectType": "isomorphic-lib",
304
- "currentFrameworkVersion": "0.0.158",
271
+ "currentFrameworkVersion": "0.0.159",
305
272
  "currentProjectIsStrictSite": false,
306
273
  "currentProjectIsDependencySite": false,
307
274
  "currentProjectIsStatic": false,