soajs.controller 4.2.15 → 4.2.16
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/.travis.yml +12 -12
- package/mw/traffic/model/mongo.js +3 -0
- package/package.json +9 -9
package/.travis.yml
CHANGED
|
@@ -20,18 +20,18 @@ jobs:
|
|
|
20
20
|
- if [ "$TRAVIS_BRANCH" != "master" ]; then grunt test; fi
|
|
21
21
|
- if [ "$TRAVIS_BRANCH" = "master" ]; then grunt coverage; fi
|
|
22
22
|
|
|
23
|
-
- stage: Publish to npm
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
# - stage: Publish to npm
|
|
24
|
+
# if: branch =~ /(release)/
|
|
25
|
+
# script:
|
|
26
|
+
# - echo "PUBLISH npm"
|
|
27
|
+
# deploy:
|
|
28
|
+
# skip_cleanup: true
|
|
29
|
+
# provider: npm
|
|
30
|
+
# email: $NPM_EMAIL
|
|
31
|
+
# api_key: $NPM_TOKEN
|
|
32
|
+
# on:
|
|
33
|
+
# all_branches: true
|
|
34
|
+
# condition: $TRAVIS_BRANCH =~ ^(release)*
|
|
35
35
|
|
|
36
36
|
- stage: Publish to docker registry
|
|
37
37
|
if: branch =~ /(release)/
|
|
@@ -22,6 +22,9 @@ let model = {
|
|
|
22
22
|
model.log = log;
|
|
23
23
|
if (!model.mongo) {
|
|
24
24
|
model.mongo = new Mongo(dbConfiguration);
|
|
25
|
+
model.mongo.createIndex(throttling_monitor, { 'l1': 1, 'l2': 1 }, {}, (err, index) => {
|
|
26
|
+
log.debug("Index: " + index + " created with error: " + err);
|
|
27
|
+
});
|
|
25
28
|
}
|
|
26
29
|
},
|
|
27
30
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soajs.controller",
|
|
3
3
|
"description": "soajs multi tenant API gateway",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.16",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "soajs team",
|
|
7
7
|
"email": "team@soajs.org"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"test": "grunt test"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"async": "3.2.
|
|
21
|
+
"async": "3.2.6",
|
|
22
22
|
"connect": "3.7.0",
|
|
23
23
|
"http-proxy": "1.18.1",
|
|
24
24
|
"jsonwebtoken": "9.0.2",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"path-to-regexp": "6.2.2",
|
|
31
31
|
"request": "2.88.2",
|
|
32
32
|
"soajs.core.libs": "1.2.0",
|
|
33
|
-
"soajs.core.modules": "5.2.
|
|
34
|
-
"soajs.urac.driver": "3.2.
|
|
33
|
+
"soajs.core.modules": "5.2.12",
|
|
34
|
+
"soajs.urac.driver": "3.2.9",
|
|
35
35
|
"useragent": "2.3.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@babel/core": "7.
|
|
39
|
-
"@babel/plugin-transform-runtime": "7.
|
|
40
|
-
"@babel/preset-env": "7.
|
|
41
|
-
"express": "4.
|
|
38
|
+
"@babel/core": "7.26.0",
|
|
39
|
+
"@babel/plugin-transform-runtime": "7.25.9",
|
|
40
|
+
"@babel/preset-env": "7.26.0",
|
|
41
|
+
"express": "4.21.1",
|
|
42
42
|
"grunt": "1.6.1",
|
|
43
43
|
"grunt-babel": "8.0.0",
|
|
44
44
|
"grunt-contrib-clean": "2.0.1",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"grunt-jsdoc": "2.4.1",
|
|
51
51
|
"grunt-mocha-test": "0.13.3",
|
|
52
52
|
"mocha": "10.7.3",
|
|
53
|
-
"sinon": "
|
|
53
|
+
"sinon": "19.0.2"
|
|
54
54
|
}
|
|
55
55
|
}
|