modl-converter
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MODLConverter=t():e.MODLConverter=t()}(self,(function(){return(()=>{var e={43:function(e,t,o){var n,r;!function(u,i){"use strict";n=function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function u(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function i(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?u:void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}function l(t,o){for(var r=0;r<n.length;r++){var u=n[r];this[u]=r<t?e:this.methodFactory(u,t,o)}this.log=this.debug}function c(e,o,n){return function(){typeof console!==t&&(l.call(this,o,n),this[e].apply(this,arguments))}}function s(e,t,o){return i(e)||c.apply(this,arguments)}function a(e,o,r){var u,i=this,c="loglevel";function a(){var e;if(typeof window!==t&&c){try{e=window.localStorage[c]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(c)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===i.levels[e]&&(e=void 0),e}}"string"==typeof e?c+=":"+e:"symbol"==typeof e&&(c=void 0),i.name=e,i.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},i.methodFactory=r||s,i.getLevel=function(){return u},i.setLevel=function(o,r){if("string"==typeof o&&void 0!==i.levels[o.toUpperCase()]&&(o=i.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(u=o,!1!==r&&function(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&c){try{return void(window.localStorage[c]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+o+";"}catch(e){}}}(o),l.call(i,o,e),typeof console===t&&o<i.levels.SILENT)return"No console available for logging"},i.setDefaultLevel=function(e){a()||i.setLevel(e,!1)},i.enableAll=function(e){i.setLevel(i.levels.TRACE,e)},i.disableAll=function(e){i.setLevel(i.levels.SILENT,e)};var f=a();null==f&&(f=null==o?"WARN":o),i.setLevel(f,!1)}var f=new a,p={};f.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=p[e];return t||(t=p[e]=new a(e,f.getLevel(),f.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return f.noConflict=function(){return typeof window!==t&&window.log===f&&(window.log=d),f},f.getLoggers=function(){return p},f.default=f,f},void 0===(r=n.call(t,o,t,e))||(e.exports=r)}()},389:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createJsonToModl=void 0;var r=n(o(43)),u=o(494),i=o(902);t.createJsonToModl=function(){return new l};var l=function(){function e(){}return e.prototype.objectToModl=function(e){var t=Array.isArray(e)?s("",e):function(e){return null===e?"null":"object"!=typeof e||Array.isArray(e)?p(e):function(e){return"object"!=typeof e?v(e):Array.isArray(e)?a(e):Object.keys(e).map((function(t){return s(t,e[t])})).join(";")}(e)}(e);return r.default.debug("Result : ",t),t},e.prototype.stringToModl=function(e){r.default.debug("Converting: "+e);var t=JSON.parse(e);return this.objectToModl(t)},e}(),c=u.createUnicodeEscaper(),s=function(e,t){var o=c.escape(e);if(i.isNonStringPrimitive(o)&&(o='"'+o+'"'),null===t)return o+"=null";if(Array.isArray(t))return o+a(t);if("object"==typeof t)return""+o+f(t);var n=function(e,t){var o=v(t);return null!==o?e+"="+o:null}(o,t);return n||o+"="+p(t)};function a(e){return"["+e.map(d).join(";")+"]"}function f(e){return"object"!=typeof e?v(e):Array.isArray(e)?a(e):null===e?null:"("+Object.keys(e).map((function(t){return s(t,e[t])})).join(";")+")"}function p(e){return e&&Array.isArray(e)?a(e):e&&"object"==typeof e?f(e):v(e)}function d(e){return e&&Array.isArray(e)?a(e):e&&"object"==typeof e?function(e){if("object"!=typeof e)return v(e);if(Array.isArray(e))return a(e);if(null===e)return null;var t=Object.keys(e);return t.length>1?"("+t.map((function(t){return s(t,e[t])})).join(";")+")":0===t.length?"()":t.map((function(t){return s(t,e[t])})).join("")}(e):v(e)}var v=function(e){return null===e?"null":"string"==typeof e?"null"===e?"`null`":i.escapeAndQuote(e):"boolean"==typeof e?e?"true":"false":"number"==typeof e?Number.isInteger(e)?""+e:""+e.toExponential().replace("e+","E"):null}},494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUnicodeEscaper=void 0,t.createUnicodeEscaper=function(){return new o};var o=function(){function e(){}return e.prototype.escape=function(e){for(var t="",o=e.replace(/~u/g,"~~u"),n=0;n<o.length;n++)t+=(r=o.charCodeAt(n))?r>=32&&r<=127?String.fromCodePoint(r):11===r?"~u000B":8===r?"\\b":12===r?"\\f":10===r?"\\n":13===r?"\\r":9===r?"\\t":String.fromCodePoint(r):"";var r;return t},e}()},902:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNonStringPrimitive=t.escapeAndQuote=t.replaceNbspWithSp=t.doubleQuotesToGravesIfPossible=t.doubleQuoteIfNecessary=t.graveQuoteIfNecessary=t.escapeDoubleQuotes=t.isNumeric=t.shouldBeGraveQuoted=t.escapeGraves=void 0;var n=o(494);t.escapeGraves=function(e){return null!==e?e.replace(/`/g,"~`"):e},t.shouldBeGraveQuoted=new RegExp(".*[()\\[\\];{}=].*"),t.isNumeric=new RegExp("^[-]?[0-9]*\\.?[0-9]+(?:[Ee][+-]?[0-9]+)?$"),t.escapeDoubleQuotes=function(e){for(var t=e.indexOf('"',1),o=e;t>0&&t<e.length-1;)t=(o=o.substring(0,t)+"~u0022"+o.substring(t+1)).indexOf('"',1);return o},t.graveQuoteIfNecessary=function(e){return null!==e&&(t.shouldBeGraveQuoted.test(e)||""===e||t.isNumeric.test(e)&&"00"!==e&&"01"!==e&&"000"!==e||"true"===e||"false"===e||"null"===e||r(e))?"`"+e+"`":e};var r=function(e){return 0===e.trim().length};t.doubleQuoteIfNecessary=function(e){return null!==e&&e.includes("~`")?'"'+e+'"':e},t.doubleQuotesToGravesIfPossible=function(e){return null!==e&&!e.includes("~`")&&e.startsWith('"')&&e.endsWith('"')?"`"+e.substring(1,e.length-1)+"`":e},t.replaceNbspWithSp=function(e){return e.replace(/\u00a0/g," ")};var u=n.createUnicodeEscaper();t.escapeAndQuote=function(e){return null===e?e:t.doubleQuotesToGravesIfPossible(t.doubleQuoteIfNecessary(t.graveQuoteIfNecessary(t.escapeGraves(t.escapeDoubleQuotes(u.escape(t.replaceNbspWithSp(e)))))))},t.isNonStringPrimitive=function(e){return i.includes(e)||t.isNumeric.test(e)};var i=["true","false","null"]}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var u=t[n]={exports:{}};return e[n].call(u.exports,u,u.exports,o),u.exports}var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToModl=void 0;var t=o(389);e.jsonToModl=t.createJsonToModl()})(),n})()})); | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.MODLConverter=r():e.MODLConverter=r()}(self,(function(){return(()=>{"use strict";var e={346:e=>{function r(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,t,n){var i=n&&n.stringify||r;if("object"==typeof e&&null!==e){var o=t.length+1;if(1===o)return e;var s=new Array(o);s[0]=i(e);for(var l=1;l<o;l++)s[l]=i(t[l]);return s.join(" ")}if("string"!=typeof e)return e;var a=t.length;if(0===a)return e;for(var u="",c=0,f=-1,v=e&&e.length||0,p=0;p<v;){if(37===e.charCodeAt(p)&&p+1<v){switch(f=f>-1?f:0,e.charCodeAt(p+1)){case 100:case 102:if(c>=a)break;if(null==t[c])break;f<p&&(u+=e.slice(f,p)),u+=Number(t[c]),f=p+2,p++;break;case 105:if(c>=a)break;if(null==t[c])break;f<p&&(u+=e.slice(f,p)),u+=Math.floor(Number(t[c])),f=p+2,p++;break;case 79:case 111:case 106:if(c>=a)break;if(void 0===t[c])break;f<p&&(u+=e.slice(f,p));var d=typeof t[c];if("string"===d){u+="'"+t[c]+"'",f=p+2,p++;break}if("function"===d){u+=t[c].name||"<anonymous>",f=p+2,p++;break}u+=i(t[c]),f=p+2,p++;break;case 115:if(c>=a)break;f<p&&(u+=e.slice(f,p)),u+=String(t[c]),f=p+2,p++;break;case 37:f<p&&(u+=e.slice(f,p)),u+="%",f=p+2,p++,c--}++c}++p}return-1===f?e:(f<v&&(u+=e.slice(f)),u)}},389:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.createJsonToModl=void 0;var i=t(494),o=t(902),s=n(t(559)).default();r.createJsonToModl=function(){return new l};var l=function(){function e(){}return e.prototype.objectToModl=function(e){var r=Array.isArray(e)?u("",e):function(e){return null===e?"null":"object"!=typeof e||Array.isArray(e)?v(e):function(e){return"object"!=typeof e?d(e):Array.isArray(e)?c(e):Object.keys(e).map((function(r){return u(r,e[r])})).join(";")}(e)}(e);return s.debug("Result : ",r),r},e.prototype.stringToModl=function(e){s.debug("Converting: "+e);var r=JSON.parse(e);return this.objectToModl(r)},e}(),a=i.createUnicodeEscaper(),u=function(e,r){var t=a.escape(e);if(o.isNonStringPrimitive(t)&&(t='"'+t+'"'),null===r)return t+"=null";if(Array.isArray(r))return t+c(r);if("object"==typeof r)return""+t+f(r);var n=function(e,r){var t=d(r);return null!==t?e+"="+t:null}(t,r);return n||t+"="+v(r)};function c(e){return"["+e.map(p).join(";")+"]"}function f(e){return"object"!=typeof e?d(e):Array.isArray(e)?c(e):null===e?null:"("+Object.keys(e).map((function(r){return u(r,e[r])})).join(";")+")"}function v(e){return e&&Array.isArray(e)?c(e):e&&"object"==typeof e?f(e):d(e)}function p(e){return e&&Array.isArray(e)?c(e):e&&"object"==typeof e?function(e){if("object"!=typeof e)return d(e);if(Array.isArray(e))return c(e);if(null===e)return null;var r=Object.keys(e);return r.length>1?"("+r.map((function(r){return u(r,e[r])})).join(";")+")":0===r.length?"()":r.map((function(r){return u(r,e[r])})).join("")}(e):d(e)}var d=function(e){return null===e?"null":"string"==typeof e?"null"===e?"`null`":o.escapeAndQuote(e):"boolean"==typeof e?e?"true":"false":"number"==typeof e?Number.isInteger(e)?""+e:""+e.toExponential().replace("e+","E"):null}},494:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createUnicodeEscaper=void 0,r.createUnicodeEscaper=function(){return new t};var t=function(){function e(){}return e.prototype.escape=function(e){for(var r="",t=e.replace(/~u/g,"~~u"),n=0;n<t.length;n++)r+=(i=t.charCodeAt(n))?i>=32&&i<=127?String.fromCodePoint(i):11===i?"~u000B":8===i?"\\b":12===i?"\\f":10===i?"\\n":13===i?"\\r":9===i?"\\t":String.fromCodePoint(i):"";var i;return r},e}()},902:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isNonStringPrimitive=r.escapeAndQuote=r.replaceNbspWithSp=r.doubleQuotesToGravesIfPossible=r.doubleQuoteIfNecessary=r.graveQuoteIfNecessary=r.escapeDoubleQuotes=r.isNumeric=r.shouldBeGraveQuoted=r.escapeGraves=void 0;var n=t(494);r.escapeGraves=function(e){return null!==e?e.replace(/`/g,"~`"):e},r.shouldBeGraveQuoted=new RegExp(".*[()\\[\\];{}=].*"),r.isNumeric=new RegExp("^[-]?[0-9]*\\.?[0-9]+(?:[Ee][+-]?[0-9]+)?$"),r.escapeDoubleQuotes=function(e){for(var r=e.indexOf('"',1),t=e;r>0&&r<e.length-1;)r=(t=t.substring(0,r)+"~u0022"+t.substring(r+1)).indexOf('"',1);return t},r.graveQuoteIfNecessary=function(e){return null!==e&&(r.shouldBeGraveQuoted.test(e)||""===e||r.isNumeric.test(e)&&"00"!==e&&"01"!==e&&"000"!==e||"true"===e||"false"===e||"null"===e||i(e))?"`"+e+"`":e};var i=function(e){return 0===e.trim().length};r.doubleQuoteIfNecessary=function(e){return null!==e&&e.includes("~`")?'"'+e+'"':e},r.doubleQuotesToGravesIfPossible=function(e){return null!==e&&!e.includes("~`")&&e.startsWith('"')&&e.endsWith('"')?"`"+e.substring(1,e.length-1)+"`":e},r.replaceNbspWithSp=function(e){return e.replace(/\u00a0/g," ")};var o=n.createUnicodeEscaper();r.escapeAndQuote=function(e){return null===e?e:r.doubleQuotesToGravesIfPossible(r.doubleQuoteIfNecessary(r.graveQuoteIfNecessary(r.escapeGraves(r.escapeDoubleQuotes(o.escape(r.replaceNbspWithSp(e)))))))},r.isNonStringPrimitive=function(e){return s.includes(e)||r.isNumeric.test(e)};var s=["true","false","null"]},559:(e,r,t)=>{const n=t(346);e.exports=s;const i=function(){function e(e){return void 0!==e&&e}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(r){return e(self)||e(window)||e(this)||{}}}().console||{},o={mapHttpRequest:d,mapHttpResponse:d,wrapRequestSerializer:b,wrapResponseSerializer:b,wrapErrorSerializer:b,req:d,res:d,err:function(e){const r={type:e.constructor.name,msg:e.message,stack:e.stack};for(const t in e)void 0===r[t]&&(r[t]=e[t]);return r}};function s(e){(e=e||{}).browser=e.browser||{};const r=e.browser.transmit;if(r&&"function"!=typeof r.send)throw Error("pino: transmit option must have a send function");const t=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},o=function(e,r){return Array.isArray(e)?e.filter((function(e){return"!stdSerializers.err"!==e})):!0===e&&Object.keys(r)}(e.browser.serialize,n);let a=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(a=!1),"function"==typeof t&&(t.error=t.fatal=t.warn=t.info=t.debug=t.trace=t),!1===e.enabled&&(e.level="silent");const f=e.level||"info",d=Object.create(t);d.log||(d.log=g),Object.defineProperty(d,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(d,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,l(b,d,"error","log"),l(b,d,"fatal","error"),l(b,d,"warn","error"),l(b,d,"info","log"),l(b,d,"debug","log"),l(b,d,"trace","log")}});const b={transmit:r,serialize:o,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:p(e)};return d.levels=s.levels,d.level=f,d.setMaxListeners=d.getMaxListeners=d.emit=d.addListener=d.on=d.prependListener=d.once=d.prependOnceListener=d.removeListener=d.removeAllListeners=d.listeners=d.listenerCount=d.eventNames=d.write=d.flush=g,d.serializers=n,d._serialize=o,d._stdErrSerialize=a,d.child=function(t,i){if(!t)throw new Error("missing bindings for child Pino");i=i||{},o&&t.serializers&&(i.serializers=t.serializers);const s=i.serializers;if(o&&s){var l=Object.assign({},n,s),a=!0===e.browser.serialize?Object.keys(l):o;delete t.serializers,u([t],a,l,this._stdErrSerialize)}function f(e){this._childLevel=1+(0|e._childLevel),this.error=c(e,t,"error"),this.fatal=c(e,t,"fatal"),this.warn=c(e,t,"warn"),this.info=c(e,t,"info"),this.debug=c(e,t,"debug"),this.trace=c(e,t,"trace"),l&&(this.serializers=l,this._serialize=a),r&&(this._logEvent=v([].concat(e._logEvent.bindings,t)))}return f.prototype=this,new f(this)},r&&(d._logEvent=v()),d}function l(e,r,t,n){const o=Object.getPrototypeOf(r);r[t]=r.levelVal>r.levels.values[t]?g:o[t]?o[t]:i[t]||i[n]||g,function(e,r,t){var n;(e.transmit||r[t]!==g)&&(r[t]=(n=r[t],function(){const o=e.timestamp(),l=new Array(arguments.length),c=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var v=0;v<l.length;v++)l[v]=arguments[v];if(e.serialize&&!e.asObject&&u(l,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(c,a(this,t,l,o)):n.apply(c,l),e.transmit){const n=e.transmit.level||r.level,i=s.levels.values[n],a=s.levels.values[t];if(a<i)return;f(this,{ts:o,methodLevel:t,methodValue:a,transmitLevel:n,transmitValue:s.levels.values[e.transmit.level||r.level],send:e.transmit.send,val:r.levelVal},l)}}))}(e,r,t)}function a(e,r,t,i){e._serialize&&u(t,e._serialize,e.serializers,e._stdErrSerialize);const o=t.slice();let l=o[0];const a={};i&&(a.time=i),a.level=s.levels.values[r];let c=1+(0|e._childLevel);if(c<1&&(c=1),null!==l&&"object"==typeof l){for(;c--&&"object"==typeof o[0];)Object.assign(a,o.shift());l=o.length?n(o.shift(),o):void 0}else"string"==typeof l&&(l=n(o.shift(),o));return void 0!==l&&(a.msg=l),a}function u(e,r,t,n){for(const i in e)if(n&&e[i]instanceof Error)e[i]=s.stdSerializers.err(e[i]);else if("object"==typeof e[i]&&!Array.isArray(e[i]))for(const n in e[i])r&&r.indexOf(n)>-1&&n in t&&(e[i][n]=t[n](e[i][n]))}function c(e,r,t){return function(){const n=new Array(1+arguments.length);n[0]=r;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[t].apply(this,n)}}function f(e,r,t){const n=r.send,i=r.ts,o=r.methodLevel,s=r.methodValue,l=r.val,a=e._logEvent.bindings;u(t,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=t.filter((function(e){return-1===a.indexOf(e)})),e._logEvent.level.label=o,e._logEvent.level.value=s,n(o,e._logEvent,l),e._logEvent=v(a)}function v(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function p(e){return"function"==typeof e.timestamp?e.timestamp:!1===e.timestamp?h:y}function d(){return{}}function b(e){return e}function g(){}function h(){return!1}function y(){return Date.now()}s.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},s.stdSerializers=o,s.stdTimeFunctions=Object.assign({},{nullTime:h,epochTime:y,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})}},r={};function t(n){var i=r[n];if(void 0!==i)return i.exports;var o=r[n]={exports:{}};return e[n].call(o.exports,o,o.exports,t),o.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToModl=void 0;var r=t(389);e.jsonToModl=r.createJsonToModl()})(),n})()})); |
@@ -7,5 +7,6 @@ "use strict"; | ||
exports.createJsonToModl = void 0; | ||
var loglevel_1 = __importDefault(require("loglevel")); | ||
var UnicodeEscaper_1 = require("./UnicodeEscaper"); | ||
var UtilFuncs_1 = require("./UtilFuncs"); | ||
var pino_1 = __importDefault(require("pino")); | ||
var log = pino_1.default(); | ||
var createJsonToModl = function () { | ||
@@ -20,7 +21,7 @@ return new JsonToModlImpl(); | ||
var modlResult = Array.isArray(node) ? pairToModlRecursive('', node) : toTopLevelModl(node); | ||
loglevel_1.default.debug('Result : ', modlResult); | ||
log.debug('Result : ', modlResult); | ||
return modlResult; | ||
}; | ||
JsonToModlImpl.prototype.stringToModl = function (json) { | ||
loglevel_1.default.debug("Converting: " + json); | ||
log.debug("Converting: " + json); | ||
var node = JSON.parse(json); | ||
@@ -27,0 +28,0 @@ return this.objectToModl(node); |
@@ -7,5 +7,6 @@ "use strict"; | ||
var chai_1 = require("chai"); | ||
var loglevel_1 = __importDefault(require("loglevel")); | ||
var JsonToModl_1 = require("./JsonToModl"); | ||
loglevel_1.default.setLevel('DEBUG'); | ||
var pino_1 = __importDefault(require("pino")); | ||
var log = pino_1.default(); | ||
log.level = 'debug'; | ||
var jsonToModl = JsonToModl_1.createJsonToModl(); | ||
@@ -12,0 +13,0 @@ var modlString = 'x=~u0645~u062c~u062a~u0645~u0639 ~u0635~u0646~u0627~u06cc~u0639 ~u0634~u06cc~u0645~u06cc~u0627~u06cc~u06cc ~u0646~u0627~u0631~u06af~u0633~u062a~u0631'; |
{ | ||
"name": "modl-converter", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "A JSON to MODL library in TypeScript", | ||
@@ -10,4 +10,3 @@ "types": "dist/index.d.ts", | ||
"fs": "0.0.1-security", | ||
"loglevel": "^1.7.0", | ||
"loglevel-plugin-prefix": "^0.8.4", | ||
"pino": "^7.6.5", | ||
"typescript": "^4.0.2" | ||
@@ -56,2 +55,2 @@ }, | ||
] | ||
} | ||
} |
@@ -1,4 +0,7 @@ | ||
import log from 'loglevel'; | ||
import { createUnicodeEscaper } from './UnicodeEscaper'; | ||
import { escapeAndQuote, isNonStringPrimitive } from './UtilFuncs'; | ||
import pino from 'pino'; | ||
const log = pino(); | ||
//------------------------------------------------------------------------------------------------------------------------ | ||
@@ -5,0 +8,0 @@ // Exports |
import { expect } from 'chai'; | ||
import loglevel from 'loglevel'; | ||
import { createJsonToModl } from './JsonToModl'; | ||
import pino from 'pino'; | ||
const log = pino(); | ||
// Set the logging level | ||
loglevel.setLevel('DEBUG'); | ||
log.level = 'debug'; | ||
@@ -8,0 +10,0 @@ // Create a JSON to MODL converter |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42368
4
613
+ Addedpino@^7.6.5
+ Addedatomic-sleep@1.0.0(transitive)
+ Addedfast-redact@3.5.0(transitive)
+ Addedon-exit-leak-free@0.2.0(transitive)
+ Addedpino@7.11.0(transitive)
+ Addedpino-std-serializers@4.0.0(transitive)
+ Addedprocess-warning@1.0.0(transitive)
+ Addedquick-format-unescaped@4.0.4(transitive)
+ Addedreal-require@0.1.0(transitive)
+ Addedsafe-stable-stringify@2.5.0(transitive)
+ Addedsonic-boom@2.8.0(transitive)
+ Addedthread-stream@0.15.2(transitive)
- Removedloglevel@^1.7.0
- Removedloglevel-plugin-prefix@^0.8.4
- Removedloglevel@1.9.2(transitive)
- Removedloglevel-plugin-prefix@0.8.4(transitive)