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.1.1 to 0.1.2

1

index.d.ts

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

export declare const getPath: (info: ObjectInfo) => ReadonlyArray<string | number>;
export declare const cloneDeep: <T extends Data>(source: T) => T;

@@ -105,2 +105,16 @@ "use strict";

exports.getPath = (info) => _.reverse(getReversedPath(info));
exports.cloneDeep = (source) => {
const data = source;
if (data === null ||
typeof data === "boolean" ||
typeof data === "number" ||
typeof data === "string") {
return source;
}
const result = Array.isArray(data) ?
data.map(exports.cloneDeep) :
sm.map(data, exports.cloneDeep);
exports.copyInfo(data, result);
return result;
};
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "@ts-common/source-map",
"version": "0.1.1",
"version": "0.1.2",
"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