forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
31
node_modules/@capacitor/assets/dist/util/cli.js
generated
vendored
Normal file
31
node_modules/@capacitor/assets/dist/util/cli.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.wrapAction = void 0;
|
||||
const log_1 = require("./log");
|
||||
function wrapAction(action) {
|
||||
return async (...args) => {
|
||||
try {
|
||||
await action(...args);
|
||||
}
|
||||
catch (e) {
|
||||
log_1.logger.error(e.message);
|
||||
throw e;
|
||||
}
|
||||
};
|
||||
}
|
||||
exports.wrapAction = wrapAction;
|
||||
/*
|
||||
export async function logPrompt(msg: string, promptObject: any) {
|
||||
const { wordWrap } = await import('@ionic/cli-framework-output');
|
||||
const prompt = await import('prompts');
|
||||
|
||||
logger.log({
|
||||
msg: `${c.input(`[?]`)} ${wordWrap(msg, { indentation: 4 })}`,
|
||||
logger,
|
||||
format: false,
|
||||
});
|
||||
|
||||
return prompt.default(promptObject, { onCancel: () => process.exit(1) });
|
||||
}
|
||||
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue