@neon-rs/cli 0.0.170 → 0.0.172
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.
- package/index.js +36 -38
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 8938:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7
7
|
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
|
|
10
10
|
__webpack_unused_export__ = ({ value: true });
|
|
11
|
-
exports.AO = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = void 0;
|
|
11
|
+
exports.AO = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = void 0;
|
|
12
12
|
function currentTarget() {
|
|
13
13
|
let os = null;
|
|
14
14
|
switch (process.platform) {
|
|
@@ -158,8 +158,15 @@ function __UNSTABLE_loader(loaders) {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
__webpack_unused_export__ = __UNSTABLE_loader;
|
|
161
|
-
function
|
|
161
|
+
function isTargetTable(options) {
|
|
162
|
+
return !('targets' in options);
|
|
163
|
+
}
|
|
164
|
+
function proxy(options) {
|
|
165
|
+
if (isTargetTable(options)) {
|
|
166
|
+
options = { targets: options };
|
|
167
|
+
}
|
|
162
168
|
const target = currentTarget();
|
|
169
|
+
const loaders = options.targets;
|
|
163
170
|
if (!loaders.hasOwnProperty(target)) {
|
|
164
171
|
throw new Error(`no precompiled module found for ${target}`);
|
|
165
172
|
}
|
|
@@ -167,7 +174,17 @@ function __UNSTABLE_proxy(loaders) {
|
|
|
167
174
|
let loaded = null;
|
|
168
175
|
function load() {
|
|
169
176
|
if (!loaded) {
|
|
170
|
-
|
|
177
|
+
if (options.debug) {
|
|
178
|
+
try {
|
|
179
|
+
loaded = options.debug();
|
|
180
|
+
}
|
|
181
|
+
catch (_e) {
|
|
182
|
+
loaded = null;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (!loaded) {
|
|
186
|
+
loaded = loader();
|
|
187
|
+
}
|
|
171
188
|
}
|
|
172
189
|
return loaded;
|
|
173
190
|
}
|
|
@@ -208,6 +225,10 @@ function __UNSTABLE_proxy(loaders) {
|
|
|
208
225
|
};
|
|
209
226
|
return new Proxy({}, handler);
|
|
210
227
|
}
|
|
228
|
+
__webpack_unused_export__ = proxy;
|
|
229
|
+
function __UNSTABLE_proxy(options) {
|
|
230
|
+
return proxy(options);
|
|
231
|
+
}
|
|
211
232
|
exports.AO = __UNSTABLE_proxy;
|
|
212
233
|
|
|
213
234
|
|
|
@@ -10312,7 +10333,7 @@ function wrappy (fn, cb) {
|
|
|
10312
10333
|
|
|
10313
10334
|
/***/ }),
|
|
10314
10335
|
|
|
10315
|
-
/***/
|
|
10336
|
+
/***/ 1430:
|
|
10316
10337
|
/***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
|
|
10317
10338
|
|
|
10318
10339
|
|
|
@@ -10333,9 +10354,9 @@ const promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.ur
|
|
|
10333
10354
|
// EXTERNAL MODULE: ../node_modules/command-line-args/dist/index.js
|
|
10334
10355
|
var dist = __nccwpck_require__(7898);
|
|
10335
10356
|
var dist_default = /*#__PURE__*/__nccwpck_require__.n(dist);
|
|
10336
|
-
// EXTERNAL MODULE:
|
|
10337
|
-
var lib = __nccwpck_require__(
|
|
10338
|
-
;// CONCATENATED MODULE:
|
|
10357
|
+
// EXTERNAL MODULE: ./node_modules/cargo-messages/lib/index.cjs
|
|
10358
|
+
var lib = __nccwpck_require__(3993);
|
|
10359
|
+
;// CONCATENATED MODULE: ./node_modules/cargo-messages/lib/index.mjs
|
|
10339
10360
|
|
|
10340
10361
|
|
|
10341
10362
|
;// CONCATENATED MODULE: ./src/commands/dist.ts
|
|
@@ -13177,7 +13198,7 @@ __nccwpck_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
13177
13198
|
/* harmony import */ var command_line_commands__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(5046);
|
|
13178
13199
|
/* harmony import */ var command_line_commands__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(command_line_commands__WEBPACK_IMPORTED_MODULE_0__);
|
|
13179
13200
|
/* harmony import */ var _print_js__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(9050);
|
|
13180
|
-
/* harmony import */ var _command_js__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(
|
|
13201
|
+
/* harmony import */ var _command_js__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(1430);
|
|
13181
13202
|
/* harmony import */ var node_module__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(2033);
|
|
13182
13203
|
/* harmony import */ var node_module__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__nccwpck_require__.n(node_module__WEBPACK_IMPORTED_MODULE_3__);
|
|
13183
13204
|
|
|
@@ -16201,7 +16222,7 @@ const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});
|
|
|
16201
16222
|
/* harmony default export */ const chalk_source = (chalk);
|
|
16202
16223
|
|
|
16203
16224
|
// EXTERNAL MODULE: ./src/command.ts + 40 modules
|
|
16204
|
-
var command = __nccwpck_require__(
|
|
16225
|
+
var command = __nccwpck_require__(1430);
|
|
16205
16226
|
;// CONCATENATED MODULE: ./src/print.ts
|
|
16206
16227
|
|
|
16207
16228
|
|
|
@@ -16444,10 +16465,10 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("util");
|
|
|
16444
16465
|
|
|
16445
16466
|
/***/ }),
|
|
16446
16467
|
|
|
16447
|
-
/***/
|
|
16468
|
+
/***/ 3993:
|
|
16448
16469
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
16449
16470
|
|
|
16450
|
-
const addon = __nccwpck_require__(
|
|
16471
|
+
const addon = __nccwpck_require__(6459);
|
|
16451
16472
|
const readline = __nccwpck_require__(1747);
|
|
16452
16473
|
|
|
16453
16474
|
const PRIVATE = {};
|
|
@@ -16604,13 +16625,13 @@ module.exports = {
|
|
|
16604
16625
|
|
|
16605
16626
|
/***/ }),
|
|
16606
16627
|
|
|
16607
|
-
/***/
|
|
16628
|
+
/***/ 6459:
|
|
16608
16629
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
16609
16630
|
|
|
16610
|
-
module.exports = (__nccwpck_require__(
|
|
16631
|
+
module.exports = (__nccwpck_require__(8938)/* .__UNSTABLE_proxy */ .AO)({
|
|
16611
16632
|
'darwin-x64': () => __nccwpck_require__(2990),
|
|
16612
16633
|
'win32-x64-msvc': () => __nccwpck_require__(1324),
|
|
16613
|
-
'
|
|
16634
|
+
'win32-arm64-msvc': () => __nccwpck_require__(7894),
|
|
16614
16635
|
'darwin-x64': () => __nccwpck_require__(2990),
|
|
16615
16636
|
'darwin-arm64': () => __nccwpck_require__(4404),
|
|
16616
16637
|
'linux-x64-gnu': () => __nccwpck_require__(1316),
|
|
@@ -16618,29 +16639,6 @@ module.exports = (__nccwpck_require__(1869)/* .__UNSTABLE_proxy */ .AO)({
|
|
|
16618
16639
|
'android-arm-eabi': () => __nccwpck_require__(1738)
|
|
16619
16640
|
});
|
|
16620
16641
|
|
|
16621
|
-
// module.exports = require('@neon-rs/load').lazy({
|
|
16622
|
-
// targets: {
|
|
16623
|
-
// 'darwin-x64': () => require('@cargo-messages/darwin-x64'),
|
|
16624
|
-
// 'win32-x64-msvc': () => require('@cargo-messages/win32-x64-msvc'),
|
|
16625
|
-
// 'aarch64-pc-windows-msvc': () => require('@cargo-messages/win32-arm64-msvc'),
|
|
16626
|
-
// 'darwin-x64': () => require('@cargo-messages/darwin-x64'),
|
|
16627
|
-
// 'darwin-arm64': () => require('@cargo-messages/darwin-arm64'),
|
|
16628
|
-
// 'linux-x64-gnu': () => require('@cargo-messages/linux-x64-gnu'),
|
|
16629
|
-
// 'linux-arm-gnueabihf': () => require('@cargo-messages/linux-arm-gnueabihf'),
|
|
16630
|
-
// 'android-arm-eabi': () => require('@cargo-messages/android-arm-eabi')
|
|
16631
|
-
// },
|
|
16632
|
-
// exports: [
|
|
16633
|
-
// 'findArtifact',
|
|
16634
|
-
// 'findFileByCrateType',
|
|
16635
|
-
// 'fromStdin',
|
|
16636
|
-
// 'fromFile',
|
|
16637
|
-
// 'createReader',
|
|
16638
|
-
// 'compilerArtifactCrateName',
|
|
16639
|
-
// 'compilerArtifactFindFileByCrateType',
|
|
16640
|
-
// 'readline'
|
|
16641
|
-
// ]
|
|
16642
|
-
// });
|
|
16643
|
-
|
|
16644
16642
|
|
|
16645
16643
|
/***/ })
|
|
16646
16644
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neon-rs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.172",
|
|
4
4
|
"description": "Command-line build tool for Neon modules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./index.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/dherman/neon-rs#readme",
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@cargo-messages/android-arm-eabi": "0.0.
|
|
31
|
-
"@cargo-messages/darwin-arm64": "0.0.
|
|
32
|
-
"@cargo-messages/darwin-x64": "0.0.
|
|
33
|
-
"@cargo-messages/linux-arm-gnueabihf": "0.0.
|
|
34
|
-
"@cargo-messages/linux-x64-gnu": "0.0.
|
|
35
|
-
"@cargo-messages/win32-arm64-msvc": "0.0.
|
|
36
|
-
"@cargo-messages/win32-x64-msvc": "0.0.
|
|
30
|
+
"@cargo-messages/android-arm-eabi": "0.0.172",
|
|
31
|
+
"@cargo-messages/darwin-arm64": "0.0.172",
|
|
32
|
+
"@cargo-messages/darwin-x64": "0.0.172",
|
|
33
|
+
"@cargo-messages/linux-arm-gnueabihf": "0.0.172",
|
|
34
|
+
"@cargo-messages/linux-x64-gnu": "0.0.172",
|
|
35
|
+
"@cargo-messages/win32-arm64-msvc": "0.0.172",
|
|
36
|
+
"@cargo-messages/win32-x64-msvc": "0.0.172"
|
|
37
37
|
}
|
|
38
38
|
}
|