@ts-common/source-map
Advanced tools
Comparing version 0.4.3 to 0.5.0
@@ -57,6 +57,6 @@ import { StringMap } from "@ts-common/string-map"; | ||
*/ | ||
export declare const stringMapMerge: <T extends json.Json>(...array: (StringMap<T> | undefined)[]) => StringMap<T>; | ||
export declare const stringMapMerge: <T extends json.Json>(...array: readonly (StringMap<T> | undefined)[]) => StringMap<T>; | ||
export declare const propertySetMap: <T extends sm.PartialStringMap<keyof T & string, json.Json>>(source: T, f: propertySet.PartialFactory<T>) => T; | ||
export declare const getRootObjectInfo: (info: ObjectInfo) => RootObjectInfo; | ||
export declare const getPath: (info: ObjectInfo) => ReadonlyArray<string | number>; | ||
export declare const getPath: (info: ObjectInfo) => readonly (string | number)[]; | ||
/** | ||
@@ -63,0 +63,0 @@ * Returns a deep clone of `source` and set a source-map for each member. |
{ | ||
"name": "@ts-common/source-map", | ||
"version": "0.4.3", | ||
"version": "0.5.0", | ||
"description": "Source Map", | ||
@@ -54,13 +54,13 @@ "main": "dist/index.js", | ||
"mocha": "^6.0.2", | ||
"mocha-junit-reporter": "^1.18.0", | ||
"mocha-junit-reporter": "^1.21.0", | ||
"nyc": "^13.3.0", | ||
"tslib": "^1.9.3", | ||
"typescript": "^3.3.4000" | ||
"typescript": "^3.4.1" | ||
}, | ||
"dependencies": { | ||
"@ts-common/iterator": "^0.2.0", | ||
"@ts-common/json": "^0.2.1", | ||
"@ts-common/property-set": "^0.0.10", | ||
"@ts-common/string-map": "^0.2.6" | ||
"@ts-common/iterator": "^0.3.0", | ||
"@ts-common/json": "^0.3.0", | ||
"@ts-common/property-set": "^0.1.0", | ||
"@ts-common/string-map": "^0.3.0" | ||
} | ||
} |
@@ -168,3 +168,3 @@ import { StringMap } from "@ts-common/string-map" | ||
export const stringMapMerge = <T extends Data>( | ||
...array: Array<StringMap<T>|undefined> | ||
...array: readonly (StringMap<T>|undefined)[] | ||
): StringMap<T> => { | ||
@@ -216,3 +216,3 @@ if (array.length === 0) { | ||
export const getPath = (info: ObjectInfo): ReadonlyArray<string|number> => | ||
export const getPath = (info: ObjectInfo): readonly (string|number)[] => | ||
_.reverse(_.filterMap(getReversedInfoIterator(info), i => i.isChild ? i.property : undefined)) | ||
@@ -219,0 +219,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
45223
+ Added@ts-common/iterator@0.3.6(transitive)
+ Added@ts-common/json@0.3.1(transitive)
+ Added@ts-common/property-set@0.1.0(transitive)
+ Added@ts-common/string-map@0.3.0(transitive)
- Removed@ts-common/iterator@0.2.0(transitive)
- Removed@ts-common/json@0.2.1(transitive)
- Removed@ts-common/property-set@0.0.10(transitive)
- Removed@ts-common/string-map@0.2.6(transitive)
- Removed@ts-common/tuple@0.0.6(transitive)
Updated@ts-common/iterator@^0.3.0
Updated@ts-common/json@^0.3.0
Updated@ts-common/string-map@^0.3.0