diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 065bebd..5d779d4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,7 +8,9 @@ updates: reviewers: - AliMD schedule: - interval: daily + interval: weekly + time: "00:30" + day: "thursday" labels: - ci - priority-low @@ -25,7 +27,9 @@ updates: reviewers: - AliMD schedule: - interval: daily + interval: weekly + time: "00:30" + day: "thursday" labels: - dependencies - ci diff --git a/demo/crypto/test-all.ts b/demo/crypto/test-all.ts index 803995c..f408958 100644 --- a/demo/crypto/test-all.ts +++ b/demo/crypto/test-all.ts @@ -1,4 +1,4 @@ -import { AlwatrCryptoFactory } from "@alwatr/crypto"; +import {AlwatrCryptoFactory} from '@alwatr/crypto'; const cryptoFactory = new AlwatrCryptoFactory({ secret: 'my-very-secret-key', @@ -11,11 +11,11 @@ for (let i = 0; i <= 10; i++) { const userId = cryptoFactory.generateUserId(); const token = cryptoFactory.generateToken([userId]); - console.log({ deviceId, secret, userId, token}) + console.log({deviceId, secret, userId, token}); console.log({ verifyDeviceId: cryptoFactory.verifyDeviceId(deviceId), verifySecret: cryptoFactory.verifySecret(secret), verifyUserId: cryptoFactory.verifyUserId(userId), verifyToken: cryptoFactory.verifyToken([userId], token), - }) + }); } diff --git a/packages/crypto/src/api.ts b/packages/crypto/src/api.ts index 3b8c10e..735532a 100644 --- a/packages/crypto/src/api.ts +++ b/packages/crypto/src/api.ts @@ -41,7 +41,7 @@ export class AlwatrCryptoFactory { userId: new AlwatrHashGenerator(userIdGeneratorRecommendedConfig), token: new AlwatrTokenGenerator({ ...userTokenGeneratorRecommendedConfig, - ...config + ...config, }), } as const; } diff --git a/packages/nano-server/src/nano-server.ts b/packages/nano-server/src/nano-server.ts index 7179fa3..1172350 100644 --- a/packages/nano-server/src/nano-server.ts +++ b/packages/nano-server/src/nano-server.ts @@ -37,7 +37,6 @@ export type { definePackage('nano-server', '1.x'); - export class AlwatrNanoServer { protected _config: NanoServerConfig; protected _logger: AlwatrLogger; diff --git a/yarn.lock b/yarn.lock index d769728..92295c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -920,93 +920,93 @@ __metadata: languageName: node linkType: hard -"@rollup/rollup-android-arm-eabi@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-android-arm-eabi@npm:4.8.0" +"@rollup/rollup-android-arm-eabi@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.9.1" conditions: os=android & cpu=arm languageName: node linkType: hard -"@rollup/rollup-android-arm64@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-android-arm64@npm:4.8.0" +"@rollup/rollup-android-arm64@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-android-arm64@npm:4.9.1" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-arm64@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-darwin-arm64@npm:4.8.0" +"@rollup/rollup-darwin-arm64@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-darwin-arm64@npm:4.9.1" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-darwin-x64@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-darwin-x64@npm:4.8.0" +"@rollup/rollup-darwin-x64@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-darwin-x64@npm:4.9.1" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@rollup/rollup-linux-arm-gnueabihf@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.8.0" +"@rollup/rollup-linux-arm-gnueabihf@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.9.1" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@rollup/rollup-linux-arm64-gnu@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.8.0" +"@rollup/rollup-linux-arm64-gnu@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.9.1" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-arm64-musl@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-linux-arm64-musl@npm:4.8.0" +"@rollup/rollup-linux-arm64-musl@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.9.1" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-linux-riscv64-gnu@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.8.0" +"@rollup/rollup-linux-riscv64-gnu@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.9.1" conditions: os=linux & cpu=riscv64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-gnu@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-linux-x64-gnu@npm:4.8.0" +"@rollup/rollup-linux-x64-gnu@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.9.1" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@rollup/rollup-linux-x64-musl@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-linux-x64-musl@npm:4.8.0" +"@rollup/rollup-linux-x64-musl@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.9.1" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@rollup/rollup-win32-arm64-msvc@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.8.0" +"@rollup/rollup-win32-arm64-msvc@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.9.1" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@rollup/rollup-win32-ia32-msvc@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.8.0" +"@rollup/rollup-win32-ia32-msvc@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.9.1" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@rollup/rollup-win32-x64-msvc@npm:4.8.0": - version: 4.8.0 - resolution: "@rollup/rollup-win32-x64-msvc@npm:4.8.0" +"@rollup/rollup-win32-x64-msvc@npm:4.9.1": + version: 4.9.1 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.9.1" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -3245,11 +3245,11 @@ __metadata: linkType: hard "fastq@npm:^1.6.0": - version: 1.15.0 - resolution: "fastq@npm:1.15.0" + version: 1.16.0 + resolution: "fastq@npm:1.16.0" dependencies: reusify: "npm:^1.0.4" - checksum: 5ce4f83afa5f88c9379e67906b4d31bc7694a30826d6cc8d0f0473c966929017fda65c2174b0ec89f064ede6ace6c67f8a4fe04cef42119b6a55b0d465554c24 + checksum: 38c1b49adba639af020727284a02af021acab764efd7f088bc31364e8a5b01ce9031eb6c5f7f304019b8267c3b7c236e79d6904884f50f94f83b1700b8a6619a languageName: node linkType: hard @@ -5703,12 +5703,12 @@ __metadata: linkType: hard "p-queue@npm:^8.0.0": - version: 8.0.0 - resolution: "p-queue@npm:8.0.0" + version: 8.0.1 + resolution: "p-queue@npm:8.0.1" dependencies: eventemitter3: "npm:^5.0.1" p-timeout: "npm:^6.1.2" - checksum: 3d46a61e6092c7c2f24ed465e0078c988ee4655bbafa3e69e5522faa4d355eb875596816248f223e0ba0f4fa480393592aaf241b57cdd6c14cd99061dba6295b + checksum: fe185bc8bbd32d17a5f6dba090077b1bb326b008b4ec9b0646c57a32a6984035aa8ece909a6d0de7f6c4640296dc288197f430e7394cdc76a26d862339494616 languageName: node linkType: hard @@ -6154,15 +6154,15 @@ __metadata: linkType: hard "readable-stream@npm:^4.1.0": - version: 4.4.2 - resolution: "readable-stream@npm:4.4.2" + version: 4.5.1 + resolution: "readable-stream@npm:4.5.1" dependencies: abort-controller: "npm:^3.0.0" buffer: "npm:^6.0.3" events: "npm:^3.3.0" process: "npm:^0.11.10" string_decoder: "npm:^1.3.0" - checksum: cf7cc8daa2b57872d120945a20a1458c13dcb6c6f352505421115827b18ac4df0e483ac1fe195cb1f5cd226e1073fc55b92b569269d8299e8530840bcdbba40c + checksum: 10fb4c111f767b33c5e5930a036ec7f77a64cdfade36f694dfd523ab5df681edb4eb44b1cc0a789674aa58c46fe4b0fe76f2bc06b17244f679499d9c43542bcc languageName: node linkType: hard @@ -6295,22 +6295,22 @@ __metadata: linkType: hard "rollup@npm:^4.4.0": - version: 4.8.0 - resolution: "rollup@npm:4.8.0" - dependencies: - "@rollup/rollup-android-arm-eabi": "npm:4.8.0" - "@rollup/rollup-android-arm64": "npm:4.8.0" - "@rollup/rollup-darwin-arm64": "npm:4.8.0" - "@rollup/rollup-darwin-x64": "npm:4.8.0" - "@rollup/rollup-linux-arm-gnueabihf": "npm:4.8.0" - "@rollup/rollup-linux-arm64-gnu": "npm:4.8.0" - "@rollup/rollup-linux-arm64-musl": "npm:4.8.0" - "@rollup/rollup-linux-riscv64-gnu": "npm:4.8.0" - "@rollup/rollup-linux-x64-gnu": "npm:4.8.0" - "@rollup/rollup-linux-x64-musl": "npm:4.8.0" - "@rollup/rollup-win32-arm64-msvc": "npm:4.8.0" - "@rollup/rollup-win32-ia32-msvc": "npm:4.8.0" - "@rollup/rollup-win32-x64-msvc": "npm:4.8.0" + version: 4.9.1 + resolution: "rollup@npm:4.9.1" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.9.1" + "@rollup/rollup-android-arm64": "npm:4.9.1" + "@rollup/rollup-darwin-arm64": "npm:4.9.1" + "@rollup/rollup-darwin-x64": "npm:4.9.1" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.9.1" + "@rollup/rollup-linux-arm64-gnu": "npm:4.9.1" + "@rollup/rollup-linux-arm64-musl": "npm:4.9.1" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.9.1" + "@rollup/rollup-linux-x64-gnu": "npm:4.9.1" + "@rollup/rollup-linux-x64-musl": "npm:4.9.1" + "@rollup/rollup-win32-arm64-msvc": "npm:4.9.1" + "@rollup/rollup-win32-ia32-msvc": "npm:4.9.1" + "@rollup/rollup-win32-x64-msvc": "npm:4.9.1" fsevents: "npm:~2.3.2" dependenciesMeta: "@rollup/rollup-android-arm-eabi": @@ -6343,7 +6343,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: 271628f7078199797b175fab8951e698740fb94a5a851b4f8828a353af8d1b4cf3b0bacb443468f38c9d4ce68ca16de1853b0246a7feaae2db3efb2fb746f8db + checksum: fdc76d496583bd916da773522a4949326373c2df55520fc40a56e61f10b16e5214dbeec1947ca13e07f80c0a1a2975ba71ea9bc48d298cda3ee17deaff9aacf6 languageName: node linkType: hard