aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-04-20 03:09:25 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-04-24 16:14:29 +0200
commit82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8 (patch)
tree965f6eb89b84d65a62b49008fd972c004832ccd1 /node_modules/sax
parente6e0cbc387c2a77b48e4065c229daa65bf1aa0fa (diff)
downloadwallet-core-82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8.tar.xz
Reorganize module loading.
We now use webpack instead of SystemJS, effectively bundling modules into one file (plus commons chunks) for every entry point. This results in a much smaller extension size (almost half). Furthermore we use yarn/npm even for extension run-time dependencies. This relieves us from manually vendoring and building dependencies. It's also easier to understand for new developers familiar with node.
Diffstat (limited to 'node_modules/sax')
-rw-r--r--node_modules/sax/LICENSE-W3C.html188
-rw-r--r--node_modules/sax/lib/sax.js41
-rw-r--r--node_modules/sax/package.json9
3 files changed, 27 insertions, 211 deletions
diff --git a/node_modules/sax/LICENSE-W3C.html b/node_modules/sax/LICENSE-W3C.html
deleted file mode 100644
index a611e3f90..000000000
--- a/node_modules/sax/LICENSE-W3C.html
+++ /dev/null
@@ -1,188 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="generator" content="HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 13), see www.w3.org" /><title>W3C Software Notice and License</title><link rel="stylesheet" href="/2008/site/css/minimum" type="text/css" media="handheld, all" /><style type="text/css" media="print, screen and (min-width: 481px)" xml:space="preserve">
- @import url("/2008/site/css/advanced");
-</style><link href="/2008/site/css/minimum" rel="stylesheet" type="text/css" media="handheld, only screen and (max-device-width: 480px)" /><meta name="viewport" content="width=device-width" /><link rel="stylesheet" href="/2008/site/css/print" type="text/css" media="print" /><link rel="shortcut icon" href="/2008/site/images/favicon.ico" type="image/x-icon" /></head><body id="www-w3-org" class="w3c_public"><div id="w3c_container">
-
-
-
- <div id="w3c_mast">
- <h1 class="logo">
- <a tabindex="2" accesskey="1" href="/"><img src="/2008/site/images/logo-w3c-mobile-lg" width="90" height="53" alt="W3C" /></a>
- <span class="alt-logo">W3C</span>
- </h1>
-
- <div id="w3c_nav">
-
-
-
- <form action="/Help/search" method="get" enctype="application/x-www-form-urlencoded"><div class="w3c_sec_nav"><!-- --></div><ul class="main_nav"><li class="first-item">
- <a href="/standards/">Standards</a>
- </li><li>
- <a href="/participate/">Participate</a>
- </li><li>
- <a href="/Consortium/membership">Membership</a>
- </li><li class="last-item">
- <a href="/Consortium/">About W3C</a>
- </li><li class="search-item">
- <div id="search-form">
- <input tabindex="3" class="text" name="q" value="" title="Search" type="text" />
- <button id="search-submit" name="search-submit" type="submit"><img class="submit" src="/2008/site/images/search-button" alt="Search" width="21" height="17" /></button>
- </div>
- </li></ul></form>
- </div>
-
- </div>
-
-
- <div id="w3c_main">
- <div id="w3c_logo_shadow" class="w3c_leftCol">
- <img height="32" alt="" src="/2008/site/images/logo-shadow" />
- </div>
-
- <div class="w3c_leftCol"><h2 class="offscreen">Site Navigation</h2>
- <h3 class="category"><span class="ribbon"><a href="/Consortium/Legal/ipr-notice.html" title="Up to Policies and Legal Information">Policies and Legal Information <img src="/2008/site/images/header-link" alt="Header link" width="13" height="13" class="header-link" /></a></span></h3>
- <ul class="theme">
- <li><a href="/Consortium/Legal/2008/04-testsuite-copyright.html">Licenses for W3C Test Suites</a></li>
- <li><a href="/2004/10/27-testcases.html">Policies for Contribution of Test Cases to W3C</a></li>
- <li><a href="/Consortium/Legal/IPR-FAQ-20000620.html">Intellectual Rights FAQ</a></li>
- <li><a href="/Consortium/Legal/privacy-statement-20000612.html">W3C Privacy Statements</a></li>
- <li><a href="/Consortium/Legal/2002/copyright-documents-20021231.html">W3C Document License</a></li>
- <li><a href="/Consortium/Legal/2002/trademarks-20021231.html">W3C Trademarks and Generic Terms</a></li>
- <li><a href="/Consortium/Legal/2002/trademark-license-20021231.html">W3C&#xAE; Trademark and Service Mark License</a></li>
- <li><a class="current">W3C Software Notice and License</a></li>
- <li><a href="/Consortium/Legal/2002/collaborators-agreement-20021231.html">W3C Invited Expert and Collaborators Agreement</a></li>
- <li><a href="/Consortium/Persistence.html">W3C URI Persistence Policy</a></li>
- <li><a href="/1999/10/21-mirroring-policy.html">Mirroring the W3C Site</a></li>
- <li><a href="/Consortium/Legal/2006/08-copyright-translations.html">Translations of the Copyright Notice</a></li>
- </ul>
- <br /></div>
- <div class="w3c_mainCol">
- <div id="w3c_crumbs">
- <div id="w3c_crumbs_frame">
- <ul class="bct"> <!-- .bct / Breadcrumbs -->
- <li class="skip"><a tabindex="1" accesskey="2" title="Skip to content (e.g., when browsing via audio)" href="#w3c_content_body">Skip</a></li>
- <li><a href="/">W3C</a>&#xA0;<span class="cr">&#xBB;</span>&#xA0;</li>
- <li><a href="/Consortium/">About&#xA0;W3C</a>&#xA0;<span class="cr">&#xBB;</span>&#xA0;</li>
- <li><a href="/Consortium/facts.html">Facts&#xA0;About&#xA0;W3C</a>&#xA0;<span class="cr">&#xBB;</span>&#xA0;</li>
- <li><a href="/Consortium/Legal/ipr-notice.html">Policies&#xA0;and&#xA0;Legal&#xA0;Information</a>&#xA0;<span class="cr">&#xBB;</span>&#xA0;</li>
- <li class="current">W3C Software Notice and License</li>
- </ul>
- </div>
- </div>
- <h1 class="title">W3C Software Notice and License</h1>
- <div id="w3c_content_body">
- <div class="line">
- <p class="intro tPadding">This work (and included software, documentation such as READMEs, or other
-related items) is being provided by the copyright holders under the following
-license.</p>
-<h2>License</h2>
-
- <p class="tPadding">
-By obtaining, using and/or copying this work, you (the licensee)
-agree that you have read, understood, and will comply with the following
-terms and conditions.</p>
-
- <p>Permission to copy, modify, and distribute this software and its
-documentation, with or without modification,&#xA0;for any purpose and without
-fee or royalty is hereby granted, provided that you include the following on
-ALL copies of the software and documentation or portions thereof, including
-modifications:</p>
-
- <ul class="show_items"><li>The full text of this NOTICE in a location viewable to users of the
- redistributed or derivative work.</li><li>Any pre-existing intellectual property disclaimers, notices, or terms
- and conditions. If none exist, the <a href="copyright-software-short-notice-20021231.html">W3C Software Short
- Notice</a> should be included (hypertext is preferred, text is permitted)
- within the body of any redistributed or derivative code.</li><li>Notice of any changes or modifications to the files, including the date
- changes were made. (We recommend you provide URIs to the location from
- which the code is derived.)</li></ul>
-
-<h2>Disclaimers</h2>
-
- <p>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS
-MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
-LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
-PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE
-ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
-
- <p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
-DOCUMENTATION.</p>
-
- <p>The name and trademarks of copyright holders may NOT be used in
-advertising or publicity pertaining to the software without specific, written
-prior permission. Title to copyright in this software and any associated
-documentation will at all times remain with copyright holders.</p>
-
- <h2>Notes</h2>
-
- <p>This version: http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231</p>
-
- <p>This formulation of W3C's notice and license became active on December 31
-2002. This version removes the copyright ownership notice such that this
-license can be used with materials other than those owned by the W3C,
-reflects that ERCIM is now a host of the W3C, includes references to this
-specific dated version of the license, and removes the ambiguous grant of
-"use". Otherwise, this version is the same as the <a href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">previous
-version</a> and is written so as to preserve the <a href="http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses">Free
-Software Foundation's assessment of GPL compatibility</a> and <a href="http://www.opensource.org/licenses/W3C.php">OSI's certification</a>
-under the <a href="http://www.opensource.org/docs/definition.php">Open Source
-Definition</a>.</p>
- </div>
- </div>
- </div>
- </div>
-
-
-
- </div><div id="w3c_footer">
- <div id="w3c_footer-inner">
- <h2 class="offscreen">Footer Navigation</h2>
- <div class="w3c_footer-nav">
- <h3>Navigation</h3>
- <ul class="footer_top_nav"><li>
- <a href="/">Home</a>
- </li><li>
- <a href="/standards/">Standards</a>
- </li><li>
- <a href="/participate/">Participate</a>
- </li><li>
- <a href="/Consortium/membership">Membership</a>
- </li><li class="last-item">
- <a href="/Consortium/">About W3C</a>
- </li></ul>
- </div>
- <div class="w3c_footer-nav">
- <h3>Contact W3C</h3>
- <ul class="footer_bottom_nav"><li>
- <a href="/Consortium/contact">Contact</a>
- </li><li>
- <a accesskey="0" href="/Help/">Help and FAQ</a>
- </li><li>
- <a href="/Consortium/sponsor/">Sponsor / Donate</a>
- </li><li>
- <a href="/Consortium/siteindex">Site Map</a>
- </li><li>
- <address id="w3c_signature">
- <a href="http://lists.w3.org/Archives/Public/site-comments/">Feedback</a></address>
- </li></ul>
- </div>
- <div class="w3c_footer-nav">
- <h3>W3C Updates</h3>
- <ul class="footer_follow_nav"><li>
- <a href="http://twitter.com/W3C" title="Follow W3C on Twitter">
- <img src="/2008/site/images/twitter-bird" alt="Twitter" width="78" height="83" class="social-icon" />
- </a>
- <a href="http://identi.ca/w3c" title="See W3C on Identica">
- <img src="/2008/site/images/identica-logo" alt="Identica" width="91" height="83" class="social-icon" />
- </a>
- </li></ul>
- </div>
- <p class="copyright">Copyright &#xA9; 2012 W3C <sup>&#xAE;</sup> (<a href="http://www.csail.mit.edu/">
- <acronym title="Massachusetts Institute of Technology">MIT</acronym>
- </a>, <a href="http://www.ercim.org/">
- <acronym title="European Research Consortium for Informatics and Mathematics"> ERCIM</acronym>
- </a>, <a href="http://www.keio.ac.jp/">Keio</a>) <a href="/Consortium/Legal/ipr-notice">Usage policies apply</a>.</p>
- </div>
- </div><!-- Generated from data/scripts.php, ../../smarty/{scripts.tpl} --><!-- At the bottom for performance reasons --><div id="w3c_scripts">
- <script type="text/javascript" src="/2008/site/js/main" xml:space="preserve"><!-- --></script>
- </div></body></html>
diff --git a/node_modules/sax/lib/sax.js b/node_modules/sax/lib/sax.js
index f125c5fee..db0d4c316 100644
--- a/node_modules/sax/lib/sax.js
+++ b/node_modules/sax/lib/sax.js
@@ -267,8 +267,6 @@
// this really needs to be replaced with character classes.
// XML allows all manner of ridiculous numbers and digits.
- var number = '0124356789'
- var letter = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
// (Letter | "_" | ":")
var quote = '\'"'
@@ -281,8 +279,6 @@
// turn all the string character sets into character class objects.
whitespace = charClass(whitespace)
- number = charClass(number)
- letter = charClass(letter)
// http://www.w3.org/TR/REC-xml/#NT-NameStartChar
// This implementation works on strings, a single character at a time
@@ -292,10 +288,10 @@
// is left as an exercise for the reader.
var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/
- var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/
+ var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/
var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/
- var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/
+ var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/
quote = charClass(quote)
attribEnd = charClass(attribEnd)
@@ -307,12 +303,16 @@
}, {})
}
- function isRegExp (c) {
- return Object.prototype.toString.call(c) === '[object RegExp]'
+ function isMatch (regex, c) {
+ return regex.test(c)
}
function is (charclass, c) {
- return isRegExp(charclass) ? !!c.match(charclass) : charclass[c]
+ return charclass[c]
+ }
+
+ function notMatch (regex, c) {
+ return !isMatch(regex, c)
}
function not (charclass, c) {
@@ -998,9 +998,11 @@
while (true) {
c = charAt(chunk, i++)
parser.c = c
+
if (!c) {
break
}
+
if (parser.trackPosition) {
parser.position++
if (c === '\n') {
@@ -1010,6 +1012,7 @@
parser.column++
}
}
+
switch (parser.state) {
case S.BEGIN:
parser.state = S.BEGIN_WHITESPACE
@@ -1080,7 +1083,7 @@
parser.sgmlDecl = ''
} else if (is(whitespace, c)) {
// wait for it...
- } else if (is(nameStart, c)) {
+ } else if (isMatch(nameStart, c)) {
parser.state = S.OPEN_TAG
parser.tagName = c
} else if (c === '/') {
@@ -1283,7 +1286,7 @@
continue
case S.OPEN_TAG:
- if (is(nameBody, c)) {
+ if (isMatch(nameBody, c)) {
parser.tagName += c
} else {
newTag(parser)
@@ -1318,7 +1321,7 @@
openTag(parser)
} else if (c === '/') {
parser.state = S.OPEN_TAG_SLASH
- } else if (is(nameStart, c)) {
+ } else if (isMatch(nameStart, c)) {
parser.attribName = c
parser.attribValue = ''
parser.state = S.ATTRIB_NAME
@@ -1337,7 +1340,7 @@
openTag(parser)
} else if (is(whitespace, c)) {
parser.state = S.ATTRIB_NAME_SAW_WHITE
- } else if (is(nameBody, c)) {
+ } else if (isMatch(nameBody, c)) {
parser.attribName += c
} else {
strictFail(parser, 'Invalid attribute name')
@@ -1360,7 +1363,7 @@
parser.attribName = ''
if (c === '>') {
openTag(parser)
- } else if (is(nameStart, c)) {
+ } else if (isMatch(nameStart, c)) {
parser.attribName = c
parser.state = S.ATTRIB_NAME
} else {
@@ -1404,7 +1407,7 @@
openTag(parser)
} else if (c === '/') {
parser.state = S.OPEN_TAG_SLASH
- } else if (is(nameStart, c)) {
+ } else if (isMatch(nameStart, c)) {
strictFail(parser, 'No whitespace between attributes')
parser.attribName = c
parser.attribValue = ''
@@ -1435,7 +1438,7 @@
if (!parser.tagName) {
if (is(whitespace, c)) {
continue
- } else if (not(nameStart, c)) {
+ } else if (notMatch(nameStart, c)) {
if (parser.script) {
parser.script += '</' + c
parser.state = S.SCRIPT
@@ -1447,7 +1450,7 @@
}
} else if (c === '>') {
closeTag(parser)
- } else if (is(nameBody, c)) {
+ } else if (isMatch(nameBody, c)) {
parser.tagName += c
} else if (parser.script) {
parser.script += '</' + parser.tagName
@@ -1498,7 +1501,7 @@
parser[buffer] += parseEntity(parser)
parser.entity = ''
parser.state = returnState
- } else if (is(parser.entity.length ? entityBody : entityStart, c)) {
+ } else if (isMatch(parser.entity.length ? entityBody : entityStart, c)) {
parser.entity += c
} else {
strictFail(parser, 'Invalid character in entity name')
@@ -1521,6 +1524,7 @@
}
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
+ /* istanbul ignore next */
if (!String.fromCodePoint) {
(function () {
var stringFromCharCode = String.fromCharCode
@@ -1562,6 +1566,7 @@
}
return result
}
+ /* istanbul ignore next */
if (Object.defineProperty) {
Object.defineProperty(String, 'fromCodePoint', {
value: fromCodePoint,
diff --git a/node_modules/sax/package.json b/node_modules/sax/package.json
index 2c8208938..f620ff845 100644
--- a/node_modules/sax/package.json
+++ b/node_modules/sax/package.json
@@ -2,22 +2,21 @@
"name": "sax",
"description": "An evented streaming XML parser in JavaScript",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
- "version": "1.2.1",
+ "version": "1.2.2",
"main": "lib/sax.js",
"license": "ISC",
"scripts": {
- "test": "tap test/*.js --cov",
+ "test": "tap test/*.js --cov -j4",
"posttest": "standard -F test/*.js lib/*.js"
},
"repository": "git://github.com/isaacs/sax-js.git",
"files": [
"lib/sax.js",
"LICENSE",
- "LICENSE-W3C.html",
"README.md"
],
"devDependencies": {
- "standard": "^5.3.1",
- "tap": "^5.2.0"
+ "standard": "^8.6.0",
+ "tap": "^10.0.2"
}
}