@pushrocks/smartjson
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -1,6 +0,13 @@ | ||
/// <reference types="fast-json-stable-stringify" /> | ||
import * as plugins from './smartjson.plugins'; | ||
export declare class Smartjson { | ||
static parse: (text: string, reviver?: (this: any, key: string, value: any) => any) => any; | ||
static stringify: (objArg: any, optionsArg: plugins.stableJson.Options) => string; | ||
static stringify: (objArg: any, optionsArg: { | ||
cmp?: (a: { | ||
key: string; | ||
value: any; | ||
}, b: { | ||
key: string; | ||
value: any; | ||
}) => number; | ||
cycles?: boolean; | ||
}) => any; | ||
saveableProperties: string[]; | ||
@@ -7,0 +14,0 @@ /** |
@@ -33,2 +33,3 @@ "use strict"; | ||
} | ||
exports.Smartjson = Smartjson; | ||
// ====== | ||
@@ -41,3 +42,2 @@ // STATIC | ||
}; | ||
exports.Smartjson = Smartjson; | ||
/** | ||
@@ -54,2 +54,2 @@ * Decorator that marks a property as foldable | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSw2REFBK0M7QUFFL0MsTUFBYSxTQUFTO0lBZ0JwQjs7T0FFRztJQUNJLFlBQVk7UUFDakIsTUFBTSxlQUFlLEdBQTJCLEVBQUUsQ0FBQztRQUNuRCxLQUFLLE1BQU0sT0FBTyxJQUFJLElBQUksQ0FBQyxrQkFBa0IsRUFBRTtZQUM3QyxlQUFlLENBQUMsT0FBTyxDQUFDLEdBQUcsT0FBTyxDQUFDLGVBQWUsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQztTQUNuRTtRQUNELE9BQU8sZUFBZSxDQUFDO0lBQ3pCLENBQUM7SUFFRDs7T0FFRztJQUNJLGdCQUFnQixDQUFDLFNBQVM7UUFDL0IsS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yxrQkFBa0IsR0FBRyxFQUFFLENBQUM7U0FDaEM7UUFDRCxNQUFNLENBQUMsa0JBQWtCLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQ3RDLENBQUMsQ0FBQztBQUNKLENBQUMsQ0FBQyJ9 |
import lodashCloneDeep from 'lodash.clonedeep'; | ||
import stableJson from 'fast-json-stable-stringify'; | ||
declare const stableJson: any; | ||
export { lodashCloneDeep, stableJson }; | ||
export interface IStableJsonTypes { | ||
Comparator: (a: IStableJsonTypes['CompareDescriptor'], b: IStableJsonTypes['CompareDescriptor']) => number; | ||
CompareDescriptor: { | ||
key: string; | ||
value: any; | ||
}; | ||
Options: { | ||
cmp?: (a: IStableJsonTypes['CompareDescriptor'], b: IStableJsonTypes['CompareDescriptor']) => number; | ||
cycles?: boolean; | ||
}; | ||
} |
@@ -9,3 +9,4 @@ "use strict"; | ||
const fast_json_stable_stringify_1 = __importDefault(require("fast-json-stable-stringify")); | ||
exports.stableJson = fast_json_stable_stringify_1.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRqc29uLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGpzb24ucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHdFQUErQztBQUd0QywwQkFIRiwwQkFBZSxDQUdFO0FBRnhCLDRGQUFvRDtBQUUxQixxQkFGbkIsb0NBQVUsQ0FFbUIifQ== | ||
const stableJson = fast_json_stable_stringify_1.default; | ||
exports.stableJson = stableJson; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRqc29uLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGpzb24ucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHdFQUErQztBQUt0QywwQkFMRiwwQkFBZSxDQUtFO0FBSnhCLDRGQUFxRDtBQUVyRCxNQUFNLFVBQVUsR0FBRyxvQ0FBa0IsQ0FBQztBQUVaLGdDQUFVIn0= |
{ | ||
"name": "@pushrocks/smartjson", | ||
"version": "3.0.8", | ||
"version": "3.0.9", | ||
"private": false, | ||
@@ -23,8 +23,8 @@ "description": "typed json handlers", | ||
"devDependencies": { | ||
"@gitzone/tsbuild": "^2.1.11", | ||
"@gitzone/tsbuild": "^2.1.17", | ||
"@gitzone/tsrun": "^1.2.8", | ||
"@gitzone/tstest": "^1.0.24", | ||
"@pushrocks/tapbundle": "^3.0.13", | ||
"@types/node": "^12.7.2", | ||
"tslint": "^5.19.0", | ||
"@gitzone/tstest": "^1.0.28", | ||
"@pushrocks/tapbundle": "^3.2.0", | ||
"@types/node": "^12.12.17", | ||
"tslint": "^5.20.1", | ||
"tslint-config-prettier": "^1.18.0" | ||
@@ -34,3 +34,3 @@ }, | ||
"@types/fast-json-stable-stringify": "^2.0.0", | ||
"fast-json-stable-stringify": "^2.0.0", | ||
"fast-json-stable-stringify": "^2.1.0", | ||
"lodash.clonedeep": "^4.5.0" | ||
@@ -37,0 +37,0 @@ }, |
@@ -9,3 +9,3 @@ import * as plugins from './smartjson.plugins'; | ||
public static stringify = (objArg: any, optionsArg: plugins.stableJson.Options) => { | ||
public static stringify = (objArg: any, optionsArg: plugins.IStableJsonTypes['Options']) => { | ||
return plugins.stableJson(objArg, optionsArg); | ||
@@ -12,0 +12,0 @@ } |
import lodashCloneDeep from 'lodash.clonedeep'; | ||
import stableJson from 'fast-json-stable-stringify'; | ||
import stableJson2 from 'fast-json-stable-stringify'; | ||
const stableJson = stableJson2 as any; | ||
export { lodashCloneDeep, stableJson }; | ||
export interface IStableJsonTypes { | ||
Comparator: (a: IStableJsonTypes['CompareDescriptor'], b: IStableJsonTypes['CompareDescriptor']) => number; | ||
CompareDescriptor: { | ||
key: string; | ||
value: any; | ||
}; | ||
Options: { | ||
cmp?: (a: IStableJsonTypes['CompareDescriptor'], b: IStableJsonTypes['CompareDescriptor']) => number; | ||
cycles?: boolean; | ||
}; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10509
177