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

modifyjs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modifyjs - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

8

package.json
{
"name": "modifyjs",
"version": "0.0.2",
"version": "0.1.0",
"description": "Modify your objects with a mongo syntax.",
"main": "index.js",
"main": "dist/modify.js",
"scripts": {
"test": "jest"
"test": "jest",
"build": "babel src --out-dir dist"
},

@@ -26,2 +27,3 @@ "repository": {

"devDependencies": {
"babel-cli": "^6.24.1",
"babel-jest": "^19.0.0",

@@ -28,0 +30,0 @@ "babel-preset-es2015-without-strict": "0.0.4",

@@ -21,3 +21,5 @@ # modifyjs

### Installation
```
npm install modifyjs
```

@@ -24,0 +26,0 @@ ### Implemented:

@@ -12,3 +12,6 @@ import update from 'immutability-helper';

const updatedObject = modify(myObject, {$currentDate: "lastModified"});
expect(updatedObject).toEqual()
const expectedObject = {existingItem: "here", lastModified: new Date()}; // placeholder, obviously wrong
expect(updatedObject).toEqual(expectedObject);
});

@@ -15,0 +18,0 @@ })

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