Skip to content

Commit

Permalink
bump @neon-rs/manifest version in @neon-rs/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed Aug 25, 2024
1 parent ab3b63d commit 1acbaed
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 44 deletions.
12 changes: 9 additions & 3 deletions dist/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61768,7 +61768,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
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;
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;
const rust_json_1 = __importDefault(__nccwpck_require__(6685));
const node_json_1 = __importDefault(__nccwpck_require__(2642));
const preset_json_1 = __importDefault(__nccwpck_require__(6757));
Expand Down Expand Up @@ -61797,6 +61797,12 @@ function isPlatformPreset(x) {
return (typeof x === 'string') && (x in preset_json_1.default);
}
exports.isPlatformPreset = isPlatformPreset;
function assertIsPlatformName(x) {
if (!isPlatformPreset(x) && !isNodePlatform(x)) {
throw new RangeError(`invalid platform name: ${x}`);
}
}
exports.assertIsPlatformName = assertIsPlatformName;
function assertIsPlatformPreset(x) {
if (!isPlatformPreset(x)) {
throw new RangeError(`invalid platform family preset: ${x}`);
Expand All @@ -61818,12 +61824,12 @@ function assertIsPlatformMap(json, path) {
exports.assertIsPlatformMap = assertIsPlatformMap;
function assertIsPlatformFamily(json, path) {
if (typeof json === 'string') {
assertIsPlatformPreset(json);
assertIsPlatformName(json);
return;
}
if (Array.isArray(json)) {
for (const elt of json) {
assertIsPlatformPreset(elt);
assertIsPlatformName(elt);
}
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"dependencies": {
"@neon-rs/artifact": "^0.1.0",
"@neon-rs/load": "^0.0.181",
"@neon-rs/manifest": "^0.1.2",
"@neon-rs/manifest": "^0.1.3",
"cargo-messages": "^0.1.80",
"chalk": "^5.2.0",
"command-line-args": "^5.2.1",
Expand Down
80 changes: 40 additions & 40 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1acbaed

Please sign in to comment.