New mobile/ directory with Capacitor project: - Configurable server URL launcher (default: app.pedshub.com) - Android: foreground service + wake lock for background recording (AudioRecordingService preserved from existing TWA) - iOS: background audio mode + microphone permission - App ID: com.pedshub.scribe - Both platforms initialized and synced Existing android/ TWA project untouched — this is a separate project. Build: cd mobile && npx cap open android (or ios)
21 lines
632 B
JavaScript
21 lines
632 B
JavaScript
"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;
|