Comparing version 2.9.0 to 2.9.1
@@ -748,2 +748,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ltx = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
var STATE_CDATA = 9 | ||
var STATE_IGNORE_CDATA = 10 | ||
@@ -818,2 +819,9 @@ var SaxLtx = module.exports = function SaxLtx () { | ||
} | ||
} else if (state === STATE_IGNORE_CDATA) { | ||
// if we're looping through a CDATA, fast-forward using | ||
// indexOf to the first end-CDATA character ]]> | ||
var endCDATA = data.indexOf(']]>', pos) | ||
if (endCDATA !== -1) { | ||
pos = endCDATA + 2 // target the '>' character | ||
} | ||
} | ||
@@ -840,3 +848,3 @@ | ||
} | ||
state = STATE_IGNORE_COMMENT | ||
state = STATE_TEXT | ||
} | ||
@@ -843,0 +851,0 @@ break |
@@ -748,2 +748,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ltx = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
var STATE_CDATA = 9 | ||
var STATE_IGNORE_CDATA = 10 | ||
@@ -818,2 +819,9 @@ var SaxLtx = module.exports = function SaxLtx () { | ||
} | ||
} else if (state === STATE_IGNORE_CDATA) { | ||
// if we're looping through a CDATA, fast-forward using | ||
// indexOf to the first end-CDATA character ]]> | ||
var endCDATA = data.indexOf(']]>', pos) | ||
if (endCDATA !== -1) { | ||
pos = endCDATA + 2 // target the '>' character | ||
} | ||
} | ||
@@ -840,3 +848,3 @@ | ||
} | ||
state = STATE_IGNORE_COMMENT | ||
state = STATE_TEXT | ||
} | ||
@@ -843,0 +851,0 @@ break |
@@ -17,2 +17,3 @@ 'use strict' | ||
var STATE_CDATA = 9 | ||
var STATE_IGNORE_CDATA = 10 | ||
@@ -87,2 +88,9 @@ var SaxLtx = module.exports = function SaxLtx () { | ||
} | ||
} else if (state === STATE_IGNORE_CDATA) { | ||
// if we're looping through a CDATA, fast-forward using | ||
// indexOf to the first end-CDATA character ]]> | ||
var endCDATA = data.indexOf(']]>', pos) | ||
if (endCDATA !== -1) { | ||
pos = endCDATA + 2 // target the '>' character | ||
} | ||
} | ||
@@ -109,3 +117,3 @@ | ||
} | ||
state = STATE_IGNORE_COMMENT | ||
state = STATE_TEXT | ||
} | ||
@@ -112,0 +120,0 @@ break |
{ | ||
"name": "ltx", | ||
"version": "2.9.0", | ||
"version": "2.9.1", | ||
"description": "<xml for=\"JavaScript\">", | ||
@@ -33,3 +33,3 @@ "author": "Astro", | ||
"browserify": "^16.5.0", | ||
"libxmljs": "^0.19.5", | ||
"libxmljs": "^0.19.7", | ||
"microtime": "^3.0.0", | ||
@@ -40,5 +40,5 @@ "node-expat": "^2.3.18", | ||
"saxes": "^3.1.11", | ||
"standard": "^14.1.0", | ||
"standard": "^14.3.1", | ||
"vows": "^0.8.2" | ||
} | ||
} |
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
119994
3919