@h3ravel/musket 2.2.0 → 2.2.1
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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -359,7 +359,7 @@ var Command = class {
|
|
|
359
359
|
setArgument(name, value) {
|
|
360
360
|
this.input.arguments[name] = value;
|
|
361
361
|
const index = this.input.arguments ? Object.keys(this.input.arguments).indexOf(name) : -1;
|
|
362
|
-
if (index !== -1) this.program.args[index] = value;
|
|
362
|
+
if (index !== -1 && this.program?.args) this.program.args[index] = value;
|
|
363
363
|
return this;
|
|
364
364
|
}
|
|
365
365
|
/**
|
package/dist/index.js
CHANGED
|
@@ -335,7 +335,7 @@ var Command = class {
|
|
|
335
335
|
setArgument(name, value) {
|
|
336
336
|
this.input.arguments[name] = value;
|
|
337
337
|
const index = this.input.arguments ? Object.keys(this.input.arguments).indexOf(name) : -1;
|
|
338
|
-
if (index !== -1) this.program.args[index] = value;
|
|
338
|
+
if (index !== -1 && this.program?.args) this.program.args[index] = value;
|
|
339
339
|
return this;
|
|
340
340
|
}
|
|
341
341
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/musket",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Musket CLI is a framework-agnostic CLI framework designed to allow you build artisan-like CLI apps and for use in the H3ravel framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|