@ts-common/source-map
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -31,2 +31,3 @@ import { StringMap } from "@ts-common/string-map"; | ||
export declare const stringMapMap: <T extends Data, R extends Data>(source: StringMap<T>, f: (v: T, k: string) => R) => StringMap<R>; | ||
export declare const stringMapMerge: <T extends Data>(source: StringMap<T>, b: StringMap<T>) => StringMap<T>; | ||
declare type PartialStringMap<K> = { | ||
@@ -33,0 +34,0 @@ readonly [k in K & string]?: Data; |
@@ -56,2 +56,10 @@ "use strict"; | ||
}; | ||
exports.stringMapMerge = (source, b) => { | ||
const result = sm.merge(source, b); | ||
if (sm.isEqual(source, result)) { | ||
return source; | ||
} | ||
exports.copyInfo(source, result); | ||
return result; | ||
}; | ||
const toStringMap = (v) => v; | ||
@@ -58,0 +66,0 @@ exports.propertySetMap = (source, f) => { |
{ | ||
"name": "@ts-common/source-map", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Source Map", | ||
@@ -47,4 +47,4 @@ "main": "index.js", | ||
"@ts-common/property-set": "0.0.7", | ||
"@ts-common/string-map": "0.0.13" | ||
"@ts-common/string-map": "0.0.14" | ||
} | ||
} |
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
17730
115
+ Added@ts-common/string-map@0.0.14(transitive)
- Removed@ts-common/string-map@0.0.13(transitive)
Updated@ts-common/string-map@0.0.14