This commit is contained in:
2020-08-20 11:44:32 +02:00
parent 4715fc1814
commit 6aceefeb2f
2891 changed files with 11239 additions and 347539 deletions

11
node_modules/bson/HISTORY.md generated vendored
View File

@@ -1,3 +1,14 @@
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.1.5](https://github.com/mongodb/js-bson/compare/v1.1.4...v1.1.5) (2020-08-10)
### Bug Fixes
* **object-id:** harden the duck-typing ([b526145](https://github.com/mongodb/js-bson/commit/b5261450c3bc4abb2e2fb19b5b1a7aba27982d44))
<a name="1.1.3"></a>
## [1.1.3](https://github.com/mongodb/js-bson/compare/v1.1.2...v1.1.3) (2019-11-09)

3
node_modules/bson/bower.json generated vendored
View File

@@ -21,5 +21,6 @@
"node_modules",
"test",
"tools"
]
],
"version": "1.1.5"
}

View File

@@ -66,7 +66,7 @@ var ObjectID = function ObjectID(id) {
} else if (id != null && id.length === 12) {
// assume 12 byte string
this.id = id;
} else if (id != null && id.toHexString) {
} else if (id != null && typeof id.toHexString === 'function') {
// Duck-typing to support ObjectId from different npm packages
return id;
} else {
@@ -357,7 +357,10 @@ ObjectID.isValid = function isValid(id) {
}
// Duck-Typing detection of ObjectId like objects
if (id.toHexString) {
if (
typeof id.toHexString === 'function' &&
(id.id instanceof _Buffer || typeof id.id === 'string')
) {
return id.id.length === 12 || (id.id.length === 24 && checkForHexRegExp.test(id.id));
}

114
node_modules/bson/package.json generated vendored
View File

@@ -1,88 +1,58 @@
{
"_from": "bson@^1.1.4",
"_id": "bson@1.1.4",
"_inBundle": false,
"_integrity": "sha512-S/yKGU1syOMzO86+dGpg2qGoDL0zvzcb262G+gqEy6TgP6rt6z6qxSFX/8X6vLC91P7G7C3nLs0+bvDzmvBA3Q==",
"_location": "/bson",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "bson@^1.1.4",
"name": "bson",
"escapedName": "bson",
"rawSpec": "^1.1.4",
"saveSpec": null,
"fetchSpec": "^1.1.4"
},
"_requiredBy": [
"/mongodb",
"/mongoose"
],
"_resolved": "https://registry.npmjs.org/bson/-/bson-1.1.4.tgz",
"_shasum": "f76870d799f15b854dffb7ee32f0a874797f7e89",
"_spec": "bson@^1.1.4",
"_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\mongoose",
"author": {
"name": "Christian Amor Kvalheim",
"email": "christkv@gmail.com"
},
"browser": "lib/bson/bson.js",
"bugs": {
"url": "https://github.com/mongodb/js-bson/issues"
},
"bundleDependencies": false,
"config": {
"native": false
},
"contributors": [],
"deprecated": false,
"name": "bson",
"description": "A bson parser for node.js and the browser",
"devDependencies": {
"babel-core": "^6.14.0",
"babel-loader": "^6.2.5",
"babel-polyfill": "^6.13.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.14.0",
"benchmark": "1.0.0",
"colors": "1.1.0",
"conventional-changelog-cli": "^1.3.5",
"nodeunit": "0.9.0",
"webpack": "^1.13.2",
"webpack-polyfills-plugin": "0.0.9"
},
"directories": {
"lib": "./lib/bson"
},
"engines": {
"node": ">=0.6.19"
},
"keywords": [
"mongodb",
"bson",
"parser"
],
"files": [
"lib",
"index.js",
"browser_build",
"bower.json"
],
"homepage": "https://github.com/mongodb/js-bson#readme",
"keywords": [
"mongodb",
"bson",
"parser"
],
"license": "Apache-2.0",
"version": "1.1.5",
"author": "Christian Amor Kvalheim <christkv@gmail.com>",
"contributors": [],
"repository": "mongodb/js-bson",
"bugs": {
"mail": "node-mongodb-native@googlegroups.com",
"url": "https://github.com/mongodb/js-bson/issues"
},
"devDependencies": {
"benchmark": "1.0.0",
"colors": "1.1.0",
"nodeunit": "0.9.0",
"babel-core": "^6.14.0",
"babel-loader": "^6.2.5",
"babel-polyfill": "^6.13.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.14.0",
"conventional-changelog-cli": "^1.3.5",
"standard-version": "^7.1.0",
"webpack": "^1.13.2",
"webpack-polyfills-plugin": "0.0.9"
},
"config": {
"native": false
},
"main": "./index",
"name": "bson",
"repository": {
"type": "git",
"url": "git+https://github.com/mongodb/js-bson.git"
"directories": {
"lib": "./lib/bson"
},
"engines": {
"node": ">=0.6.19"
},
"scripts": {
"test": "nodeunit ./test/node",
"build": "webpack --config ./webpack.dist.config.js",
"changelog": "conventional-changelog -p angular -i HISTORY.md -s",
"format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'",
"lint": "eslint lib test",
"test": "nodeunit ./test/node"
"format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'",
"release": "standard-version -i HISTORY.md"
},
"version": "1.1.4"
"browser": "lib/bson/bson.js",
"license": "Apache-2.0"
}