@neon-rs/cli 0.0.61 → 0.0.64
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 +9 -60
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10099,14 +10099,6 @@ function wrappy (fn, cb) {
|
|
|
10099
10099
|
}
|
|
10100
10100
|
|
|
10101
10101
|
|
|
10102
|
-
/***/ }),
|
|
10103
|
-
|
|
10104
|
-
/***/ 6604:
|
|
10105
|
-
/***/ ((module) => {
|
|
10106
|
-
|
|
10107
|
-
module.exports = eval("require")("./load.cjs");
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
10102
|
/***/ }),
|
|
10111
10103
|
|
|
10112
10104
|
/***/ 9491:
|
|
@@ -10184,55 +10176,6 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("tty");
|
|
|
10184
10176
|
|
|
10185
10177
|
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("util");
|
|
10186
10178
|
|
|
10187
|
-
/***/ }),
|
|
10188
|
-
|
|
10189
|
-
/***/ 430:
|
|
10190
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
10191
|
-
|
|
10192
|
-
const addon = __nccwpck_require__(6604);
|
|
10193
|
-
|
|
10194
|
-
const PRIVATE = {};
|
|
10195
|
-
|
|
10196
|
-
function enforcePrivate(nonce, className) {
|
|
10197
|
-
if (nonce !== PRIVATE) {
|
|
10198
|
-
throw new Error(`${className} constructor is private`);
|
|
10199
|
-
}
|
|
10200
|
-
}
|
|
10201
|
-
|
|
10202
|
-
class CargoArtifact {
|
|
10203
|
-
constructor(nonce, kernel) {
|
|
10204
|
-
enforcePrivate(nonce, 'CargoArtifact');
|
|
10205
|
-
this._kernel = kernel;
|
|
10206
|
-
}
|
|
10207
|
-
|
|
10208
|
-
findFileByCrateType(crateType) {
|
|
10209
|
-
return addon.findFileByCrateType(this._kernel, crateType);
|
|
10210
|
-
}
|
|
10211
|
-
}
|
|
10212
|
-
|
|
10213
|
-
class CargoMessages {
|
|
10214
|
-
constructor(options) {
|
|
10215
|
-
options = options || {};
|
|
10216
|
-
this._mount = options.mount || null;
|
|
10217
|
-
this._manifestPath = options.manifestPath || null;
|
|
10218
|
-
this._kernel = options.file
|
|
10219
|
-
? addon.fromFile(options.file, this._mount, this._manifestPath)
|
|
10220
|
-
: addon.fromStdin(this._mount, this._manifestPath);
|
|
10221
|
-
}
|
|
10222
|
-
|
|
10223
|
-
findArtifact(crateName) {
|
|
10224
|
-
const found = addon.findArtifact(this._kernel, crateName);
|
|
10225
|
-
return found
|
|
10226
|
-
? new CargoArtifact(PRIVATE, found)
|
|
10227
|
-
: null;
|
|
10228
|
-
}
|
|
10229
|
-
}
|
|
10230
|
-
|
|
10231
|
-
module.exports = {
|
|
10232
|
-
CargoMessages
|
|
10233
|
-
};
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
10179
|
/***/ })
|
|
10237
10180
|
|
|
10238
10181
|
/******/ });
|
|
@@ -13289,11 +13232,17 @@ const promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.ur
|
|
|
13289
13232
|
// EXTERNAL MODULE: ../../node_modules/command-line-args/dist/index.js
|
|
13290
13233
|
var dist = __nccwpck_require__(4516);
|
|
13291
13234
|
var dist_default = /*#__PURE__*/__nccwpck_require__.n(dist);
|
|
13292
|
-
|
|
13293
|
-
|
|
13235
|
+
;// CONCATENATED MODULE: external "node:module"
|
|
13236
|
+
const external_node_module_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:module");
|
|
13294
13237
|
;// CONCATENATED MODULE: ./node_modules/cargo-messages/esm/index.js
|
|
13295
13238
|
|
|
13296
13239
|
|
|
13240
|
+
const esm_require = (0,external_node_module_namespaceObject.createRequire)(import.meta.url);
|
|
13241
|
+
|
|
13242
|
+
const { CargoMessages } = esm_require('../cjs/index.cjs');
|
|
13243
|
+
|
|
13244
|
+
|
|
13245
|
+
|
|
13297
13246
|
;// CONCATENATED MODULE: ./src/commands/dist.ts
|
|
13298
13247
|
|
|
13299
13248
|
|
|
@@ -13356,7 +13305,7 @@ class Dist {
|
|
|
13356
13305
|
this._out = options.out;
|
|
13357
13306
|
}
|
|
13358
13307
|
findArtifact() {
|
|
13359
|
-
const messages = new
|
|
13308
|
+
const messages = new CargoMessages({
|
|
13360
13309
|
mount: this._mount || undefined,
|
|
13361
13310
|
manifestPath: this._manifestPath || undefined,
|
|
13362
13311
|
file: this._log || undefined
|