@neon-rs/cli 0.1.80 → 0.1.81

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 +9 -3
  2. package/package.json +11 -11
package/index.js CHANGED
@@ -61768,7 +61768,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
61768
61768
  return (mod && mod.__esModule) ? mod : { "default": mod };
61769
61769
  };
61770
61770
  Object.defineProperty(exports, "__esModule", ({ value: true }));
61771
- exports.rust2Node = exports.node2Rust = exports.describeTarget = exports.expandPlatformFamily = exports.expandPlatformPreset = exports.assertIsPlatformFamily = exports.assertIsPlatformMap = exports.assertIsPlatformPreset = exports.isPlatformPreset = exports.assertIsNodePlatform = exports.isNodePlatform = exports.assertIsRustTarget = exports.isRustTarget = void 0;
61771
+ exports.rust2Node = exports.node2Rust = exports.describeTarget = exports.expandPlatformFamily = exports.expandPlatformPreset = exports.assertIsPlatformFamily = exports.assertIsPlatformMap = exports.assertIsPlatformPreset = exports.assertIsPlatformName = exports.isPlatformPreset = exports.assertIsNodePlatform = exports.isNodePlatform = exports.assertIsRustTarget = exports.isRustTarget = void 0;
61772
61772
  const rust_json_1 = __importDefault(__nccwpck_require__(6685));
61773
61773
  const node_json_1 = __importDefault(__nccwpck_require__(2642));
61774
61774
  const preset_json_1 = __importDefault(__nccwpck_require__(6757));
@@ -61797,6 +61797,12 @@ function isPlatformPreset(x) {
61797
61797
  return (typeof x === 'string') && (x in preset_json_1.default);
61798
61798
  }
61799
61799
  exports.isPlatformPreset = isPlatformPreset;
61800
+ function assertIsPlatformName(x) {
61801
+ if (!isPlatformPreset(x) && !isNodePlatform(x)) {
61802
+ throw new RangeError(`invalid platform name: ${x}`);
61803
+ }
61804
+ }
61805
+ exports.assertIsPlatformName = assertIsPlatformName;
61800
61806
  function assertIsPlatformPreset(x) {
61801
61807
  if (!isPlatformPreset(x)) {
61802
61808
  throw new RangeError(`invalid platform family preset: ${x}`);
@@ -61818,12 +61824,12 @@ function assertIsPlatformMap(json, path) {
61818
61824
  exports.assertIsPlatformMap = assertIsPlatformMap;
61819
61825
  function assertIsPlatformFamily(json, path) {
61820
61826
  if (typeof json === 'string') {
61821
- assertIsPlatformPreset(json);
61827
+ assertIsPlatformName(json);
61822
61828
  return;
61823
61829
  }
61824
61830
  if (Array.isArray(json)) {
61825
61831
  for (const elt of json) {
61826
- assertIsPlatformPreset(elt);
61832
+ assertIsPlatformName(elt);
61827
61833
  }
61828
61834
  return;
61829
61835
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neon-rs/cli",
3
- "version": "0.1.80",
3
+ "version": "0.1.81",
4
4
  "description": "Command-line build tool for Neon modules.",
5
5
  "type": "module",
6
6
  "exports": "./index.js",
@@ -27,15 +27,15 @@
27
27
  },
28
28
  "homepage": "https://github.com/dherman/neon-rs#readme",
29
29
  "optionalDependencies": {
30
- "@cargo-messages/android-arm-eabi": "0.1.79",
31
- "@cargo-messages/darwin-arm64": "0.1.79",
32
- "@cargo-messages/darwin-x64": "0.1.79",
33
- "@cargo-messages/linux-arm-gnueabihf": "0.1.79",
34
- "@cargo-messages/linux-arm64-gnu": "0.1.79",
35
- "@cargo-messages/linux-arm64-musl": "0.1.79",
36
- "@cargo-messages/linux-x64-gnu": "0.1.79",
37
- "@cargo-messages/linux-x64-musl": "0.1.79",
38
- "@cargo-messages/win32-arm64-msvc": "0.1.79",
39
- "@cargo-messages/win32-x64-msvc": "0.1.79"
30
+ "@cargo-messages/android-arm-eabi": "0.1.80",
31
+ "@cargo-messages/darwin-arm64": "0.1.80",
32
+ "@cargo-messages/darwin-x64": "0.1.80",
33
+ "@cargo-messages/linux-arm-gnueabihf": "0.1.80",
34
+ "@cargo-messages/linux-arm64-gnu": "0.1.80",
35
+ "@cargo-messages/linux-arm64-musl": "0.1.80",
36
+ "@cargo-messages/linux-x64-gnu": "0.1.80",
37
+ "@cargo-messages/linux-x64-musl": "0.1.80",
38
+ "@cargo-messages/win32-arm64-msvc": "0.1.80",
39
+ "@cargo-messages/win32-x64-msvc": "0.1.80"
40
40
  }
41
41
  }