diff --git a/.cargo/config.toml b/.cargo/config.toml index e4ab5467..81cf021c 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,8 +2,5 @@ rustflags = ["-C", "target-feature=+sse4.2"] [target.x86_64-pc-windows-msvc] rustflags = ["-C", "target-feature=+sse4.2"] -[target.x86_64-apple-darwin] -rustflags = ["-C", "target-feature=+sse4.2"] [target.aarch64-unknown-linux-musl] -linker = "aarch64-linux-musl-gcc" rustflags = ["-C", "target-feature=-crt-static"] diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c2c0398d..bf90a23a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,17 +19,13 @@ on: jobs: build: - if: "!contains(github.event.head_commit.message, 'skip ci')" - strategy: fail-fast: false matrix: settings: - host: macos-latest target: 'x86_64-apple-darwin' - build: | - yarn build - strip -x packages/*/*.node + build: yarn build --target x86_64-apple-darwin - host: windows-latest build: yarn build target: 'x86_64-pc-windows-msvc' @@ -40,16 +36,10 @@ jobs: target: 'i686-pc-windows-msvc' - host: ubuntu-latest target: 'x86_64-unknown-linux-gnu' - docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian - build: >- - set -e && - rustup target add x86_64-unknown-linux-gnu && - yarn build --target x86_64-unknown-linux-gnu && - strip packages/*/*.node + build: CC=clang yarn build --target x86_64-unknown-linux-gnu --use-napi-cross - host: ubuntu-latest target: 'x86_64-unknown-linux-musl' - docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine - build: yarn build + build: yarn build --target x86_64-unknown-linux-musl -x - host: macos-latest target: 'aarch64-apple-darwin' build: | @@ -59,63 +49,44 @@ jobs: SYSROOT=$(xcrun --sdk macosx --show-sdk-path); export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT"; yarn build --target aarch64-apple-darwin - strip -x packages/*/*.node - host: ubuntu-latest target: aarch64-unknown-linux-gnu - docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 - build: >- - rustup target add aarch64-unknown-linux-gnu && - yarn build --target aarch64-unknown-linux-gnu && - llvm-strip packages/*/*.node + build: CC=clang yarn build --target aarch64-unknown-linux-gnu --use-napi-cross - host: ubuntu-latest target: 'armv7-unknown-linux-gnueabihf' - setup: | - sudo apt-get update - sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y - build: yarn build --target armv7-unknown-linux-gnueabihf + build: CC=clang yarn build --target armv7-unknown-linux-gnueabihf --use-napi-cross - host: ubuntu-latest target: aarch64-linux-android - build: | - yarn build --target aarch64-linux-android - ${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip packages/*/*.node + build: yarn build --target aarch64-linux-android - host: ubuntu-latest architecture: x64 target: armv7-linux-androideabi - build: | - yarn build --target armv7-linux-androideabi - ${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip packages/*/*.node + build: yarn build --target armv7-linux-androideabi - host: ubuntu-latest target: 'aarch64-unknown-linux-musl' downloadTarget: 'aarch64-unknown-linux-musl' - docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine - build: >- - set -e && - rustup target add aarch64-unknown-linux-musl && - yarn build --target aarch64-unknown-linux-musl + build: yarn build --target aarch64-unknown-linux-musl -x - host: windows-latest target: 'aarch64-pc-windows-msvc' - build: | - npm i -g @napi-rs/cli - yarn build --target aarch64-pc-windows-msvc + build: yarn build --target aarch64-pc-windows-msvc - name: stable - ${{ matrix.settings.target }} - node@18 + name: stable - ${{ matrix.settings.target }} - node@20 runs-on: ${{ matrix.settings.host }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v4 if: ${{ !matrix.settings.docker }} with: - node-version: 18 + node-version: 20 cache: yarn - name: Install uses: dtolnay/rust-toolchain@stable - if: ${{ !matrix.settings.docker }} with: - toolchain: nightly-2023-10-25 + toolchain: nightly-2023-12-23 targets: ${{ matrix.settings.target }} - name: Cache cargo registry @@ -124,8 +95,8 @@ jobs: path: | ~/.cargo/registry ~/.cargo/git + ~/.napi-rs target - .cargo-cache key: ${{ matrix.settings.target }}-cargo-registry - name: Setup toolchain @@ -134,7 +105,7 @@ jobs: shell: bash - uses: goto-bus-stop/setup-zig@v2 - if: ${{ matrix.settings.target == 'armv7-unknown-linux-gnueabihf' }} + if: ${{ contains(matrix.settings.target, 'musl') }} with: version: 0.11.0 @@ -149,25 +120,15 @@ jobs: - name: 'Build TypeScript' run: yarn build:ts - - name: Build in docker - uses: addnab/docker-run-action@v3 - if: ${{ matrix.settings.docker }} - with: - image: ${{ matrix.settings.docker }} - options: --user 0:0 -v ${{ github.workspace }}/.cargo-cache/.cargo/git:/usr/local/cargo/git -v ${{ github.workspace }}/.cargo-cache/.cargo/registry:/usr/local/cargo/registry -v ${{ github.workspace }}:/build -w /build - run: ${{ matrix.settings.build }} - - name: Setup node x86 uses: actions/setup-node@v4 if: matrix.settings.target == 'i686-pc-windows-msvc' with: - node-version: 18 - cache: yarn + node-version: 20 architecture: x86 - name: 'Build' run: ${{ matrix.settings.build }} - if: ${{ !matrix.settings.docker }} shell: bash - name: Upload artifact @@ -181,7 +142,7 @@ jobs: runs-on: macos-12 name: Build FreeBSD steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build id: build uses: cross-platform-actions/action@v0.22.0 @@ -202,7 +163,7 @@ jobs: sudo pkg install -y -f curl node libnghttp2 npm sudo npm install -g yarn --ignore-scripts curl https://sh.rustup.rs -sSf --output rustup.sh - sh rustup.sh -y --default-toolchain nightly-2023-10-25 + sh rustup.sh -y --default-toolchain nightly-2023-12-23 source "$HOME/.cargo/env" echo "~~~~ rustc --version ~~~~" rustc --version @@ -221,7 +182,7 @@ jobs: strip -x packages/*/*.node rm -rf node_modules rm -rf target - rm -rf .yarn/cache + rm -rf .yarn - name: Upload artifact uses: actions/upload-artifact@v4 @@ -246,7 +207,7 @@ jobs: runs-on: ${{ matrix.settings.host }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -273,13 +234,7 @@ jobs: run: yarn build:ts - name: Test bindings - run: | - yarn test packages/argon2 - yarn test packages/bcrypt - yarn test packages/crc32 - yarn test packages/jieba - yarn test packages/jsonwebtoken - yarn test packages/xxhash + run: yarn workspaces foreach -A -j 1 run test test-linux-x64-gnu-binding: name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }} @@ -292,7 +247,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v4 @@ -325,8 +280,7 @@ jobs: with: image: node:${{ matrix.node }}-slim options: -v ${{ github.workspace }}:/build -w /build - run: | - yarn test + run: yarn test -s test-linux-x64-centos-7: name: Test bindings on Linux-x64-glibc-2.17 @@ -379,7 +333,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v4 @@ -415,7 +369,7 @@ jobs: image: node:${{ matrix.node }}-alpine options: -v ${{ github.workspace }}:/build -w /build run: | - yarn test + yarn test -s test-linux-aarch64-gnu-binding: name: Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }} @@ -428,7 +382,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download artifacts uses: actions/download-artifact@v4 @@ -472,10 +426,14 @@ jobs: needs: - build + strategy: + fail-fast: false + matrix: + node: ['18', '20'] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -487,7 +445,7 @@ jobs: uses: actions/download-artifact@v4 with: name: bindings-aarch64-unknown-linux-musl - path: packages + path: artifacts - name: Move artifacts run: yarn artifacts @@ -511,7 +469,7 @@ jobs: run: | set -e yarn build:ts - yarn test + yarn test -s test-linux-arm-gnueabihf-binding: name: Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }} @@ -524,7 +482,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -559,7 +517,7 @@ jobs: run: | set -e yarn build:ts - yarn test + yarn test -s ls -la publish: @@ -571,15 +529,16 @@ jobs: - test-linux-x64-centos-7 - test-linux-x64-musl-binding - test-linux-aarch64-gnu-binding + - test-linux-aarch64-musl-binding - test-linux-arm-gnueabihf-binding - test-macOS-windows-binding steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: yarn - name: 'Install dependencies' diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 2c9634fa..592f1252 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -23,7 +23,7 @@ jobs: - name: Install uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2023-10-25 + toolchain: nightly-2023-12-23 components: rustfmt, clippy - name: 'Install dependencies' diff --git a/ava.config.js b/ava.config.mjs similarity index 86% rename from ava.config.js rename to ava.config.mjs index 51827bfb..bf75f5d9 100644 --- a/ava.config.js +++ b/ava.config.mjs @@ -1,6 +1,7 @@ -module.exports = { +export default { extensions: ['ts'], workerThreads: false, + cache: false, require: ['@swc-node/register'], files: ['packages/**/*.spec.ts'], timeout: '3m', diff --git a/crates/alloc/Cargo.toml b/crates/alloc/Cargo.toml index 0c9094a6..767655a1 100644 --- a/crates/alloc/Cargo.toml +++ b/crates/alloc/Cargo.toml @@ -6,7 +6,7 @@ version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [target.'cfg(not(target_os = "linux"))'.dependencies] -mimalloc-rust = { version = "0.2" } +mimalloc = { version = "0.1" } -[target.'cfg(all(target_os = "linux", not(all(target_env = "musl", target_arch = "aarch64"))))'.dependencies] -mimalloc-rust = { version = "0.2", features = ["local-dynamic-tls"] } +[target.'cfg(target_os = "linux")'.dependencies] +mimalloc = { version = "0.1", features = ["local_dynamic_tls"] } diff --git a/crates/alloc/src/lib.rs b/crates/alloc/src/lib.rs index 10084752..dfa36066 100644 --- a/crates/alloc/src/lib.rs +++ b/crates/alloc/src/lib.rs @@ -1,6 +1,2 @@ -#[cfg(all( - not(all(target_os = "linux", target_env = "musl", target_arch = "aarch64")), - not(debug_assertions) -))] #[global_allocator] -static ALLOC: mimalloc_rust::GlobalMiMalloc = mimalloc_rust::GlobalMiMalloc; +static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; diff --git a/package.json b/package.json index 43f91e46..95956ee6 100644 --- a/package.json +++ b/package.json @@ -24,30 +24,30 @@ "postinstall": "husky install" }, "devDependencies": { - "@napi-rs/cli": "2.17.0", + "@napi-rs/cli": "^3.0.0-alpha.25", "@swc-node/core": "^1.10.6", "@swc-node/register": "^1.6.8", - "@swc/core": "^1.3.95", + "@swc/core": "^1.3.101", "@taplo/cli": "^0.5.2", - "@types/node": "^20.8.9", - "@typescript-eslint/eslint-plugin": "^6.9.0", - "@typescript-eslint/parser": "^6.9.0", - "ava": "^6.0.0", + "@types/node": "^20.10.5", + "@typescript-eslint/eslint-plugin": "^6.16.0", + "@typescript-eslint/parser": "^6.16.0", + "ava": "^6.0.1", "benchmark": "^2.1.4", "codecov": "^3.8.3", "cross-env": "^7.0.3", - "eslint": "^8.52.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-import": "^2.29.0", - "eslint-plugin-prettier": "^5.0.1", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-prettier": "^5.1.2", "husky": "^8.0.3", - "lerna": "^8.0.0", - "lint-staged": "^15.0.2", + "lerna": "^8.0.1", + "lint-staged": "^15.2.0", "npm-run-all": "^4.1.5", - "prettier": "^3.0.3", - "ts-node": "^10.9.1", + "prettier": "^3.1.1", + "ts-node": "^10.9.2", "tslib": "^2.6.2", - "typescript": "^5.2.2" + "typescript": "^5.3.3" }, "lint-staged": { "*.@(js|ts|tsx)": [ diff --git a/packages/argon2/index.d.ts b/packages/argon2/index.d.ts index 8f5704e4..236332d2 100644 --- a/packages/argon2/index.d.ts +++ b/packages/argon2/index.d.ts @@ -1,7 +1,5 @@ -/* tslint:disable */ -/* eslint-disable */ - /* auto-generated by NAPI-RS */ +/* eslint-disable */ export const enum Algorithm { /** @@ -21,15 +19,23 @@ export const enum Algorithm { */ Argon2id = 2, } -export const enum Version { - /** Version 16 (0x10 in hex) */ - V0x10 = 0, - /** - * Default value - * Version 19 (0x13 in hex) - */ - V0x13 = 1, -} + +export function hash( + password: string | Buffer, + options?: Options | undefined | null, + abortSignal?: AbortSignal | undefined | null, +): Promise + +export function hashRaw( + password: string | Buffer, + options?: Options | undefined | null, + abortSignal?: AbortSignal | undefined | null, +): Promise + +export function hashRawSync(password: string | Buffer, options?: Options | undefined | null): Buffer + +export function hashSync(password: string | Buffer, options?: Options | undefined | null): string + export interface Options { /** * The amount of memory to be used by the hash function, in kilobytes. Each thread will have a memory pool of this size. Note that large values for highly concurrent usage will cause starvation and thrashing if your system memory gets full. @@ -66,26 +72,26 @@ export interface Options { secret?: Buffer salt?: Buffer } -export function hash( - password: string | Buffer, - options?: Options | undefined | null, - abortSignal?: AbortSignal | undefined | null, -): Promise -export function hashSync(password: string | Buffer, options?: Options | undefined | null): string -export function hashRaw( - password: string | Buffer, - options?: Options | undefined | null, - abortSignal?: AbortSignal | undefined | null, -): Promise -export function hashRawSync(password: string | Buffer, options?: Options | undefined | null): Buffer + export function verify( hashed: string | Buffer, password: string | Buffer, options?: Options | undefined | null, abortSignal?: AbortSignal | undefined | null, ): Promise + export function verifySync( hashed: string | Buffer, password: string | Buffer, options?: Options | undefined | null, ): boolean + +export const enum Version { + /** Version 16 (0x10 in hex) */ + V0x10 = 0, + /** + * Default value + * Version 19 (0x13 in hex) + */ + V0x13 = 1, +} diff --git a/packages/argon2/index.js b/packages/argon2/index.js index ceae2df0..9d55a93f 100644 --- a/packages/argon2/index.js +++ b/packages/argon2/index.js @@ -1,7 +1,5 @@ -/* tslint:disable */ +// prettier-ignore /* eslint-disable */ -/* prettier-ignore */ - /* auto-generated by NAPI-RS */ const { existsSync, readFileSync } = require('fs') @@ -13,18 +11,52 @@ let nativeBinding = null let localFileExisted = false let loadError = null -function isMusl() { - // For Node 10 - if (!process.report || typeof process.report.getReport !== 'function') { - try { - const lddPath = require('child_process').execSync('which ldd').toString().trim() - return readFileSync(lddPath, 'utf8').includes('musl') - } catch (e) { +const isMusl = () => { + let musl = false + if (process.platform === 'linux') { + musl = isMuslFromFilesystem() + if (musl === null) { + musl = isMuslFromReport() + } + if (musl === null) { + musl = isMuslFromChildProcess() + } + } + return musl +} + +const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-') + +const isMuslFromFilesystem = () => { + try { + return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl') + } catch { + return null + } +} + +const isMuslFromReport = () => { + const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null + if (!report) { + return null + } + if (report.header && report.header.glibcVersionRuntime) { + return false + } + if (Array.isArray(report.sharedObjects)) { + if (report.sharedObjects.some(isFileMusl)) { return true } - } else { - const { glibcVersionRuntime } = process.report.getReport().header - return !glibcVersionRuntime + } + return false +} + +const isMuslFromChildProcess = () => { + try { + return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl') + } catch (e) { + // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false + return false } } @@ -219,6 +251,31 @@ switch (platform) { loadError = e } break + case 'riscv64': + if (isMusl()) { + localFileExisted = existsSync(join(__dirname, 'argon2.linux-riscv64-musl.node')) + try { + if (localFileExisted) { + nativeBinding = require('./argon2.linux-riscv64-musl.node') + } else { + nativeBinding = require('@node-rs/argon2-linux-riscv64-musl') + } + } catch (e) { + loadError = e + } + } else { + localFileExisted = existsSync(join(__dirname, 'argon2.linux-riscv64-gnu.node')) + try { + if (localFileExisted) { + nativeBinding = require('./argon2.linux-riscv64-gnu.node') + } else { + nativeBinding = require('@node-rs/argon2-linux-riscv64-gnu') + } + } catch (e) { + loadError = e + } + } + break default: throw new Error(`Unsupported architecture on Linux: ${arch}`) } @@ -227,6 +284,20 @@ switch (platform) { throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`) } +if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) { + try { + localFileExisted = + existsSync(join(__dirname, 'argon2.wasm32-wasi.wasm')) && existsSync(join(__dirname, 'argon2.wasi.cjs')) + if (localFileExisted) { + nativeBinding = require('./argon2.wasi.cjs') + } else { + nativeBinding = require('@node-rs/argon2-wasm32-wasi') + } + } catch { + // ignore + } +} + if (!nativeBinding) { if (loadError) { throw loadError @@ -234,13 +305,11 @@ if (!nativeBinding) { throw new Error(`Failed to load native binding`) } -const { Algorithm, Version, hash, hashSync, hashRaw, hashRawSync, verify, verifySync } = nativeBinding - -module.exports.Algorithm = Algorithm -module.exports.Version = Version -module.exports.hash = hash -module.exports.hashSync = hashSync -module.exports.hashRaw = hashRaw -module.exports.hashRawSync = hashRawSync -module.exports.verify = verify -module.exports.verifySync = verifySync +module.exports.Algorithm = nativeBinding.Algorithm +module.exports.hash = nativeBinding.hash +module.exports.hashRaw = nativeBinding.hashRaw +module.exports.hashRawSync = nativeBinding.hashRawSync +module.exports.hashSync = nativeBinding.hashSync +module.exports.verify = nativeBinding.verify +module.exports.verifySync = nativeBinding.verifySync +module.exports.Version = nativeBinding.Version diff --git a/packages/argon2/package.json b/packages/argon2/package.json index 16b5c68a..4abd2234 100644 --- a/packages/argon2/package.json +++ b/packages/argon2/package.json @@ -17,21 +17,22 @@ "verify" ], "napi": { - "name": "argon2", - "triples": { - "additional": [ - "aarch64-apple-darwin", - "aarch64-linux-android", - "aarch64-unknown-linux-gnu", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc", - "armv7-unknown-linux-gnueabihf", - "x86_64-unknown-linux-musl", - "x86_64-unknown-freebsd", - "i686-pc-windows-msvc", - "armv7-linux-androideabi" - ] - } + "binaryName": "argon2", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "aarch64-linux-android", + "aarch64-unknown-linux-gnu", + "aarch64-unknown-linux-musl", + "aarch64-pc-windows-msvc", + "armv7-unknown-linux-gnueabihf", + "x86_64-unknown-linux-musl", + "x86_64-unknown-freebsd", + "i686-pc-windows-msvc", + "armv7-linux-androideabi" + ] }, "publishConfig": { "registry": "https://registry.npmjs.org/", @@ -54,8 +55,8 @@ "version": "napi version" }, "devDependencies": { - "@napi-rs/cli": "2.17.0", - "argon2": "^0.31.1", + "@napi-rs/cli": "^3.0.0-alpha.25", + "argon2": "^0.31.2", "cross-env": "^7.0.3" } } diff --git a/packages/bcrypt/binding.d.ts b/packages/bcrypt/binding.d.ts index 4f89446d..bf9b22cd 100644 --- a/packages/bcrypt/binding.d.ts +++ b/packages/bcrypt/binding.d.ts @@ -1,25 +1,29 @@ -/* tslint:disable */ -/* eslint-disable */ - /* auto-generated by NAPI-RS */ +/* eslint-disable */ export const DEFAULT_COST: number -export function genSaltSync(round: number, version?: '2a' | '2x' | '2y' | '2b'): string + export function genSalt(round: number, version?: '2a' | '2x' | '2y' | '2b', signal?: AbortSignal): Promise -export function hashSync( - input: string | Buffer, - cost?: number | undefined | null, - salt?: Buffer | undefined | null, -): string + +export function genSaltSync(round: number, version?: '2a' | '2x' | '2y' | '2b'): string + export function hash( input: string | Buffer, cost?: number | undefined | null, salt?: Buffer | undefined | null, signal?: AbortSignal | undefined | null, ): Promise -export function verifySync(input: string | Buffer, hash: string | Buffer): boolean + +export function hashSync( + input: string | Buffer, + cost?: number | undefined | null, + salt?: Buffer | undefined | null, +): string + export function verify( password: string | Buffer, hash: string | Buffer, signal?: AbortSignal | undefined | null, ): Promise + +export function verifySync(input: string | Buffer, hash: string | Buffer): boolean diff --git a/packages/bcrypt/binding.js b/packages/bcrypt/binding.js index b36c416b..737ea3d8 100644 --- a/packages/bcrypt/binding.js +++ b/packages/bcrypt/binding.js @@ -1,7 +1,5 @@ -/* tslint:disable */ +// prettier-ignore /* eslint-disable */ -/* prettier-ignore */ - /* auto-generated by NAPI-RS */ const { existsSync, readFileSync } = require('fs') @@ -13,18 +11,52 @@ let nativeBinding = null let localFileExisted = false let loadError = null -function isMusl() { - // For Node 10 - if (!process.report || typeof process.report.getReport !== 'function') { - try { - const lddPath = require('child_process').execSync('which ldd').toString().trim() - return readFileSync(lddPath, 'utf8').includes('musl') - } catch (e) { +const isMusl = () => { + let musl = false + if (process.platform === 'linux') { + musl = isMuslFromFilesystem() + if (musl === null) { + musl = isMuslFromReport() + } + if (musl === null) { + musl = isMuslFromChildProcess() + } + } + return musl +} + +const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-') + +const isMuslFromFilesystem = () => { + try { + return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl') + } catch { + return null + } +} + +const isMuslFromReport = () => { + const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null + if (!report) { + return null + } + if (report.header && report.header.glibcVersionRuntime) { + return false + } + if (Array.isArray(report.sharedObjects)) { + if (report.sharedObjects.some(isFileMusl)) { return true } - } else { - const { glibcVersionRuntime } = process.report.getReport().header - return !glibcVersionRuntime + } + return false +} + +const isMuslFromChildProcess = () => { + try { + return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl') + } catch (e) { + // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false + return false } } @@ -219,6 +251,31 @@ switch (platform) { loadError = e } break + case 'riscv64': + if (isMusl()) { + localFileExisted = existsSync(join(__dirname, 'bcrypt.linux-riscv64-musl.node')) + try { + if (localFileExisted) { + nativeBinding = require('./bcrypt.linux-riscv64-musl.node') + } else { + nativeBinding = require('@node-rs/bcrypt-linux-riscv64-musl') + } + } catch (e) { + loadError = e + } + } else { + localFileExisted = existsSync(join(__dirname, 'bcrypt.linux-riscv64-gnu.node')) + try { + if (localFileExisted) { + nativeBinding = require('./bcrypt.linux-riscv64-gnu.node') + } else { + nativeBinding = require('@node-rs/bcrypt-linux-riscv64-gnu') + } + } catch (e) { + loadError = e + } + } + break default: throw new Error(`Unsupported architecture on Linux: ${arch}`) } @@ -227,6 +284,20 @@ switch (platform) { throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`) } +if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) { + try { + localFileExisted = + existsSync(join(__dirname, 'bcrypt.wasm32-wasi.wasm')) && existsSync(join(__dirname, 'bcrypt.wasi.cjs')) + if (localFileExisted) { + nativeBinding = require('./bcrypt.wasi.cjs') + } else { + nativeBinding = require('@node-rs/bcrypt-wasm32-wasi') + } + } catch { + // ignore + } +} + if (!nativeBinding) { if (loadError) { throw loadError @@ -234,12 +305,10 @@ if (!nativeBinding) { throw new Error(`Failed to load native binding`) } -const { DEFAULT_COST, genSaltSync, genSalt, hashSync, hash, verifySync, verify } = nativeBinding - -module.exports.DEFAULT_COST = DEFAULT_COST -module.exports.genSaltSync = genSaltSync -module.exports.genSalt = genSalt -module.exports.hashSync = hashSync -module.exports.hash = hash -module.exports.verifySync = verifySync -module.exports.verify = verify +module.exports.DEFAULT_COST = nativeBinding.DEFAULT_COST +module.exports.genSalt = nativeBinding.genSalt +module.exports.genSaltSync = nativeBinding.genSaltSync +module.exports.hash = nativeBinding.hash +module.exports.hashSync = nativeBinding.hashSync +module.exports.verify = nativeBinding.verify +module.exports.verifySync = nativeBinding.verifySync diff --git a/packages/bcrypt/package.json b/packages/bcrypt/package.json index 62e3d35b..b1f2c489 100644 --- a/packages/bcrypt/package.json +++ b/packages/bcrypt/package.json @@ -27,22 +27,22 @@ "LICENSE.rust-bcrypt" ], "napi": { - "name": "bcrypt", - "triples": { - "defaults": true, - "additional": [ - "i686-pc-windows-msvc", - "armv7-unknown-linux-gnueabihf", - "x86_64-unknown-linux-musl", - "aarch64-unknown-linux-gnu", - "aarch64-apple-darwin", - "aarch64-linux-android", - "armv7-linux-androideabi", - "x86_64-unknown-freebsd", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc" - ] - } + "binaryName": "bcrypt", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "aarch64-linux-android", + "aarch64-unknown-linux-gnu", + "aarch64-unknown-linux-musl", + "aarch64-pc-windows-msvc", + "armv7-unknown-linux-gnueabihf", + "x86_64-unknown-linux-musl", + "x86_64-unknown-freebsd", + "i686-pc-windows-msvc", + "armv7-linux-androideabi" + ] }, "engines": { "node": ">= 10" @@ -67,8 +67,8 @@ "url": "https://github.com/napi-rs/node-rs/issues" }, "devDependencies": { - "@napi-rs/cli": "2.17.0", - "@types/bcrypt": "^5.0.1", + "@napi-rs/cli": "^3.0.0-alpha.25", + "@types/bcrypt": "^5.0.2", "bcrypt": "^5.1.1", "bcryptjs": "^2.4.3", "cross-env": "^7.0.3" diff --git a/packages/crc32/package.json b/packages/crc32/package.json index cdf6c023..db94129a 100644 --- a/packages/crc32/package.json +++ b/packages/crc32/package.json @@ -21,22 +21,22 @@ "LICENSE" ], "napi": { - "name": "crc32", - "triples": { - "defaults": true, - "additional": [ - "i686-pc-windows-msvc", - "armv7-unknown-linux-gnueabihf", - "x86_64-unknown-linux-musl", - "aarch64-unknown-linux-gnu", - "aarch64-apple-darwin", - "aarch64-linux-android", - "armv7-linux-androideabi", - "x86_64-unknown-freebsd", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc" - ] - } + "binaryName": "crc32", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "aarch64-linux-android", + "aarch64-unknown-linux-gnu", + "aarch64-unknown-linux-musl", + "aarch64-pc-windows-msvc", + "armv7-unknown-linux-gnueabihf", + "x86_64-unknown-linux-musl", + "x86_64-unknown-freebsd", + "i686-pc-windows-msvc", + "armv7-linux-androideabi" + ] }, "engines": { "node": ">= 10" @@ -52,8 +52,8 @@ "scripts": { "artifacts": "napi artifacts -d ../../artifacts", "bench": "cross-env NODE_ENV=production node benchmark/crc32.js", - "build": "napi build --platform --release --pipe \"prettier -w\"", - "build:debug": "napi build --platform --pipe \"prettier -w\"", + "build": "napi build --platform --release", + "build:debug": "napi build --platform", "prepublishOnly": "napi prepublish", "version": "napi version" }, @@ -61,8 +61,8 @@ "url": "https://github.com/napi-rs/node-rs/issues" }, "devDependencies": { - "@napi-rs/cli": "2.17.0", - "@types/crc": "^3.8.2", + "@napi-rs/cli": "^3.0.0-alpha.25", + "@types/crc": "^3.8.3", "buffer": "^6.0.3", "crc": "^4.3.2", "sse4_crc32": "^7.0.0" diff --git a/packages/deno-lint/index.d.ts b/packages/deno-lint/index.d.ts index 7e1eed8b..cefecd30 100644 --- a/packages/deno-lint/index.d.ts +++ b/packages/deno-lint/index.d.ts @@ -1,11 +1,10 @@ -/* tslint:disable */ +/* auto-generated by NAPI-RS */ /* eslint-disable */ -/* auto-generated by NAPI-RS */ +export function denolint(dirname: string, configPath: string): boolean export function lint( fileName: string, sourceCode: string | Buffer, allRules?: boolean | string | undefined | null, ): Array -export function denolint(dirname: string, configPath: string): boolean diff --git a/packages/deno-lint/index.js b/packages/deno-lint/index.js index 5733e8e5..5f8aebcb 100644 --- a/packages/deno-lint/index.js +++ b/packages/deno-lint/index.js @@ -1,7 +1,5 @@ -/* tslint:disable */ +// prettier-ignore /* eslint-disable */ -/* prettier-ignore */ - /* auto-generated by NAPI-RS */ const { existsSync, readFileSync } = require('fs') @@ -13,18 +11,52 @@ let nativeBinding = null let localFileExisted = false let loadError = null -function isMusl() { - // For Node 10 - if (!process.report || typeof process.report.getReport !== 'function') { - try { - const lddPath = require('child_process').execSync('which ldd').toString().trim() - return readFileSync(lddPath, 'utf8').includes('musl') - } catch (e) { +const isMusl = () => { + let musl = false + if (process.platform === 'linux') { + musl = isMuslFromFilesystem() + if (musl === null) { + musl = isMuslFromReport() + } + if (musl === null) { + musl = isMuslFromChildProcess() + } + } + return musl +} + +const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-') + +const isMuslFromFilesystem = () => { + try { + return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl') + } catch { + return null + } +} + +const isMuslFromReport = () => { + const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null + if (!report) { + return null + } + if (report.header && report.header.glibcVersionRuntime) { + return false + } + if (Array.isArray(report.sharedObjects)) { + if (report.sharedObjects.some(isFileMusl)) { return true } - } else { - const { glibcVersionRuntime } = process.report.getReport().header - return !glibcVersionRuntime + } + return false +} + +const isMuslFromChildProcess = () => { + try { + return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl') + } catch (e) { + // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false + return false } } @@ -219,6 +251,31 @@ switch (platform) { loadError = e } break + case 'riscv64': + if (isMusl()) { + localFileExisted = existsSync(join(__dirname, 'deno-lint.linux-riscv64-musl.node')) + try { + if (localFileExisted) { + nativeBinding = require('./deno-lint.linux-riscv64-musl.node') + } else { + nativeBinding = require('@node-rs/deno-lint-linux-riscv64-musl') + } + } catch (e) { + loadError = e + } + } else { + localFileExisted = existsSync(join(__dirname, 'deno-lint.linux-riscv64-gnu.node')) + try { + if (localFileExisted) { + nativeBinding = require('./deno-lint.linux-riscv64-gnu.node') + } else { + nativeBinding = require('@node-rs/deno-lint-linux-riscv64-gnu') + } + } catch (e) { + loadError = e + } + } + break default: throw new Error(`Unsupported architecture on Linux: ${arch}`) } @@ -227,6 +284,20 @@ switch (platform) { throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`) } +if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) { + try { + localFileExisted = + existsSync(join(__dirname, 'deno-lint.wasm32-wasi.wasm')) && existsSync(join(__dirname, 'deno-lint.wasi.cjs')) + if (localFileExisted) { + nativeBinding = require('./deno-lint.wasi.cjs') + } else { + nativeBinding = require('@node-rs/deno-lint-wasm32-wasi') + } + } catch { + // ignore + } +} + if (!nativeBinding) { if (loadError) { throw loadError @@ -234,7 +305,5 @@ if (!nativeBinding) { throw new Error(`Failed to load native binding`) } -const { lint, denolint } = nativeBinding - -module.exports.lint = lint -module.exports.denolint = denolint +module.exports.denolint = nativeBinding.denolint +module.exports.lint = nativeBinding.lint diff --git a/packages/deno-lint/package.json b/packages/deno-lint/package.json index c29e7cf3..136bcbd7 100644 --- a/packages/deno-lint/package.json +++ b/packages/deno-lint/package.json @@ -29,22 +29,22 @@ "LICENSE" ], "napi": { - "name": "deno-lint", - "triples": { - "defaults": true, - "additional": [ - "i686-pc-windows-msvc", - "armv7-unknown-linux-gnueabihf", - "x86_64-unknown-linux-musl", - "aarch64-unknown-linux-gnu", - "aarch64-apple-darwin", - "aarch64-linux-android", - "armv7-linux-androideabi", - "x86_64-unknown-freebsd", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc" - ] - } + "binaryName": "deno-lint", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "aarch64-linux-android", + "aarch64-unknown-linux-gnu", + "aarch64-unknown-linux-musl", + "aarch64-pc-windows-msvc", + "armv7-unknown-linux-gnueabihf", + "x86_64-unknown-linux-musl", + "x86_64-unknown-freebsd", + "i686-pc-windows-msvc", + "armv7-linux-androideabi" + ] }, "engines": { "node": ">= 10" @@ -60,8 +60,8 @@ "scripts": { "artifacts": "napi artifacts -d ../../artifacts", "bench": "cross-env NODE_ENV=production node benchmark/lint.js", - "build": "napi build --platform --release --pipe \"prettier -w\"", - "build:debug": "napi build --platform --pipe \"prettier -w\"", + "build": "napi build --platform --release", + "build:debug": "napi build --platform", "prepublishOnly": "napi prepublish", "version": "napi version" }, @@ -73,8 +73,8 @@ "typanion": "^3.14.0" }, "devDependencies": { - "@napi-rs/cli": "2.17.0", - "@types/webpack": "^5.28.4" + "@napi-rs/cli": "^3.0.0-alpha.25", + "@types/webpack": "^5.28.5" }, "funding": { "type": "github", diff --git a/packages/helper/package.json b/packages/helper/package.json index f2815ee4..3284580d 100644 --- a/packages/helper/package.json +++ b/packages/helper/package.json @@ -32,6 +32,6 @@ "build": "exit 0;" }, "dependencies": { - "@napi-rs/triples": "^1.1.0" + "@napi-rs/triples": "^1.2.0" } } diff --git a/packages/jieba/index.d.ts b/packages/jieba/index.d.ts index 39267b9f..7da0c283 100644 --- a/packages/jieba/index.d.ts +++ b/packages/jieba/index.d.ts @@ -1,21 +1,28 @@ -/* tslint:disable */ -/* eslint-disable */ - /* auto-generated by NAPI-RS */ +/* eslint-disable */ -export function load(): void -export function loadDict(dict: Buffer): void export function cut(sentence: string | Buffer, hmm?: boolean | undefined | null): string[] + export function cutAll(sentence: string | Buffer): string[] + export function cutForSearch(sentence: string | Buffer, hmm?: boolean | undefined | null): string[] -export interface TaggedWord { - tag: string - word: string -} -export function tag(sentence: string | Buffer, hmm?: boolean | undefined | null): Array + +export function extract(sentence: string | Buffer, topn: number, allowedPos?: string | undefined | null): Array + export interface Keyword { keyword: string weight: number } -export function extract(sentence: string | Buffer, topn: number, allowedPos?: string | undefined | null): Array + +export function load(): void + +export function loadDict(dict: Buffer): void + export function loadTFIDFDict(dict: Buffer): void + +export function tag(sentence: string | Buffer, hmm?: boolean | undefined | null): Array + +export interface TaggedWord { + tag: string + word: string +} diff --git a/packages/jieba/index.js b/packages/jieba/index.js index 76b71d36..b6f91a75 100644 --- a/packages/jieba/index.js +++ b/packages/jieba/index.js @@ -1,7 +1,5 @@ -/* tslint:disable */ +// prettier-ignore /* eslint-disable */ -/* prettier-ignore */ - /* auto-generated by NAPI-RS */ const { existsSync, readFileSync } = require('fs') @@ -13,18 +11,52 @@ let nativeBinding = null let localFileExisted = false let loadError = null -function isMusl() { - // For Node 10 - if (!process.report || typeof process.report.getReport !== 'function') { - try { - const lddPath = require('child_process').execSync('which ldd').toString().trim() - return readFileSync(lddPath, 'utf8').includes('musl') - } catch (e) { +const isMusl = () => { + let musl = false + if (process.platform === 'linux') { + musl = isMuslFromFilesystem() + if (musl === null) { + musl = isMuslFromReport() + } + if (musl === null) { + musl = isMuslFromChildProcess() + } + } + return musl +} + +const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-') + +const isMuslFromFilesystem = () => { + try { + return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl') + } catch { + return null + } +} + +const isMuslFromReport = () => { + const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null + if (!report) { + return null + } + if (report.header && report.header.glibcVersionRuntime) { + return false + } + if (Array.isArray(report.sharedObjects)) { + if (report.sharedObjects.some(isFileMusl)) { return true } - } else { - const { glibcVersionRuntime } = process.report.getReport().header - return !glibcVersionRuntime + } + return false +} + +const isMuslFromChildProcess = () => { + try { + return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl') + } catch (e) { + // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false + return false } } @@ -219,6 +251,31 @@ switch (platform) { loadError = e } break + case 'riscv64': + if (isMusl()) { + localFileExisted = existsSync(join(__dirname, 'jieba.linux-riscv64-musl.node')) + try { + if (localFileExisted) { + nativeBinding = require('./jieba.linux-riscv64-musl.node') + } else { + nativeBinding = require('@node-rs/jieba-linux-riscv64-musl') + } + } catch (e) { + loadError = e + } + } else { + localFileExisted = existsSync(join(__dirname, 'jieba.linux-riscv64-gnu.node')) + try { + if (localFileExisted) { + nativeBinding = require('./jieba.linux-riscv64-gnu.node') + } else { + nativeBinding = require('@node-rs/jieba-linux-riscv64-gnu') + } + } catch (e) { + loadError = e + } + } + break default: throw new Error(`Unsupported architecture on Linux: ${arch}`) } @@ -227,6 +284,20 @@ switch (platform) { throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`) } +if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) { + try { + localFileExisted = + existsSync(join(__dirname, 'jieba.wasm32-wasi.wasm')) && existsSync(join(__dirname, 'jieba.wasi.cjs')) + if (localFileExisted) { + nativeBinding = require('./jieba.wasi.cjs') + } else { + nativeBinding = require('@node-rs/jieba-wasm32-wasi') + } + } catch { + // ignore + } +} + if (!nativeBinding) { if (loadError) { throw loadError @@ -234,13 +305,11 @@ if (!nativeBinding) { throw new Error(`Failed to load native binding`) } -const { load, loadDict, cut, cutAll, cutForSearch, tag, extract, loadTFIDFDict } = nativeBinding - -module.exports.load = load -module.exports.loadDict = loadDict -module.exports.cut = cut -module.exports.cutAll = cutAll -module.exports.cutForSearch = cutForSearch -module.exports.tag = tag -module.exports.extract = extract -module.exports.loadTFIDFDict = loadTFIDFDict +module.exports.cut = nativeBinding.cut +module.exports.cutAll = nativeBinding.cutAll +module.exports.cutForSearch = nativeBinding.cutForSearch +module.exports.extract = nativeBinding.extract +module.exports.load = nativeBinding.load +module.exports.loadDict = nativeBinding.loadDict +module.exports.loadTFIDFDict = nativeBinding.loadTFIDFDict +module.exports.tag = nativeBinding.tag diff --git a/packages/jieba/package.json b/packages/jieba/package.json index d792a8c4..4a5207f8 100644 --- a/packages/jieba/package.json +++ b/packages/jieba/package.json @@ -21,22 +21,22 @@ "LICENSE" ], "napi": { - "name": "jieba", - "triples": { - "defaults": true, - "additional": [ - "i686-pc-windows-msvc", - "x86_64-unknown-linux-musl", - "aarch64-unknown-linux-gnu", - "armv7-unknown-linux-gnueabihf", - "aarch64-apple-darwin", - "aarch64-linux-android", - "armv7-linux-androideabi", - "x86_64-unknown-freebsd", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc" - ] - } + "binaryName": "jieba", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "aarch64-linux-android", + "aarch64-unknown-linux-gnu", + "aarch64-unknown-linux-musl", + "aarch64-pc-windows-msvc", + "armv7-unknown-linux-gnueabihf", + "x86_64-unknown-linux-musl", + "x86_64-unknown-freebsd", + "i686-pc-windows-msvc", + "armv7-linux-androideabi" + ] }, "engines": { "node": ">= 10" @@ -52,8 +52,8 @@ "scripts": { "artifacts": "napi artifacts -d ../../artifacts", "bench": "cross-env NODE_ENV=production node benchmark/jieba.js", - "build": "napi build --platform --release --pipe \"prettier -w\"", - "build:debug": "napi build --platform --pipe \"prettier -w\"", + "build": "napi build --platform --release", + "build:debug": "napi build --platform", "prepublishOnly": "napi prepublish", "version": "napi version" }, @@ -61,7 +61,7 @@ "url": "https://github.com/napi-rs/node-rs/issues" }, "devDependencies": { - "@napi-rs/cli": "2.17.0", + "@napi-rs/cli": "^3.0.0-alpha.25", "nodejieba": "^2.6.0" }, "funding": { diff --git a/packages/jsonwebtoken/index.d.ts b/packages/jsonwebtoken/index.d.ts index 33073a9c..7d0253e7 100644 --- a/packages/jsonwebtoken/index.d.ts +++ b/packages/jsonwebtoken/index.d.ts @@ -1,7 +1,5 @@ -/* tslint:disable */ -/* eslint-disable */ - /* auto-generated by NAPI-RS */ +/* eslint-disable */ export const enum Algorithm { /** HMAC using SHA-256 */ @@ -29,6 +27,7 @@ export const enum Algorithm { /** Edwards-curve Digital Signature Algorithm (EdDSA) */ EdDSA = 11, } + export interface Claims { data?: Record aud?: string @@ -39,6 +38,7 @@ export interface Claims { nbf?: Number sub?: string } + export interface Header { /** * The algorithm used @@ -95,13 +95,16 @@ export interface Header { */ x5TS256CertThumbprint?: string } + export function sign( claims: Claims, key: string | Buffer, header?: Header | undefined | null, abortSignal?: AbortSignal | undefined | null, ): Promise + export function signSync(claims: Claims, key: string | Buffer, header?: Header | undefined | null): string + export interface Validation { /** * If it contains a value, the validation will check that the `aud` field is a member of the @@ -168,10 +171,12 @@ export interface Validation { */ validateSignature?: boolean } + export function verify( token: string, key: string | Buffer, validation?: Validation | undefined | null, abortSignal?: AbortSignal | undefined | null, ): Promise + export function verifySync(token: string, key: string | Buffer, validation?: Validation | undefined | null): Claims diff --git a/packages/jsonwebtoken/index.js b/packages/jsonwebtoken/index.js index d5b60ada..5eebedf5 100644 --- a/packages/jsonwebtoken/index.js +++ b/packages/jsonwebtoken/index.js @@ -1,7 +1,5 @@ -/* tslint:disable */ +// prettier-ignore /* eslint-disable */ -/* prettier-ignore */ - /* auto-generated by NAPI-RS */ const { existsSync, readFileSync } = require('fs') @@ -13,18 +11,52 @@ let nativeBinding = null let localFileExisted = false let loadError = null -function isMusl() { - // For Node 10 - if (!process.report || typeof process.report.getReport !== 'function') { - try { - const lddPath = require('child_process').execSync('which ldd').toString().trim() - return readFileSync(lddPath, 'utf8').includes('musl') - } catch (e) { +const isMusl = () => { + let musl = false + if (process.platform === 'linux') { + musl = isMuslFromFilesystem() + if (musl === null) { + musl = isMuslFromReport() + } + if (musl === null) { + musl = isMuslFromChildProcess() + } + } + return musl +} + +const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-') + +const isMuslFromFilesystem = () => { + try { + return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl') + } catch { + return null + } +} + +const isMuslFromReport = () => { + const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null + if (!report) { + return null + } + if (report.header && report.header.glibcVersionRuntime) { + return false + } + if (Array.isArray(report.sharedObjects)) { + if (report.sharedObjects.some(isFileMusl)) { return true } - } else { - const { glibcVersionRuntime } = process.report.getReport().header - return !glibcVersionRuntime + } + return false +} + +const isMuslFromChildProcess = () => { + try { + return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl') + } catch (e) { + // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false + return false } } @@ -219,6 +251,31 @@ switch (platform) { loadError = e } break + case 'riscv64': + if (isMusl()) { + localFileExisted = existsSync(join(__dirname, 'jsonwebtoken.linux-riscv64-musl.node')) + try { + if (localFileExisted) { + nativeBinding = require('./jsonwebtoken.linux-riscv64-musl.node') + } else { + nativeBinding = require('@node-rs/jsonwebtoken-linux-riscv64-musl') + } + } catch (e) { + loadError = e + } + } else { + localFileExisted = existsSync(join(__dirname, 'jsonwebtoken.linux-riscv64-gnu.node')) + try { + if (localFileExisted) { + nativeBinding = require('./jsonwebtoken.linux-riscv64-gnu.node') + } else { + nativeBinding = require('@node-rs/jsonwebtoken-linux-riscv64-gnu') + } + } catch (e) { + loadError = e + } + } + break default: throw new Error(`Unsupported architecture on Linux: ${arch}`) } @@ -227,6 +284,21 @@ switch (platform) { throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`) } +if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) { + try { + localFileExisted = + existsSync(join(__dirname, 'jsonwebtoken.wasm32-wasi.wasm')) && + existsSync(join(__dirname, 'jsonwebtoken.wasi.cjs')) + if (localFileExisted) { + nativeBinding = require('./jsonwebtoken.wasi.cjs') + } else { + nativeBinding = require('@node-rs/jsonwebtoken-wasm32-wasi') + } + } catch { + // ignore + } +} + if (!nativeBinding) { if (loadError) { throw loadError @@ -234,10 +306,8 @@ if (!nativeBinding) { throw new Error(`Failed to load native binding`) } -const { Algorithm, sign, signSync, verify, verifySync } = nativeBinding - -module.exports.Algorithm = Algorithm -module.exports.sign = sign -module.exports.signSync = signSync -module.exports.verify = verify -module.exports.verifySync = verifySync +module.exports.Algorithm = nativeBinding.Algorithm +module.exports.sign = nativeBinding.sign +module.exports.signSync = nativeBinding.signSync +module.exports.verify = nativeBinding.verify +module.exports.verifySync = nativeBinding.verifySync diff --git a/packages/jsonwebtoken/package.json b/packages/jsonwebtoken/package.json index 0896816d..96f5d17f 100644 --- a/packages/jsonwebtoken/package.json +++ b/packages/jsonwebtoken/package.json @@ -11,28 +11,28 @@ "scripts": { "artifacts": "napi artifacts -d ../../artifacts", "bench": "cross-env NODE_ENV=production node benchmark/jsonwebtoken.js", - "build": "napi build --platform --release --pipe \"prettier -w\"", - "build:debug": "napi build --platform --pipe \"prettier -w\"", + "build": "napi build --platform --release", + "build:debug": "napi build --platform", "prepublishOnly": "napi prepublish", "version": "napi version" }, "napi": { - "name": "jsonwebtoken", - "triples": { - "defaults": true, - "additional": [ - "aarch64-apple-darwin", - "aarch64-linux-android", - "aarch64-unknown-linux-gnu", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc", - "armv7-unknown-linux-gnueabihf", - "x86_64-unknown-linux-musl", - "x86_64-unknown-freebsd", - "i686-pc-windows-msvc", - "armv7-linux-androideabi" - ] - } + "binaryName": "jsonwebtoken", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "aarch64-linux-android", + "aarch64-unknown-linux-gnu", + "aarch64-unknown-linux-musl", + "aarch64-pc-windows-msvc", + "armv7-unknown-linux-gnueabihf", + "x86_64-unknown-linux-musl", + "x86_64-unknown-freebsd", + "i686-pc-windows-msvc", + "armv7-linux-androideabi" + ] }, "repository": { "type": "git", @@ -62,8 +62,8 @@ "node": ">= 10" }, "devDependencies": { - "@napi-rs/cli": "2.17.0", - "@types/jsonwebtoken": "^9.0.4", + "@napi-rs/cli": "^3.0.0-alpha.25", + "@types/jsonwebtoken": "^9.0.5", "jsonwebtoken": "^9.0.2" } } diff --git a/packages/jsonwebtoken/src/algorithm.rs b/packages/jsonwebtoken/src/algorithm.rs index ec26ed3a..d749d793 100644 --- a/packages/jsonwebtoken/src/algorithm.rs +++ b/packages/jsonwebtoken/src/algorithm.rs @@ -1,4 +1,3 @@ -use napi::bindgen_prelude::*; use napi_derive::napi; #[napi] diff --git a/packages/xxhash/index.d.ts b/packages/xxhash/index.d.ts index d99cd029..625a7f4b 100644 --- a/packages/xxhash/index.d.ts +++ b/packages/xxhash/index.d.ts @@ -1,27 +1,25 @@ -/* tslint:disable */ -/* eslint-disable */ - /* auto-generated by NAPI-RS */ +/* eslint-disable */ -export function xxh32(input: string | Buffer, seed?: number | undefined | null): number -export function xxh64(input: string | Buffer, seed?: bigint | undefined | null): bigint export class Xxh32 { constructor(seed?: number | undefined | null) update(input: string | Buffer): this digest(): number reset(newState?: number | undefined | null): void } + export class Xxh64 { constructor(seed?: bigint | undefined | null) update(input: string | Buffer): this digest(): bigint reset(newState?: bigint | undefined | null): void } + +export function xxh32(input: string | Buffer, seed?: number | undefined | null): number + +export function xxh64(input: string | Buffer, seed?: bigint | undefined | null): bigint + export namespace xxh3 { - export function xxh64(input: string | Buffer, seed?: bigint | undefined | null): bigint - export function xxh64WithSecret(input: string | Buffer, secret: Buffer): bigint - export function xxh128(input: string | Buffer, seed?: bigint | undefined | null): bigint - export function xxh128WithSecret(input: string | Buffer, secret: Buffer): bigint export class Xxh3 { static withSeed(seed?: bigint | undefined | null): Xxh3 static withSecret(secret: Buffer): Xxh3 @@ -29,4 +27,8 @@ export namespace xxh3 { digest(): bigint reset(): void } + export function xxh128(input: string | Buffer, seed?: bigint | undefined | null): bigint + export function xxh128WithSecret(input: string | Buffer, secret: Buffer): bigint + export function xxh64(input: string | Buffer, seed?: bigint | undefined | null): bigint + export function xxh64WithSecret(input: string | Buffer, secret: Buffer): bigint } diff --git a/packages/xxhash/index.js b/packages/xxhash/index.js index 093e6f13..4f9e609d 100644 --- a/packages/xxhash/index.js +++ b/packages/xxhash/index.js @@ -1,7 +1,5 @@ -/* tslint:disable */ +// prettier-ignore /* eslint-disable */ -/* prettier-ignore */ - /* auto-generated by NAPI-RS */ const { existsSync, readFileSync } = require('fs') @@ -13,18 +11,52 @@ let nativeBinding = null let localFileExisted = false let loadError = null -function isMusl() { - // For Node 10 - if (!process.report || typeof process.report.getReport !== 'function') { - try { - const lddPath = require('child_process').execSync('which ldd').toString().trim() - return readFileSync(lddPath, 'utf8').includes('musl') - } catch (e) { +const isMusl = () => { + let musl = false + if (process.platform === 'linux') { + musl = isMuslFromFilesystem() + if (musl === null) { + musl = isMuslFromReport() + } + if (musl === null) { + musl = isMuslFromChildProcess() + } + } + return musl +} + +const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-') + +const isMuslFromFilesystem = () => { + try { + return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl') + } catch { + return null + } +} + +const isMuslFromReport = () => { + const report = typeof process.report.getReport === 'function' ? process.report.getReport() : null + if (!report) { + return null + } + if (report.header && report.header.glibcVersionRuntime) { + return false + } + if (Array.isArray(report.sharedObjects)) { + if (report.sharedObjects.some(isFileMusl)) { return true } - } else { - const { glibcVersionRuntime } = process.report.getReport().header - return !glibcVersionRuntime + } + return false +} + +const isMuslFromChildProcess = () => { + try { + return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl') + } catch (e) { + // If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false + return false } } @@ -219,6 +251,31 @@ switch (platform) { loadError = e } break + case 'riscv64': + if (isMusl()) { + localFileExisted = existsSync(join(__dirname, 'xxhash.linux-riscv64-musl.node')) + try { + if (localFileExisted) { + nativeBinding = require('./xxhash.linux-riscv64-musl.node') + } else { + nativeBinding = require('@node-rs/xxhash-linux-riscv64-musl') + } + } catch (e) { + loadError = e + } + } else { + localFileExisted = existsSync(join(__dirname, 'xxhash.linux-riscv64-gnu.node')) + try { + if (localFileExisted) { + nativeBinding = require('./xxhash.linux-riscv64-gnu.node') + } else { + nativeBinding = require('@node-rs/xxhash-linux-riscv64-gnu') + } + } catch (e) { + loadError = e + } + } + break default: throw new Error(`Unsupported architecture on Linux: ${arch}`) } @@ -227,6 +284,20 @@ switch (platform) { throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`) } +if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) { + try { + localFileExisted = + existsSync(join(__dirname, 'xxhash.wasm32-wasi.wasm')) && existsSync(join(__dirname, 'xxhash.wasi.cjs')) + if (localFileExisted) { + nativeBinding = require('./xxhash.wasi.cjs') + } else { + nativeBinding = require('@node-rs/xxhash-wasm32-wasi') + } + } catch { + // ignore + } +} + if (!nativeBinding) { if (loadError) { throw loadError @@ -234,10 +305,8 @@ if (!nativeBinding) { throw new Error(`Failed to load native binding`) } -const { xxh32, Xxh32, xxh64, Xxh64, xxh3 } = nativeBinding - -module.exports.xxh32 = xxh32 -module.exports.Xxh32 = Xxh32 -module.exports.xxh64 = xxh64 -module.exports.Xxh64 = Xxh64 -module.exports.xxh3 = xxh3 +module.exports.Xxh32 = nativeBinding.Xxh32 +module.exports.Xxh64 = nativeBinding.Xxh64 +module.exports.xxh32 = nativeBinding.xxh32 +module.exports.xxh64 = nativeBinding.xxh64 +module.exports.xxh3 = nativeBinding.xxh3 diff --git a/packages/xxhash/package.json b/packages/xxhash/package.json index 89016be8..6c3ac5c5 100644 --- a/packages/xxhash/package.json +++ b/packages/xxhash/package.json @@ -23,22 +23,22 @@ "index.d.ts" ], "napi": { - "name": "xxhash", - "triples": { - "defaults": true, - "additional": [ - "i686-pc-windows-msvc", - "x86_64-unknown-linux-musl", - "aarch64-unknown-linux-gnu", - "armv7-unknown-linux-gnueabihf", - "aarch64-apple-darwin", - "aarch64-linux-android", - "armv7-linux-androideabi", - "x86_64-unknown-freebsd", - "aarch64-unknown-linux-musl", - "aarch64-pc-windows-msvc" - ] - } + "binaryName": "xxhash", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "aarch64-linux-android", + "aarch64-unknown-linux-gnu", + "aarch64-unknown-linux-musl", + "aarch64-pc-windows-msvc", + "armv7-unknown-linux-gnueabihf", + "x86_64-unknown-linux-musl", + "x86_64-unknown-freebsd", + "i686-pc-windows-msvc", + "armv7-linux-androideabi" + ] }, "engines": { "node": ">= 12" @@ -54,8 +54,8 @@ "scripts": { "artifacts": "napi artifacts -d ../../artifacts", "bench": "cross-env NODE_ENV=production node benchmark/xxhash.js", - "build": "napi build --platform --release --pipe \"prettier -w\"", - "build:debug": "napi build --platform --pipe \"prettier -w\"", + "build": "napi build --platform --release", + "build:debug": "napi build --platform", "prepublishOnly": "napi prepublish", "version": "napi version" }, @@ -63,8 +63,8 @@ "url": "https://github.com/napi-rs/node-rs/issues" }, "devDependencies": { - "@napi-rs/cli": "2.17.0", - "@types/xxhashjs": "^0.2.3", + "@napi-rs/cli": "^3.0.0-alpha.25", + "@types/xxhashjs": "^0.2.4", "webpack": "^5.89.0", "xxhash": "^0.3.0", "xxhashjs": "^0.2.2" diff --git a/rust-toolchain b/rust-toolchain index 4d0dddec..aeccb7e8 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2023-10-25 +nightly-2023-12-23 diff --git a/yarn.lock b/yarn.lock index 15b058ae..dbd9e673 100644 --- a/yarn.lock +++ b/yarn.lock @@ -280,6 +280,15 @@ __metadata: languageName: node linkType: hard +"@ljharb/through@npm:^2.3.11": + version: 2.3.11 + resolution: "@ljharb/through@npm:2.3.11" + dependencies: + call-bind: "npm:^1.0.2" + checksum: 19cdaa9e4ba16aea9bb9dafbdd1c111febc0e5ce07b0959b049d7fda8a7247726603bb06b391f2d57227cf4ad081636d6f9e08dc138813225d54a6c81a04b679 + languageName: node + linkType: hard + "@mapbox/node-pre-gyp@npm:^1.0.11, @mapbox/node-pre-gyp@npm:^1.0.4, @mapbox/node-pre-gyp@npm:^1.0.5": version: 1.0.11 resolution: "@mapbox/node-pre-gyp@npm:1.0.11" @@ -299,16 +308,350 @@ __metadata: languageName: node linkType: hard -"@napi-rs/cli@npm:2.17.0": - version: 2.17.0 - resolution: "@napi-rs/cli@npm:2.17.0" +"@napi-rs/cli@npm:^3.0.0-alpha.25": + version: 3.0.0-alpha.25 + resolution: "@napi-rs/cli@npm:3.0.0-alpha.25" + dependencies: + "@napi-rs/cross-toolchain": "npm:^0.0.14" + "@octokit/rest": "npm:^20.0.2" + "@tybys/wasm-util": "npm:0.8.0" + clipanion: "npm:^3.2.1" + colorette: "npm:^2.0.20" + debug: "npm:^4.3.4" + emnapi: "npm:0.44.0" + inquirer: "npm:^9.2.12" + js-yaml: "npm:^4.1.0" + lodash-es: "npm:^4.17.21" + toml: "npm:^3.0.0" + typanion: "npm:^3.14.0" + peerDependencies: + "@emnapi/runtime": 0.44.0 + "@tybys/wasm-util": 0.8.0 + emnapi: 0.44.0 + peerDependenciesMeta: + "@emnapi/runtime": + optional: true + "@tybys/wasm-util": + optional: true + emnapi: + optional: true bin: - napi: scripts/index.js - checksum: da50d466da7dadf92d818431b4e903189424280d0060f847f8b45a62a7fc54912207200b844e7e7d3e060528bf8a61c1afc72cfad2fe06fd2d8345b7593b225f + napi: dist/cli.js + napi-raw: cli.mjs + checksum: 742f8900616099ddc65cf76e54b039637eb869100e8eee6b10c563bd17e1ecdfbcf41cc0cb9c11fa46e96d6374e6e62cbf5b3b08dbb678e32552aad56459f8fb + languageName: node + linkType: hard + +"@napi-rs/cross-toolchain@npm:^0.0.14": + version: 0.0.14 + resolution: "@napi-rs/cross-toolchain@npm:0.0.14" + dependencies: + "@napi-rs/lzma": "npm:^1.2.1" + "@napi-rs/tar": "npm:^0.1.0" + debug: "npm:^4.3.4" + peerDependencies: + "@napi-rs/cross-toolchain-arm64-target-aarch64": ^0.0.14 + "@napi-rs/cross-toolchain-arm64-target-armv7": ^0.0.14 + "@napi-rs/cross-toolchain-arm64-target-x86_64": ^0.0.14 + "@napi-rs/cross-toolchain-x64-target-aarch64": ^0.0.14 + "@napi-rs/cross-toolchain-x64-target-armv7": ^0.0.14 + "@napi-rs/cross-toolchain-x64-target-x86_64": ^0.0.14 + peerDependenciesMeta: + "@napi-rs/cross-toolchain-arm64-target-aarch64": + optional: true + "@napi-rs/cross-toolchain-arm64-target-armv7": + optional: true + "@napi-rs/cross-toolchain-arm64-target-x86_64": + optional: true + "@napi-rs/cross-toolchain-x64-target-aarch64": + optional: true + "@napi-rs/cross-toolchain-x64-target-armv7": + optional: true + "@napi-rs/cross-toolchain-x64-target-x86_64": + optional: true + checksum: 177f126e2324af95e76b88b9ebfcf562659ccfdbb2fe2ee6bfe2079ab3a5d573f5df62e9c065bfbd31cda834fefb38d72ca92cafee759f74a33298266592c72a + languageName: node + linkType: hard + +"@napi-rs/lzma-android-arm-eabi@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-android-arm-eabi@npm:1.2.1" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@napi-rs/lzma-android-arm64@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-android-arm64@npm:1.2.1" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@napi-rs/lzma-darwin-arm64@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-darwin-arm64@npm:1.2.1" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@napi-rs/lzma-darwin-x64@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-darwin-x64@npm:1.2.1" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@napi-rs/lzma-freebsd-x64@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-freebsd-x64@npm:1.2.1" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@napi-rs/lzma-linux-arm-gnueabihf@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-linux-arm-gnueabihf@npm:1.2.1" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@napi-rs/lzma-linux-arm64-gnu@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-linux-arm64-gnu@npm:1.2.1" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@napi-rs/lzma-linux-arm64-musl@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-linux-arm64-musl@npm:1.2.1" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@napi-rs/lzma-linux-x64-gnu@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-linux-x64-gnu@npm:1.2.1" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@napi-rs/lzma-linux-x64-musl@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-linux-x64-musl@npm:1.2.1" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@napi-rs/lzma-win32-arm64-msvc@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-win32-arm64-msvc@npm:1.2.1" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@napi-rs/lzma-win32-ia32-msvc@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-win32-ia32-msvc@npm:1.2.1" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"@napi-rs/lzma-win32-x64-msvc@npm:1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma-win32-x64-msvc@npm:1.2.1" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@napi-rs/lzma@npm:^1.2.1": + version: 1.2.1 + resolution: "@napi-rs/lzma@npm:1.2.1" + dependencies: + "@napi-rs/lzma-android-arm-eabi": "npm:1.2.1" + "@napi-rs/lzma-android-arm64": "npm:1.2.1" + "@napi-rs/lzma-darwin-arm64": "npm:1.2.1" + "@napi-rs/lzma-darwin-x64": "npm:1.2.1" + "@napi-rs/lzma-freebsd-x64": "npm:1.2.1" + "@napi-rs/lzma-linux-arm-gnueabihf": "npm:1.2.1" + "@napi-rs/lzma-linux-arm64-gnu": "npm:1.2.1" + "@napi-rs/lzma-linux-arm64-musl": "npm:1.2.1" + "@napi-rs/lzma-linux-x64-gnu": "npm:1.2.1" + "@napi-rs/lzma-linux-x64-musl": "npm:1.2.1" + "@napi-rs/lzma-win32-arm64-msvc": "npm:1.2.1" + "@napi-rs/lzma-win32-ia32-msvc": "npm:1.2.1" + "@napi-rs/lzma-win32-x64-msvc": "npm:1.2.1" + dependenciesMeta: + "@napi-rs/lzma-android-arm-eabi": + optional: true + "@napi-rs/lzma-android-arm64": + optional: true + "@napi-rs/lzma-darwin-arm64": + optional: true + "@napi-rs/lzma-darwin-x64": + optional: true + "@napi-rs/lzma-freebsd-x64": + optional: true + "@napi-rs/lzma-linux-arm-gnueabihf": + optional: true + "@napi-rs/lzma-linux-arm64-gnu": + optional: true + "@napi-rs/lzma-linux-arm64-musl": + optional: true + "@napi-rs/lzma-linux-x64-gnu": + optional: true + "@napi-rs/lzma-linux-x64-musl": + optional: true + "@napi-rs/lzma-win32-arm64-msvc": + optional: true + "@napi-rs/lzma-win32-ia32-msvc": + optional: true + "@napi-rs/lzma-win32-x64-msvc": + optional: true + checksum: 8fc856aa1f547a2ca5477afd4aa7079069d7fb0ce5da64ba4a3d5eb243210a6bb591f1f0fa9584f0f272952bd1d11b99eb097a1d2be9f919c8a9dcd1d8bceb2c + languageName: node + linkType: hard + +"@napi-rs/tar-android-arm-eabi@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-android-arm-eabi@npm:0.1.0" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@napi-rs/tar-android-arm64@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-android-arm64@npm:0.1.0" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@napi-rs/tar-darwin-arm64@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-darwin-arm64@npm:0.1.0" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@napi-rs/tar-darwin-x64@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-darwin-x64@npm:0.1.0" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@napi-rs/tar-freebsd-x64@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-freebsd-x64@npm:0.1.0" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@napi-rs/tar-linux-arm-gnueabihf@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-linux-arm-gnueabihf@npm:0.1.0" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@napi-rs/tar-linux-arm64-gnu@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-linux-arm64-gnu@npm:0.1.0" + conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@napi-rs/triples@npm:^1.1.0": +"@napi-rs/tar-linux-arm64-musl@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-linux-arm64-musl@npm:0.1.0" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@napi-rs/tar-linux-x64-gnu@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-linux-x64-gnu@npm:0.1.0" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@napi-rs/tar-linux-x64-musl@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-linux-x64-musl@npm:0.1.0" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@napi-rs/tar-win32-arm64-msvc@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-win32-arm64-msvc@npm:0.1.0" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@napi-rs/tar-win32-ia32-msvc@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-win32-ia32-msvc@npm:0.1.0" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"@napi-rs/tar-win32-x64-msvc@npm:0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar-win32-x64-msvc@npm:0.1.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@napi-rs/tar@npm:^0.1.0": + version: 0.1.0 + resolution: "@napi-rs/tar@npm:0.1.0" + dependencies: + "@napi-rs/tar-android-arm-eabi": "npm:0.1.0" + "@napi-rs/tar-android-arm64": "npm:0.1.0" + "@napi-rs/tar-darwin-arm64": "npm:0.1.0" + "@napi-rs/tar-darwin-x64": "npm:0.1.0" + "@napi-rs/tar-freebsd-x64": "npm:0.1.0" + "@napi-rs/tar-linux-arm-gnueabihf": "npm:0.1.0" + "@napi-rs/tar-linux-arm64-gnu": "npm:0.1.0" + "@napi-rs/tar-linux-arm64-musl": "npm:0.1.0" + "@napi-rs/tar-linux-x64-gnu": "npm:0.1.0" + "@napi-rs/tar-linux-x64-musl": "npm:0.1.0" + "@napi-rs/tar-win32-arm64-msvc": "npm:0.1.0" + "@napi-rs/tar-win32-ia32-msvc": "npm:0.1.0" + "@napi-rs/tar-win32-x64-msvc": "npm:0.1.0" + dependenciesMeta: + "@napi-rs/tar-android-arm-eabi": + optional: true + "@napi-rs/tar-android-arm64": + optional: true + "@napi-rs/tar-darwin-arm64": + optional: true + "@napi-rs/tar-darwin-x64": + optional: true + "@napi-rs/tar-freebsd-x64": + optional: true + "@napi-rs/tar-linux-arm-gnueabihf": + optional: true + "@napi-rs/tar-linux-arm64-gnu": + optional: true + "@napi-rs/tar-linux-arm64-musl": + optional: true + "@napi-rs/tar-linux-x64-gnu": + optional: true + "@napi-rs/tar-linux-x64-musl": + optional: true + "@napi-rs/tar-win32-arm64-msvc": + optional: true + "@napi-rs/tar-win32-ia32-msvc": + optional: true + "@napi-rs/tar-win32-x64-msvc": + optional: true + checksum: e034179204d99db042c03b2a43ec2b6ceff49b4c7ccbd5f76f2f79457de2951018a683b402878900fd3dd177fc842d880c9a40a634deb138c66778a5c91ae076 + languageName: node + linkType: hard + +"@napi-rs/triples@npm:^1.2.0": version: 1.2.0 resolution: "@napi-rs/triples@npm:1.2.0" checksum: e8294cc63d36fe0b062dc5293a0a2c72ae9318676dd76168e969a8f47b95180e7fe80a301fc0d9c6688399494744bfe21275b58f247f2981b558898743389e0f @@ -319,8 +662,8 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/argon2@workspace:packages/argon2" dependencies: - "@napi-rs/cli": "npm:2.17.0" - argon2: "npm:^0.31.1" + "@napi-rs/cli": "npm:^3.0.0-alpha.25" + argon2: "npm:^0.31.2" cross-env: "npm:^7.0.3" languageName: unknown linkType: soft @@ -329,8 +672,8 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/bcrypt@workspace:packages/bcrypt" dependencies: - "@napi-rs/cli": "npm:2.17.0" - "@types/bcrypt": "npm:^5.0.1" + "@napi-rs/cli": "npm:^3.0.0-alpha.25" + "@types/bcrypt": "npm:^5.0.2" bcrypt: "npm:^5.1.1" bcryptjs: "npm:^2.4.3" cross-env: "npm:^7.0.3" @@ -341,8 +684,8 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/crc32@workspace:packages/crc32" dependencies: - "@napi-rs/cli": "npm:2.17.0" - "@types/crc": "npm:^3.8.2" + "@napi-rs/cli": "npm:^3.0.0-alpha.25" + "@types/crc": "npm:^3.8.3" buffer: "npm:^6.0.3" crc: "npm:^4.3.2" sse4_crc32: "npm:^7.0.0" @@ -353,8 +696,8 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/deno-lint@workspace:packages/deno-lint" dependencies: - "@napi-rs/cli": "npm:2.17.0" - "@types/webpack": "npm:^5.28.4" + "@napi-rs/cli": "npm:^3.0.0-alpha.25" + "@types/webpack": "npm:^5.28.5" clipanion: "npm:^3.2.1" typanion: "npm:^3.14.0" bin: @@ -366,7 +709,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/helper@workspace:packages/helper" dependencies: - "@napi-rs/triples": "npm:^1.1.0" + "@napi-rs/triples": "npm:^1.2.0" languageName: unknown linkType: soft @@ -374,7 +717,7 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/jieba@workspace:packages/jieba" dependencies: - "@napi-rs/cli": "npm:2.17.0" + "@napi-rs/cli": "npm:^3.0.0-alpha.25" nodejieba: "npm:^2.6.0" languageName: unknown linkType: soft @@ -383,8 +726,8 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/jsonwebtoken@workspace:packages/jsonwebtoken" dependencies: - "@napi-rs/cli": "npm:2.17.0" - "@types/jsonwebtoken": "npm:^9.0.4" + "@napi-rs/cli": "npm:^3.0.0-alpha.25" + "@types/jsonwebtoken": "npm:^9.0.5" jsonwebtoken: "npm:^9.0.2" languageName: unknown linkType: soft @@ -393,8 +736,8 @@ __metadata: version: 0.0.0-use.local resolution: "@node-rs/xxhash@workspace:packages/xxhash" dependencies: - "@napi-rs/cli": "npm:2.17.0" - "@types/xxhashjs": "npm:^0.2.3" + "@napi-rs/cli": "npm:^3.0.0-alpha.25" + "@types/xxhashjs": "npm:^0.2.4" webpack: "npm:^5.89.0" xxhash: "npm:^0.3.0" xxhashjs: "npm:^0.2.2" @@ -507,32 +850,32 @@ __metadata: languageName: node linkType: hard -"@nrwl/devkit@npm:17.2.6": - version: 17.2.6 - resolution: "@nrwl/devkit@npm:17.2.6" +"@nrwl/devkit@npm:17.2.7": + version: 17.2.7 + resolution: "@nrwl/devkit@npm:17.2.7" dependencies: - "@nx/devkit": "npm:17.2.6" - checksum: 3ddcf93b83c91db3de2bd746a87ca3c4f9c493de7308498629a079442690fe23fa56d9daa4c697dd35a284d95810697b290d2c607a5c14b6c1149004c8940311 + "@nx/devkit": "npm:17.2.7" + checksum: 795e1b2d82f6f975317ab10a87e5550fca753c13124c639545e3728c53b7db0050a182dbeb789839e2caf78eb285766eb78a971c3464305091c8837934cdfde6 languageName: node linkType: hard -"@nrwl/tao@npm:17.2.6": - version: 17.2.6 - resolution: "@nrwl/tao@npm:17.2.6" +"@nrwl/tao@npm:17.2.7": + version: 17.2.7 + resolution: "@nrwl/tao@npm:17.2.7" dependencies: - nx: "npm:17.2.6" + nx: "npm:17.2.7" tslib: "npm:^2.3.0" bin: tao: index.js - checksum: 12326bcfb87dcf62f36c82ee57aef7a925c402dd844e5506b5a71defa15af18fccb705aa0245ef75a9f5f2ec0214bd95ee28c9fe23551316417b4ba6c02bdd05 + checksum: b48b0a154ae2a16a698c6fd04fb1eadb3aa62e36d653bdafa373dd076a934b953e178cb262031f67486c423709e7878ce1682fbb145e95fa10fd691720382f2f languageName: node linkType: hard -"@nx/devkit@npm:17.2.6, @nx/devkit@npm:>=17.1.2 < 18": - version: 17.2.6 - resolution: "@nx/devkit@npm:17.2.6" +"@nx/devkit@npm:17.2.7, @nx/devkit@npm:>=17.1.2 < 18": + version: 17.2.7 + resolution: "@nx/devkit@npm:17.2.7" dependencies: - "@nrwl/devkit": "npm:17.2.6" + "@nrwl/devkit": "npm:17.2.7" ejs: "npm:^3.1.7" enquirer: "npm:~2.3.6" ignore: "npm:^5.0.4" @@ -541,76 +884,76 @@ __metadata: tslib: "npm:^2.3.0" peerDependencies: nx: ">= 16 <= 18" - checksum: abc348bfe2c9d6b27ceecd1d09d2500a012052426bad79c2e2574e07ef26ae300dc61cecfd235a693987020dfbedbe4a4d63c762a66136784da662eff8c719fa + checksum: d6312a2ae761fae2f6654f557816f3f5f772c562c07d2ac87ea54ca5393c204dd13801411564715aeb7bb2793506a4116a283aafff3ca47231032b0b1cc3395f languageName: node linkType: hard -"@nx/nx-darwin-arm64@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-darwin-arm64@npm:17.2.6" +"@nx/nx-darwin-arm64@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-darwin-arm64@npm:17.2.7" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@nx/nx-darwin-x64@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-darwin-x64@npm:17.2.6" +"@nx/nx-darwin-x64@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-darwin-x64@npm:17.2.7" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@nx/nx-freebsd-x64@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-freebsd-x64@npm:17.2.6" +"@nx/nx-freebsd-x64@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-freebsd-x64@npm:17.2.7" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@nx/nx-linux-arm-gnueabihf@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-linux-arm-gnueabihf@npm:17.2.6" +"@nx/nx-linux-arm-gnueabihf@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-linux-arm-gnueabihf@npm:17.2.7" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@nx/nx-linux-arm64-gnu@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-linux-arm64-gnu@npm:17.2.6" +"@nx/nx-linux-arm64-gnu@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-linux-arm64-gnu@npm:17.2.7" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@nx/nx-linux-arm64-musl@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-linux-arm64-musl@npm:17.2.6" +"@nx/nx-linux-arm64-musl@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-linux-arm64-musl@npm:17.2.7" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@nx/nx-linux-x64-gnu@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-linux-x64-gnu@npm:17.2.6" +"@nx/nx-linux-x64-gnu@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-linux-x64-gnu@npm:17.2.7" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@nx/nx-linux-x64-musl@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-linux-x64-musl@npm:17.2.6" +"@nx/nx-linux-x64-musl@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-linux-x64-musl@npm:17.2.7" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@nx/nx-win32-arm64-msvc@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-win32-arm64-msvc@npm:17.2.6" +"@nx/nx-win32-arm64-msvc@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-win32-arm64-msvc@npm:17.2.7" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@nx/nx-win32-x64-msvc@npm:17.2.6": - version: 17.2.6 - resolution: "@nx/nx-win32-x64-msvc@npm:17.2.6" +"@nx/nx-win32-x64-msvc@npm:17.2.7": + version: 17.2.7 + resolution: "@nx/nx-win32-x64-msvc@npm:17.2.7" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -622,6 +965,13 @@ __metadata: languageName: node linkType: hard +"@octokit/auth-token@npm:^4.0.0": + version: 4.0.0 + resolution: "@octokit/auth-token@npm:4.0.0" + checksum: 57acaa6c394c5abab2f74e8e1dcf4e7a16b236f713c77a54b8f08e2d14114de94b37946259e33ec2aab0566b26f724c2b71d2602352b59e541a9854897618f3c + languageName: node + linkType: hard + "@octokit/core@npm:^4.2.1": version: 4.2.4 resolution: "@octokit/core@npm:4.2.4" @@ -637,6 +987,21 @@ __metadata: languageName: node linkType: hard +"@octokit/core@npm:^5.0.0": + version: 5.0.2 + resolution: "@octokit/core@npm:5.0.2" + dependencies: + "@octokit/auth-token": "npm:^4.0.0" + "@octokit/graphql": "npm:^7.0.0" + "@octokit/request": "npm:^8.0.2" + "@octokit/request-error": "npm:^5.0.0" + "@octokit/types": "npm:^12.0.0" + before-after-hook: "npm:^2.2.0" + universal-user-agent: "npm:^6.0.0" + checksum: f3b3cb72f8f374e763e60922eacad56cb08fc05ee0be26f2a7b61937f89a377a8fd1b54f3d621a2b9627a9402c595d4b7e24900602e401b8a8edaffd995fa98f + languageName: node + linkType: hard + "@octokit/endpoint@npm:^7.0.0": version: 7.0.6 resolution: "@octokit/endpoint@npm:7.0.6" @@ -648,6 +1013,16 @@ __metadata: languageName: node linkType: hard +"@octokit/endpoint@npm:^9.0.0": + version: 9.0.4 + resolution: "@octokit/endpoint@npm:9.0.4" + dependencies: + "@octokit/types": "npm:^12.0.0" + universal-user-agent: "npm:^6.0.0" + checksum: f1c857c5d85afa9d7e8857f7f97dbec28d3b6ab1dc21fe35172f1bc9e5512c8a3a26edabf6b2d83bb60d700f7ad290c96be960496aa83606095630edfad06db4 + languageName: node + linkType: hard + "@octokit/graphql@npm:^5.0.0": version: 5.0.6 resolution: "@octokit/graphql@npm:5.0.6" @@ -659,6 +1034,17 @@ __metadata: languageName: node linkType: hard +"@octokit/graphql@npm:^7.0.0": + version: 7.0.2 + resolution: "@octokit/graphql@npm:7.0.2" + dependencies: + "@octokit/request": "npm:^8.0.1" + "@octokit/types": "npm:^12.0.0" + universal-user-agent: "npm:^6.0.0" + checksum: 96e5d6b970be60877134cc147b9249534f3a79d691b9932d731d453426fa1e1a0a36111a1b0a6ab43d61309c630903a65db5559b5c800300dc26cf588f50fea8 + languageName: node + linkType: hard + "@octokit/openapi-types@npm:^18.0.0": version: 18.1.1 resolution: "@octokit/openapi-types@npm:18.1.1" @@ -666,6 +1052,13 @@ __metadata: languageName: node linkType: hard +"@octokit/openapi-types@npm:^19.1.0": + version: 19.1.0 + resolution: "@octokit/openapi-types@npm:19.1.0" + checksum: ae8081f52b797b91a12d4f6cddc475699c9d34b06645b337adc77d30b583d8fe8506597a45c42f8f1a96bfb2a9d092cee257d8a65d718bfeed23a0d153448eea + languageName: node + linkType: hard + "@octokit/plugin-enterprise-rest@npm:6.0.1": version: 6.0.1 resolution: "@octokit/plugin-enterprise-rest@npm:6.0.1" @@ -685,6 +1078,17 @@ __metadata: languageName: node linkType: hard +"@octokit/plugin-paginate-rest@npm:^9.0.0": + version: 9.1.5 + resolution: "@octokit/plugin-paginate-rest@npm:9.1.5" + dependencies: + "@octokit/types": "npm:^12.4.0" + peerDependencies: + "@octokit/core": ">=5" + checksum: a17055dff8fde5ebc03bf935294ffa4605ed714cb15252f0fa63cda1b95e738fafb5ab9748b18fbdfa5615d5f6686cbf193c6d6426e7dc4fd1dda91c87263f3b + languageName: node + linkType: hard + "@octokit/plugin-request-log@npm:^1.0.4": version: 1.0.4 resolution: "@octokit/plugin-request-log@npm:1.0.4" @@ -694,6 +1098,26 @@ __metadata: languageName: node linkType: hard +"@octokit/plugin-request-log@npm:^4.0.0": + version: 4.0.0 + resolution: "@octokit/plugin-request-log@npm:4.0.0" + peerDependencies: + "@octokit/core": ">=5" + checksum: ca6db112f288326d2f11de5170e7d6429ba54f04a22dc1e5d06c8d626f72bd2effeb0218a8f73bc9e23657b5a89194cd297964ace54693d2dfdfba3828920b45 + languageName: node + linkType: hard + +"@octokit/plugin-rest-endpoint-methods@npm:^10.0.0": + version: 10.2.0 + resolution: "@octokit/plugin-rest-endpoint-methods@npm:10.2.0" + dependencies: + "@octokit/types": "npm:^12.3.0" + peerDependencies: + "@octokit/core": ">=5" + checksum: 4d00a2334753955f0c3841ba8fc0880c093b94838e011864ee737d958d2d64e3d45d34fa4c8b64bccf9e13c6de81318cbd6e2b24df37992941d12f54def28432 + languageName: node + linkType: hard + "@octokit/plugin-rest-endpoint-methods@npm:^7.1.2": version: 7.2.3 resolution: "@octokit/plugin-rest-endpoint-methods@npm:7.2.3" @@ -716,6 +1140,17 @@ __metadata: languageName: node linkType: hard +"@octokit/request-error@npm:^5.0.0": + version: 5.0.1 + resolution: "@octokit/request-error@npm:5.0.1" + dependencies: + "@octokit/types": "npm:^12.0.0" + deprecation: "npm:^2.0.0" + once: "npm:^1.4.0" + checksum: e72a4627120de345b54876a1f007664095e5be9d624fce2e14fccf7668cd8f5e4929d444d8fc085d48e1fb5cd548538453974aab129a669101110d6679dce6c6 + languageName: node + linkType: hard + "@octokit/request@npm:^6.0.0": version: 6.2.8 resolution: "@octokit/request@npm:6.2.8" @@ -730,6 +1165,18 @@ __metadata: languageName: node linkType: hard +"@octokit/request@npm:^8.0.1, @octokit/request@npm:^8.0.2": + version: 8.1.6 + resolution: "@octokit/request@npm:8.1.6" + dependencies: + "@octokit/endpoint": "npm:^9.0.0" + "@octokit/request-error": "npm:^5.0.0" + "@octokit/types": "npm:^12.0.0" + universal-user-agent: "npm:^6.0.0" + checksum: ef84418e0b1f28335c105bca2b1518b04797791761024d26f80f60a528cdcf468baf9897fd34f535c42af0643a598884f882bc832e68edbfe1ea530c2df563a4 + languageName: node + linkType: hard + "@octokit/rest@npm:19.0.11": version: 19.0.11 resolution: "@octokit/rest@npm:19.0.11" @@ -742,6 +1189,18 @@ __metadata: languageName: node linkType: hard +"@octokit/rest@npm:^20.0.2": + version: 20.0.2 + resolution: "@octokit/rest@npm:20.0.2" + dependencies: + "@octokit/core": "npm:^5.0.0" + "@octokit/plugin-paginate-rest": "npm:^9.0.0" + "@octokit/plugin-request-log": "npm:^4.0.0" + "@octokit/plugin-rest-endpoint-methods": "npm:^10.0.0" + checksum: e9bfc617d0e0bfb0ba9dea3d1e0a19167c5a255beac622dd34280e1754dfab7688323b3251f8e8c85494b39548ecc52385e8b84e21ce0627f58176562a6e2fae + languageName: node + linkType: hard + "@octokit/tsconfig@npm:^1.0.2": version: 1.0.2 resolution: "@octokit/tsconfig@npm:1.0.2" @@ -758,6 +1217,15 @@ __metadata: languageName: node linkType: hard +"@octokit/types@npm:^12.0.0, @octokit/types@npm:^12.3.0, @octokit/types@npm:^12.4.0": + version: 12.4.0 + resolution: "@octokit/types@npm:12.4.0" + dependencies: + "@octokit/openapi-types": "npm:^19.1.0" + checksum: b52b3fd8af307a1868846991f8376548a790814b20639dee1110271a768c0489081970df893ca2230f6285066003230d22f5877eeac90418971a475c79808241 + languageName: node + linkType: hard + "@octokit/types@npm:^9.0.0, @octokit/types@npm:^9.2.3": version: 9.3.2 resolution: "@octokit/types@npm:9.3.2" @@ -781,17 +1249,10 @@ __metadata: languageName: node linkType: hard -"@pkgr/utils@npm:^2.4.2": - version: 2.4.2 - resolution: "@pkgr/utils@npm:2.4.2" - dependencies: - cross-spawn: "npm:^7.0.3" - fast-glob: "npm:^3.3.0" - is-glob: "npm:^4.0.3" - open: "npm:^9.1.0" - picocolors: "npm:^1.0.0" - tslib: "npm:^2.6.0" - checksum: 7c3e68f6405a1d4c51f418d8d580e71d7bade2683d5db07e8413d8e57f7e389047eda44a2341f77a1b3085895fca7676a9d45e8812a58312524f8c4c65d501be +"@pkgr/core@npm:^0.1.0": + version: 0.1.0 + resolution: "@pkgr/core@npm:0.1.0" + checksum: 8f4a0aa6cc1c445fec4f5f12157047e8a05e30b5c03441156f40203d6430f84d15135e8f1a6886e6c9800ff0e4a75d9d3419a43dbcd7490683f2882375a3b99a languageName: node linkType: hard @@ -992,7 +1453,7 @@ __metadata: languageName: node linkType: hard -"@swc/core@npm:^1.3.95": +"@swc/core@npm:^1.3.101": version: 1.3.101 resolution: "@swc/core@npm:1.3.101" dependencies: @@ -1137,7 +1598,16 @@ __metadata: languageName: node linkType: hard -"@types/bcrypt@npm:^5.0.1": +"@tybys/wasm-util@npm:0.8.0": + version: 0.8.0 + resolution: "@tybys/wasm-util@npm:0.8.0" + dependencies: + tslib: "npm:^2.4.0" + checksum: e3f0c03a83d668deeed07cc8cb7e0f3deec0363402e83fa30b2690671eb5f72db8feec2bab1d04e1f4998bb94b051f546e23ea306657cfc39cbe3229014b9223 + languageName: node + linkType: hard + +"@types/bcrypt@npm:^5.0.2": version: 5.0.2 resolution: "@types/bcrypt@npm:5.0.2" dependencies: @@ -1146,7 +1616,7 @@ __metadata: languageName: node linkType: hard -"@types/crc@npm:^3.8.2": +"@types/crc@npm:^3.8.3": version: 3.8.3 resolution: "@types/crc@npm:3.8.3" dependencies: @@ -1166,12 +1636,12 @@ __metadata: linkType: hard "@types/eslint@npm:*": - version: 8.44.9 - resolution: "@types/eslint@npm:8.44.9" + version: 8.56.0 + resolution: "@types/eslint@npm:8.56.0" dependencies: "@types/estree": "npm:*" "@types/json-schema": "npm:*" - checksum: e9da4e4c7b7c9014b17d40007e36f02f3b5dd55c43bb05928b52dd9c19f2a8fb7971a851a4e7a11625c3c69da286c5baf55de2f8bb900b1a4cfb5145a4491b37 + checksum: afba97b10d02cb7c7e7658de38f626c65b81be0fe45bc479e058ab14bc089911193811dce681edd656fc6b59c91fd8d0c976972476fc98b5e782b2c3b08aaa6c languageName: node linkType: hard @@ -1196,7 +1666,7 @@ __metadata: languageName: node linkType: hard -"@types/jsonwebtoken@npm:^9.0.4": +"@types/jsonwebtoken@npm:^9.0.5": version: 9.0.5 resolution: "@types/jsonwebtoken@npm:9.0.5" dependencies: @@ -1219,7 +1689,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:^20.8.9": +"@types/node@npm:*, @types/node@npm:^20.10.5": version: 20.10.5 resolution: "@types/node@npm:20.10.5" dependencies: @@ -1242,7 +1712,7 @@ __metadata: languageName: node linkType: hard -"@types/webpack@npm:^5.28.4": +"@types/webpack@npm:^5.28.5": version: 5.28.5 resolution: "@types/webpack@npm:5.28.5" dependencies: @@ -1253,7 +1723,7 @@ __metadata: languageName: node linkType: hard -"@types/xxhashjs@npm:^0.2.3": +"@types/xxhashjs@npm:^0.2.4": version: 0.2.4 resolution: "@types/xxhashjs@npm:0.2.4" dependencies: @@ -1262,15 +1732,15 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^6.9.0": - version: 6.15.0 - resolution: "@typescript-eslint/eslint-plugin@npm:6.15.0" +"@typescript-eslint/eslint-plugin@npm:^6.16.0": + version: 6.16.0 + resolution: "@typescript-eslint/eslint-plugin@npm:6.16.0" dependencies: "@eslint-community/regexpp": "npm:^4.5.1" - "@typescript-eslint/scope-manager": "npm:6.15.0" - "@typescript-eslint/type-utils": "npm:6.15.0" - "@typescript-eslint/utils": "npm:6.15.0" - "@typescript-eslint/visitor-keys": "npm:6.15.0" + "@typescript-eslint/scope-manager": "npm:6.16.0" + "@typescript-eslint/type-utils": "npm:6.16.0" + "@typescript-eslint/utils": "npm:6.16.0" + "@typescript-eslint/visitor-keys": "npm:6.16.0" debug: "npm:^4.3.4" graphemer: "npm:^1.4.0" ignore: "npm:^5.2.4" @@ -1283,44 +1753,44 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 78054afb0d4ab12d82db7a9cb005dfa2be42962341728abf4a81802e1f4c0f5b23de4870287f4b7e32aa4a4bc900bbc218f2d4d0c02aa77452e8e8e0b71fe3de + checksum: c8a68e0953d8b94f6b85d3a82090e61e670bcb0945cbee4d741321c56db727429ad47c48b8403ad1dab3b0842689bd2d4b85c99b76c51ac4f5be7f5f61c4c314 languageName: node linkType: hard -"@typescript-eslint/parser@npm:^6.9.0": - version: 6.15.0 - resolution: "@typescript-eslint/parser@npm:6.15.0" +"@typescript-eslint/parser@npm:^6.16.0": + version: 6.16.0 + resolution: "@typescript-eslint/parser@npm:6.16.0" dependencies: - "@typescript-eslint/scope-manager": "npm:6.15.0" - "@typescript-eslint/types": "npm:6.15.0" - "@typescript-eslint/typescript-estree": "npm:6.15.0" - "@typescript-eslint/visitor-keys": "npm:6.15.0" + "@typescript-eslint/scope-manager": "npm:6.16.0" + "@typescript-eslint/types": "npm:6.16.0" + "@typescript-eslint/typescript-estree": "npm:6.16.0" + "@typescript-eslint/visitor-keys": "npm:6.16.0" debug: "npm:^4.3.4" peerDependencies: eslint: ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: e7f265fd4abd3bc49fa5b304cd4b9c22801ac5a9da4ee342bbab0c117d629ac4aad6998555b61a8c5a0b279c443a44ae99f16669e24e3ef17ccec20c8b7019e7 + checksum: 9d573d14df4ec661dccaca785223a8a330d64f50a9279ff9170b1da22198ff91b9afa3ee7d3d7127c0cbc148c86831e76b33fc5b47d630799e98940ef666bfe0 languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:6.15.0": - version: 6.15.0 - resolution: "@typescript-eslint/scope-manager@npm:6.15.0" +"@typescript-eslint/scope-manager@npm:6.16.0": + version: 6.16.0 + resolution: "@typescript-eslint/scope-manager@npm:6.16.0" dependencies: - "@typescript-eslint/types": "npm:6.15.0" - "@typescript-eslint/visitor-keys": "npm:6.15.0" - checksum: 3428d99de440f227cbc2afb44cdcb25e44c4b49c5f490392f83e21d2048210a6ec2f2f68133376c842034f5b5ba4ec9721da7caa18e631e23b57e20927b5b6f0 + "@typescript-eslint/types": "npm:6.16.0" + "@typescript-eslint/visitor-keys": "npm:6.16.0" + checksum: 3b275e528d19f4f36c4acd6cb872b5f004175512dce30cef0ac7a9121bb23d21e5e0f4b62658dbfea2b15851e7fa930372696f25a6c87492f863171ab56f5364 languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:6.15.0": - version: 6.15.0 - resolution: "@typescript-eslint/type-utils@npm:6.15.0" +"@typescript-eslint/type-utils@npm:6.16.0": + version: 6.16.0 + resolution: "@typescript-eslint/type-utils@npm:6.16.0" dependencies: - "@typescript-eslint/typescript-estree": "npm:6.15.0" - "@typescript-eslint/utils": "npm:6.15.0" + "@typescript-eslint/typescript-estree": "npm:6.16.0" + "@typescript-eslint/utils": "npm:6.16.0" debug: "npm:^4.3.4" ts-api-utils: "npm:^1.0.1" peerDependencies: @@ -1328,59 +1798,60 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 32cb531a4b5e0ccd431cba553ec73b87d4453b48af288a33e359ba4f5278126390d82799b61d3f0fbf135cfde1ac6c2275c2cf37a676e8a2a2811e774e660f16 + checksum: a5339cc1375d12411fcb242249143b28401fb18890bb2a1cff5275ba946affb4a2066cd8203e83ac383bd9d791a79ea6ee1cbf7a30deed5c832ed002897bbf82 languageName: node linkType: hard -"@typescript-eslint/types@npm:6.15.0": - version: 6.15.0 - resolution: "@typescript-eslint/types@npm:6.15.0" - checksum: 6e33529ea301c8c4b8c1f589dadd5d2a66c1b24ec87a577524fbc996d4c7b65d4f4fdfa4a3937b691efee6a10a6b16f7bfcabe98a15e0fc0c0c57aa0d80dcc25 +"@typescript-eslint/types@npm:6.16.0": + version: 6.16.0 + resolution: "@typescript-eslint/types@npm:6.16.0" + checksum: 74d9a8b7fd1b85fd1824295c92bc2f506148e450c9897f65ddaa089091017df4e25676c5b098b75c8f00529b84492f303a6b1870bb0ffee83997081325891d53 languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:6.15.0": - version: 6.15.0 - resolution: "@typescript-eslint/typescript-estree@npm:6.15.0" +"@typescript-eslint/typescript-estree@npm:6.16.0": + version: 6.16.0 + resolution: "@typescript-eslint/typescript-estree@npm:6.16.0" dependencies: - "@typescript-eslint/types": "npm:6.15.0" - "@typescript-eslint/visitor-keys": "npm:6.15.0" + "@typescript-eslint/types": "npm:6.16.0" + "@typescript-eslint/visitor-keys": "npm:6.16.0" debug: "npm:^4.3.4" globby: "npm:^11.1.0" is-glob: "npm:^4.0.3" + minimatch: "npm:9.0.3" semver: "npm:^7.5.4" ts-api-utils: "npm:^1.0.1" peerDependenciesMeta: typescript: optional: true - checksum: 08955f6e84b8edb855a6769671e85889e52b15b82e00a64f595da867b21ad060e5342787c436d77702b2a1f39d411ac79b81a8d2e2006e9b1886eadb08b626df + checksum: c7109e90b40b3c8f1042beb7f1a7a97eeba3b6a903acd82df4947900d68bd31d04b530a190c099666c5ca4886efc162de7b42de754a44b189e41237210797d9e languageName: node linkType: hard -"@typescript-eslint/utils@npm:6.15.0": - version: 6.15.0 - resolution: "@typescript-eslint/utils@npm:6.15.0" +"@typescript-eslint/utils@npm:6.16.0": + version: 6.16.0 + resolution: "@typescript-eslint/utils@npm:6.16.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" "@types/json-schema": "npm:^7.0.12" "@types/semver": "npm:^7.5.0" - "@typescript-eslint/scope-manager": "npm:6.15.0" - "@typescript-eslint/types": "npm:6.15.0" - "@typescript-eslint/typescript-estree": "npm:6.15.0" + "@typescript-eslint/scope-manager": "npm:6.16.0" + "@typescript-eslint/types": "npm:6.16.0" + "@typescript-eslint/typescript-estree": "npm:6.16.0" semver: "npm:^7.5.4" peerDependencies: eslint: ^7.0.0 || ^8.0.0 - checksum: 53519a2027681bdc8f028f9421c65f193f91b5bb1659465fedb8043376c693c2391211f1c01d8ba25bfaa7f7b3a102263d7123f9dfade12032159f4b4490f0fb + checksum: 586c4c0e1ca249daf9958f0d88df3af010a7592a19db1a7dc198754542b584314896536fe56ea9c93dd0ddd531154e7697002643d46e24a8d3a459721a626e91 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:6.15.0": - version: 6.15.0 - resolution: "@typescript-eslint/visitor-keys@npm:6.15.0" +"@typescript-eslint/visitor-keys@npm:6.16.0": + version: 6.16.0 + resolution: "@typescript-eslint/visitor-keys@npm:6.16.0" dependencies: - "@typescript-eslint/types": "npm:6.15.0" + "@typescript-eslint/types": "npm:6.16.0" eslint-visitor-keys: "npm:^3.4.1" - checksum: bf9f71af60bd63d1073900e75c5a0aa6eddd672f6c3ac6092c765d67deb7a0c32d2a5f6f3aee9e95f93a93d58563a76da209bd8487aadafd4d013100ffe38520 + checksum: 13c4d90355e288eac432d2845e37bb2acc03dab6d8568564558c1914a9aa44352f2a7ff29d0f50e0b3e68d66cca5f27b2732af5ff193b82571b4366309842880 languageName: node linkType: hard @@ -1737,7 +2208,7 @@ __metadata: languageName: node linkType: hard -"ansi-escapes@npm:^4.2.1": +"ansi-escapes@npm:^4.2.1, ansi-escapes@npm:^4.3.2": version: 4.3.2 resolution: "ansi-escapes@npm:4.3.2" dependencies: @@ -1835,7 +2306,7 @@ __metadata: languageName: node linkType: hard -"argon2@npm:^0.31.1": +"argon2@npm:^0.31.2": version: 0.31.2 resolution: "argon2@npm:0.31.2" dependencies: @@ -2021,7 +2492,7 @@ __metadata: languageName: node linkType: hard -"ava@npm:^6.0.0": +"ava@npm:^6.0.1": version: 6.0.1 resolution: "ava@npm:6.0.1" dependencies: @@ -2084,13 +2555,13 @@ __metadata: linkType: hard "axios@npm:^1.5.1": - version: 1.6.2 - resolution: "axios@npm:1.6.2" + version: 1.6.3 + resolution: "axios@npm:1.6.3" dependencies: follow-redirects: "npm:^1.15.0" form-data: "npm:^4.0.0" proxy-from-env: "npm:^1.1.0" - checksum: 9b77e030e85e4f9cbcba7bb52fbff67d6ce906c92d213e0bd932346a50140faf83733bf786f55bd58301bd92f9973885c7b87d6348023e10f7eaf286d0791a1d + checksum: dcc6d982353db33e6893ef01cdf81d0a0548dbd8fba0cb046dc4aee1a6a16226721faa4c2a13b2673d47130509629cdb93bb991b3a2bd4ef17a5ac27a8bba0da languageName: node linkType: hard @@ -2142,13 +2613,6 @@ __metadata: languageName: node linkType: hard -"big-integer@npm:^1.6.44": - version: 1.6.52 - resolution: "big-integer@npm:1.6.52" - checksum: 9604224b4c2ab3c43c075d92da15863077a9f59e5d4205f4e7e76acd0cd47e8d469ec5e5dba8d9b32aa233951893b29329ca56ac80c20ce094b4a647a66abae0 - languageName: node - linkType: hard - "bindings@npm:^1.3.0, bindings@npm:^1.4.0": version: 1.5.0 resolution: "bindings@npm:1.5.0" @@ -2176,15 +2640,6 @@ __metadata: languageName: node linkType: hard -"bplist-parser@npm:^0.2.0": - version: 0.2.0 - resolution: "bplist-parser@npm:0.2.0" - dependencies: - big-integer: "npm:^1.6.44" - checksum: ce79c69e0f6efe506281e7c84e3712f7d12978991675b6e3a58a295b16f13ca81aa9b845c335614a545e0af728c8311b6aa3142af76ba1cb616af9bbac5c4a9f - languageName: node - linkType: hard - "brace-expansion@npm:^1.1.7": version: 1.1.11 resolution: "brace-expansion@npm:1.1.11" @@ -2277,15 +2732,6 @@ __metadata: languageName: node linkType: hard -"bundle-name@npm:^3.0.0": - version: 3.0.0 - resolution: "bundle-name@npm:3.0.0" - dependencies: - run-applescript: "npm:^5.0.0" - checksum: 57bc7f8b025d83961b04db2f1eff6a87f2363c2891f3542a4b82471ff8ebb5d484af48e9784fcdb28ef1d48bb01f03d891966dc3ef58758e46ea32d750ce40f8 - languageName: node - linkType: hard - "byte-size@npm:8.1.1": version: 8.1.1 resolution: "byte-size@npm:8.1.1" @@ -2377,9 +2823,9 @@ __metadata: linkType: hard "caniuse-lite@npm:^1.0.30001565": - version: 1.0.30001570 - resolution: "caniuse-lite@npm:1.0.30001570" - checksum: e47230d2016edea56e002fa462a5289f697b48dcfbf703fb01aecc6c98ad4ecaf945ab23c253cb7af056c2d05f266e4e4cbebf45132100e2c9367439cb95b95b + version: 1.0.30001572 + resolution: "caniuse-lite@npm:1.0.30001572" + checksum: 7d02570fa576b158d96739f2c65ea3ad22e90a8b028a343902de1f13b7db8512144870f1d29ec5e9ae7189d96158d9643871b6e902e6680a06b27a9afe556da2 languageName: node linkType: hard @@ -2535,6 +2981,13 @@ __metadata: languageName: node linkType: hard +"cli-width@npm:^4.1.0": + version: 4.1.0 + resolution: "cli-width@npm:4.1.0" + checksum: 1fbd56413578f6117abcaf858903ba1f4ad78370a4032f916745fa2c7e390183a9d9029cf837df320b0fdce8137668e522f60a30a5f3d6529ff3872d265a955f + languageName: node + linkType: hard + "clipanion@npm:^3.2.1": version: 3.2.1 resolution: "clipanion@npm:3.2.1" @@ -3027,28 +3480,6 @@ __metadata: languageName: node linkType: hard -"default-browser-id@npm:^3.0.0": - version: 3.0.0 - resolution: "default-browser-id@npm:3.0.0" - dependencies: - bplist-parser: "npm:^0.2.0" - untildify: "npm:^4.0.0" - checksum: 8db3ab882eb3e1e8b59d84c8641320e6c66d8eeb17eb4bb848b7dd549b1e6fd313988e4a13542e95fbaeff03f6e9dedc5ad191ad4df7996187753eb0d45c00b7 - languageName: node - linkType: hard - -"default-browser@npm:^4.0.0": - version: 4.0.0 - resolution: "default-browser@npm:4.0.0" - dependencies: - bundle-name: "npm:^3.0.0" - default-browser-id: "npm:^3.0.0" - execa: "npm:^7.1.1" - titleize: "npm:^3.0.0" - checksum: 7c8848badc139ecf9d878e562bc4e7ab4301e51ba120b24d8dcb14739c30152115cc612065ac3ab73c02aace4afa29db5a044257b2f0cf234f16e3a58f6c925e - languageName: node - linkType: hard - "defaults@npm:^1.0.3": version: 1.0.4 resolution: "defaults@npm:1.0.4" @@ -3076,13 +3507,6 @@ __metadata: languageName: node linkType: hard -"define-lazy-prop@npm:^3.0.0": - version: 3.0.0 - resolution: "define-lazy-prop@npm:3.0.0" - checksum: 5ab0b2bf3fa58b3a443140bbd4cd3db1f91b985cc8a246d330b9ac3fc0b6a325a6d82bddc0b055123d745b3f9931afeea74a5ec545439a1630b9c8512b0eeb49 - languageName: node - linkType: hard - "define-properties@npm:^1.1.3, define-properties@npm:^1.2.0, define-properties@npm:^1.2.1": version: 1.2.1 resolution: "define-properties@npm:1.2.1" @@ -3228,9 +3652,9 @@ __metadata: linkType: hard "electron-to-chromium@npm:^1.4.601": - version: 1.4.615 - resolution: "electron-to-chromium@npm:1.4.615" - checksum: 6602172761e44ca1a6c010a010efd0c42710e1e08911e76dd2d3df72ae2a563fb75b0853387273d1e45a4befd314162b2b1debcf9055513f62c6d6a8df4de73a + version: 1.4.616 + resolution: "electron-to-chromium@npm:1.4.616" + checksum: a02416f3293d28120d5132546a6aea614ebd2d820a684f41b1c20138331922ddc672c4a59bfc4b91bb5aee1ba608f6c10cd3f69c344cd434397e7f14a4c97348 languageName: node linkType: hard @@ -3241,6 +3665,18 @@ __metadata: languageName: node linkType: hard +"emnapi@npm:0.44.0": + version: 0.44.0 + resolution: "emnapi@npm:0.44.0" + peerDependencies: + node-addon-api: ">= 6.1.0" + peerDependenciesMeta: + node-addon-api: + optional: true + checksum: 26e6391479c80e3eb5234feb944370c963d7f851f1d3c7a140dea514809b690549ba110d09211b57763ad5f7e308180a3bcd745484faf5363eeb12b45079542b + languageName: node + linkType: hard + "emoji-regex@npm:^10.3.0": version: 10.3.0 resolution: "emoji-regex@npm:10.3.0" @@ -3451,7 +3887,7 @@ __metadata: languageName: node linkType: hard -"eslint-config-prettier@npm:^9.0.0": +"eslint-config-prettier@npm:^9.1.0": version: 9.1.0 resolution: "eslint-config-prettier@npm:9.1.0" peerDependencies: @@ -3485,7 +3921,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:^2.29.0": +"eslint-plugin-import@npm:^2.29.1": version: 2.29.1 resolution: "eslint-plugin-import@npm:2.29.1" dependencies: @@ -3512,22 +3948,23 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-prettier@npm:^5.0.1": - version: 5.0.1 - resolution: "eslint-plugin-prettier@npm:5.0.1" +"eslint-plugin-prettier@npm:^5.1.2": + version: 5.1.2 + resolution: "eslint-plugin-prettier@npm:5.1.2" dependencies: prettier-linter-helpers: "npm:^1.0.0" - synckit: "npm:^0.8.5" + synckit: "npm:^0.8.6" peerDependencies: "@types/eslint": ">=8.0.0" eslint: ">=8.0.0" + eslint-config-prettier: "*" prettier: ">=3.0.0" peerDependenciesMeta: "@types/eslint": optional: true eslint-config-prettier: optional: true - checksum: 08e2c7bed93d9f7c86e9aa0bd4f5cc51f65233a446ddfda11e821f12819e1e4be62cfbc2a4e17169c76fded1c4de7371e37e5f2525e81695decaf6c652a41fb0 + checksum: e16c9fbb0e9f8da45bdbb1cf6e4a190266235c3686deede3815196d2604bbe2bac531d1fc9adc3c0b9a03d88b55bd3bfaa4f9d85e34e73dc040d545a1931fab9 languageName: node linkType: hard @@ -3558,7 +3995,7 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^8.52.0": +"eslint@npm:^8.56.0": version: 8.56.0 resolution: "eslint@npm:8.56.0" dependencies: @@ -3728,40 +4165,6 @@ __metadata: languageName: node linkType: hard -"execa@npm:^5.0.0": - version: 5.1.1 - resolution: "execa@npm:5.1.1" - dependencies: - cross-spawn: "npm:^7.0.3" - get-stream: "npm:^6.0.0" - human-signals: "npm:^2.1.0" - is-stream: "npm:^2.0.0" - merge-stream: "npm:^2.0.0" - npm-run-path: "npm:^4.0.1" - onetime: "npm:^5.1.2" - signal-exit: "npm:^3.0.3" - strip-final-newline: "npm:^2.0.0" - checksum: c8e615235e8de4c5addf2fa4c3da3e3aa59ce975a3e83533b4f6a71750fb816a2e79610dc5f1799b6e28976c9ae86747a36a606655bf8cb414a74d8d507b304f - languageName: node - linkType: hard - -"execa@npm:^7.1.1": - version: 7.2.0 - resolution: "execa@npm:7.2.0" - dependencies: - cross-spawn: "npm:^7.0.3" - get-stream: "npm:^6.0.1" - human-signals: "npm:^4.3.0" - is-stream: "npm:^3.0.0" - merge-stream: "npm:^2.0.0" - npm-run-path: "npm:^5.1.0" - onetime: "npm:^6.0.0" - signal-exit: "npm:^3.0.7" - strip-final-newline: "npm:^3.0.0" - checksum: 098cd6a1bc26d509e5402c43f4971736450b84d058391820c6f237aeec6436963e006fd8423c9722f148c53da86aa50045929c7278b5522197dff802d10f9885 - languageName: node - linkType: hard - "exponential-backoff@npm:^3.1.1": version: 3.1.1 resolution: "exponential-backoff@npm:3.1.1" @@ -3769,7 +4172,7 @@ __metadata: languageName: node linkType: hard -"external-editor@npm:^3.0.3": +"external-editor@npm:^3.0.3, external-editor@npm:^3.1.0": version: 3.1.0 resolution: "external-editor@npm:3.1.0" dependencies: @@ -3794,7 +4197,7 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.2": +"fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.2": version: 3.3.2 resolution: "fast-glob@npm:3.3.2" dependencies: @@ -3848,6 +4251,16 @@ __metadata: languageName: node linkType: hard +"figures@npm:^5.0.0": + version: 5.0.0 + resolution: "figures@npm:5.0.0" + dependencies: + escape-string-regexp: "npm:^5.0.0" + is-unicode-supported: "npm:^1.2.0" + checksum: ce0f17d4ea8b0fc429c5207c343534a2f5284ecfb22aa08607da7dc84ed9e1cf754f5b97760e8dcb98d3c9d1a1e4d3d578fe3b5b99c426f05d0f06c7ba618e16 + languageName: node + linkType: hard + "figures@npm:^6.0.1": version: 6.0.1 resolution: "figures@npm:6.0.1" @@ -4150,7 +4563,7 @@ __metadata: languageName: node linkType: hard -"get-stream@npm:^6.0.0, get-stream@npm:^6.0.1": +"get-stream@npm:^6.0.0": version: 6.0.1 resolution: "get-stream@npm:6.0.1" checksum: 49825d57d3fd6964228e6200a58169464b8e8970489b3acdc24906c782fb7f01f9f56f8e6653c4a50713771d6658f7cfe051e5eb8c12e334138c9c918b296341 @@ -4602,13 +5015,6 @@ __metadata: languageName: node linkType: hard -"human-signals@npm:^4.3.0": - version: 4.3.1 - resolution: "human-signals@npm:4.3.1" - checksum: 40498b33fe139f5cc4ef5d2f95eb1803d6318ac1b1c63eaf14eeed5484d26332c828de4a5a05676b6c83d7b9e57727c59addb4b1dea19cb8d71e83689e5b336c - languageName: node - linkType: hard - "human-signals@npm:^5.0.0": version: 5.0.0 resolution: "human-signals@npm:5.0.0" @@ -4805,6 +5211,29 @@ __metadata: languageName: node linkType: hard +"inquirer@npm:^9.2.12": + version: 9.2.12 + resolution: "inquirer@npm:9.2.12" + dependencies: + "@ljharb/through": "npm:^2.3.11" + ansi-escapes: "npm:^4.3.2" + chalk: "npm:^5.3.0" + cli-cursor: "npm:^3.1.0" + cli-width: "npm:^4.1.0" + external-editor: "npm:^3.1.0" + figures: "npm:^5.0.0" + lodash: "npm:^4.17.21" + mute-stream: "npm:1.0.0" + ora: "npm:^5.4.1" + run-async: "npm:^3.0.0" + rxjs: "npm:^7.8.1" + string-width: "npm:^4.2.3" + strip-ansi: "npm:^6.0.1" + wrap-ansi: "npm:^6.2.0" + checksum: efc19864bea5f4b22a47e686aa88684ee42352db4e96dd6307da7140496c16e5ef0e74be664fba490b068714dc24d72f66dc1907a1ccbaf9d58d6156cbdc5908 + languageName: node + linkType: hard + "internal-slot@npm:^1.0.5": version: 1.0.6 resolution: "internal-slot@npm:1.0.6" @@ -4912,15 +5341,6 @@ __metadata: languageName: node linkType: hard -"is-docker@npm:^3.0.0": - version: 3.0.0 - resolution: "is-docker@npm:3.0.0" - bin: - is-docker: cli.js - checksum: d2c4f8e6d3e34df75a5defd44991b6068afad4835bb783b902fa12d13ebdb8f41b2a199dcb0b5ed2cb78bfee9e4c0bbdb69c2d9646f4106464674d3e697a5856 - languageName: node - linkType: hard - "is-extglob@npm:^2.1.1": version: 2.1.1 resolution: "is-extglob@npm:2.1.1" @@ -4960,17 +5380,6 @@ __metadata: languageName: node linkType: hard -"is-inside-container@npm:^1.0.0": - version: 1.0.0 - resolution: "is-inside-container@npm:1.0.0" - dependencies: - is-docker: "npm:^3.0.0" - bin: - is-inside-container: cli.js - checksum: a8efb0e84f6197e6ff5c64c52890fa9acb49b7b74fed4da7c95383965da6f0fa592b4dbd5e38a79f87fc108196937acdbcd758fcefc9b140e479b39ce1fcd1cd - languageName: node - linkType: hard - "is-interactive@npm:^1.0.0": version: 1.0.0 resolution: "is-interactive@npm:1.0.0" @@ -5144,6 +5553,13 @@ __metadata: languageName: node linkType: hard +"is-unicode-supported@npm:^1.2.0": + version: 1.3.0 + resolution: "is-unicode-supported@npm:1.3.0" + checksum: b8674ea95d869f6faabddc6a484767207058b91aea0250803cbf1221345cb0c56f466d4ecea375dc77f6633d248d33c47bd296fb8f4cdba0b4edba8917e83d8a + languageName: node + linkType: hard + "is-unicode-supported@npm:^2.0.0": version: 2.0.0 resolution: "is-unicode-supported@npm:2.0.0" @@ -5449,7 +5865,7 @@ __metadata: languageName: node linkType: hard -"lerna@npm:^8.0.0": +"lerna@npm:^8.0.1": version: 8.0.1 resolution: "lerna@npm:8.0.1" dependencies: @@ -5590,7 +6006,7 @@ __metadata: languageName: node linkType: hard -"lint-staged@npm:^15.0.2": +"lint-staged@npm:^15.2.0": version: 15.2.0 resolution: "lint-staged@npm:15.2.0" dependencies: @@ -5690,6 +6106,13 @@ __metadata: languageName: node linkType: hard +"lodash-es@npm:^4.17.21": + version: 4.17.21 + resolution: "lodash-es@npm:4.17.21" + checksum: fb407355f7e6cd523a9383e76e6b455321f0f153a6c9625e21a8827d10c54c2a2341bd2ae8d034358b60e07325e1330c14c224ff582d04612a46a4f0479ff2f2 + languageName: node + linkType: hard + "lodash.includes@npm:^4.3.0": version: 4.3.0 resolution: "lodash.includes@npm:4.3.0" @@ -6027,6 +6450,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:9.0.3, minimatch@npm:^9.0.0, minimatch@npm:^9.0.1, minimatch@npm:^9.0.3": + version: 9.0.3 + resolution: "minimatch@npm:9.0.3" + dependencies: + brace-expansion: "npm:^2.0.1" + checksum: 85f407dcd38ac3e180f425e86553911d101455ca3ad5544d6a7cec16286657e4f8a9aa6695803025c55e31e35a91a2252b5dc8e7d527211278b8b65b4dbd5eac + languageName: node + linkType: hard + "minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -6054,15 +6486,6 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^9.0.0, minimatch@npm:^9.0.1, minimatch@npm:^9.0.3": - version: 9.0.3 - resolution: "minimatch@npm:9.0.3" - dependencies: - brace-expansion: "npm:^2.0.1" - checksum: 85f407dcd38ac3e180f425e86553911d101455ca3ad5544d6a7cec16286657e4f8a9aa6695803025c55e31e35a91a2252b5dc8e7d527211278b8b65b4dbd5eac - languageName: node - linkType: hard - "minimist-options@npm:4.1.0": version: 4.1.0 resolution: "minimist-options@npm:4.1.0" @@ -6241,7 +6664,7 @@ __metadata: languageName: node linkType: hard -"mute-stream@npm:~1.0.0": +"mute-stream@npm:1.0.0, mute-stream@npm:~1.0.0": version: 1.0.0 resolution: "mute-stream@npm:1.0.0" checksum: dce2a9ccda171ec979a3b4f869a102b1343dee35e920146776780de182f16eae459644d187e38d59a3d37adf85685e1c17c38cf7bfda7e39a9880f7a1d10a74c @@ -6398,30 +6821,30 @@ __metadata: version: 0.0.0-use.local resolution: "node-rs@workspace:." dependencies: - "@napi-rs/cli": "npm:2.17.0" + "@napi-rs/cli": "npm:^3.0.0-alpha.25" "@swc-node/core": "npm:^1.10.6" "@swc-node/register": "npm:^1.6.8" - "@swc/core": "npm:^1.3.95" + "@swc/core": "npm:^1.3.101" "@taplo/cli": "npm:^0.5.2" - "@types/node": "npm:^20.8.9" - "@typescript-eslint/eslint-plugin": "npm:^6.9.0" - "@typescript-eslint/parser": "npm:^6.9.0" - ava: "npm:^6.0.0" + "@types/node": "npm:^20.10.5" + "@typescript-eslint/eslint-plugin": "npm:^6.16.0" + "@typescript-eslint/parser": "npm:^6.16.0" + ava: "npm:^6.0.1" benchmark: "npm:^2.1.4" codecov: "npm:^3.8.3" cross-env: "npm:^7.0.3" - eslint: "npm:^8.52.0" - eslint-config-prettier: "npm:^9.0.0" - eslint-plugin-import: "npm:^2.29.0" - eslint-plugin-prettier: "npm:^5.0.1" + eslint: "npm:^8.56.0" + eslint-config-prettier: "npm:^9.1.0" + eslint-plugin-import: "npm:^2.29.1" + eslint-plugin-prettier: "npm:^5.1.2" husky: "npm:^8.0.3" - lerna: "npm:^8.0.0" - lint-staged: "npm:^15.0.2" + lerna: "npm:^8.0.1" + lint-staged: "npm:^15.2.0" npm-run-all: "npm:^4.1.5" - prettier: "npm:^3.0.3" - ts-node: "npm:^10.9.1" + prettier: "npm:^3.1.1" + ts-node: "npm:^10.9.2" tslib: "npm:^2.6.2" - typescript: "npm:^5.2.2" + typescript: "npm:^5.3.3" languageName: unknown linkType: soft @@ -6684,11 +7107,11 @@ __metadata: linkType: hard "npm-run-path@npm:^5.1.0": - version: 5.1.0 - resolution: "npm-run-path@npm:5.1.0" + version: 5.2.0 + resolution: "npm-run-path@npm:5.2.0" dependencies: path-key: "npm:^4.0.0" - checksum: ff6d77514489f47fa1c3b1311d09cd4b6d09a874cc1866260f9dea12cbaabda0436ed7f8c2ee44d147bf99a3af29307c6f63b0f83d242b0b6b0ab25dff2629e3 + checksum: 7963c1f98e42afebe9524a08b0881477ec145aab34f6018842a315422b25ad40e015bdee709b697571e5efda2ecfa2640ee917d92674e4de1166fa3532a211b1 languageName: node linkType: hard @@ -6716,21 +7139,21 @@ __metadata: languageName: node linkType: hard -"nx@npm:17.2.6, nx@npm:>=17.1.2 < 18": - version: 17.2.6 - resolution: "nx@npm:17.2.6" +"nx@npm:17.2.7, nx@npm:>=17.1.2 < 18": + version: 17.2.7 + resolution: "nx@npm:17.2.7" dependencies: - "@nrwl/tao": "npm:17.2.6" - "@nx/nx-darwin-arm64": "npm:17.2.6" - "@nx/nx-darwin-x64": "npm:17.2.6" - "@nx/nx-freebsd-x64": "npm:17.2.6" - "@nx/nx-linux-arm-gnueabihf": "npm:17.2.6" - "@nx/nx-linux-arm64-gnu": "npm:17.2.6" - "@nx/nx-linux-arm64-musl": "npm:17.2.6" - "@nx/nx-linux-x64-gnu": "npm:17.2.6" - "@nx/nx-linux-x64-musl": "npm:17.2.6" - "@nx/nx-win32-arm64-msvc": "npm:17.2.6" - "@nx/nx-win32-x64-msvc": "npm:17.2.6" + "@nrwl/tao": "npm:17.2.7" + "@nx/nx-darwin-arm64": "npm:17.2.7" + "@nx/nx-darwin-x64": "npm:17.2.7" + "@nx/nx-freebsd-x64": "npm:17.2.7" + "@nx/nx-linux-arm-gnueabihf": "npm:17.2.7" + "@nx/nx-linux-arm64-gnu": "npm:17.2.7" + "@nx/nx-linux-arm64-musl": "npm:17.2.7" + "@nx/nx-linux-x64-gnu": "npm:17.2.7" + "@nx/nx-linux-x64-musl": "npm:17.2.7" + "@nx/nx-win32-arm64-msvc": "npm:17.2.7" + "@nx/nx-win32-x64-msvc": "npm:17.2.7" "@yarnpkg/lockfile": "npm:^1.1.0" "@yarnpkg/parsers": "npm:3.0.0-rc.46" "@zkochan/js-yaml": "npm:0.0.6" @@ -6796,7 +7219,7 @@ __metadata: bin: nx: bin/nx.js nx-cloud: bin/nx-cloud.js - checksum: d9d5ce9c048749e7f6c02356b9d2afb3ff83b9ea4db1542b0228b5487e3fa1f6dc4055b2579aa0dd87af892fff2acc677178c2b6cb425a15658abb4d7e90d112 + checksum: 36f7cb2fa5e0cd409a6e6b0d331c4491eb199669848ba743a27e515274a05a4a959fd05278a4767541bdc35291852ab3fa30ffe3ed38321ced49dce0db4f285e languageName: node linkType: hard @@ -6905,18 +7328,6 @@ __metadata: languageName: node linkType: hard -"open@npm:^9.1.0": - version: 9.1.0 - resolution: "open@npm:9.1.0" - dependencies: - default-browser: "npm:^4.0.0" - define-lazy-prop: "npm:^3.0.0" - is-inside-container: "npm:^1.0.0" - is-wsl: "npm:^2.2.0" - checksum: 8073ec0dd8994a7a7d9bac208bd17d093993a65ce10f2eb9b62b6d3a91c9366ae903938a237c275493c130171d339f6dcbdd2a2de7e32953452c0867b97825af - languageName: node - linkType: hard - "optionator@npm:^0.9.3": version: 0.9.3 resolution: "optionator@npm:0.9.3" @@ -7386,7 +7797,7 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.0.3": +"prettier@npm:^3.1.1": version: 3.1.1 resolution: "prettier@npm:3.1.1" bin: @@ -7773,15 +8184,6 @@ __metadata: languageName: node linkType: hard -"run-applescript@npm:^5.0.0": - version: 5.0.0 - resolution: "run-applescript@npm:5.0.0" - dependencies: - execa: "npm:^5.0.0" - checksum: f9977db5770929f3f0db434b8e6aa266498c70dec913c84320c0a06add510cf44e3a048c44da088abee312006f9cbf572fd065cdc8f15d7682afda8755f4114c - languageName: node - linkType: hard - "run-async@npm:^2.4.0": version: 2.4.1 resolution: "run-async@npm:2.4.1" @@ -7789,6 +8191,13 @@ __metadata: languageName: node linkType: hard +"run-async@npm:^3.0.0": + version: 3.0.0 + resolution: "run-async@npm:3.0.0" + checksum: b18b562ae37c3020083dcaae29642e4cc360c824fbfb6b7d50d809a9d5227bb986152d09310255842c8dce40526e82ca768f02f00806c91ba92a8dfa6159cb85 + languageName: node + linkType: hard + "run-parallel@npm:^1.1.9": version: 1.2.0 resolution: "run-parallel@npm:1.2.0" @@ -7798,7 +8207,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^7.5.5": +"rxjs@npm:^7.5.5, rxjs@npm:^7.8.1": version: 7.8.1 resolution: "rxjs@npm:7.8.1" dependencies: @@ -8485,13 +8894,13 @@ __metadata: languageName: node linkType: hard -"synckit@npm:^0.8.5": - version: 0.8.6 - resolution: "synckit@npm:0.8.6" +"synckit@npm:^0.8.6": + version: 0.8.8 + resolution: "synckit@npm:0.8.8" dependencies: - "@pkgr/utils": "npm:^2.4.2" + "@pkgr/core": "npm:^0.1.0" tslib: "npm:^2.6.2" - checksum: 200528062e3915a0190a4c6b1e01436fcfdf812e2e8d977746746f3998bb4182d758af760e51b06a64f8323e705735aff7b4b3efc4a0ab5f75eaccc044a8cfcc + checksum: c3d3aa8e284f3f84f2f868b960c9f49239b364e35f6d20825a448449a3e9c8f49fe36cdd5196b30615682f007830d46f2ea354003954c7336723cb821e4b6519 languageName: node linkType: hard @@ -8644,13 +9053,6 @@ __metadata: languageName: node linkType: hard -"titleize@npm:^3.0.0": - version: 3.0.0 - resolution: "titleize@npm:3.0.0" - checksum: 5ae6084ba299b5782f95e3fe85ea9f0fa4d74b8ae722b6b3208157e975589fbb27733aeba4e5080fa9314a856044ef52caa61b87caea4b1baade951a55c06336 - languageName: node - linkType: hard - "tmp@npm:^0.0.33": version: 0.0.33 resolution: "tmp@npm:0.0.33" @@ -8678,6 +9080,13 @@ __metadata: languageName: node linkType: hard +"toml@npm:^3.0.0": + version: 3.0.0 + resolution: "toml@npm:3.0.0" + checksum: 8d7ed3e700ca602e5419fca343e1c595eb7aa177745141f0761a5b20874b58ee5c878cd045c408da9d130cb2b611c639912210ba96ce2f78e443569aa8060c18 + languageName: node + linkType: hard + "tr46@npm:~0.0.3": version: 0.0.3 resolution: "tr46@npm:0.0.3" @@ -8701,7 +9110,7 @@ __metadata: languageName: node linkType: hard -"ts-node@npm:^10.9.1": +"ts-node@npm:^10.9.2": version: 10.9.2 resolution: "ts-node@npm:10.9.2" dependencies: @@ -8762,7 +9171,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0, tslib@npm:^2.5.0, tslib@npm:^2.6.0, tslib@npm:^2.6.2": +"tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0, tslib@npm:^2.5.0, tslib@npm:^2.6.2": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: e03a8a4271152c8b26604ed45535954c0a45296e32445b4b87f8a5abdb2421f40b59b4ca437c4346af0f28179780d604094eb64546bee2019d903d01c6c19bdb @@ -8917,7 +9326,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:>=3 < 6, typescript@npm:^5.2.2": +"typescript@npm:>=3 < 6, typescript@npm:^5.3.3": version: 5.3.3 resolution: "typescript@npm:5.3.3" bin: @@ -8927,7 +9336,7 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin, typescript@patch:typescript@npm%3A^5.2.2#optional!builtin": +"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin, typescript@patch:typescript@npm%3A^5.3.3#optional!builtin": version: 5.3.3 resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin::version=5.3.3&hash=e012d7" bin: @@ -9004,13 +9413,6 @@ __metadata: languageName: node linkType: hard -"untildify@npm:^4.0.0": - version: 4.0.0 - resolution: "untildify@npm:4.0.0" - checksum: d758e624c707d49f76f7511d75d09a8eda7f2020d231ec52b67ff4896bcf7013be3f9522d8375f57e586e9a2e827f5641c7e06ee46ab9c435fc2b2b2e9de517a - languageName: node - linkType: hard - "upath@npm:2.0.1": version: 2.0.1 resolution: "upath@npm:2.0.1" @@ -9283,7 +9685,7 @@ __metadata: languageName: node linkType: hard -"wrap-ansi@npm:^6.0.1": +"wrap-ansi@npm:^6.0.1, wrap-ansi@npm:^6.2.0": version: 6.2.0 resolution: "wrap-ansi@npm:6.2.0" dependencies: