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

@thi.ng/paths

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/paths - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

CHANGELOG.md

5

index.js

@@ -134,3 +134,2 @@ "use strict";

const ks = toPath(path);
// (s, v) => ({ ...s, [k]: f((s || {})[k], v) });
let [a, b, c, d] = ks;

@@ -145,5 +144,5 @@ switch (ks.length) {

case 3:
return (s, v) => (Object.assign({}, s, { [a]: Object.assign({}, s[a], { [b]: Object.assign({}, s[b], { [c]: v }) }) }));
return (s, v) => (Object.assign({}, s, { [a]: Object.assign({}, (s = s[a]), { [b]: Object.assign({}, s[b], { [c]: v }) }) }));
case 4:
return (s, v) => (Object.assign({}, s, { [a]: Object.assign({}, s[a], { [b]: Object.assign({}, s[b], { [c]: Object.assign({}, s[c], { [d]: v }) }) }) }));
return (s, v) => (Object.assign({}, s, { [a]: Object.assign({}, (s = s[a]), { [b]: Object.assign({}, (s = s[b]), { [c]: Object.assign({}, s[c], { [d]: v }) }) }) }));
default:

@@ -150,0 +149,0 @@ const kl = ks[ks.length - 1];

4

package.json
{
"name": "@thi.ng/paths",
"version": "1.0.0",
"version": "1.1.0",
"description": "immutable, optimized path-based object accessors",

@@ -42,2 +42,2 @@ "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