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

object-rewrite

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-rewrite - npm Package Compare versions

Comparing version 4.1.13 to 4.2.0

2

lib/util/plugin.js

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

return Object.entries(input).reduce((p, [k, v]) => {
extractKeys(`${prefix}.${k}`, v).forEach(e => p.push(e));
extractKeys(join([prefix, k]), v).forEach(e => p.push(e));
return p;

@@ -53,0 +53,0 @@ }, []);

@@ -56,3 +56,8 @@ "use strict";

assert(p.schema(r) === true);
set(value, p.targetRel, r);
if (p.targetRel === '*') {
Object.assign(value, r);
} else {
set(value, p.targetRel, r);
}
};

@@ -59,0 +64,0 @@

{
"name": "object-rewrite",
"version": "4.1.13",
"version": "4.2.0",
"description": "Rewrite Object(s) in place using plugins.",

@@ -13,24 +13,24 @@ "main": "lib/index.js",

"object-fields": "2.0.14",
"object-scan": "13.1.6"
"object-scan": "13.3.4"
},
"devDependencies": {
"@babel/cli": "7.11.6",
"@babel/core": "7.11.6",
"@babel/register": "7.11.5",
"@blackflux/eslint-plugin-rules": "1.3.39",
"@blackflux/robo-config-plugin": "3.10.2",
"@babel/cli": "7.12.1",
"@babel/core": "7.12.3",
"@babel/register": "7.12.1",
"@blackflux/eslint-plugin-rules": "1.3.40",
"@blackflux/robo-config-plugin": "3.10.9",
"babel-eslint": "10.1.0",
"babel-preset-latest-node": "5.0.0",
"chai": "4.2.0",
"coveralls": "3.1.0",
"eslint": "7.9.0",
"eslint": "7.11.0",
"eslint-config-airbnb-base": "14.2.0",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-json": "2.1.2",
"eslint-plugin-markdown": "1.0.2",
"eslint-plugin-mocha": "8.0.0",
"js-gardener": "2.0.174",
"js-gardener": "2.0.177",
"lodash.get": "4.4.2",
"nyc": "15.1.0",
"semantic-release": "17.1.1",
"babel-preset-latest-node": "4.1.0"
"semantic-release": "17.2.1"
},

@@ -37,0 +37,0 @@ "scripts": {

@@ -79,3 +79,3 @@ # object-rewrite

- `target`: field that is created or overwritten
- `target`: field that is created or overwritten, can be `'*'`
- `requires`: See above

@@ -82,0 +82,0 @@ - `fn`: return value is used for target. Relative to prefix

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