@codefresh-io/service-base 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,7 +47,7 @@ function getOrCreateSafe(safeId) {
47
47
  _id: safeId,
48
48
  key: (new Buffer(uuid.v4())).toString('base64'), // eslint-disable-line
49
49
  };
50
- return collection.save(newSafe)
50
+ return collection.insertOne(newSafe)
51
51
  .then(() => new Safe(newSafe))
52
52
  .catch((err) => {
53
53
  throw new Error(`Error occurred while creating safe: ${safeId}. Caused by: ${err.toString()}`);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@codefresh-io/service-base",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "main": "index.js",
5
5
  "description": "",
6
6
  "bin": {
7
7
  "cf-openapi": "./node_modules/cf-openapi/bin/cf-openapi"
8
8
  },
9
9
  "engines": {
10
- "node": ">=16.20.1"
10
+ "node": ">=12.22.12"
11
11
  },
12
12
  "scripts": {
13
13
  "test": "(find . -not -path './node_modules/*' -path '*/*.spec.js' | grep -v '__tests__' | NODE_ENV=test xargs mocha) && jest",
@@ -52,7 +52,7 @@
52
52
  "js-yaml": "^3.13.1",
53
53
  "lodash": "4.17.21",
54
54
  "method-override": "^3.0.0",
55
- "mongodb": "^6.3.0",
55
+ "mongodb": "^4.17.2",
56
56
  "morgan": "^1.9.1",
57
57
  "node-uuid": "^1.4.8",
58
58
  "proxyquire": "^1.8.0",