@danielx/civet 0.5.39 → 0.5.40
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/README.md +2 -1
- package/dist/browser.js +399 -80
- package/dist/civet +5 -1
- package/dist/main.js +399 -80
- package/dist/main.mjs +399 -80
- package/package.json +1 -1
package/dist/civet
CHANGED
|
@@ -204,7 +204,11 @@ repl = function(options) {
|
|
|
204
204
|
writer: options.ast ? function(obj) {
|
|
205
205
|
return JSON.stringify(obj, null, 2);
|
|
206
206
|
} : options.compile ? function(obj) {
|
|
207
|
-
|
|
207
|
+
if (typeof obj === "string") {
|
|
208
|
+
return obj != null ? obj.replace(/\n*$/, "") : void 0;
|
|
209
|
+
} else {
|
|
210
|
+
return obj;
|
|
211
|
+
}
|
|
208
212
|
} : void 0,
|
|
209
213
|
eval: function(input, context, filename, callback) {
|
|
210
214
|
var error, output, result;
|