@ts-common/source-map
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -30,3 +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: (s: import("@ts-common/tuple").Tuple2<string, T>) => import("@ts-common/tuple").Tuple2<string, R>) => StringMap<R>; | ||
export declare const stringMapMap: <T extends Data, R extends Data>(source: StringMap<T>, f: (v: T, k: string) => R) => StringMap<R>; | ||
declare type PartialStringMap<K> = { | ||
@@ -33,0 +33,0 @@ readonly [k in K & string]?: Data; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const string_map_1 = require("@ts-common/string-map"); | ||
const sm = tslib_1.__importStar(require("@ts-common/string-map")); | ||
@@ -46,5 +45,5 @@ const _ = tslib_1.__importStar(require("@ts-common/iterator")); | ||
exports.stringMapMap = (source, f) => { | ||
const result = sm.map(source, e => { | ||
const r = f(e); | ||
exports.copyDataInfo(string_map_1.entryValue(e), string_map_1.entryValue(r)); | ||
const result = sm.map(source, (v, k) => { | ||
const r = f(v, k); | ||
exports.copyDataInfo(v, r); | ||
return r; | ||
@@ -51,0 +50,0 @@ }); |
{ | ||
"name": "@ts-common/source-map", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Source Map", | ||
@@ -47,4 +47,4 @@ "main": "index.js", | ||
"@ts-common/property-set": "0.0.7", | ||
"@ts-common/string-map": "0.0.11" | ||
"@ts-common/string-map": "0.0.12" | ||
} | ||
} |
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
17402
106
+ Added@ts-common/string-map@0.0.12(transitive)
- Removed@ts-common/string-map@0.0.11(transitive)
Updated@ts-common/string-map@0.0.12