Socket
Socket
Sign inDemoInstall

@jsenv/url-meta

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/url-meta - npm Package Compare versions

Comparing version 8.5.1 to 8.5.2

5

package.json
{
"name": "@jsenv/url-meta",
"version": "8.5.1",
"version": "8.5.2",
"license": "MIT",

@@ -28,6 +28,3 @@ "repository": {

],
"scripts": {
"test": "node --conditions=development ./scripts/test.mjs"
},
"dependencies": {}
}

16

src/url_meta.js

@@ -24,3 +24,3 @@ import { applyPattern } from "./pattern_matching.js";

patternResolved = String(new URL(pattern, baseUrl));
} catch (e) {
} catch {
// it's not really an url, no need to perform url resolution nor encoding

@@ -89,9 +89,15 @@ patternResolved = pattern;

const deepAssign = (firstValue, secondValue) => {
if (!isPlainObject(firstValue) || !isPlainObject(secondValue)) {
if (!isPlainObject(firstValue)) {
if (isPlainObject(secondValue)) {
return deepAssign({}, secondValue);
}
return secondValue;
}
if (!isPlainObject(secondValue)) {
return secondValue;
}
for (const key of Object.keys(secondValue)) {
const leftValue = firstValue[key];
const rightValue = secondValue[key];
firstValue[key] = deepAssign(leftValue, rightValue);
const leftPopertyValue = firstValue[key];
const rightPropertyValue = secondValue[key];
firstValue[key] = deepAssign(leftPopertyValue, rightPropertyValue);
}

@@ -98,0 +104,0 @@ return firstValue;

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