@shelf/jest-mongodb
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -1,7 +0,3 @@ | ||
const {resolve} = require('path'); | ||
const preset = require('./lib').default; | ||
module.exports = { | ||
globalSetup: resolve(__dirname, './setup.js'), | ||
globalTeardown: resolve(__dirname, './teardown.js'), | ||
testEnvironment: resolve(__dirname, './environment.js'), | ||
}; | ||
module.exports = preset; |
{ | ||
"name": "@shelf/jest-mongodb", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"private": false, | ||
@@ -20,17 +20,28 @@ "description": "Run your tests using Jest & MongoDB in Memory server", | ||
}, | ||
"files": [ | ||
"jest-preset.js", | ||
"lib/" | ||
], | ||
"scripts": { | ||
"lint": "eslint . --fix --ext .js,.json,.ts --quiet", | ||
"build": "rm -rf lib/ && yarn build:types && babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts'", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib", | ||
"lint": "eslint . --ext .js,.ts,.json --fix", | ||
"lint:ci": "eslint . --ext .js,.ts,.json", | ||
"prepack": "yarn build", | ||
"test": "jest", | ||
"test:repl": "MONGO_MEMORY_SERVER_FILE=jest-mongodb-config-repl.js jest" | ||
"test:repl": "MONGO_MEMORY_SERVER_FILE=jest-mongodb-config-repl.js jest", | ||
"type-check": "tsc --noEmit", | ||
"type-check:watch": "npm run type-check -- --watch" | ||
}, | ||
"lint-staged": { | ||
"*.{html,md,yml}": [ | ||
"prettier --write", | ||
"git add" | ||
"prettier --write" | ||
], | ||
"*.{js,json}": [ | ||
"eslint --fix", | ||
"git add" | ||
"*.{ts,js,json}": [ | ||
"eslint --fix" | ||
] | ||
}, | ||
"babel": { | ||
"extends": "@shelf/babel-config/backend" | ||
}, | ||
"prettier": "@shelf/prettier-config", | ||
@@ -42,13 +53,19 @@ "jest": { | ||
"debug": "4.3.4", | ||
"mongodb-memory-server": "7.6.3", | ||
"mongodb-memory-server": "8.8.0", | ||
"uuid": "8.3.2" | ||
}, | ||
"devDependencies": { | ||
"@shelf/eslint-config": "2.18.0", | ||
"@babel/cli": "7.18.10", | ||
"@babel/core": "7.18.10", | ||
"@shelf/babel-config": "1.2.0", | ||
"@shelf/eslint-config": "2.22.0", | ||
"@shelf/prettier-config": "1.0.0", | ||
"eslint": "8.19.0", | ||
"@shelf/tsconfig": "0.0.8", | ||
"@types/jest": "28.1.6", | ||
"@types/node": "16", | ||
"eslint": "8.22.0", | ||
"husky": "8.0.1", | ||
"jest": "28.1.2", | ||
"jest": "28.1.3", | ||
"lint-staged": "13.0.3", | ||
"mongodb": "4.7.0", | ||
"mongodb": "4.9.0", | ||
"prettier": "2.7.1", | ||
@@ -55,0 +72,0 @@ "typescript": "4.7.4" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
14886
15
17
182
2
+ Addeddenque@2.1.0(transitive)
+ Addedmongodb@4.7.0(transitive)
+ Addedmongodb-memory-server@8.8.0(transitive)
+ Addedmongodb-memory-server-core@8.8.0(transitive)
+ Addednew-find-package-json@2.0.0(transitive)
+ Addedstring_decoder@1.3.0(transitive)
- Removed@types/bson@4.2.0(transitive)
- Removed@types/mongodb@3.6.20(transitive)
- Removedbl@2.2.1(transitive)
- Removedbson@1.1.6(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddenque@1.5.1(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedmongodb@3.7.4(transitive)
- Removedmongodb-memory-server@7.6.3(transitive)
- Removedmongodb-memory-server-core@7.6.3(transitive)
- Removednew-find-package-json@1.2.0(transitive)
- Removedoptional-require@1.1.8(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedrequire-at@1.0.6(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
Updatedmongodb-memory-server@8.8.0