json10 21.0.16 → 21.0.19
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/package.json +1 -1
- package/browser-prod/fesm2022/json10-browser.mjs +12 -12
- package/browser-prod/fesm2022/json10-browser.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/json10-browser.d.ts +2 -2
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/package.json +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/index.d.ts +2 -2
- package/lib-prod/index.js +11 -11
- package/lib-prod/index.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/package.json +3 -2
- package/websql/package.json +1 -1
- package/websql-prod/fesm2022/json10-websql.mjs +12 -12
- package/websql-prod/fesm2022/json10-websql.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/json10-websql.d.ts +2 -2
package/browser/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ___NS__isUndefined, ___NS__isArray, ___NS__isObject, ___NS__set, ___NS__cloneDeep, ___NS__isFunction, ___NS__merge, ___NS__get } from 'tnp-core/browser-prod';
|
|
2
2
|
import { walk } from 'lodash-walk-object/browser-prod';
|
|
3
3
|
import { CLASS } from 'typescript-class-helpers/browser-prod';
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ class JSON10 {
|
|
|
10
10
|
let pathes = [];
|
|
11
11
|
const { include, exclude } = options || {};
|
|
12
12
|
walk.Object(anyJSON, (value, lodashPath) => {
|
|
13
|
-
if (!
|
|
13
|
+
if (!___NS__isUndefined(value)) {
|
|
14
14
|
pathes.push(lodashPath);
|
|
15
15
|
}
|
|
16
16
|
}, { include, exclude, checkCircural: true });
|
|
@@ -18,21 +18,21 @@ class JSON10 {
|
|
|
18
18
|
}
|
|
19
19
|
static cleaned(json, onCircs, options) {
|
|
20
20
|
// console.log('BETTER SRUGUB', json)
|
|
21
|
-
const result =
|
|
21
|
+
const result = ___NS__isArray(json) ? [] : {};
|
|
22
22
|
const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
|
|
23
23
|
const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
|
|
24
24
|
const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {
|
|
25
|
-
if (
|
|
26
|
-
|
|
25
|
+
if (___NS__isObject(value) && options.isCircural) {
|
|
26
|
+
___NS__set(result, lodashPath, null);
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
29
|
-
|
|
29
|
+
___NS__set(result, lodashPath, ___NS__cloneDeep(value));
|
|
30
30
|
}
|
|
31
31
|
}, { include, exclude, breadthWalk, checkCircural: true });
|
|
32
|
-
if (
|
|
32
|
+
if (___NS__isFunction(onCircs)) {
|
|
33
33
|
onCircs(circs);
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return ___NS__isFunction(classFN) ? ___NS__merge(new classFN(), result) : result;
|
|
36
36
|
}
|
|
37
37
|
static stringify(anyJSON, replace, spaces, onCircs) {
|
|
38
38
|
const json = this.cleaned(anyJSON, onCircs);
|
|
@@ -40,14 +40,14 @@ class JSON10 {
|
|
|
40
40
|
}
|
|
41
41
|
static parse(json, circs = []) {
|
|
42
42
|
let res = JSON.parse(json);
|
|
43
|
-
if (
|
|
43
|
+
if (___NS__isArray(circs)) {
|
|
44
44
|
circs.forEach(({ circuralTargetPath, pathToObj }) => {
|
|
45
45
|
if (circuralTargetPath === '') {
|
|
46
|
-
|
|
46
|
+
___NS__set(res, pathToObj, res);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
|
-
let v =
|
|
50
|
-
|
|
49
|
+
let v = ___NS__get(res, circuralTargetPath);
|
|
50
|
+
___NS__set(res, pathToObj, v);
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json10-browser.mjs","sources":["../../../tmp-libs-for-dist-prod/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist-prod/json10/projects/json10/src/json10-browser.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"json10-browser.mjs","sources":["../../../tmp-libs-for-dist-prod/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist-prod/json10/projects/json10/src/json10-browser.ts"],"sourcesContent":["import { ___NS__add, ___NS__after, ___NS__ary, ___NS__assign, ___NS__assignIn, ___NS__assignInWith, ___NS__assignWith, ___NS__at, ___NS__attempt, ___NS__before, ___NS__bind, ___NS__bindAll, ___NS__bindKey, ___NS__camelCase, ___NS__capitalize, ___NS__castArray, ___NS__ceil, ___NS__chain, ___NS__chunk, ___NS__clamp, ___NS__clone, ___NS__cloneDeep, ___NS__cloneDeepWith, ___NS__cloneWith, ___NS__compact, ___NS__concat, ___NS__cond, ___NS__conforms, ___NS__conformsTo, ___NS__constant, ___NS__countBy, ___NS__create, ___NS__curry, ___NS__curryRight, ___NS__debounce, ___NS__deburr, ___NS__defaults, ___NS__defaultsDeep, ___NS__defaultTo, ___NS__defer, ___NS__delay, ___NS__difference, ___NS__differenceBy, ___NS__differenceWith, ___NS__divide, ___NS__drop, ___NS__dropRight, ___NS__dropRightWhile, ___NS__dropWhile, ___NS__each, ___NS__eachRight, ___NS__endsWith, ___NS__entries, ___NS__entriesIn, ___NS__eq, ___NS__escape, ___NS__escapeRegExp, ___NS__every, ___NS__extend, ___NS__extendWith, ___NS__fill, ___NS__filter, ___NS__find, ___NS__findIndex, ___NS__findKey, ___NS__findLast, ___NS__findLastIndex, ___NS__findLastKey, ___NS__first, ___NS__flatMap, ___NS__flatMapDeep, ___NS__flatMapDepth, ___NS__flatten, ___NS__flattenDeep, ___NS__flattenDepth, ___NS__flip, ___NS__floor, ___NS__flow, ___NS__flowRight, ___NS__forEach, ___NS__forEachRight, ___NS__forIn, ___NS__forInRight, ___NS__forOwn, ___NS__forOwnRight, ___NS__fromPairs, ___NS__functions, ___NS__functionsIn, ___NS__get, ___NS__groupBy, ___NS__gt, ___NS__gte, ___NS__has, ___NS__hasIn, ___NS__head, ___NS__identity, ___NS__includes, ___NS__indexOf, ___NS__initial, ___NS__inRange, ___NS__intersection, ___NS__intersectionBy, ___NS__intersectionWith, ___NS__invert, ___NS__invertBy, ___NS__invoke, ___NS__invokeMap, ___NS__isArguments, ___NS__isArray, ___NS__isArrayBuffer, ___NS__isArrayLike, ___NS__isArrayLikeObject, ___NS__isBoolean, ___NS__isBuffer, ___NS__isDate, ___NS__isElement, ___NS__isEmpty, ___NS__isEqual, ___NS__isEqualWith, ___NS__isError, ___NS__isFinite, ___NS__isFunction, ___NS__isInteger, ___NS__isLength, ___NS__isMap, ___NS__isMatch, ___NS__isMatchWith, ___NS__isNaN, ___NS__isNative, ___NS__isNil, ___NS__isNull, ___NS__isNumber, ___NS__isObject, ___NS__isObjectLike, ___NS__isPlainObject, ___NS__isRegExp, ___NS__isSafeInteger, ___NS__isSet, ___NS__isString, ___NS__isSymbol, ___NS__isTypedArray, ___NS__isUndefined, ___NS__isWeakMap, ___NS__isWeakSet, ___NS__iteratee, ___NS__join, ___NS__kebabCase, ___NS__keyBy, ___NS__keys, ___NS__keysIn, ___NS__last, ___NS__lastIndexOf, ___NS__lowerCase, ___NS__lowerFirst, ___NS__lt, ___NS__lte, ___NS__map, ___NS__mapKeys, ___NS__mapValues, ___NS__matches, ___NS__matchesProperty, ___NS__max, ___NS__maxBy, ___NS__mean, ___NS__meanBy, ___NS__memoize, ___NS__merge, ___NS__mergeWith, ___NS__method, ___NS__methodOf, ___NS__min, ___NS__minBy, ___NS__mixin, ___NS__multiply, ___NS__negate, ___NS__noop, ___NS__now, ___NS__nth, ___NS__nthArg, ___NS__omit, ___NS__omitBy, ___NS__once, ___NS__orderBy, ___NS__over, ___NS__overArgs, ___NS__overEvery, ___NS__overSome, ___NS__pad, ___NS__padEnd, ___NS__padStart, ___NS__parseInt, ___NS__partial, ___NS__partialRight, ___NS__partition, ___NS__pick, ___NS__pickBy, ___NS__property, ___NS__propertyOf, ___NS__pull, ___NS__pullAll, ___NS__pullAllBy, ___NS__pullAllWith, ___NS__pullAt, ___NS__random, ___NS__range, ___NS__rangeRight, ___NS__rearg, ___NS__reduce, ___NS__reduceRight, ___NS__reject, ___NS__remove, ___NS__repeat, ___NS__replace, ___NS__rest, ___NS__result, ___NS__reverse, ___NS__round, ___NS__sample, ___NS__sampleSize, ___NS__set, ___NS__setWith, ___NS__shuffle, ___NS__size, ___NS__slice, ___NS__snakeCase, ___NS__some, ___NS__sortBy, ___NS__sortedIndex, ___NS__sortedIndexBy, ___NS__sortedIndexOf, ___NS__sortedLastIndex, ___NS__sortedLastIndexBy, ___NS__sortedLastIndexOf, ___NS__sortedUniq, ___NS__sortedUniqBy, ___NS__split, ___NS__spread, ___NS__startCase, ___NS__startsWith, ___NS__stubArray, ___NS__stubFalse, ___NS__stubObject, ___NS__stubString, ___NS__stubTrue, ___NS__subtract, ___NS__sum, ___NS__sumBy, ___NS__tail, ___NS__take, ___NS__takeRight, ___NS__takeRightWhile, ___NS__takeWhile, ___NS__tap, ___NS__template, ___NS__templateSettings, ___NS__throttle, ___NS__thru, ___NS__times, ___NS__toArray, ___NS__toFinite, ___NS__toInteger, ___NS__toLength, ___NS__toLower, ___NS__toNumber, ___NS__toPairs, ___NS__toPairsIn, ___NS__toPath, ___NS__toPlainObject, ___NS__toSafeInteger, ___NS__toString, ___NS__toUpper, ___NS__transform, ___NS__trim, ___NS__trimEnd, ___NS__trimStart, ___NS__truncate, ___NS__unary, ___NS__unescape, ___NS__union, ___NS__unionBy, ___NS__unionWith, ___NS__uniq, ___NS__uniqBy, ___NS__uniqueId, ___NS__uniqWith, ___NS__unset, ___NS__unzip, ___NS__unzipWith, ___NS__update, ___NS__updateWith, ___NS__upperCase, ___NS__upperFirst, ___NS__values, ___NS__valuesIn, ___NS__without, ___NS__words, ___NS__wrap, ___NS__xor, ___NS__xorBy, ___NS__xorWith, ___NS__zip, ___NS__zipObject, ___NS__zipObjectDeep, ___NS__zipWith } from 'tnp-core/browser-prod';\nimport { walk, Models__NS__AdditionalIteratorOptions, Models__NS__Circ, Models__NS__InDBType, Models__NS__InternalValues, Models__NS__StartIteratorOptions, Models__NS__Ver } from 'lodash-walk-object/browser-prod';\nexport type Circ = Models__NS__Circ;\nimport { CLASS } from 'typescript-class-helpers/browser-prod';\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 (!___NS__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 = ___NS__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 (___NS__isObject(value) && options.isCircural) {\n ___NS__set(result, lodashPath, null)\n } else {\n ___NS__set(result, lodashPath, ___NS__cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (___NS__isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return ___NS__isFunction(classFN) ? ___NS__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 (___NS__isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n ___NS__set(res, pathToObj, res)\n } else {\n let v = ___NS__get(res, circuralTargetPath);\n ___NS__set(res, pathToObj, v)\n }\n\n })\n }\n return res;\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;AAEzC,YAAA,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE;AAC9B,gBAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;YACzB;QAEF,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AAC7C,QAAA,OAAO,MAAM;IACf;AAGO,IAAA,OAAO,OAAO,CAAC,IAAI,EAAE,OAAgC,EAAE,OAK3D,EAAA;;AAED,QAAA,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE;AAC7C,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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AC,GAAG,EAAE,kBAAkB,CAAC;AAC3C,oBAAA,UAAU,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;gBAC/B;AAEF,YAAA,CAAC,CAAC;QACJ;AACA,QAAA,OAAO,GAAG;IACZ;AACD;;AC3ED;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import {
|
|
2
|
+
import { Models__NS__Circ } from 'lodash-walk-object/browser-prod';
|
|
3
3
|
|
|
4
|
-
type Circ =
|
|
4
|
+
type Circ = Models__NS__Circ;
|
|
5
5
|
declare class JSON10 {
|
|
6
6
|
static structureArray(anyJSON: Object, options?: {
|
|
7
7
|
include?: string[];
|
|
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
25
25
|
/**
|
|
26
26
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
27
27
|
*/
|
|
28
|
-
exports.CURRENT_PACKAGE_VERSION = '21.0.
|
|
28
|
+
exports.CURRENT_PACKAGE_VERSION = '21.0.19';
|
|
29
29
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
30
30
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
package/lib/package.json
CHANGED
|
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
25
25
|
/**
|
|
26
26
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
27
27
|
*/
|
|
28
|
-
exports.CURRENT_PACKAGE_VERSION = '21.0.
|
|
28
|
+
exports.CURRENT_PACKAGE_VERSION = '21.0.19';
|
|
29
29
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
30
30
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
package/lib-prod/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type Circ =
|
|
1
|
+
import { Models__NS__Circ } from 'lodash-walk-object/lib-prod';
|
|
2
|
+
export type Circ = Models__NS__Circ;
|
|
3
3
|
export declare class JSON10 {
|
|
4
4
|
static structureArray(anyJSON: Object, options?: {
|
|
5
5
|
include?: string[];
|
package/lib-prod/index.js
CHANGED
|
@@ -12,7 +12,7 @@ class JSON10 {
|
|
|
12
12
|
let pathes = [];
|
|
13
13
|
const { include, exclude } = options || {};
|
|
14
14
|
lib_prod_2.walk.Object(anyJSON, (value, lodashPath) => {
|
|
15
|
-
if (!lib_prod_1.
|
|
15
|
+
if (!(0, lib_prod_1.___NS__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 = lib_prod_1.
|
|
23
|
+
const result = (0, lib_prod_1.___NS__isArray)(json) ? [] : {};
|
|
24
24
|
const classFN = lib_prod_3.CLASS.OBJECT(json).isClassObject && lib_prod_3.CLASS.getFromObject(json);
|
|
25
25
|
const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
|
|
26
26
|
const { circs } = lib_prod_2.walk.Object(json, (value, lodashPath, changeValueTo, options) => {
|
|
27
|
-
if (lib_prod_1.
|
|
28
|
-
lib_prod_1.
|
|
27
|
+
if ((0, lib_prod_1.___NS__isObject)(value) && options.isCircural) {
|
|
28
|
+
(0, lib_prod_1.___NS__set)(result, lodashPath, null);
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
|
-
lib_prod_1.
|
|
31
|
+
(0, lib_prod_1.___NS__set)(result, lodashPath, (0, lib_prod_1.___NS__cloneDeep)(value));
|
|
32
32
|
}
|
|
33
33
|
}, { include, exclude, breadthWalk, checkCircural: true });
|
|
34
|
-
if (lib_prod_1.
|
|
34
|
+
if ((0, lib_prod_1.___NS__isFunction)(onCircs)) {
|
|
35
35
|
onCircs(circs);
|
|
36
36
|
}
|
|
37
|
-
return lib_prod_1.
|
|
37
|
+
return (0, lib_prod_1.___NS__isFunction)(classFN) ? (0, lib_prod_1.___NS__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 (lib_prod_1.
|
|
45
|
+
if ((0, lib_prod_1.___NS__isArray)(circs)) {
|
|
46
46
|
circs.forEach(({ circuralTargetPath, pathToObj }) => {
|
|
47
47
|
if (circuralTargetPath === '') {
|
|
48
|
-
lib_prod_1.
|
|
48
|
+
(0, lib_prod_1.___NS__set)(res, pathToObj, res);
|
|
49
49
|
}
|
|
50
50
|
else {
|
|
51
|
-
let v = lib_prod_1.
|
|
52
|
-
lib_prod_1.
|
|
51
|
+
let v = (0, lib_prod_1.___NS__get)(res, circuralTargetPath);
|
|
52
|
+
(0, lib_prod_1.___NS__set)(res, pathToObj, v);
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
package/lib-prod/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,gDAAo8J;AACp8J,0DAAiN;AAEjN,gEAA0D;AAC1D,mCAAmC;AACnC,mCAAmC;AAEnC,kBAAkB;AAElB,MAAa,MAAM;IAEV,MAAM,CAAC,cAAc,CAAC,OAAe,EAAE,OAAoD;QAChG,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,IAAI,EAAS,CAAC;QA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
|
package/lib-prod/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json10",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.19",
|
|
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",
|
|
@@ -47,5 +47,6 @@
|
|
|
47
47
|
"url": "git+https://github.com/darekf77/json10.git"
|
|
48
48
|
},
|
|
49
49
|
"bin": {},
|
|
50
|
-
"peerDependencies": {}
|
|
50
|
+
"peerDependencies": {},
|
|
51
|
+
"devDependencies": {}
|
|
51
52
|
}
|
package/websql/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ___NS__isUndefined, ___NS__isArray, ___NS__isObject, ___NS__set, ___NS__cloneDeep, ___NS__isFunction, ___NS__merge, ___NS__get } from 'tnp-core/websql-prod';
|
|
2
2
|
import { walk } from 'lodash-walk-object/websql-prod';
|
|
3
3
|
import { CLASS } from 'typescript-class-helpers/websql-prod';
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ class JSON10 {
|
|
|
10
10
|
let pathes = [];
|
|
11
11
|
const { include, exclude } = options || {};
|
|
12
12
|
walk.Object(anyJSON, (value, lodashPath) => {
|
|
13
|
-
if (!
|
|
13
|
+
if (!___NS__isUndefined(value)) {
|
|
14
14
|
pathes.push(lodashPath);
|
|
15
15
|
}
|
|
16
16
|
}, { include, exclude, checkCircural: true });
|
|
@@ -18,21 +18,21 @@ class JSON10 {
|
|
|
18
18
|
}
|
|
19
19
|
static cleaned(json, onCircs, options) {
|
|
20
20
|
// console.log('BETTER SRUGUB', json)
|
|
21
|
-
const result =
|
|
21
|
+
const result = ___NS__isArray(json) ? [] : {};
|
|
22
22
|
const classFN = CLASS.OBJECT(json).isClassObject && CLASS.getFromObject(json);
|
|
23
23
|
const { exclude, include, breadthWalk } = options || { exclude: [], include: [], breadthWalk: false };
|
|
24
24
|
const { circs } = walk.Object(json, (value, lodashPath, changeValueTo, options) => {
|
|
25
|
-
if (
|
|
26
|
-
|
|
25
|
+
if (___NS__isObject(value) && options.isCircural) {
|
|
26
|
+
___NS__set(result, lodashPath, null);
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
29
|
-
|
|
29
|
+
___NS__set(result, lodashPath, ___NS__cloneDeep(value));
|
|
30
30
|
}
|
|
31
31
|
}, { include, exclude, breadthWalk, checkCircural: true });
|
|
32
|
-
if (
|
|
32
|
+
if (___NS__isFunction(onCircs)) {
|
|
33
33
|
onCircs(circs);
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return ___NS__isFunction(classFN) ? ___NS__merge(new classFN(), result) : result;
|
|
36
36
|
}
|
|
37
37
|
static stringify(anyJSON, replace, spaces, onCircs) {
|
|
38
38
|
const json = this.cleaned(anyJSON, onCircs);
|
|
@@ -40,14 +40,14 @@ class JSON10 {
|
|
|
40
40
|
}
|
|
41
41
|
static parse(json, circs = []) {
|
|
42
42
|
let res = JSON.parse(json);
|
|
43
|
-
if (
|
|
43
|
+
if (___NS__isArray(circs)) {
|
|
44
44
|
circs.forEach(({ circuralTargetPath, pathToObj }) => {
|
|
45
45
|
if (circuralTargetPath === '') {
|
|
46
|
-
|
|
46
|
+
___NS__set(res, pathToObj, res);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
|
-
let v =
|
|
50
|
-
|
|
49
|
+
let v = ___NS__get(res, circuralTargetPath);
|
|
50
|
+
___NS__set(res, pathToObj, v);
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json10-websql.mjs","sources":["../../../tmp-libs-for-dist-websql-prod/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist-websql-prod/json10/projects/json10/src/json10-websql.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"json10-websql.mjs","sources":["../../../tmp-libs-for-dist-websql-prod/json10/projects/json10/src/lib/index.ts","../../../tmp-libs-for-dist-websql-prod/json10/projects/json10/src/json10-websql.ts"],"sourcesContent":["import { ___NS__add, ___NS__after, ___NS__ary, ___NS__assign, ___NS__assignIn, ___NS__assignInWith, ___NS__assignWith, ___NS__at, ___NS__attempt, ___NS__before, ___NS__bind, ___NS__bindAll, ___NS__bindKey, ___NS__camelCase, ___NS__capitalize, ___NS__castArray, ___NS__ceil, ___NS__chain, ___NS__chunk, ___NS__clamp, ___NS__clone, ___NS__cloneDeep, ___NS__cloneDeepWith, ___NS__cloneWith, ___NS__compact, ___NS__concat, ___NS__cond, ___NS__conforms, ___NS__conformsTo, ___NS__constant, ___NS__countBy, ___NS__create, ___NS__curry, ___NS__curryRight, ___NS__debounce, ___NS__deburr, ___NS__defaults, ___NS__defaultsDeep, ___NS__defaultTo, ___NS__defer, ___NS__delay, ___NS__difference, ___NS__differenceBy, ___NS__differenceWith, ___NS__divide, ___NS__drop, ___NS__dropRight, ___NS__dropRightWhile, ___NS__dropWhile, ___NS__each, ___NS__eachRight, ___NS__endsWith, ___NS__entries, ___NS__entriesIn, ___NS__eq, ___NS__escape, ___NS__escapeRegExp, ___NS__every, ___NS__extend, ___NS__extendWith, ___NS__fill, ___NS__filter, ___NS__find, ___NS__findIndex, ___NS__findKey, ___NS__findLast, ___NS__findLastIndex, ___NS__findLastKey, ___NS__first, ___NS__flatMap, ___NS__flatMapDeep, ___NS__flatMapDepth, ___NS__flatten, ___NS__flattenDeep, ___NS__flattenDepth, ___NS__flip, ___NS__floor, ___NS__flow, ___NS__flowRight, ___NS__forEach, ___NS__forEachRight, ___NS__forIn, ___NS__forInRight, ___NS__forOwn, ___NS__forOwnRight, ___NS__fromPairs, ___NS__functions, ___NS__functionsIn, ___NS__get, ___NS__groupBy, ___NS__gt, ___NS__gte, ___NS__has, ___NS__hasIn, ___NS__head, ___NS__identity, ___NS__includes, ___NS__indexOf, ___NS__initial, ___NS__inRange, ___NS__intersection, ___NS__intersectionBy, ___NS__intersectionWith, ___NS__invert, ___NS__invertBy, ___NS__invoke, ___NS__invokeMap, ___NS__isArguments, ___NS__isArray, ___NS__isArrayBuffer, ___NS__isArrayLike, ___NS__isArrayLikeObject, ___NS__isBoolean, ___NS__isBuffer, ___NS__isDate, ___NS__isElement, ___NS__isEmpty, ___NS__isEqual, ___NS__isEqualWith, ___NS__isError, ___NS__isFinite, ___NS__isFunction, ___NS__isInteger, ___NS__isLength, ___NS__isMap, ___NS__isMatch, ___NS__isMatchWith, ___NS__isNaN, ___NS__isNative, ___NS__isNil, ___NS__isNull, ___NS__isNumber, ___NS__isObject, ___NS__isObjectLike, ___NS__isPlainObject, ___NS__isRegExp, ___NS__isSafeInteger, ___NS__isSet, ___NS__isString, ___NS__isSymbol, ___NS__isTypedArray, ___NS__isUndefined, ___NS__isWeakMap, ___NS__isWeakSet, ___NS__iteratee, ___NS__join, ___NS__kebabCase, ___NS__keyBy, ___NS__keys, ___NS__keysIn, ___NS__last, ___NS__lastIndexOf, ___NS__lowerCase, ___NS__lowerFirst, ___NS__lt, ___NS__lte, ___NS__map, ___NS__mapKeys, ___NS__mapValues, ___NS__matches, ___NS__matchesProperty, ___NS__max, ___NS__maxBy, ___NS__mean, ___NS__meanBy, ___NS__memoize, ___NS__merge, ___NS__mergeWith, ___NS__method, ___NS__methodOf, ___NS__min, ___NS__minBy, ___NS__mixin, ___NS__multiply, ___NS__negate, ___NS__noop, ___NS__now, ___NS__nth, ___NS__nthArg, ___NS__omit, ___NS__omitBy, ___NS__once, ___NS__orderBy, ___NS__over, ___NS__overArgs, ___NS__overEvery, ___NS__overSome, ___NS__pad, ___NS__padEnd, ___NS__padStart, ___NS__parseInt, ___NS__partial, ___NS__partialRight, ___NS__partition, ___NS__pick, ___NS__pickBy, ___NS__property, ___NS__propertyOf, ___NS__pull, ___NS__pullAll, ___NS__pullAllBy, ___NS__pullAllWith, ___NS__pullAt, ___NS__random, ___NS__range, ___NS__rangeRight, ___NS__rearg, ___NS__reduce, ___NS__reduceRight, ___NS__reject, ___NS__remove, ___NS__repeat, ___NS__replace, ___NS__rest, ___NS__result, ___NS__reverse, ___NS__round, ___NS__sample, ___NS__sampleSize, ___NS__set, ___NS__setWith, ___NS__shuffle, ___NS__size, ___NS__slice, ___NS__snakeCase, ___NS__some, ___NS__sortBy, ___NS__sortedIndex, ___NS__sortedIndexBy, ___NS__sortedIndexOf, ___NS__sortedLastIndex, ___NS__sortedLastIndexBy, ___NS__sortedLastIndexOf, ___NS__sortedUniq, ___NS__sortedUniqBy, ___NS__split, ___NS__spread, ___NS__startCase, ___NS__startsWith, ___NS__stubArray, ___NS__stubFalse, ___NS__stubObject, ___NS__stubString, ___NS__stubTrue, ___NS__subtract, ___NS__sum, ___NS__sumBy, ___NS__tail, ___NS__take, ___NS__takeRight, ___NS__takeRightWhile, ___NS__takeWhile, ___NS__tap, ___NS__template, ___NS__templateSettings, ___NS__throttle, ___NS__thru, ___NS__times, ___NS__toArray, ___NS__toFinite, ___NS__toInteger, ___NS__toLength, ___NS__toLower, ___NS__toNumber, ___NS__toPairs, ___NS__toPairsIn, ___NS__toPath, ___NS__toPlainObject, ___NS__toSafeInteger, ___NS__toString, ___NS__toUpper, ___NS__transform, ___NS__trim, ___NS__trimEnd, ___NS__trimStart, ___NS__truncate, ___NS__unary, ___NS__unescape, ___NS__union, ___NS__unionBy, ___NS__unionWith, ___NS__uniq, ___NS__uniqBy, ___NS__uniqueId, ___NS__uniqWith, ___NS__unset, ___NS__unzip, ___NS__unzipWith, ___NS__update, ___NS__updateWith, ___NS__upperCase, ___NS__upperFirst, ___NS__values, ___NS__valuesIn, ___NS__without, ___NS__words, ___NS__wrap, ___NS__xor, ___NS__xorBy, ___NS__xorWith, ___NS__zip, ___NS__zipObject, ___NS__zipObjectDeep, ___NS__zipWith } from 'tnp-core/websql-prod';\nimport { walk, Models__NS__AdditionalIteratorOptions, Models__NS__Circ, Models__NS__InDBType, Models__NS__InternalValues, Models__NS__StartIteratorOptions, Models__NS__Ver } from 'lodash-walk-object/websql-prod';\nexport type Circ = Models__NS__Circ;\nimport { CLASS } from 'typescript-class-helpers/websql-prod';\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 (!___NS__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 = ___NS__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 (___NS__isObject(value) && options.isCircural) {\n ___NS__set(result, lodashPath, null)\n } else {\n ___NS__set(result, lodashPath, ___NS__cloneDeep(value))\n }\n\n }, { include, exclude, breadthWalk, checkCircural: true });\n\n if (___NS__isFunction(onCircs)) {\n onCircs(circs)\n }\n\n return ___NS__isFunction(classFN) ? ___NS__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 (___NS__isArray(circs)) {\n circs.forEach(({ circuralTargetPath, pathToObj }) => {\n\n if (circuralTargetPath === '') {\n ___NS__set(res, pathToObj, res)\n } else {\n let v = ___NS__get(res, circuralTargetPath);\n ___NS__set(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AEG;;;;"}
|
package/websql-prod/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import {
|
|
2
|
+
import { Models__NS__Circ } from 'lodash-walk-object/websql-prod';
|
|
3
3
|
|
|
4
|
-
type Circ =
|
|
4
|
+
type Circ = Models__NS__Circ;
|
|
5
5
|
declare class JSON10 {
|
|
6
6
|
static structureArray(anyJSON: Object, options?: {
|
|
7
7
|
include?: string[];
|