diff --git a/.github/workflows/auto-url.yml b/.github/workflows/auto-url.yml index 9af5ce7..e606202 100644 --- a/.github/workflows/auto-url.yml +++ b/.github/workflows/auto-url.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false steps: - name: Harden Runner - uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 + uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 with: egress-policy: audit diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e2574be..e6b7b6e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -41,7 +41,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 + uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 with: egress-policy: audit @@ -50,7 +50,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15 + uses: github/codeql-action/init@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -60,7 +60,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15 + uses: github/codeql-action/autobuild@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0 # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -73,6 +73,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15 + uses: github/codeql-action/analyze@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index aa66379..0a00b17 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false steps: - name: Harden Runner - uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 + uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 with: egress-policy: audit diff --git a/.github/workflows/ephemeral-map.yml b/.github/workflows/ephemeral-map.yml index 04537a4..1e46ef2 100644 --- a/.github/workflows/ephemeral-map.yml +++ b/.github/workflows/ephemeral-map.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false steps: - name: Harden Runner - uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 + uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 with: egress-policy: audit diff --git a/.github/workflows/mutex.yml b/.github/workflows/mutex.yml index 0ad0824..1b4bfc3 100644 --- a/.github/workflows/mutex.yml +++ b/.github/workflows/mutex.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false steps: - name: Harden Runner - uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 + uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 with: egress-policy: audit diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index d11b241..88c6d89 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 + uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 with: egress-policy: audit @@ -63,7 +63,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 + uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 with: name: SARIF file path: results.sarif @@ -71,6 +71,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15 + uses: github/codeql-action/upload-sarif@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa # v3.26.0 with: sarif_file: results.sarif diff --git a/.github/workflows/timestore.yml b/.github/workflows/timestore.yml index e49f16c..f696f5a 100644 --- a/.github/workflows/timestore.yml +++ b/.github/workflows/timestore.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false steps: - name: Harden Runner - uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 + uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 with: egress-policy: audit diff --git a/package-lock.json b/package-lock.json index 42a8726..ce0abca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "devDependencies": { "@faker-js/faker": "^8.1.0", "@nodesecure/eslint-config": "^1.8.0", + "@openally/config.typescript": "^1.0.2", "@types/node": "^22.0.0", "c8": "^10.1.2", "cross-env": "^7.0.3", @@ -1146,6 +1147,12 @@ "resolved": "src/config", "link": true }, + "node_modules/@openally/config.typescript": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@openally/config.typescript/-/config.typescript-1.0.2.tgz", + "integrity": "sha512-f1ZoUnCKPZdAQMDrIpVH+cCGUmvBKKdhHyuLVZUDqFCaLZ5kfwYQZPQI5Lt/YufazUSQwFci/50sZSPOTFrbvA==", + "dev": true + }, "node_modules/@openally/ephemeral-map": { "resolved": "src/ephemeral-map", "link": true @@ -5506,6 +5513,12 @@ } } }, + "@openally/config.typescript": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@openally/config.typescript/-/config.typescript-1.0.2.tgz", + "integrity": "sha512-f1ZoUnCKPZdAQMDrIpVH+cCGUmvBKKdhHyuLVZUDqFCaLZ5kfwYQZPQI5Lt/YufazUSQwFci/50sZSPOTFrbvA==", + "dev": true + }, "@openally/ephemeral-map": { "version": "file:src/ephemeral-map", "requires": { diff --git a/package.json b/package.json index c4883fc..8b7b944 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "devDependencies": { "@faker-js/faker": "^8.1.0", "@nodesecure/eslint-config": "^1.8.0", + "@openally/config.typescript": "^1.0.2", "@types/node": "^22.0.0", "c8": "^10.1.2", "cross-env": "^7.0.3", diff --git a/src/auto-url/tsconfig.json b/src/auto-url/tsconfig.json index e9d6a60..3e74d19 100644 --- a/src/auto-url/tsconfig.json +++ b/src/auto-url/tsconfig.json @@ -1,19 +1,8 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "declaration": true, - "strictNullChecks": true, - "target": "ES2022", "outDir": "dist", - "module": "ES2022", - "moduleResolution": "node", - "esModuleInterop": true, - "resolveJsonModule": false, - "skipDefaultLibCheck": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "sourceMap": true, - "rootDir": "./src", - "types": ["node"] + "rootDir": "./src" }, "include": ["src"], "exclude": ["node_modules", "dist"] diff --git a/src/config/src/AsynchronousConfig.class.ts b/src/config/src/AsynchronousConfig.class.ts index 5d86e30..ff375c6 100644 --- a/src/config/src/AsynchronousConfig.class.ts +++ b/src/config/src/AsynchronousConfig.class.ts @@ -167,7 +167,7 @@ export class AsynchronousConfig = Record = Record(e); } } diff --git a/src/result/tsconfig.json b/src/result/tsconfig.json index e9d6a60..3e74d19 100644 --- a/src/result/tsconfig.json +++ b/src/result/tsconfig.json @@ -1,19 +1,8 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "declaration": true, - "strictNullChecks": true, - "target": "ES2022", "outDir": "dist", - "module": "ES2022", - "moduleResolution": "node", - "esModuleInterop": true, - "resolveJsonModule": false, - "skipDefaultLibCheck": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "sourceMap": true, - "rootDir": "./src", - "types": ["node"] + "rootDir": "./src" }, "include": ["src"], "exclude": ["node_modules", "dist"] diff --git a/src/timestore/src/index.ts b/src/timestore/src/index.ts index 0e53222..d4b0af4 100644 --- a/src/timestore/src/index.ts +++ b/src/timestore/src/index.ts @@ -226,4 +226,4 @@ export class TimeStore extends EventEmitter { } } -export { tSv, tSvResponse, TSV_SYMBOL }; +export { tSv, type tSvResponse, TSV_SYMBOL }; diff --git a/src/timestore/test/TimeStore.spec.ts b/src/timestore/test/TimeStore.spec.ts index cb75cdc..8ace316 100644 --- a/src/timestore/test/TimeStore.spec.ts +++ b/src/timestore/test/TimeStore.spec.ts @@ -44,8 +44,9 @@ describe("TimeStore", () => { store.add(expectedIdentifier); try { - // @ts-ignore - const [identifier] = await once(store, TimeStore.Expired, AbortSignal.timeout(500)); + const [identifier] = await once(store, TimeStore.Expired, { + signal: AbortSignal.timeout(500) + }); assert.equal(identifier, expectedIdentifier); } finally { @@ -371,8 +372,9 @@ describe("TimeStore", () => { setTimeout(() => store.delete(toDeleteIdentifier), 100); try { - // @ts-ignore - const [identifier] = await once(store, TimeStore.Expired, AbortSignal.timeout(safeTTL(ttl))); + const [identifier] = await once(store, TimeStore.Expired, { + signal: AbortSignal.timeout(safeTTL(ttl)) + }); assert.equal(identifier, expectedIdentifier); assert.equal(counter.listenerCount, 1); diff --git a/src/timestore/tsconfig.json b/src/timestore/tsconfig.json index e9d6a60..3e74d19 100644 --- a/src/timestore/tsconfig.json +++ b/src/timestore/tsconfig.json @@ -1,19 +1,8 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "declaration": true, - "strictNullChecks": true, - "target": "ES2022", "outDir": "dist", - "module": "ES2022", - "moduleResolution": "node", - "esModuleInterop": true, - "resolveJsonModule": false, - "skipDefaultLibCheck": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "sourceMap": true, - "rootDir": "./src", - "types": ["node"] + "rootDir": "./src" }, "include": ["src"], "exclude": ["node_modules", "dist"] diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 0000000..4499151 --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,8 @@ +{ + "extends": "@openally/config.typescript/cjs", + "compilerOptions": { + "strictPropertyInitialization": false, + "composite": true, + "types": ["node"] + } +}