@neon-rs/cli 0.0.53 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +24 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -10309,6 +10309,19 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("util");
10309
10309
 
10310
10310
  const { currentTarget } = __nccwpck_require__(1401);
10311
10311
 
10312
+ /*
10313
+ const TABLE = {
10314
+ 'darwin-x64': () => require('@cargo-messages/darwin-x64'),
10315
+ 'win32-x64-msvc': () => require('@cargo-messages/win32-x64-msvc'),
10316
+ 'aarch64-pc-windows-msvc': () => require('@cargo-messages/win32-arm64-msvc'),
10317
+ 'darwin-x64': () => require('@cargo-messages/darwin-x64'),
10318
+ 'darwin-arm64': () => require('@cargo-messages/darwin-arm64'),
10319
+ 'linux-x64-gnu': () => require('@cargo-messages/linux-x64-gnu'),
10320
+ 'linux-arm-gnueabihf': () => require('@cargo-messages/linux-arm-gnueabihf'),
10321
+ 'android-arm-eabi': () => require('@cargo-messages/android-arm-eabi')
10322
+ };
10323
+ */
10324
+
10312
10325
  let saved = null;
10313
10326
 
10314
10327
  function addon() {
@@ -10323,6 +10336,13 @@ function addon() {
10323
10336
  return addon();
10324
10337
  }
10325
10338
 
10339
+ const {
10340
+ findArtifact,
10341
+ findFileByCrateType,
10342
+ fromFile,
10343
+ fromStdin
10344
+ } = addon();
10345
+
10326
10346
  const PRIVATE = {};
10327
10347
 
10328
10348
  function enforcePrivate(nonce, className) {
@@ -10338,7 +10358,7 @@ class CargoArtifact {
10338
10358
  }
10339
10359
 
10340
10360
  findFileByCrateType(crateType) {
10341
- return addon().findFileByCrateType(this._kernel, crateType);
10361
+ return findFileByCrateType(this._kernel, crateType);
10342
10362
  }
10343
10363
  }
10344
10364
 
@@ -10348,12 +10368,12 @@ class CargoMessages {
10348
10368
  this._mount = options.mount || null;
10349
10369
  this._manifestPath = options.manifestPath || null;
10350
10370
  this._kernel = options.file
10351
- ? addon().fromFile(options.file, this._mount, this._manifestPath)
10352
- : addon().fromStdin(this._mount, this._manifestPath);
10371
+ ? fromFile(options.file, this._mount, this._manifestPath)
10372
+ : fromStdin(this._mount, this._manifestPath);
10353
10373
  }
10354
10374
 
10355
10375
  findArtifact(crateName) {
10356
- const found = addon().findArtifact(this._kernel, crateName);
10376
+ const found = findArtifact(this._kernel, crateName);
10357
10377
  return found
10358
10378
  ? new CargoArtifact(PRIVATE, found)
10359
10379
  : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neon-rs/cli",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "Command-line build tool for Neon modules.",
5
5
  "type": "module",
6
6
  "exports": "./index.js",