screwdriver-api 6.0.0 → 6.0.2

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.
Files changed (2) hide show
  1. package/bin/server +3 -3
  2. package/package.json +2 -3
package/bin/server CHANGED
@@ -27,7 +27,7 @@ function convertToBool(value) {
27
27
  }
28
28
 
29
29
  // Setup Authentication
30
- const authConfig = config.get('auth');
30
+ const authConfig = hoek.clone(config.get('auth'));
31
31
 
32
32
  // Setup HTTPd
33
33
  const httpdConfig = config.get('httpd');
@@ -38,7 +38,7 @@ const shutdownConfig = config.get('shutdown');
38
38
  const webhooksConfig = config.get('webhooks');
39
39
 
40
40
  // Special urls for things like the UI
41
- const ecosystem = config.get('ecosystem');
41
+ const ecosystem = hoek.clone(config.get('ecosystem'));
42
42
 
43
43
  ecosystem.api = httpdConfig.uri;
44
44
 
@@ -134,7 +134,7 @@ const pipelineFactory = Models.PipelineFactory.getInstance({
134
134
  });
135
135
 
136
136
  // Setup Executor
137
- const executorConfig = config.get('executor');
137
+ const executorConfig = hoek.clone(config.get('executor'));
138
138
 
139
139
  executorConfig[executorConfig.plugin].options.pipelineFactory = pipelineFactory;
140
140
  const ExecutorPlugin = require(`screwdriver-executor-${executorConfig.plugin}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -91,7 +91,7 @@
91
91
  "ioredis": "^5.2.3",
92
92
  "joi": "^17.7.0",
93
93
  "js-yaml": "^3.14.1",
94
- "jsonwebtoken": "^8.5.1",
94
+ "jsonwebtoken": "^9.0.0",
95
95
  "license-checker": "^25.0.1",
96
96
  "lodash.mergewith": "^4.6.2",
97
97
  "ndjson": "^2.0.0",
@@ -152,7 +152,6 @@
152
152
  "mocha": "^10.1.0",
153
153
  "mocha-multi-reporters": "^1.5.1",
154
154
  "mocha-sonarqube-reporter": "^1.0.2",
155
- "mockery": "^2.1.0",
156
155
  "mz": "^2.7.0",
157
156
  "nock": "^13.2.9",
158
157
  "npm-auto-version": "^1.0.0",