diff --git a/index.js b/index.js index 1725c40..0e71b50 100644 --- a/index.js +++ b/index.js @@ -17,11 +17,9 @@ class ArtifactBookend extends BookendInterface { constructor(storeUrl) { super(); this.storeUrl = storeUrl; - /* eslint-disable max-len */ - this.teardownCommands = COMMANDS.replace(new RegExp('\\$ARTIFACTS_DIR_SUFFIX', 'g'), ARTIFACTS_DIR_SUFFIX) - .replace(new RegExp('\\$STORE_URL', 'g'), storeUrl) + this.teardownCommands = COMMANDS.replace(/\\\\\$ARTIFACTS_DIR_SUFFIX/g, ARTIFACTS_DIR_SUFFIX) + .replace(/\\\\\$STORE_URL/g, storeUrl) .split('\n'); - /* eslint-enable max-len */ } /** diff --git a/package.json b/package.json index 698a167..5c39252 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "screwdriver-artifact-bookend", - "version": "1.0.0", + "version": "2.0.0", "description": "sd.cd bookend for uploading artifacts", "main": "index.js", "scripts": { @@ -30,16 +30,16 @@ "Tiffany Kyi " ], "devDependencies": { - "chai": "^4.3.4", - "eslint": "^7.5.0", - "eslint-config-screwdriver": "^5.0.1", - "mocha": "^8.2.1", + "chai": "^4.3.7", + "eslint": "^8.28.0", + "eslint-config-screwdriver": "^7.0.0", + "mocha": "^10.1.0", "mocha-multi-reporters": "^1.5.1", "mocha-sonarqube-reporter": "^1.0.2", - "nyc": "^15.0.0" + "nyc": "^15.1.0" }, "dependencies": { - "screwdriver-build-bookend": "^3.0.0" + "screwdriver-build-bookend": "^4.0.0" }, "release": { "branches": [ diff --git a/screwdriver.yaml b/screwdriver.yaml index 30e9e8c..716ffa4 100644 --- a/screwdriver.yaml +++ b/screwdriver.yaml @@ -1,5 +1,5 @@ shared: - image: node:12 + image: node:18 jobs: main: