diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7c4181..ca5dd0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 with: fetch-depth: 0 - name: Install Node - uses: actions/setup-node@v3 + uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 with: node-version-file: .node-version cache: npm @@ -57,7 +57,7 @@ jobs: - name: Build container image id: build-image - uses: redhat-actions/buildah-build@v2 + uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2 with: image: govuk-nunjucks-renderer tags: latest ${{ github.sha }} ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') && steps.get-tag.outputs.tag-version || '' }} @@ -73,7 +73,7 @@ jobs: - name: Push image to GitHub Packages if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') - uses: redhat-actions/push-to-registry@v2 + uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2 with: registry: ghcr.io/opencastsoftware username: ${{ github.actor }} @@ -82,12 +82,12 @@ jobs: tags: ${{ steps.build-image.outputs.tags }} - name: Upload Coverage Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3 with: token: ${{ secrets.CODECOV_TOKEN }} - name: Upload Test Results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3 if: always() with: name: test-results diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index e57e42a..118f2b4 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -16,14 +16,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Test Report - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e # v2 with: name: test-results workflow: ${{ github.event.workflow.id }} run_id: ${{ github.event.workflow_run.id }} - name: Publish Test Report - uses: mikepenz/action-junit-report@v3 + uses: mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058 # v3 with: commit: ${{ github.event.workflow_run.head_sha }} report_paths: junit.xml diff --git a/package-lock.json b/package-lock.json index ad5d3e7..2fa64f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,51 +9,51 @@ "version": "0.1.0", "license": "MIT", "dependencies": { - "@koa/router": "^12.0.0", - "axios": "^1.4.0", - "dotenv": "^16.0.3", - "isomorphic-git": "^1.23.0", - "js-yaml": "^4.1.0", - "koa": "^2.14.2", - "koa-bodyparser": "^4.4.0", - "koa-logger": "^3.2.1", - "nunjucks": "^3.2.4", - "semver": "^7.6.3", - "winston": "^3.8.2", - "zod": "^3.21.4" + "@koa/router": "12.0.2", + "axios": "1.7.9", + "dotenv": "16.0.3", + "isomorphic-git": "1.23.0", + "js-yaml": "4.1.0", + "koa": "2.14.2", + "koa-bodyparser": "4.4.0", + "koa-logger": "3.2.1", + "nunjucks": "3.2.4", + "semver": "7.6.3", + "winston": "3.8.2", + "zod": "3.23.8" }, "devDependencies": { - "@tsconfig/esm": "^1.0.3", - "@tsconfig/node18": "^2.0.0", - "@tsconfig/recommended": "^1.0.2", - "@tsconfig/strictest": "^2.0.1", - "@types/common-tags": "^1.8.1", - "@types/fs-extra": "^11.0.1", - "@types/jest": "^29.5.1", - "@types/js-yaml": "^4.0.5", - "@types/koa": "^2.13.6", - "@types/koa__router": "^12.0.0", - "@types/koa-bodyparser": "^4.3.10", - "@types/koa-logger": "^3.1.2", - "@types/node": "^18.16.2", - "@types/nunjucks": "^3.2.2", - "@types/supertest": "^2.0.12", - "@typescript-eslint/eslint-plugin": "^5.59.1", - "@typescript-eslint/parser": "^5.59.1", - "common-tags": "^1.8.2", - "esbuild": "^0.17.18", - "eslint": "^8.39.0", - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-prettier": "^4.2.1", - "jest": "^29.5.0", - "jest-junit": "^16.0.0", - "jest-mock-axios": "^4.7.1", - "nock": "^13.3.1", - "nodemon": "^3.1.7", - "prettier": "^2.8.8", - "supertest": "^6.3.3", - "ts-jest": "^29.1.0", - "typescript": "^5.0.4" + "@tsconfig/esm": "1.0.3", + "@tsconfig/node18": "2.0.0", + "@tsconfig/recommended": "1.0.2", + "@tsconfig/strictest": "2.0.1", + "@types/common-tags": "1.8.1", + "@types/fs-extra": "11.0.1", + "@types/jest": "29.5.1", + "@types/js-yaml": "4.0.5", + "@types/koa": "2.13.6", + "@types/koa__router": "12.0.0", + "@types/koa-bodyparser": "4.3.10", + "@types/koa-logger": "3.1.2", + "@types/node": "18.16.2", + "@types/nunjucks": "3.2.2", + "@types/supertest": "2.0.12", + "@typescript-eslint/eslint-plugin": "5.59.1", + "@typescript-eslint/parser": "5.59.1", + "common-tags": "1.8.2", + "esbuild": "0.17.18", + "eslint": "8.39.0", + "eslint-config-prettier": "8.8.0", + "eslint-plugin-prettier": "4.2.1", + "jest": "29.5.0", + "jest-junit": "16.0.0", + "jest-mock-axios": "4.7.1", + "nock": "13.3.1", + "nodemon": "3.1.7", + "prettier": "2.8.8", + "supertest": "6.3.3", + "ts-jest": "29.1.0", + "typescript": "5.0.4" } }, "node_modules/@ampproject/remapping": { @@ -1441,14 +1441,16 @@ } }, "node_modules/@koa/router": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@koa/router/-/router-12.0.0.tgz", - "integrity": "sha512-cnnxeKHXlt7XARJptflGURdJaO+ITpNkOHmQu7NHmCoRinPbyvFzce/EG/E8Zy81yQ1W9MoSdtklc3nyaDReUw==", + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-12.0.2.tgz", + "integrity": "sha512-sYcHglGKTxGF+hQ6x67xDfkE9o+NhVlRHBqq6gLywaMc6CojK/5vFZByphdonKinYlMLkEkacm+HEse9HzwgTA==", + "license": "MIT", "dependencies": { + "debug": "^4.3.4", "http-errors": "^2.0.0", "koa-compose": "^4.1.0", "methods": "^1.1.2", - "path-to-regexp": "^6.2.1" + "path-to-regexp": "^6.3.0" }, "engines": { "node": ">= 12" @@ -1458,6 +1460,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", @@ -1473,6 +1476,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -1540,25 +1544,30 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/esm/-/esm-1.0.3.tgz", "integrity": "sha512-Gp56rIc3R8ab032nXMUitmc7YIb4nAi8DQ6Qt47tuL0Ssn9LIOm+o2FQmqPu3jX4z0TsqgzWwkmVygxcq+yHYg==", - "dev": true + "deprecated": "Use the tsconfig base for your runtime instead of general 'esm', e.g. 'node18'", + "dev": true, + "license": "MIT" }, "node_modules/@tsconfig/node18": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tsconfig/node18/-/node18-2.0.0.tgz", "integrity": "sha512-uI/B0ShkiEwTk036pncXucVlj4y11EW6mycQvCEzC1PkR2TBvdQZ5Wf96dp+XXWAc70FEDfvwTqanoaDpP6rPw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@tsconfig/recommended": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@tsconfig/recommended/-/recommended-1.0.2.tgz", "integrity": "sha512-dbHBtbWBOjq0/otpopAE02NT2Cm05Qe2JsEKeCf/wjSYbI2hz8nCqnpnOJWHATgjDz4fd3dchs3Wy1gQGjfN6w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@tsconfig/strictest": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@tsconfig/strictest/-/strictest-2.0.1.tgz", "integrity": "sha512-7JHHCbyCsGUxLd0pDbp24yz3zjxw2t673W5oAP6HCEdr/UUhaRhYd3SSnUsGCk+VnPVJVA4mXROzbhI+nyIk+w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/accepts": { "version": "1.3.5", @@ -1624,7 +1633,8 @@ "version": "1.8.1", "resolved": "https://registry.npmjs.org/@types/common-tags/-/common-tags-1.8.1.tgz", "integrity": "sha512-20R/mDpKSPWdJs5TOpz3e7zqbeCNuMCPhV7Yndk9KU2Rbij2r5W4RzwDPkzC+2lzUqXYu9rFzTktCBnDjHuNQg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/connect": { "version": "3.4.35", @@ -1688,6 +1698,7 @@ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.1.tgz", "integrity": "sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==", "dev": true, + "license": "MIT", "dependencies": { "@types/jsonfile": "*", "@types/node": "*" @@ -1743,6 +1754,7 @@ "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.1.tgz", "integrity": "sha512-tEuVcHrpaixS36w7hpsfLBLpjtMRJUE09/MHXn923LOVojDwyC14cWcfc0rDs0VEfUyYmt/+iX1kxxp+gZMcaQ==", "dev": true, + "license": "MIT", "dependencies": { "expect": "^29.0.0", "pretty-format": "^29.0.0" @@ -1752,7 +1764,8 @@ "version": "4.0.5", "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/json-schema": { "version": "7.0.11", @@ -1780,6 +1793,7 @@ "resolved": "https://registry.npmjs.org/@types/koa/-/koa-2.13.6.tgz", "integrity": "sha512-diYUfp/GqfWBAiwxHtYJ/FQYIXhlEhlyaU7lB/bWQrx4Il9lCET5UwpFy3StOAohfsxxvEQ11qIJgT1j2tfBvw==", "dev": true, + "license": "MIT", "dependencies": { "@types/accepts": "*", "@types/content-disposition": "*", @@ -1796,6 +1810,7 @@ "resolved": "https://registry.npmjs.org/@types/koa__router/-/koa__router-12.0.0.tgz", "integrity": "sha512-S6eHyZyoWCZLNHyy8j0sMW85cPrpByCbGGU2/BO4IzGiI87aHJ92lZh4E9xfsM9DcbCT469/OIqyC0sSJXSIBQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/koa": "*" } @@ -1805,6 +1820,7 @@ "resolved": "https://registry.npmjs.org/@types/koa-bodyparser/-/koa-bodyparser-4.3.10.tgz", "integrity": "sha512-6ae05pjhmrmGhUR8GYD5qr5p9LTEMEGfGXCsK8VaSL+totwigm8+H/7MHW7K4854CMeuwRAubT8qcc/EagaeIA==", "dev": true, + "license": "MIT", "dependencies": { "@types/koa": "*" } @@ -1823,6 +1839,7 @@ "resolved": "https://registry.npmjs.org/@types/koa-logger/-/koa-logger-3.1.2.tgz", "integrity": "sha512-sioTA1xlKYiIgryANWPRHBkG3XGbWftw9slWADUPC+qvPIY/yRLSrhvX7zkJwMrntub5dPO0GuAoyGGf0yitfQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/koa": "*" } @@ -1837,13 +1854,15 @@ "version": "18.16.2", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.2.tgz", "integrity": "sha512-GQW/JL/5Fz/0I8RpeBG9lKp0+aNcXEaVL71c0D2Q0QHDTFvlYKT7an0onCUXj85anv7b4/WesqdfchLc0jtsCg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/nunjucks": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/@types/nunjucks/-/nunjucks-3.2.2.tgz", "integrity": "sha512-qarGBZOVxv1pF6BxQHwYHYYxim/TCm3aXF8BUt/kyF/+xi/DXMoj1Bhw3hXVBl2Yov+w47reDldm0iXXFZTotA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/prettier": { "version": "2.7.2", @@ -1910,6 +1929,7 @@ "resolved": "https://registry.npmjs.org/@types/supertest/-/supertest-2.0.12.tgz", "integrity": "sha512-X3HPWTwXRerBZS7Mo1k6vMVR1Z6zmJcDVn5O/31whe0tnjE4te6ZJSJGq1RiqHPjzPdMTfjCFogDJmwng9xHaQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/superagent": "*" } @@ -1939,6 +1959,7 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.1.tgz", "integrity": "sha512-AVi0uazY5quFB9hlp2Xv+ogpfpk77xzsgsIEWyVS7uK/c7MZ5tw7ZPbapa0SbfkqE0fsAMkz5UwtgMLVk2BQAg==", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.4.0", "@typescript-eslint/scope-manager": "5.59.1", @@ -1973,6 +1994,7 @@ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.1.tgz", "integrity": "sha512-nzjFAN8WEu6yPRDizIFyzAfgK7nybPodMNFGNH0M9tei2gYnYszRDqVA0xlnRjkl7Hkx2vYrEdb6fP2a21cG1g==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "@typescript-eslint/scope-manager": "5.59.1", "@typescript-eslint/types": "5.59.1", @@ -2284,6 +2306,7 @@ "version": "1.7.9", "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -2754,6 +2777,7 @@ "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.0.0" } @@ -2990,6 +3014,7 @@ "version": "16.0.3", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", + "license": "BSD-2-Clause", "engines": { "node": ">=12" } @@ -3051,6 +3076,7 @@ "integrity": "sha512-z1lix43jBs6UKjcZVKOw2xx69ffE2aG0PygLL5qJ9OS/gy0Ewd1gW/PUQIOIQGXBHWNywSc0floSKoMFF8aK2w==", "dev": true, "hasInstallScript": true, + "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, @@ -3112,7 +3138,9 @@ "version": "8.39.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.39.0.tgz", "integrity": "sha512-mwiok6cy7KTW7rBpo05k6+p4YVZByLNjAZ/ACB9DRCu4YDRwjXI01tWHp6KAUWelsBetTxKK/2sHB0vdS8Z2Og==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.4.0", @@ -3170,6 +3198,7 @@ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", "dev": true, + "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -3182,6 +3211,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", "dev": true, + "license": "MIT", "dependencies": { "prettier-linter-helpers": "^1.0.0" }, @@ -3224,10 +3254,11 @@ } }, "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -3244,6 +3275,7 @@ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } @@ -4080,6 +4112,7 @@ "version": "1.23.0", "resolved": "https://registry.npmjs.org/isomorphic-git/-/isomorphic-git-1.23.0.tgz", "integrity": "sha512-7mQlnZivFwrU6B3CswvmoNtVN8jqF9BcLf80uk7yh4fNA8PhFjAfQigi2Hu/Io0cmIvpOc7vn0/Rq3KtL5Ph8g==", + "license": "MIT", "dependencies": { "async-lock": "^1.1.0", "clean-git-ref": "^2.0.1", @@ -4180,6 +4213,7 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.5.0.tgz", "integrity": "sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^29.5.0", "@jest/types": "^29.5.0", @@ -4423,6 +4457,7 @@ "resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz", "integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "mkdirp": "^1.0.4", "strip-ansi": "^6.0.1", @@ -4500,6 +4535,7 @@ "resolved": "https://registry.npmjs.org/jest-mock-axios/-/jest-mock-axios-4.7.1.tgz", "integrity": "sha512-m6NrmpviPgjv6nhVELAeFu8nd9OIeRLYt2Q48uuMXShcFxi/ULtIhAVKgAEv9Lq7p1ojhEmmRMvuCiJsYKcnlg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/globals": "^29.5.0", "jest": "~29.5.0", @@ -4779,6 +4815,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -4858,6 +4895,7 @@ "version": "2.14.2", "resolved": "https://registry.npmjs.org/koa/-/koa-2.14.2.tgz", "integrity": "sha512-VFI2bpJaodz6P7x2uyLiX6RLYpZmOJqNmoCst/Yyd7hQlszyPwG/I9CQJ63nOtKSxpt5M7NH67V6nJL2BwCl7g==", + "license": "MIT", "dependencies": { "accepts": "^1.3.5", "cache-content-type": "^1.0.0", @@ -4891,6 +4929,7 @@ "version": "4.4.0", "resolved": "https://registry.npmjs.org/koa-bodyparser/-/koa-bodyparser-4.4.0.tgz", "integrity": "sha512-AXPY7wwKZUmbgb8VkTEUFoRNOlx6aWRJwEnQD+zfNf33/7KSAkN4Oo9BqlIk80D+5TvuqlhpQT5dPVcyxl5Zsw==", + "license": "MIT", "dependencies": { "co-body": "^6.0.0", "copy-to": "^2.0.1" @@ -4920,6 +4959,7 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/koa-logger/-/koa-logger-3.2.1.tgz", "integrity": "sha512-MjlznhLLKy9+kG8nAXKJLM0/ClsQp/Or2vI3a5rbSQmgl8IJBQO0KI5FA70BvW+hqjtxjp49SpH2E7okS6NmHg==", + "license": "MIT", "dependencies": { "bytes": "^3.1.0", "chalk": "^2.4.2", @@ -4934,6 +4974,7 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", "dependencies": { "color-convert": "^1.9.0" }, @@ -4945,6 +4986,7 @@ "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -4958,6 +5000,7 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", "dependencies": { "color-name": "1.1.3" } @@ -4965,12 +5008,14 @@ "node_modules/koa-logger/node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT" }, "node_modules/koa-logger/node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", "engines": { "node": ">=0.8.0" } @@ -4979,6 +5024,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", "engines": { "node": ">=4" } @@ -4987,6 +5033,7 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -5286,6 +5333,7 @@ "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.1.tgz", "integrity": "sha512-vHnopocZuI93p2ccivFyGuUfzjq2fxNyNurp7816mlT5V5HF4SzXu8lvLrVzBbNqzs+ODooZ6OksuSUNM7Njkw==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", @@ -5313,6 +5361,7 @@ "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.7.tgz", "integrity": "sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ==", "dev": true, + "license": "MIT", "dependencies": { "chokidar": "^3.5.2", "debug": "^4", @@ -5341,6 +5390,7 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -5350,6 +5400,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -5397,6 +5448,7 @@ "version": "3.2.4", "resolved": "https://registry.npmjs.org/nunjucks/-/nunjucks-3.2.4.tgz", "integrity": "sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==", + "license": "BSD-2-Clause", "dependencies": { "a-sync-waterfall": "^1.0.0", "asap": "^2.0.3", @@ -5736,6 +5788,7 @@ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", "dev": true, + "license": "MIT", "bin": { "prettier": "bin-prettier.js" }, @@ -6078,6 +6131,7 @@ "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -6390,6 +6444,7 @@ "resolved": "https://registry.npmjs.org/supertest/-/supertest-6.3.3.tgz", "integrity": "sha512-EMCG6G8gDu5qEqRQ3JjjPs6+FYT1a7Hv5ApHvtSghmOFJYtsU5S+pSb6Y2EUeCEY3CmEL3mmQ8YWlPOzQomabA==", "dev": true, + "license": "MIT", "dependencies": { "methods": "^1.1.2", "superagent": "^8.0.5" @@ -6501,6 +6556,7 @@ "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.0.tgz", "integrity": "sha512-ZhNr7Z4PcYa+JjMl62ir+zPiNJfXJN6E8hSLnaUKhOgqcn8vb3e537cpkd0FuAfRK3sR1LSqM1MOhliXNgOFPA==", "dev": true, + "license": "MIT", "dependencies": { "bs-logger": "0.x", "fast-json-stable-stringify": "2.x", @@ -6618,6 +6674,7 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -6749,6 +6806,7 @@ "version": "3.8.2", "resolved": "https://registry.npmjs.org/winston/-/winston-3.8.2.tgz", "integrity": "sha512-MsE1gRx1m5jdTTO9Ld/vND4krP2To+lgDoMEHGGa4HIlAUyXJtfc7CxQcGXVyz2IBpw5hbFkj2b/AtUdQwyRew==", + "license": "MIT", "dependencies": { "@colors/colors": "1.5.0", "@dabh/diagnostics": "^2.0.2", @@ -6895,6 +6953,7 @@ "version": "3.23.8", "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/package.json b/package.json index e1f2f8d..318ad36 100644 --- a/package.json +++ b/package.json @@ -15,50 +15,50 @@ "author": "Opencast Software Europe Ltd", "license": "MIT", "dependencies": { - "@koa/router": "^12.0.0", - "axios": "^1.4.0", - "dotenv": "^16.0.3", - "isomorphic-git": "^1.23.0", - "js-yaml": "^4.1.0", - "koa": "^2.14.2", - "koa-bodyparser": "^4.4.0", - "koa-logger": "^3.2.1", - "nunjucks": "^3.2.4", - "semver": "^7.6.3", - "winston": "^3.8.2", - "zod": "^3.21.4" + "@koa/router": "12.0.2", + "axios": "1.7.9", + "dotenv": "16.0.3", + "isomorphic-git": "1.23.0", + "js-yaml": "4.1.0", + "koa": "2.14.2", + "koa-bodyparser": "4.4.0", + "koa-logger": "3.2.1", + "nunjucks": "3.2.4", + "semver": "7.6.3", + "winston": "3.8.2", + "zod": "3.23.8" }, "devDependencies": { - "@tsconfig/esm": "^1.0.3", - "@tsconfig/node18": "^2.0.0", - "@tsconfig/recommended": "^1.0.2", - "@tsconfig/strictest": "^2.0.1", - "@types/common-tags": "^1.8.1", - "@types/fs-extra": "^11.0.1", - "@types/jest": "^29.5.1", - "@types/js-yaml": "^4.0.5", - "@types/koa": "^2.13.6", - "@types/koa__router": "^12.0.0", - "@types/koa-bodyparser": "^4.3.10", - "@types/koa-logger": "^3.1.2", - "@types/node": "^18.16.2", - "@types/nunjucks": "^3.2.2", - "@types/supertest": "^2.0.12", - "@typescript-eslint/eslint-plugin": "^5.59.1", - "@typescript-eslint/parser": "^5.59.1", - "common-tags": "^1.8.2", - "esbuild": "^0.17.18", - "eslint": "^8.39.0", - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-prettier": "^4.2.1", - "jest": "^29.5.0", - "jest-junit": "^16.0.0", - "jest-mock-axios": "^4.7.1", - "nock": "^13.3.1", - "nodemon": "^3.1.7", - "prettier": "^2.8.8", - "supertest": "^6.3.3", - "ts-jest": "^29.1.0", - "typescript": "^5.0.4" + "@tsconfig/esm": "1.0.3", + "@tsconfig/node18": "2.0.0", + "@tsconfig/recommended": "1.0.2", + "@tsconfig/strictest": "2.0.1", + "@types/common-tags": "1.8.1", + "@types/fs-extra": "11.0.1", + "@types/jest": "29.5.1", + "@types/js-yaml": "4.0.5", + "@types/koa": "2.13.6", + "@types/koa__router": "12.0.0", + "@types/koa-bodyparser": "4.3.10", + "@types/koa-logger": "3.1.2", + "@types/node": "18.16.2", + "@types/nunjucks": "3.2.2", + "@types/supertest": "2.0.12", + "@typescript-eslint/eslint-plugin": "5.59.1", + "@typescript-eslint/parser": "5.59.1", + "common-tags": "1.8.2", + "esbuild": "0.17.18", + "eslint": "8.39.0", + "eslint-config-prettier": "8.8.0", + "eslint-plugin-prettier": "4.2.1", + "jest": "29.5.0", + "jest-junit": "16.0.0", + "jest-mock-axios": "4.7.1", + "nock": "13.3.1", + "nodemon": "3.1.7", + "prettier": "2.8.8", + "supertest": "6.3.3", + "ts-jest": "29.1.0", + "typescript": "5.0.4" } }