diff --git a/index.js b/index.js index 070b132..9f71def 100644 --- a/index.js +++ b/index.js @@ -37,7 +37,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.android-arm64.node') } else { - nativeBinding = require('datalayer-driver-android-arm64') + nativeBinding = require('@dignetwork/datalayer-driver-android-arm64') } } catch (e) { loadError = e @@ -49,7 +49,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.android-arm-eabi.node') } else { - nativeBinding = require('datalayer-driver-android-arm-eabi') + nativeBinding = require('@dignetwork/datalayer-driver-android-arm-eabi') } } catch (e) { loadError = e @@ -69,7 +69,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.win32-x64-msvc.node') } else { - nativeBinding = require('datalayer-driver-win32-x64-msvc') + nativeBinding = require('@dignetwork/datalayer-driver-win32-x64-msvc') } } catch (e) { loadError = e @@ -83,7 +83,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.win32-ia32-msvc.node') } else { - nativeBinding = require('datalayer-driver-win32-ia32-msvc') + nativeBinding = require('@dignetwork/datalayer-driver-win32-ia32-msvc') } } catch (e) { loadError = e @@ -97,7 +97,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.win32-arm64-msvc.node') } else { - nativeBinding = require('datalayer-driver-win32-arm64-msvc') + nativeBinding = require('@dignetwork/datalayer-driver-win32-arm64-msvc') } } catch (e) { loadError = e @@ -113,7 +113,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.darwin-universal.node') } else { - nativeBinding = require('datalayer-driver-darwin-universal') + nativeBinding = require('@dignetwork/datalayer-driver-darwin-universal') } break } catch {} @@ -124,7 +124,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.darwin-x64.node') } else { - nativeBinding = require('datalayer-driver-darwin-x64') + nativeBinding = require('@dignetwork/datalayer-driver-darwin-x64') } } catch (e) { loadError = e @@ -138,7 +138,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.darwin-arm64.node') } else { - nativeBinding = require('datalayer-driver-darwin-arm64') + nativeBinding = require('@dignetwork/datalayer-driver-darwin-arm64') } } catch (e) { loadError = e @@ -157,7 +157,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.freebsd-x64.node') } else { - nativeBinding = require('datalayer-driver-freebsd-x64') + nativeBinding = require('@dignetwork/datalayer-driver-freebsd-x64') } } catch (e) { loadError = e @@ -174,7 +174,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-x64-musl.node') } else { - nativeBinding = require('datalayer-driver-linux-x64-musl') + nativeBinding = require('@dignetwork/datalayer-driver-linux-x64-musl') } } catch (e) { loadError = e @@ -187,7 +187,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-x64-gnu.node') } else { - nativeBinding = require('datalayer-driver-linux-x64-gnu') + nativeBinding = require('@dignetwork/datalayer-driver-linux-x64-gnu') } } catch (e) { loadError = e @@ -203,7 +203,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-arm64-musl.node') } else { - nativeBinding = require('datalayer-driver-linux-arm64-musl') + nativeBinding = require('@dignetwork/datalayer-driver-linux-arm64-musl') } } catch (e) { loadError = e @@ -216,7 +216,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-arm64-gnu.node') } else { - nativeBinding = require('datalayer-driver-linux-arm64-gnu') + nativeBinding = require('@dignetwork/datalayer-driver-linux-arm64-gnu') } } catch (e) { loadError = e @@ -232,7 +232,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-arm-musleabihf.node') } else { - nativeBinding = require('datalayer-driver-linux-arm-musleabihf') + nativeBinding = require('@dignetwork/datalayer-driver-linux-arm-musleabihf') } } catch (e) { loadError = e @@ -245,7 +245,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-arm-gnueabihf.node') } else { - nativeBinding = require('datalayer-driver-linux-arm-gnueabihf') + nativeBinding = require('@dignetwork/datalayer-driver-linux-arm-gnueabihf') } } catch (e) { loadError = e @@ -261,7 +261,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-riscv64-musl.node') } else { - nativeBinding = require('datalayer-driver-linux-riscv64-musl') + nativeBinding = require('@dignetwork/datalayer-driver-linux-riscv64-musl') } } catch (e) { loadError = e @@ -274,7 +274,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-riscv64-gnu.node') } else { - nativeBinding = require('datalayer-driver-linux-riscv64-gnu') + nativeBinding = require('@dignetwork/datalayer-driver-linux-riscv64-gnu') } } catch (e) { loadError = e @@ -289,7 +289,7 @@ switch (platform) { if (localFileExisted) { nativeBinding = require('./datalayer-driver.linux-s390x-gnu.node') } else { - nativeBinding = require('datalayer-driver-linux-s390x-gnu') + nativeBinding = require('@dignetwork/datalayer-driver-linux-s390x-gnu') } } catch (e) { loadError = e diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index dce028d..e02c3ce 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,5 +1,5 @@ { - "name": "datalayer-driver-darwin-arm64", + "name": "@dignetwork/datalayer-driver-darwin-arm64", "version": "0.1.21", "repository": { "type": "git", diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index 244b535..c39a4f7 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,5 +1,5 @@ { - "name": "datalayer-driver-darwin-x64", + "name": "@dignetwork/datalayer-driver-darwin-x64", "version": "0.1.21", "repository": { "type": "git", diff --git a/npm/linux-arm64-gnu/package.json b/npm/linux-arm64-gnu/package.json index 198e1c4..488d46e 100644 --- a/npm/linux-arm64-gnu/package.json +++ b/npm/linux-arm64-gnu/package.json @@ -1,5 +1,5 @@ { - "name": "datalayer-driver-linux-arm64-gnu", + "name": "@dignetwork/datalayer-driver-linux-arm64-gnu", "version": "0.1.21", "repository": { "type": "git", diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index eb60d01..304788d 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,5 +1,5 @@ { - "name": "datalayer-driver-linux-x64-gnu", + "name": "@dignetwork/datalayer-driver-linux-x64-gnu", "version": "0.1.21", "repository": { "type": "git", diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index b086fb6..0746bf8 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,5 +1,5 @@ { - "name": "datalayer-driver-win32-x64-msvc", + "name": "@dignetwork/datalayer-driver-win32-x64-msvc", "version": "0.1.21", "repository": { "type": "git", diff --git a/package.json b/package.json index bfa47b8..8bede35 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "datalayer-driver", + "name": "@dignetwork/datalayer-driver", "version": "0.1.21", "main": "index.js", "types": "index.d.ts", "repository": { "type": "git", - "url": "https://github.com/Datalayer-Storage/DataLayer-Driver" + "url": "https://github.com/Dig-Network/DataLayer-Driver" }, "napi": { "name": "datalayer-driver", diff --git a/yarn.lock b/yarn.lock index 7ecccba..74f1e4a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,6 +5,15 @@ __metadata: version: 8 cacheKey: 10c0 +"@dignetwork/datalayer-driver@workspace:.": + version: 0.0.0-use.local + resolution: "@dignetwork/datalayer-driver@workspace:." + dependencies: + "@napi-rs/cli": "npm:^2.18.4" + ava: "npm:^6.0.1" + languageName: unknown + linkType: soft + "@mapbox/node-pre-gyp@npm:^1.0.5": version: 1.0.11 resolution: "@mapbox/node-pre-gyp@npm:1.0.11" @@ -482,15 +491,6 @@ __metadata: languageName: node linkType: hard -"datalayer-driver@workspace:.": - version: 0.0.0-use.local - resolution: "datalayer-driver@workspace:." - dependencies: - "@napi-rs/cli": "npm:^2.18.4" - ava: "npm:^6.0.1" - languageName: unknown - linkType: soft - "date-time@npm:^3.1.0": version: 3.1.0 resolution: "date-time@npm:3.1.0"