New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@saulx/utils

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saulx/utils - npm Package Compare versions

Comparing version

to
3.2.2

4

dist/deepCopy.d.ts

@@ -1,2 +0,4 @@

declare const deepCopy: (a: object) => object;
declare const deepCopy: <T extends any[] | {
[key: string]: any;
}>(a: T) => T;
export default deepCopy;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const deepCopy = (a) => {
const r = a.constructor === Array ? [] : {};
for (let k in a) {
const r = (Array.isArray(a) ? [] : {});
for (const k in a) {
if (a[k] !== null && typeof a[k] === 'object') {

@@ -7,0 +7,0 @@ r[k] = deepCopy(a[k]);

{
"name": "@saulx/utils",
"main": "./dist/index.js",
"version": "3.2.1",
"version": "3.2.2",
"scripts": {

@@ -6,0 +6,0 @@ "build": "tsc",

Sorry, the diff of this file is not supported yet