@danielx/civet 0.5.70 → 0.5.72
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/browser.js +729 -510
- package/dist/civet +8 -1
- package/dist/main.js +729 -510
- package/dist/main.mjs +729 -510
- package/package.json +1 -1
package/dist/civet
CHANGED
|
@@ -203,7 +203,14 @@ repl = function(options) {
|
|
|
203
203
|
}
|
|
204
204
|
}(),
|
|
205
205
|
writer: options.ast ? function(obj) {
|
|
206
|
-
|
|
206
|
+
var e;
|
|
207
|
+
try {
|
|
208
|
+
return JSON.stringify(obj, null, 2);
|
|
209
|
+
} catch (error1) {
|
|
210
|
+
e = error1;
|
|
211
|
+
console.log(`Failed to stringify: ${e}`);
|
|
212
|
+
return obj;
|
|
213
|
+
}
|
|
207
214
|
} : options.compile ? function(obj) {
|
|
208
215
|
if (typeof obj === "string") {
|
|
209
216
|
return obj != null ? obj.replace(/\n*$/, "") : void 0;
|