Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ts-common/source-map

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-common/source-map - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

6

index.d.ts

@@ -31,2 +31,6 @@ import { StringMap } from "@ts-common/string-map";

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 propertySetMap: <T extends StringMap<string | number | boolean | object | null | undefined>>(source: T, f: propertySet.PartialFactory<T>) => T;
declare type PartialStringMap<K extends string> = {
readonly [k in K]?: Data;
};
export declare const propertySetMap: <T extends PartialStringMap<keyof T & string>>(source: T, f: propertySet.PartialFactory<T>) => T;
export {};

8

index.js

@@ -57,5 +57,6 @@ "use strict";

};
const toStringMap = (v) => v;
exports.propertySetMap = (source, f) => {
const result = propertySet.copyCreate(source, f);
if (sm.isEqual(source, result)) {
if (sm.isEqual(toStringMap(source), toStringMap(result))) {
return source;

@@ -65,4 +66,5 @@ }

const sourceValue = source[k];
if (sourceValue !== undefined) {
exports.copyDataInfo(sourceValue, v);
const vv = v;
if (sourceValue !== undefined && vv !== undefined) {
exports.copyDataInfo(sourceValue, vv);
}

@@ -69,0 +71,0 @@ });

{
"name": "@ts-common/source-map",
"version": "0.0.8",
"version": "0.0.9",
"description": "Source Map",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc