Socket
Socket
Sign inDemoInstall

@typescript-eslint/utils

Package Overview
Dependencies
Maintainers
2
Versions
2103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/utils - npm Package Compare versions

Comparing version 8.4.1-alpha.1 to 8.4.1-alpha.2

15

dist/eslint-utils/deepMerge.js

@@ -22,3 +22,3 @@ "use strict";

const keys = new Set(Object.keys(first).concat(Object.keys(second)));
return Array.from(keys).reduce((acc, key) => {
return Object.fromEntries(Array.from(keys, key => {
const firstHasKey = key in first;

@@ -28,21 +28,22 @@ const secondHasKey = key in second;

const secondValue = second[key];
let value;
if (firstHasKey && secondHasKey) {
if (isObjectNotArray(firstValue) && isObjectNotArray(secondValue)) {
// object type
acc[key] = deepMerge(firstValue, secondValue);
value = deepMerge(firstValue, secondValue);
}
else {
// value type
acc[key] = secondValue;
value = secondValue;
}
}
else if (firstHasKey) {
acc[key] = firstValue;
value = firstValue;
}
else {
acc[key] = secondValue;
value = secondValue;
}
return acc;
}, {});
return [key, value];
}));
}
//# sourceMappingURL=deepMerge.js.map
{
"name": "@typescript-eslint/utils",
"version": "8.4.1-alpha.1",
"version": "8.4.1-alpha.2",
"description": "Utilities for working with TypeScript + ESLint together",

@@ -67,5 +67,5 @@ "files": [

"@eslint-community/eslint-utils": "^4.4.0",
"@typescript-eslint/scope-manager": "8.4.1-alpha.1",
"@typescript-eslint/types": "8.4.1-alpha.1",
"@typescript-eslint/typescript-estree": "8.4.1-alpha.1"
"@typescript-eslint/scope-manager": "8.4.1-alpha.2",
"@typescript-eslint/types": "8.4.1-alpha.2",
"@typescript-eslint/typescript-estree": "8.4.1-alpha.2"
},

@@ -72,0 +72,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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