diff --git a/index.js b/index.js index eac25fe..9c2e92b 100644 --- a/index.js +++ b/index.js @@ -78,8 +78,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-android-arm64') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-android-arm64/package.json').version + const binding = require('@mongodb-js/atlas-local-android-arm64') + const bindingPackageVersion = require('@mongodb-js/atlas-local-android-arm64/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -94,8 +94,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-android-arm-eabi') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-android-arm-eabi/package.json').version + const binding = require('@mongodb-js/atlas-local-android-arm-eabi') + const bindingPackageVersion = require('@mongodb-js/atlas-local-android-arm-eabi/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -114,8 +114,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-win32-x64-msvc') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-win32-x64-msvc/package.json').version + const binding = require('@mongodb-js/atlas-local-win32-x64-msvc') + const bindingPackageVersion = require('@mongodb-js/atlas-local-win32-x64-msvc/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -130,8 +130,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-win32-ia32-msvc') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-win32-ia32-msvc/package.json').version + const binding = require('@mongodb-js/atlas-local-win32-ia32-msvc') + const bindingPackageVersion = require('@mongodb-js/atlas-local-win32-ia32-msvc/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -146,8 +146,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-win32-arm64-msvc') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-win32-arm64-msvc/package.json').version + const binding = require('@mongodb-js/atlas-local-win32-arm64-msvc') + const bindingPackageVersion = require('@mongodb-js/atlas-local-win32-arm64-msvc/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -165,8 +165,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-darwin-universal') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-darwin-universal/package.json').version + const binding = require('@mongodb-js/atlas-local-darwin-universal') + const bindingPackageVersion = require('@mongodb-js/atlas-local-darwin-universal/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -181,8 +181,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-darwin-x64') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-darwin-x64/package.json').version + const binding = require('@mongodb-js/atlas-local-darwin-x64') + const bindingPackageVersion = require('@mongodb-js/atlas-local-darwin-x64/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -197,8 +197,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-darwin-arm64') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-darwin-arm64/package.json').version + const binding = require('@mongodb-js/atlas-local-darwin-arm64') + const bindingPackageVersion = require('@mongodb-js/atlas-local-darwin-arm64/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -217,8 +217,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-freebsd-x64') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-freebsd-x64/package.json').version + const binding = require('@mongodb-js/atlas-local-freebsd-x64') + const bindingPackageVersion = require('@mongodb-js/atlas-local-freebsd-x64/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -233,8 +233,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-freebsd-arm64') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-freebsd-arm64/package.json').version + const binding = require('@mongodb-js/atlas-local-freebsd-arm64') + const bindingPackageVersion = require('@mongodb-js/atlas-local-freebsd-arm64/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -254,8 +254,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-x64-musl') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-x64-musl/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-x64-musl') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-x64-musl/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -270,8 +270,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-x64-gnu') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-x64-gnu/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-x64-gnu') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-x64-gnu/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -288,8 +288,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-arm64-musl') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-arm64-musl/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-arm64-musl') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-arm64-musl/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -304,8 +304,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-arm64-gnu') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-arm64-gnu/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-arm64-gnu') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-arm64-gnu/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -322,8 +322,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-arm-musleabihf') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-arm-musleabihf/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-arm-musleabihf') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-arm-musleabihf/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -338,8 +338,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-arm-gnueabihf') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-arm-gnueabihf/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-arm-gnueabihf') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-arm-gnueabihf/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -356,8 +356,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-loong64-musl') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-loong64-musl/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-loong64-musl') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-loong64-musl/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -372,8 +372,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-loong64-gnu') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-loong64-gnu/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-loong64-gnu') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-loong64-gnu/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -390,8 +390,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-riscv64-musl') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-riscv64-musl/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-riscv64-musl') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-riscv64-musl/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -406,8 +406,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-riscv64-gnu') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-riscv64-gnu/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-riscv64-gnu') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-riscv64-gnu/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -423,8 +423,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-ppc64-gnu') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-ppc64-gnu/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-ppc64-gnu') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-ppc64-gnu/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -439,8 +439,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-linux-s390x-gnu') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-linux-s390x-gnu/package.json').version + const binding = require('@mongodb-js/atlas-local-linux-s390x-gnu') + const bindingPackageVersion = require('@mongodb-js/atlas-local-linux-s390x-gnu/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -459,8 +459,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-openharmony-arm64') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-openharmony-arm64/package.json').version + const binding = require('@mongodb-js/atlas-local-openharmony-arm64') + const bindingPackageVersion = require('@mongodb-js/atlas-local-openharmony-arm64/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -475,8 +475,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-openharmony-x64') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-openharmony-x64/package.json').version + const binding = require('@mongodb-js/atlas-local-openharmony-x64') + const bindingPackageVersion = require('@mongodb-js/atlas-local-openharmony-x64/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -491,8 +491,8 @@ function requireNative() { loadErrors.push(e) } try { - const binding = require('@mongodb-js-preview/atlas-local-openharmony-arm') - const bindingPackageVersion = require('@mongodb-js-preview/atlas-local-openharmony-arm/package.json').version + const binding = require('@mongodb-js/atlas-local-openharmony-arm') + const bindingPackageVersion = require('@mongodb-js/atlas-local-openharmony-arm/package.json').version if (bindingPackageVersion !== '0.0.0-preview.11' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { throw new Error(`Native binding package version mismatch, expected 0.0.0-preview.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } @@ -523,7 +523,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) { } if (!nativeBinding) { try { - wasiBinding = require('@mongodb-js-preview/atlas-local-wasm32-wasi') + wasiBinding = require('@mongodb-js/atlas-local-wasm32-wasi') nativeBinding = wasiBinding } catch (err) { if (process.env.NAPI_RS_FORCE_WASI) { diff --git a/package.json b/package.json index 3fd1d1c..1527b05 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@mongodb-js-preview/atlas-local", + "name": "@mongodb-js/atlas-local", "version": "0.0.0-preview.11", "description": "A Node.js library for managing MongoDB Atlas Local deployments using Docker. This library provides a high-level JavaScript/TypeScript interface to interact with MongoDB Atlas Local deployments, making it easy to develop and test applications against a local MongoDB Atlas environment.", "main": "index.js", diff --git a/yarn.lock b/yarn.lock index 09c0b1b..07bc185 100644 --- a/yarn.lock +++ b/yarn.lock @@ -559,9 +559,9 @@ __metadata: languageName: node linkType: hard -"@mongodb-js-preview/atlas-local@workspace:.": +"@mongodb-js/atlas-local@workspace:.": version: 0.0.0-use.local - resolution: "@mongodb-js-preview/atlas-local@workspace:." + resolution: "@mongodb-js/atlas-local@workspace:." dependencies: "@emnapi/core": "npm:^1.4.5" "@emnapi/runtime": "npm:^1.4.5"