mongoose-update-if-current
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,4 @@ | ||
module.exports=function(e){function t(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.updateIfCurrentPlugin=n.updateIfCurrentPlugin},function(e,t,r){"use strict";function n(e){e.set("saveErrorIfNotFound",!0),e.get("versionKey")||e.set("versionKey","__v");var t=e.get("versionKey");e.pre("save",function(e){this.$where={},this.$where[t]=this[t],this.increment(),e()})}Object.defineProperty(t,"__esModule",{value:!0}),t.updateIfCurrentPlugin=n}]); | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var update_if_current_plugin_1 = require("./update-if-current-plugin"); | ||
exports.updateIfCurrentPlugin = update_if_current_plugin_1.updateIfCurrentPlugin; |
{ | ||
"name": "mongoose-update-if-current", | ||
"version": "1.0.0", | ||
"description": "Optimistic concurrency (OCC) plugin for mongoose", | ||
"version": "1.0.1", | ||
"description": "Optimistic concurrency control (OCC) plugin for mongoose", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"jam": { | ||
"main": "./dist/index.browser.js" | ||
}, | ||
"browser": { | ||
"dist/index.js": "./dist/index.browser.js" | ||
}, | ||
"typings": "typings/index.d.ts", | ||
"engines": { | ||
@@ -17,9 +11,7 @@ "node": ">=4.0.0" | ||
"scripts": { | ||
"build": "webpack || echo not ok", | ||
"build": "gulp", | ||
"test": "jest", | ||
"test:watch": "npm test -- --watch", | ||
"coverage": "npm test -- --coverage --no-cache", | ||
"coverage:watch": "npm run coverage -- --watch", | ||
"prepare": "npm run build && npm test", | ||
"release": "standard-version && npm pack" | ||
"coverage": "jest --coverage --no-cache", | ||
"ci": "npm run build && npm run coverage", | ||
"prepack": "npm run build && npm test" | ||
}, | ||
@@ -51,19 +43,20 @@ "repository": { | ||
"devDependencies": { | ||
"@types/gulp": "^4.0.5", | ||
"@types/jest": "^22.0.0", | ||
"@types/merge2": "^1.1.4", | ||
"@types/mongoose": "^4.7.32", | ||
"@types/node": "^8.5.5", | ||
"browserify": "^15.0.0", | ||
"delete-empty": "^1.0.1", | ||
"dts-bundle": "^0.7.3", | ||
"@types/run-sequence": "0.0.30", | ||
"del": "^3.0.0", | ||
"gulp": "^3.9.1", | ||
"gulp-typescript": "^3.2.3", | ||
"jest": "^22.0.4", | ||
"merge2": "^1.2.0", | ||
"mongoose": ">=4.8.0", | ||
"standard-version": "^4.3.0", | ||
"run-sequence": "^2.2.1", | ||
"ts-jest": "^22.0.1", | ||
"ts-loader": "^3.2.0", | ||
"ts-node": "^4.1.0", | ||
"tslint": "^5.8.0", | ||
"tslint-config-airbnb": "^5.4.2", | ||
"tslint-loader": "^3.5.3", | ||
"typescript": "^2.6.2", | ||
"webpack": "^3.10.0", | ||
"webpack-node-externals": "^1.6.0" | ||
"typescript": "^2.6.2" | ||
}, | ||
@@ -70,0 +63,0 @@ "dependencies": {}, |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
26
0
0
6639
18