Comparing version 0.0.2 to 0.1.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62719
1745
66
6