UNPKG

@n0safe/indirectus

Version:
23 lines 583 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.quoted = void 0; exports.quote = quote; function quote(context, value) { value = `${value}`; if (typeof value == "string") { return JSON.stringify(value); } else if (Array.isArray(value)) { return value.map((e) => { if (typeof e == "string") { return JSON.stringify(e); } else { return e; } }); } return value; } exports.quoted = quote; //# sourceMappingURL=quote.js.map