Socket
Socket
Sign inDemoInstall

saxen

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.1.2 to 9.0.0

dist/decode.d.ts

49

dist/index.esm.js

@@ -49,3 +49,3 @@ var fromCharCode = String.fromCharCode;

*
* @param {string} str
* @param {string} s
*

@@ -62,6 +62,2 @@ * @return {string} decoded string

var XSI_URI = 'http://www.w3.org/2001/XMLSchema-instance';
var XSI_PREFIX = 'xsi';
var XSI_TYPE = 'xsi:type';
var NON_WHITESPACE_OUTSIDE_ROOT_NODE = 'non-whitespace outside of root node';

@@ -111,3 +107,3 @@

function noopGetContext() {
return { 'line': 0, 'column': 0 };
return { line: 0, column: 0 };
}

@@ -278,5 +274,2 @@

// FORCE default mapping for schema instance
_nsUriToPrefix[XSI_URI] = XSI_PREFIX;
isNamespace = true;

@@ -605,19 +598,2 @@ nsUriToPrefix = _nsUriToPrefix;

// normalize xsi:type ns attribute value
if (name === XSI_TYPE) {
w = value.indexOf(':');
if (w !== -1) {
nsName = value.substring(0, w);
// handle default prefixes, i.e. xs:String gracefully
nsName = nsMatrix[nsName] || nsName;
value = nsName + value.substring(w);
} else {
value = defaultAlias + ':' + value;
}
}
// end: normalize xsi:type ns attribute value
attrs[name] = value;

@@ -651,19 +627,2 @@ }

// end: normalize ns attribute name
// normalize xsi:type ns attribute value
if (name === XSI_TYPE) {
w = value.indexOf(':');
if (w !== -1) {
nsName = value.substring(0, w);
// handle default prefixes, i.e. xs:String gracefully
nsName = nsMatrix[nsName] || nsName;
value = nsName + value.substring(w);
} else {
value = defaultAlias + ':' + value;
}
}
// end: normalize xsi:type ns attribute value
}

@@ -809,7 +768,7 @@

w = xml.charCodeAt(i+1);
w = xml.charCodeAt(i + 1);
// parse comments + CDATA
if (w === 33) { // "!"
q = xml.charCodeAt(i+2);
q = xml.charCodeAt(i + 2);

@@ -816,0 +775,0 @@ // CDATA section

@@ -53,3 +53,3 @@ 'use strict';

*
* @param {string} str
* @param {string} s
*

@@ -66,6 +66,2 @@ * @return {string} decoded string

var XSI_URI = 'http://www.w3.org/2001/XMLSchema-instance';
var XSI_PREFIX = 'xsi';
var XSI_TYPE = 'xsi:type';
var NON_WHITESPACE_OUTSIDE_ROOT_NODE = 'non-whitespace outside of root node';

@@ -115,3 +111,3 @@

function noopGetContext() {
return { 'line': 0, 'column': 0 };
return { line: 0, column: 0 };
}

@@ -282,5 +278,2 @@

// FORCE default mapping for schema instance
_nsUriToPrefix[XSI_URI] = XSI_PREFIX;
isNamespace = true;

@@ -609,19 +602,2 @@ nsUriToPrefix = _nsUriToPrefix;

// normalize xsi:type ns attribute value
if (name === XSI_TYPE) {
w = value.indexOf(':');
if (w !== -1) {
nsName = value.substring(0, w);
// handle default prefixes, i.e. xs:String gracefully
nsName = nsMatrix[nsName] || nsName;
value = nsName + value.substring(w);
} else {
value = defaultAlias + ':' + value;
}
}
// end: normalize xsi:type ns attribute value
attrs[name] = value;

@@ -655,19 +631,2 @@ }

// end: normalize ns attribute name
// normalize xsi:type ns attribute value
if (name === XSI_TYPE) {
w = value.indexOf(':');
if (w !== -1) {
nsName = value.substring(0, w);
// handle default prefixes, i.e. xs:String gracefully
nsName = nsMatrix[nsName] || nsName;
value = nsName + value.substring(w);
} else {
value = defaultAlias + ':' + value;
}
}
// end: normalize xsi:type ns attribute value
}

@@ -813,7 +772,7 @@

