@danielx/civet 0.5.39 → 0.5.41

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/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
- return obj != null ? obj.replace(/\n*$/, "") : void 0;
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;