@joystick.js/cli-canary 0.0.0-canary.75 → 0.0.0-canary.76
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/lib/dev/cleanup.js +0 -11
- package/package.json +1 -1
- package/src/lib/dev/cleanup.js +0 -11
package/dist/lib/dev/cleanup.js
CHANGED
|
@@ -25,19 +25,8 @@ const handleCLIProcessMessages = () => {
|
|
|
25
25
|
throw new Error(`[cleanup.handleCLIProcessMessages] ${exception.message}`);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
const validateOptions = (options) => {
|
|
29
|
-
try {
|
|
30
|
-
if (!options)
|
|
31
|
-
throw new Error("options object is required.");
|
|
32
|
-
if (!options.someOption)
|
|
33
|
-
throw new Error("options.someOption is required.");
|
|
34
|
-
} catch (exception) {
|
|
35
|
-
throw new Error(`[cleanup.validateOptions] ${exception.message}`);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
28
|
const cleanup = (options, { resolve, reject }) => {
|
|
39
29
|
try {
|
|
40
|
-
validateOptions(options);
|
|
41
30
|
process.title = "joystick_cleanup";
|
|
42
31
|
handleCLIProcessMessages();
|
|
43
32
|
resolve();
|
package/package.json
CHANGED
package/src/lib/dev/cleanup.js
CHANGED
|
@@ -30,19 +30,8 @@ const handleCLIProcessMessages = () => {
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
const validateOptions = (options) => {
|
|
34
|
-
try {
|
|
35
|
-
if (!options) throw new Error('options object is required.');
|
|
36
|
-
if (!options.someOption) throw new Error('options.someOption is required.');
|
|
37
|
-
} catch (exception) {
|
|
38
|
-
throw new Error(`[cleanup.validateOptions] ${exception.message}`);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
33
|
const cleanup = (options, { resolve, reject }) => {
|
|
43
34
|
try {
|
|
44
|
-
validateOptions(options);
|
|
45
|
-
|
|
46
35
|
process.title = "joystick_cleanup";
|
|
47
36
|
|
|
48
37
|
handleCLIProcessMessages();
|