@ts-common/source-map
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -30,4 +30,3 @@ import { StringMap } from "@ts-common/string-map"; | ||
export declare const arrayMap: <T extends Data, R extends Data>(source: ReadonlyArray<T>, f: (v: T, i: number) => R) => ReadonlyArray<R>; | ||
export declare const stringMapMap: <T extends Data, R extends Data>(source: StringMap<T>, f: (v: T, k: string) => R) => StringMap<R>; | ||
export declare const stringMapMapOrUndefined: <T extends Data, R extends Data>(source: StringMap<T> | undefined, f: (v: T, k: string) => R) => StringMap<R> | undefined; | ||
export declare const stringMapMap: <T extends Data, R extends Data>(source: StringMap<T> | undefined, f: (v: T, k: string) => R) => StringMap<R>; | ||
export declare const stringMapMerge: <T extends Data>(source: StringMap<T>, b: StringMap<T>) => StringMap<T>; | ||
@@ -34,0 +33,0 @@ declare type PartialStringMap<K> = { |
@@ -45,2 +45,5 @@ "use strict"; | ||
exports.stringMapMap = (source, f) => { | ||
if (source === undefined) { | ||
return {}; | ||
} | ||
const result = sm.map(source, (v, k) => { | ||
@@ -57,3 +60,2 @@ const r = f(v, k); | ||
}; | ||
exports.stringMapMapOrUndefined = (source, f) => source === undefined ? undefined : exports.stringMapMap(source, f); | ||
exports.stringMapMerge = (source, b) => { | ||
@@ -60,0 +62,0 @@ const result = sm.merge(source, b); |
{ | ||
"name": "@ts-common/source-map", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Source Map", | ||
@@ -47,4 +47,4 @@ "main": "index.js", | ||
"@ts-common/property-set": "0.0.7", | ||
"@ts-common/string-map": "0.0.14" | ||
"@ts-common/string-map": "0.0.15" | ||
} | ||
} |
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
118
17802
+ Added@ts-common/string-map@0.0.15(transitive)
Updated@ts-common/string-map@0.0.15