Refactoring day1

This commit is contained in:
2020-08-20 20:27:14 +02:00
parent 6aceefeb2f
commit b907489a75
481 changed files with 5321 additions and 5616 deletions

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

@@ -1,14 +1,3 @@
# 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,6 +21,5 @@
"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 && typeof id.toHexString === 'function') {
} else if (id != null && id.toHexString) {
// Duck-typing to support ObjectId from different npm packages
return id;
} else {
@@ -357,10 +357,7 @@ ObjectID.isValid = function isValid(id) {
}
// Duck-Typing detection of ObjectId like objects
if (
typeof id.toHexString === 'function' &&
(id.id instanceof _Buffer || typeof id.id === 'string')
) {
if (id.toHexString) {
return id.id.length === 12 || (id.id.length === 24 && checkForHexRegExp.test(id.id));
}

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

@@ -12,7 +12,7 @@
"browser_build",
"bower.json"
],
"version": "1.1.5",
"version": "1.1.4",
"author": "Christian Amor Kvalheim <christkv@gmail.com>",
"contributors": [],
"repository": "mongodb/js-bson",
@@ -31,7 +31,6 @@
"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"
},
@@ -50,9 +49,12 @@
"build": "webpack --config ./webpack.dist.config.js",
"changelog": "conventional-changelog -p angular -i HISTORY.md -s",
"lint": "eslint lib test",
"format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'",
"release": "standard-version -i HISTORY.md"
"format": "prettier --print-width 100 --tab-width 2 --single-quote --write 'test/**/*.js' 'lib/**/*.js'"
},
"browser": "lib/bson/bson.js",
"license": "Apache-2.0"
}
,"_resolved": "https://registry.npmjs.org/bson/-/bson-1.1.4.tgz"
,"_integrity": "sha512-S/yKGU1syOMzO86+dGpg2qGoDL0zvzcb262G+gqEy6TgP6rt6z6qxSFX/8X6vLC91P7G7C3nLs0+bvDzmvBA3Q=="
,"_from": "bson@1.1.4"
}