w = xml.charCodeAt(i+1);
w = xml.charCodeAt(i + 1);
// parse comments + CDATA
if (w === 33) { // "!"
q = xml.charCodeAt(i+2);
q = xml.charCodeAt(i + 2);

@@ -820,0 +779,0 @@ // CDATA section

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.Saxen = {})));
}(this, (function (exports) { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Saxen = {}));
})(this, (function (exports) { 'use strict';

@@ -55,3 +55,3 @@ var fromCharCode = String.fromCharCode;

*
* @param {string} str
* @param {string} s
*

@@ -68,6 +68,2 @@ * @return {string} decoded string

var XSI_URI = 'http://www.w3.org/2001/XMLSchema-instance';
var XSI_PREFIX = 'xsi';
var XSI_TYPE = 'xsi:type';
var NON_WHITESPACE_OUTSIDE_ROOT_NODE = 'non-whitespace outside of root node';

@@ -117,3 +113,3 @@

function noopGetContext() {
return { 'line': 0, 'column': 0 };
return { line: 0, column: 0 };
}

@@ -284,5 +280,2 @@

// FORCE default mapping for schema instance
_nsUriToPrefix[XSI_URI] = XSI_PREFIX;
isNamespace = true;

@@ -611,19 +604,2 @@ nsUriToPrefix = _nsUriToPrefix;

// normalize xsi:type ns attribute value
if (name === XSI_TYPE) {
w = value.indexOf(':');
if (w !== -1) {
nsName = value.substring(0, w);
// handle default prefixes, i.e. xs:String gracefully
nsName = nsMatrix[nsName] || nsName;
value = nsName + value.substring(w);
} else {
value = defaultAlias + ':' + value;
}
}
// end: normalize xsi:type ns attribute value
attrs[name] = value;

@@ -657,19 +633,2 @@ }

// end: normalize ns attribute name
// normalize xsi:type ns attribute value
if (name === XSI_TYPE) {
w = value.indexOf(':');
if (w !== -1) {
nsName = value.substring(0, w);
// handle default prefixes, i.e. xs:String gracefully
nsName = nsMatrix[nsName] || nsName;
value = nsName + value.substring(w);
} else {
value = defaultAlias + ':' + value;
}
}
// end: normalize xsi:type ns attribute value
}

@@ -815,7 +774,7 @@

w = xml.charCodeAt(i+1);
w = xml.charCodeAt(i + 1);
// parse comments + CDATA
if (w === 33) { // "!"
q = xml.charCodeAt(i+2);
q = xml.charCodeAt(i + 2);

@@ -1100,2 +1059,2 @@ // CDATA section

})));
}));

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.Saxen={})}(this,function(e){"use strict";var n=String.fromCharCode,t=Object.prototype.hasOwnProperty,r=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,i={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function s(e,r,s,u){return u?t.call(i,u)?i[u]:"&"+u+";":n(r||parseInt(s,16))}function u(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(r,s):e}Object.keys(i).forEach(function(e){i[e.toUpperCase()]=i[e]});var o="http://www.w3.org/2001/XMLSchema-instance",f="xsi",a="xsi:type",c="non-whitespace outside of root node";function l(e){return new Error(e)}function d(e){return"missing namespace for prefix <"+e+">"}function g(e){return{get:e,enumerable:!0}}function b(e){var n,t={};for(n in e)t[n]=e[n];return t}function h(e){return e+"$uri"}function m(){return{line:0,column:0}}function x(e){throw e}e.Parser=function e(n){if(!this)return new e(n);var t,r,i,s,p,O,v,C,w,A=n&&n.proxy,k=x,y=m,q=!1,j=!1,N=null,E=!1;function M(e){e instanceof Error||(e=l(e)),N=e,k(e,y)}function P(e){p&&(e instanceof Error||(e=l(e)),p(e,y))}this.on=function(e,n){if("function"!=typeof n)throw l("required args <name, cb>");switch(e){case"openTag":r=n;break;case"text":t=n;break;case"closeTag":i=n;break;case"error":k=n;break;case"warn":p=n;break;case"cdata":s=n;break;case"attention":C=n;break;case"question":v=n;break;case"comment":O=n;break;default:throw l("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw l("required args <nsMap={}>");var n,t={};for(n in e)t[n]=e[n];return t[o]=f,j=!0,w=t,this},this.parse=function(e){if("string"!=typeof e)throw l("required args <xml=string>");return N=null,function(e){var n,o,f,l,m,x,p,k,N,S,T,_=j?[]:null,D=j?function(e){var n,t,r={};for(n in e)r[t=e[n]]=t,r[h(t)]=n;return r}(w):null,I=[],L=0,U=!1,X=!1,$=0,z=0,B="",F=0;function G(){if(null!==T)return T;var e,n,t,r,i,s,o,f,c,l,g,m=j&&D.xmlns,x=j&&q?[]:null,p=F,O=B,v=O.length,C={},A={};e:for(;p<v;p++)if(c=!1,!(32===(l=O.charCodeAt(p))||l<14&&l>8)){for((l<65||l>122||l>90&&l<97)&&95!==l&&58!==l&&(P("illegal first char attribute name"),c=!0),g=p+1;g<v;g++)if(!((l=O.charCodeAt(g))>96&&l<123||l>64&&l<91||l>47&&l<59||46===l||45===l||95===l)){if(32===l||l<14&&l>8){P("missing attribute value"),p=g;continue e}if(61===l)break;P("illegal attribute name char"),c=!0}if("xmlns:xmlns"===(f=O.substring(p,g))&&(P("illegal declaration of xmlns"),c=!0),34===(l=O.charCodeAt(g+1)))-1===(g=O.indexOf('"',p=g+2))&&-1!==(g=O.indexOf("'",p))&&(P("attribute value quote missmatch"),c=!0);else if(39===l)-1===(g=O.indexOf("'",p=g+2))&&-1!==(g=O.indexOf('"',p))&&(P("attribute value quote missmatch"),c=!0);else for(P("missing attribute value quotes"),c=!0,g+=1;g<v&&!(32===(l=O.charCodeAt(g+1))||l<14&&l>8);g++);for(-1===g&&(P("missing closing quotes"),g=v,c=!0),c||(s=O.substring(p,g)),p=g;g+1<v&&!(32===(l=O.charCodeAt(g+1))||l<14&&l>8);g++)p===g&&(P("illegal character after attribute end"),c=!0);if(p=g+1,!c)if(f in A)P("attribute <"+f+"> already defined");else if(A[f]=!0,j)if(q){if(null!==(i="xmlns"===f?"xmlns":120===f.charCodeAt(0)&&"xmlns:"===f.substr(0,6)?f.substr(6):null)){if(e=u(s),n=h(i),!(o=w[e])){if("xmlns"===i||n in D&&D[n]!==e)do{o="ns"+L++}while(void 0!==D[o]);else o=i;w[e]=o}D[i]!==o&&(r||(D=b(D),r=!0),D[i]=o,"xmlns"===i&&(D[h(o)]=e,m=o),D[n]=e),C[f]=s;continue}x.push(f,s)}else-1!==(l=f.indexOf(":"))?(t=D[f.substring(0,l)])?((f=m===t?f.substr(l+1):t+f.substr(l))===a&&(-1!==(l=s.indexOf(":"))?(t=s.substring(0,l),t=D[t]||t,s=t+s.substring(l)):s=m+":"+s),C[f]=s):P(d(f.substring(0,l))):C[f]=s;else C[f]=s}if(q)for(p=0,v=x.length;p<v;p++){if(f=x[p++],s=x[p],-1!==(l=f.indexOf(":"))){if(!(t=D[f.substring(0,l)])){P(d(f.substring(0,l)));continue}(f=m===t?f.substr(l+1):t+f.substr(l))===a&&(-1!==(l=s.indexOf(":"))?(t=s.substring(0,l),t=D[t]||t,s=t+s.substring(l)):s=m+":"+s)}C[f]=s}return T=C}for(y=function(){for(var n,t,r=/(\r\n|\r|\n)/g,i=0,s=0,u=0,o=z;$>=u&&(n=r.exec(e))&&!((o=n[0].length+n.index)>$);)i+=1,u=o;return-1==$?(s=o,t=e.substring(z)):0===z?t=e.substring(z,$):(s=$-u,t=-1==z?e.substring($):e.substring($,z+1)),{data:t,line:i,column:s}},A&&(S=Object.create({},{name:g(function(){return k}),originalName:g(function(){return N}),attrs:g(G),ns:g(function(){return D})}));-1!==z;){if(-1===($=60===e.charCodeAt(z)?z:e.indexOf("<",z)))return I.length?M("unexpected end of file"):0===z?M("missing start tag"):void(z<e.length&&e.substring(z).trim()&&P(c));if(z!==$)if(I.length){if(t&&(t(e.substring(z,$),u,y),E))return}else if(e.substring(z,$).trim()&&(P(c),E))return;if(33===(m=e.charCodeAt($+1))){if(91===(l=e.charCodeAt($+2))&&"CDATA["===e.substr($+3,6)){if(-1===(z=e.indexOf("]]>",$)))return M("unclosed cdata");if(s&&(s(e.substring($+9,z),y),E))return;z+=3;continue}if(45===l&&45===e.charCodeAt($+3)){if(-1===(z=e.indexOf("--\x3e",$)))return M("unclosed comment");if(O&&(O(e.substring($+4,z),u,y),E))return;z+=3;continue}}if(63!==m){for(o=$+1;;o++){if(x=e.charCodeAt(o),isNaN(x))return z=-1,M("unclosed tag");if(34===x)l=e.indexOf('"',o+1),o=-1!==l?l:o;else if(39===x)l=e.indexOf("'",o+1),o=-1!==l?l:o;else if(62===x){z=o;break}}if(33!==m){if(T={},47===m){if(U=!1,X=!0,!I.length)return M("missing open tag");if(o=k=I.pop(),l=$+2+o.length,e.substring($+2,l)!==o)return M("closing tag mismatch");for(;l<z;l++)if(!(32===(m=e.charCodeAt(l))||m>8&&m<14))return M("close tag")}else{if(47===e.charCodeAt(z-1)?(o=k=e.substring($+1,z-1),U=!0,X=!0):(o=k=e.substring($+1,z),U=!0,X=!1),!(m>96&&m<123||m>64&&m<91||95===m||58===m))return M("illegal first char nodeName");for(l=1,f=o.length;l<f;l++)if(!((m=o.charCodeAt(l))>96&&m<123||m>64&&m<91||m>47&&m<59||45===m||95===m||46==m)){if(32===m||m<14&&m>8){k=o.substring(0,l),T=null;break}return M("invalid nodeName")}X||I.push(k)}if(j){if(n=D,U&&(X||_.push(n),null===T&&(q=-1!==o.indexOf("xmlns",l))&&(F=l,B=o,G(),q=!1)),N=k,-1!==(m=k.indexOf(":"))){if(!(p=D[k.substring(0,m)]))return M("missing namespace on <"+N+">");k=k.substr(m+1)}else p=D.xmlns;p&&(k=p+":"+k)}if(U&&(F=l,B=o,r&&(A?r(S,u,X,y):r(k,G,u,X,y),E)))return;if(X){if(i&&(i(A?S:k,u,U,y),E))return;j&&(D=U?n:_.pop())}z+=1}else{if(C&&(C(e.substring($,z+1),u,y),E))return;z+=1}}else{if(-1===(z=e.indexOf("?>",$)))return M("unclosed question");if(v&&(v(e.substring($,z+2),y),E))return;z+=2}}}(e),y=m,E=!1,N},this.stop=function(){E=!0}},e.decode=u,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).Saxen={})}(this,(function(e){"use strict";var n=String.fromCharCode,t=Object.prototype.hasOwnProperty,r=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,i={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function s(e,r,s,u){return u?t.call(i,u)?i[u]:"&"+u+";":n(r||parseInt(s,16))}function u(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(r,s):e}Object.keys(i).forEach((function(e){i[e.toUpperCase()]=i[e]}));var o="non-whitespace outside of root node";function f(e){return new Error(e)}function a(e){return"missing namespace for prefix <"+e+">"}function l(e){return{get:e,enumerable:!0}}function c(e){var n,t={};for(n in e)t[n]=e[n];return t}function d(e){return e+"$uri"}function g(){return{line:0,column:0}}function b(e){throw e}e.Parser=function e(n){if(!this)return new e(n);var t,r,i,s,h,m,p,x,O,v=n&&n.proxy,C=b,A=g,k=!1,w=!1,y=null,q=!1;function j(e){e instanceof Error||(e=f(e)),y=e,C(e,A)}function N(e){h&&(e instanceof Error||(e=f(e)),h(e,A))}this.on=function(e,n){if("function"!=typeof n)throw f("required args <name, cb>");switch(e){case"openTag":r=n;break;case"text":t=n;break;case"closeTag":i=n;break;case"error":C=n;break;case"warn":h=n;break;case"cdata":s=n;break;case"attention":x=n;break;case"question":p=n;break;case"comment":m=n;break;default:throw f("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw f("required args <nsMap={}>");var n,t={};for(n in e)t[n]=e[n];return w=!0,O=t,this},this.parse=function(e){if("string"!=typeof e)throw f("required args <xml=string>");return y=null,function(e){var n,f,g,b,h,C,y,T,E,P,M,S=w?[]:null,_=w?function(e){var n,t,r={};for(n in e)r[t=e[n]]=t,r[d(t)]=n;return r}(O):null,D=[],I=0,U=!1,$=!1,z=0,B=0,F="",G=0;function H(){if(null!==M)return M;var e,n,t,r,i,s,o,f,l,g,b,h=w&&_.xmlns,m=w&&k?[]:null,p=G,x=F,v=x.length,C={},A={};e:for(;p<v;p++)if(l=!1,!(32===(g=x.charCodeAt(p))||g<14&&g>8)){for((g<65||g>122||g>90&&g<97)&&95!==g&&58!==g&&(N("illegal first char attribute name"),l=!0),b=p+1;b<v;b++)if(!((g=x.charCodeAt(b))>96&&g<123||g>64&&g<91||g>47&&g<59||46===g||45===g||95===g)){if(32===g||g<14&&g>8){N("missing attribute value"),p=b;continue e}if(61===g)break;N("illegal attribute name char"),l=!0}if("xmlns:xmlns"===(f=x.substring(p,b))&&(N("illegal declaration of xmlns"),l=!0),34===(g=x.charCodeAt(b+1)))-1===(b=x.indexOf('"',p=b+2))&&-1!==(b=x.indexOf("'",p))&&(N("attribute value quote missmatch"),l=!0);else if(39===g)-1===(b=x.indexOf("'",p=b+2))&&-1!==(b=x.indexOf('"',p))&&(N("attribute value quote missmatch"),l=!0);else for(N("missing attribute value quotes"),l=!0,b+=1;b<v&&!(32===(g=x.charCodeAt(b+1))||g<14&&g>8);b++);for(-1===b&&(N("missing closing quotes"),b=v,l=!0),l||(s=x.substring(p,b)),p=b;b+1<v&&!(32===(g=x.charCodeAt(b+1))||g<14&&g>8);b++)p===b&&(N("illegal character after attribute end"),l=!0);if(p=b+1,!l)if(f in A)N("attribute <"+f+"> already defined");else if(A[f]=!0,w)if(k){if(null!==(i="xmlns"===f?"xmlns":120===f.charCodeAt(0)&&"xmlns:"===f.substr(0,6)?f.substr(6):null)){if(e=u(s),n=d(i),!(o=O[e])){if("xmlns"===i||n in _&&_[n]!==e)do{o="ns"+I++}while(void 0!==_[o]);else o=i;O[e]=o}_[i]!==o&&(r||(_=c(_),r=!0),_[i]=o,"xmlns"===i&&(_[d(o)]=e,h=o),_[n]=e),C[f]=s;continue}m.push(f,s)}else-1!==(g=f.indexOf(":"))?(t=_[f.substring(0,g)])?C[f=h===t?f.substr(g+1):t+f.substr(g)]=s:N(a(f.substring(0,g))):C[f]=s;else C[f]=s}if(k)for(p=0,v=m.length;p<v;p++){if(f=m[p++],s=m[p],-1!==(g=f.indexOf(":"))){if(!(t=_[f.substring(0,g)])){N(a(f.substring(0,g)));continue}f=h===t?f.substr(g+1):t+f.substr(g)}C[f]=s}return M=C}function J(){for(var n,t,r=/(\r\n|\r|\n)/g,i=0,s=0,u=0,o=B;z>=u&&(n=r.exec(e))&&!((o=n[0].length+n.index)>z);)i+=1,u=o;return-1==z?(s=o,t=e.substring(B)):0===B?t=e.substring(B,z):(s=z-u,t=-1==B?e.substring(z):e.substring(z,B+1)),{data:t,line:i,column:s}}A=J,v&&(P=Object.create({},{name:l((function(){return T})),originalName:l((function(){return E})),attrs:l(H),ns:l((function(){return _}))}));for(;-1!==B;){if(-1===(z=60===e.charCodeAt(B)?B:e.indexOf("<",B)))return D.length?j("unexpected end of file"):0===B?j("missing start tag"):void(B<e.length&&e.substring(B).trim()&&N(o));if(B!==z)if(D.length){if(t&&(t(e.substring(B,z),u,A),q))return}else if(e.substring(B,z).trim()&&(N(o),q))return;if(33===(h=e.charCodeAt(z+1))){if(91===(b=e.charCodeAt(z+2))&&"CDATA["===e.substr(z+3,6)){if(-1===(B=e.indexOf("]]>",z)))return j("unclosed cdata");if(s&&(s(e.substring(z+9,B),A),q))return;B+=3;continue}if(45===b&&45===e.charCodeAt(z+3)){if(-1===(B=e.indexOf("--\x3e",z)))return j("unclosed comment");if(m&&(m(e.substring(z+4,B),u,A),q))return;B+=3;continue}}if(63!==h){for(f=z+1;;f++){if(C=e.charCodeAt(f),isNaN(C))return B=-1,j("unclosed tag");if(34===C)f=-1!==(b=e.indexOf('"',f+1))?b:f;else if(39===C)f=-1!==(b=e.indexOf("'",f+1))?b:f;else if(62===C){B=f;break}}if(33!==h){if(M={},47===h){if(U=!1,$=!0,!D.length)return j("missing open tag");if(f=T=D.pop(),b=z+2+f.length,e.substring(z+2,b)!==f)return j("closing tag mismatch");for(;b<B;b++)if(!(32===(h=e.charCodeAt(b))||h>8&&h<14))return j("close tag")}else{if(47===e.charCodeAt(B-1)?(f=T=e.substring(z+1,B-1),U=!0,$=!0):(f=T=e.substring(z+1,B),U=!0,$=!1),!(h>96&&h<123||h>64&&h<91||95===h||58===h))return j("illegal first char nodeName");for(b=1,g=f.length;b<g;b++)if(!((h=f.charCodeAt(b))>96&&h<123||h>64&&h<91||h>47&&h<59||45===h||95===h||46==h)){if(32===h||h<14&&h>8){T=f.substring(0,b),M=null;break}return j("invalid nodeName")}$||D.push(T)}if(w){if(n=_,U&&($||S.push(n),null===M&&(k=-1!==f.indexOf("xmlns",b))&&(G=b,F=f,H(),k=!1)),E=T,-1!==(h=T.indexOf(":"))){if(!(y=_[T.substring(0,h)]))return j("missing namespace on <"+E+">");T=T.substr(h+1)}else y=_.xmlns;y&&(T=y+":"+T)}if(U&&(G=b,F=f,r&&(v?r(P,u,$,A):r(T,H,u,$,A),q)))return;if($){if(i&&(i(v?P:T,u,U,A),q))return;w&&(_=U?n:S.pop())}B+=1}else{if(x&&(x(e.substring(z,B+1),u,A),q))return;B+=1}}else{if(-1===(B=e.indexOf("?>",z)))return j("unclosed question");if(p&&(p(e.substring(z,B+2),A),q))return;B+=2}}}(e),A=g,q=!1,y},this.stop=function(){q=!0}},e.decode=u,Object.defineProperty(e,"__esModule",{value:!0})}));

@@ -19,3 +19,3 @@ {

],
"version": "8.1.2",
"version": "9.0.0",
"main": "./dist/index.js",

@@ -43,12 +43,15 @@ "module": "./dist/index.esm.js",

"devDependencies": {
"eslint": "^6.8.0",
"eslint-plugin-bpmn-io": "^0.11.0",
"@rollup/plugin-terser": "^0.2.0",
"eslint": "^8.30.0",
"eslint-plugin-bpmn-io": "^0.16.0",
"esm": "^3.0.84",
"mocha": "^7.1.1",
"mocha": "^8.4.0",
"npm-run-all": "^4.1.1",
"nyc": "^15.0.0",
"rollup": "^0.57.1",
"rollup-plugin-uglify": "^3.0.0",
"table": "^5.4.6"
}
"nyc": "^15.1.0",
"rollup": "^2.79.1",
"table": "^6.7.1"
},
"files": [
"dist"
]
}
# `/saxen/` parser
[![Build Status](https://travis-ci.com/nikku/saxen.svg?branch=master)](https://travis-ci.com/nikku/saxen)
[![CI](https://github.com/nikku/saxen/workflows/CI/badge.svg)](https://github.com/nikku/saxen/actions?query=workflow%3ACI)
[![Codecov](https://img.shields.io/codecov/c/github/nikku/saxen.svg)](https://codecov.io/gh/nikku/saxen)

@@ -5,0 +5,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc