@bluedot-innovation/models 8.3.2 → 8.3.3
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.
- package/.gitlab-ci.yml +8 -7
- package/CHANGELOG.md +3 -0
- package/package.json +4 -4
- package/utils/DbInitialiser/indexInitialiser.js +16 -0
package/.gitlab-ci.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Official framework image. Look for the different tagged releases at:
|
|
2
2
|
# https://hub.docker.com/r/library/node/tags/
|
|
3
|
-
image: node:
|
|
3
|
+
image: node:20
|
|
4
4
|
|
|
5
5
|
# This folder is cached between builds
|
|
6
6
|
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
|
|
@@ -11,6 +11,7 @@ cache:
|
|
|
11
11
|
before_script:
|
|
12
12
|
- whoami
|
|
13
13
|
- node --version
|
|
14
|
+
- npm config set -- //registry.npmjs.org/:_authToken=$NPM_TOKEN
|
|
14
15
|
- npm ci
|
|
15
16
|
|
|
16
17
|
|
|
@@ -23,7 +24,7 @@ stages:
|
|
|
23
24
|
lint:
|
|
24
25
|
stage: test
|
|
25
26
|
tags:
|
|
26
|
-
-
|
|
27
|
+
- gitlab-org-docker
|
|
27
28
|
script:
|
|
28
29
|
- npm run lint
|
|
29
30
|
|
|
@@ -34,7 +35,7 @@ lint:
|
|
|
34
35
|
test:
|
|
35
36
|
stage: test
|
|
36
37
|
tags:
|
|
37
|
-
-
|
|
38
|
+
- gitlab-org-docker
|
|
38
39
|
script:
|
|
39
40
|
- mkdir .nyc_output
|
|
40
41
|
- npm run test:coverage-check && npm test
|
|
@@ -58,7 +59,7 @@ publish:
|
|
|
58
59
|
create_dev_indexes:
|
|
59
60
|
stage: deploy
|
|
60
61
|
tags:
|
|
61
|
-
-
|
|
62
|
+
- gitlab-org-docker
|
|
62
63
|
only:
|
|
63
64
|
- master
|
|
64
65
|
|
|
@@ -69,7 +70,7 @@ create_dev_indexes:
|
|
|
69
70
|
create_au_production_indexes:
|
|
70
71
|
stage: release
|
|
71
72
|
tags:
|
|
72
|
-
-
|
|
73
|
+
- gitlab-org-docker
|
|
73
74
|
when: manual
|
|
74
75
|
allow_failure: true
|
|
75
76
|
only:
|
|
@@ -81,7 +82,7 @@ create_au_production_indexes:
|
|
|
81
82
|
create_eu_production_indexes:
|
|
82
83
|
stage: release
|
|
83
84
|
tags:
|
|
84
|
-
-
|
|
85
|
+
- gitlab-org-docker
|
|
85
86
|
when: manual
|
|
86
87
|
allow_failure: true
|
|
87
88
|
only:
|
|
@@ -93,7 +94,7 @@ create_eu_production_indexes:
|
|
|
93
94
|
create_us_production_indexes:
|
|
94
95
|
stage: release
|
|
95
96
|
tags:
|
|
96
|
-
-
|
|
97
|
+
- gitlab-org-docker
|
|
97
98
|
when: manual
|
|
98
99
|
allow_failure: true
|
|
99
100
|
only:
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluedot-innovation/models",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3",
|
|
4
4
|
"main": "Models.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"eslint-plugin-promise": "^3.6.0",
|
|
24
24
|
"eslint-plugin-standard": "^3.0.1",
|
|
25
25
|
"mocha": "^4.0.1",
|
|
26
|
-
"mongodb": "^5.
|
|
26
|
+
"mongodb": "^5.9.0",
|
|
27
27
|
"nyc": "^11.3.0",
|
|
28
28
|
"prettier": "^1.13.5",
|
|
29
29
|
"sinon": "^4.1.2"
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@bluedot-innovation/enums": "^2.1.5",
|
|
33
33
|
"@bluedot-innovation/mongoose-json-patch": "^0.0.9",
|
|
34
|
-
"@mongoosejs/double": "^0.
|
|
34
|
+
"@mongoosejs/double": "^0.3.0",
|
|
35
35
|
"@turf/area": "^6.0.1",
|
|
36
36
|
"@turf/helpers": "^6.1.4",
|
|
37
37
|
"deep-equal": "^1.0.1",
|
|
38
38
|
"fast-deep-equal": "^2.0.1",
|
|
39
39
|
"lodash.clonedeep": "4.5.0",
|
|
40
|
-
"mongoose": "
|
|
40
|
+
"mongoose": "6.12.0",
|
|
41
41
|
"uuid": "^3.1.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -16,6 +16,14 @@ const indexes = {
|
|
|
16
16
|
unique: false,
|
|
17
17
|
partialFilterExpression: { destinationId: { $exists:true, $type:"string" } },
|
|
18
18
|
name: "destinationIdWithinProject"
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
fields: {
|
|
23
|
+
destinationId: 1
|
|
24
|
+
},
|
|
25
|
+
options: {
|
|
26
|
+
name: "destinationId_index"
|
|
19
27
|
}
|
|
20
28
|
}
|
|
21
29
|
],
|
|
@@ -30,6 +38,14 @@ const indexes = {
|
|
|
30
38
|
name: "destinationIdUniqueWithinProject"
|
|
31
39
|
}
|
|
32
40
|
},
|
|
41
|
+
{
|
|
42
|
+
fields: {
|
|
43
|
+
destinationId: 1
|
|
44
|
+
},
|
|
45
|
+
options: {
|
|
46
|
+
name: "destinationId_index"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
33
49
|
{
|
|
34
50
|
fields: {
|
|
35
51
|
name: 1
|