This commit is contained in:
parent
55470c090d
commit
6947a1adba
1260 changed files with 111297 additions and 0 deletions
21
@capacitor/cli/dist/util/js.js
vendored
Normal file
21
@capacitor/cli/dist/util/js.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.formatJSObject = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
const util_1 = tslib_1.__importDefault(require("util"));
|
||||
function formatJSObject(o) {
|
||||
try {
|
||||
o = JSON.parse(JSON.stringify(o));
|
||||
}
|
||||
catch (e) {
|
||||
throw new Error(`Cannot parse object as JSON: ${e.stack ? e.stack : e}`);
|
||||
}
|
||||
return util_1.default.inspect(o, {
|
||||
compact: false,
|
||||
breakLength: Infinity,
|
||||
depth: Infinity,
|
||||
maxArrayLength: Infinity,
|
||||
maxStringLength: Infinity,
|
||||
});
|
||||
}
|
||||
exports.formatJSObject = formatJSObject;
|
Loading…
Add table
Add a link
Reference in a new issue