Ver código fonte

删除无用包9

wangsy 11 meses atrás
pai
commit
8b7b629366
100 arquivos alterados com 0 adições e 14208 exclusões
  1. 0 20
      node_modules.bak/he/LICENSE-MIT.txt
  2. 0 379
      node_modules.bak/he/README.md
  3. 0 148
      node_modules.bak/he/bin/he
  4. 0 345
      node_modules.bak/he/he.js
  5. 0 78
      node_modules.bak/he/man/he.1
  6. 0 90
      node_modules.bak/he/package.json
  7. 0 2
      node_modules.bak/hmac-drbg/.npmignore
  8. 0 11
      node_modules.bak/hmac-drbg/.travis.yml
  9. 0 48
      node_modules.bak/hmac-drbg/README.md
  10. 0 113
      node_modules.bak/hmac-drbg/lib/hmac-drbg.js
  11. 0 60
      node_modules.bak/hmac-drbg/package.json
  12. 0 91
      node_modules.bak/hmac-drbg/test/drbg-test.js
  13. 0 332
      node_modules.bak/hmac-drbg/test/fixtures/hmac-drbg-nist.json
  14. 0 21
      node_modules.bak/homedir-polyfill/LICENSE
  15. 0 96
      node_modules.bak/homedir-polyfill/README.md
  16. 0 9
      node_modules.bak/homedir-polyfill/index.js
  17. 0 94
      node_modules.bak/homedir-polyfill/package.json
  18. 0 81
      node_modules.bak/homedir-polyfill/polyfill.js
  19. 0 2
      node_modules.bak/hpack.js/.npmignore
  20. 0 6
      node_modules.bak/hpack.js/.travis.yml
  21. 0 52
      node_modules.bak/hpack.js/README.md
  22. 0 34
      node_modules.bak/hpack.js/bin/benchmark
  23. 0 12
      node_modules.bak/hpack.js/lib/hpack.js
  24. 0 127
      node_modules.bak/hpack.js/lib/hpack/compressor.js
  25. 0 169
      node_modules.bak/hpack.js/lib/hpack/decoder.js
  26. 0 116
      node_modules.bak/hpack.js/lib/hpack/decompressor.js
  27. 0 129
      node_modules.bak/hpack.js/lib/hpack/encoder.js
  28. 0 159
      node_modules.bak/hpack.js/lib/hpack/huffman.js
  29. 0 691
      node_modules.bak/hpack.js/lib/hpack/static-table.js
  30. 0 85
      node_modules.bak/hpack.js/lib/hpack/table.js
  31. 0 25
      node_modules.bak/hpack.js/lib/hpack/utils.js
  32. 0 63
      node_modules.bak/hpack.js/package.json
  33. 0 136
      node_modules.bak/hpack.js/test/compressor-test.js
  34. 0 181
      node_modules.bak/hpack.js/test/decoder-test.js
  35. 0 184
      node_modules.bak/hpack.js/test/decompressor-test.js
  36. 0 166
      node_modules.bak/hpack.js/test/encoder-test.js
  37. 0 232
      node_modules.bak/hpack.js/test/fixtures.js
  38. 0 309
      node_modules.bak/hpack.js/tools/gen-huffman.js
  39. 0 103
      node_modules.bak/hpack.js/tools/gen-static-table.js
  40. 0 23
      node_modules.bak/hpack.js/tools/utils.js
  41. 0 19
      node_modules.bak/html-entities/LICENSE
  42. 0 63
      node_modules.bak/html-entities/README.md
  43. 0 10
      node_modules.bak/html-entities/lib/html4-entities.d.ts
  44. 0 128
      node_modules.bak/html-entities/lib/html4-entities.js
  45. 0 10
      node_modules.bak/html-entities/lib/html5-entities.d.ts
  46. 0 167
      node_modules.bak/html-entities/lib/html5-entities.js
  47. 0 3
      node_modules.bak/html-entities/lib/index.d.ts
  48. 0 9
      node_modules.bak/html-entities/lib/index.js
  49. 0 4
      node_modules.bak/html-entities/lib/surrogate-pairs.d.ts
  50. 0 15
      node_modules.bak/html-entities/lib/surrogate-pairs.js
  51. 0 10
      node_modules.bak/html-entities/lib/xml-entities.d.ts
  52. 0 132
      node_modules.bak/html-entities/lib/xml-entities.js
  53. 0 82
      node_modules.bak/html-entities/package.json
  54. 0 22
      node_modules.bak/html-minifier/LICENSE
  55. 0 159
      node_modules.bak/html-minifier/README.md
  56. 0 310
      node_modules.bak/html-minifier/cli.js
  57. 0 129
      node_modules.bak/html-minifier/package.json
  58. 0 39
      node_modules.bak/html-minifier/sample-cli-config-file.conf
  59. 0 1329
      node_modules.bak/html-minifier/src/htmlminifier.js
  60. 0 563
      node_modules.bak/html-minifier/src/htmlparser.js
  61. 0 71
      node_modules.bak/html-minifier/src/tokenchain.js
  62. 0 18
      node_modules.bak/html-minifier/src/utils.js
  63. 0 452
      node_modules.bak/html-webpack-plugin/CHANGELOG.md
  64. 0 20
      node_modules.bak/html-webpack-plugin/LICENSE
  65. 0 415
      node_modules.bak/html-webpack-plugin/README.md
  66. 0 9
      node_modules.bak/html-webpack-plugin/default_index.ejs
  67. 0 729
      node_modules.bak/html-webpack-plugin/index.js
  68. 0 139
      node_modules.bak/html-webpack-plugin/lib/chunksorter.js
  69. 0 125
      node_modules.bak/html-webpack-plugin/lib/compiler.js
  70. 0 23
      node_modules.bak/html-webpack-plugin/lib/errors.js
  71. 0 35
      node_modules.bak/html-webpack-plugin/lib/loader.js
  72. 0 111
      node_modules.bak/html-webpack-plugin/package.json
  73. 0 18
      node_modules.bak/htmlparser2/LICENSE
  74. 0 91
      node_modules.bak/htmlparser2/README.md
  75. 0 57
      node_modules.bak/htmlparser2/lib/CollectingHandler.js
  76. 0 114
      node_modules.bak/htmlparser2/lib/FeedHandler.js
  77. 0 382
      node_modules.bak/htmlparser2/lib/Parser.js
  78. 0 27
      node_modules.bak/htmlparser2/lib/ProxyHandler.js
  79. 0 35
      node_modules.bak/htmlparser2/lib/Stream.js
  80. 0 970
      node_modules.bak/htmlparser2/lib/Tokenizer.js
  81. 0 25
      node_modules.bak/htmlparser2/lib/WritableStream.js
  82. 0 72
      node_modules.bak/htmlparser2/lib/index.js
  83. 0 91
      node_modules.bak/htmlparser2/package.json
  84. 0 2
      node_modules.bak/http-deceiver/.npmignore
  85. 0 5
      node_modules.bak/http-deceiver/.travis.yml
  86. 0 31
      node_modules.bak/http-deceiver/README.md
  87. 0 250
      node_modules.bak/http-deceiver/lib/deceiver.js
  88. 0 58
      node_modules.bak/http-deceiver/package.json
  89. 0 226
      node_modules.bak/http-deceiver/test/api-test.js
  90. 0 149
      node_modules.bak/http-errors/HISTORY.md
  91. 0 23
      node_modules.bak/http-errors/LICENSE
  92. 0 163
      node_modules.bak/http-errors/README.md
  93. 0 266
      node_modules.bak/http-errors/index.js
  94. 0 93
      node_modules.bak/http-errors/package.json
  95. 0 14
      node_modules.bak/http-parser-js/CHANGELOG.md
  96. 0 110
      node_modules.bak/http-parser-js/LICENSE.md
  97. 0 31
      node_modules.bak/http-parser-js/README.md
  98. 0 461
      node_modules.bak/http-parser-js/http-parser.js
  99. 0 72
      node_modules.bak/http-parser-js/package.json
  100. 0 0
      node_modules.bak/http-proxy-middleware/CHANGELOG.md

+ 0 - 20
node_modules.bak/he/LICENSE-MIT.txt

@@ -1,20 +0,0 @@
-Copyright Mathias Bynens <https://mathiasbynens.be/>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 379
node_modules.bak/he/README.md


+ 0 - 148
node_modules.bak/he/bin/he

@@ -1,148 +0,0 @@
-#!/usr/bin/env node
-(function() {
-
-	var fs = require('fs');
-	var he = require('../he.js');
-	var strings = process.argv.splice(2);
-	var stdin = process.stdin;
-	var data;
-	var timeout;
-	var action;
-	var options = {};
-	var log = console.log;
-
-	var main = function() {
-		var option = strings[0];
-		var count = 0;
-
-		if (/^(?:-h|--help|undefined)$/.test(option)) {
-			log(
-				'he v%s - https://mths.be/he',
-				he.version
-			);
-			log([
-				'\nUsage:\n',
-				'\the [--escape] string',
-				'\the [--encode] [--use-named-refs] [--everything] [--allow-unsafe] [--decimal] string',
-				'\the [--decode] [--attribute] [--strict] string',
-				'\the [-v | --version]',
-				'\the [-h | --help]',
-				'\nExamples:\n',
-				'\the --escape \\<img\\ src\\=\\\'x\\\'\\ onerror\\=\\"prompt\\(1\\)\\"\\>',
-				'\techo \'&copy; &#x1D306;\' | he --decode'
-			].join('\n'));
-			return process.exit(option ? 0 : 1);
-		}
-
-		if (/^(?:-v|--version)$/.test(option)) {
-			log('v%s', he.version);
-			return process.exit(0);
-		}
-
-		strings.forEach(function(string) {
-			// Process options
-			if (string == '--escape') {
-				action = 'escape';
-				return;
-			}
-			if (string == '--encode') {
-				action = 'encode';
-				return;
-			}
-			if (string == '--use-named-refs') {
-				action = 'encode';
-				options.useNamedReferences = true;
-				return;
-			}
-			if (string == '--everything') {
-				action = 'encode';
-				options.encodeEverything = true;
-				return;
-			}
-			if (string == '--allow-unsafe') {
-				action = 'encode';
-				options.allowUnsafeSymbols = true;
-				return;
-			}
-			if (string == '--decimal') {
-				action = 'encode';
-				options.decimal = true;
-				return;
-			}
-			if (string == '--decode') {
-				action = 'decode';
-				return;
-			}
-			if (string == '--attribute') {
-				action = 'decode';
-				options.isAttributeValue = true;
-				return;
-			}
-			if (string == '--strict') {
-				action = 'decode';
-				options.strict = true;
-				return;
-			}
-			// Process string(s)
-			var result;
-			if (!action) {
-				log('Error: he requires at least one option and a string argument.');
-				log('Try `he --help` for more information.');
-				return process.exit(1);
-			}
-			try {
-				result = he[action](string, options);
-				log(result);
-				count++;
-			} catch(error) {
-				log(error.message + '\n');
-				log('Error: failed to %s.', action);
-				log('If you think this is a bug in he, please report it:');
-				log('https://github.com/mathiasbynens/he/issues/new');
-				log(
-					'\nStack trace using he@%s:\n',
-					he.version
-				);
-				log(error.stack);
-				return process.exit(1);
-			}
-		});
-		if (!count) {
-			log('Error: he requires a string argument.');
-			log('Try `he --help` for more information.');
-			return process.exit(1);
-		}
-		// Return with exit status 0 outside of the `forEach` loop, in case
-		// multiple strings were passed in.
-		return process.exit(0);
-	};
-
-	if (stdin.isTTY) {
-		// handle shell arguments
-		main();
-	} else {
-		// Either the script is called from within a non-TTY context, or `stdin`
-		// content is being piped in.
-		if (!process.stdout.isTTY) {
-			// The script was called from a non-TTY context. This is a rather uncommon
-			// use case we don’t actively support. However, we don’t want the script
-			// to wait forever in such cases, so…
-			timeout = setTimeout(function() {
-				// …if no piped data arrived after a whole minute, handle shell
-				// arguments instead.
-				main();
-			}, 60000);
-		}
-		data = '';
-		stdin.on('data', function(chunk) {
-			clearTimeout(timeout);
-			data += chunk;
-		});
-		stdin.on('end', function() {
-			strings.push(data.trim());
-			main();
-		});
-		stdin.resume();
-	}
-
-}());

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 345
node_modules.bak/he/he.js


+ 0 - 78
node_modules.bak/he/man/he.1

@@ -1,78 +0,0 @@
-.Dd April 5, 2016
-.Dt he 1
-.Sh NAME
-.Nm he
-.Nd encode/decode HTML entities just like a browser would
-.Sh SYNOPSIS
-.Nm
-.Op Fl -escape Ar string
-.br
-.Op Fl -encode Ar string
-.br
-.Op Fl -encode Fl -use-named-refs Fl -everything Fl -allow-unsafe Ar string
-.br
-.Op Fl -decode Ar string
-.br
-.Op Fl -decode Fl -attribute Ar string
-.br
-.Op Fl -decode Fl -strict Ar string
-.br
-.Op Fl v | -version
-.br
-.Op Fl h | -help
-.Sh DESCRIPTION
-.Nm
-encodes/decodes HTML entities in strings just like a browser would.
-.Sh OPTIONS
-.Bl -ohang -offset
-.It Sy "--escape"
-Take a string of text and escape it for use in text contexts in XML or HTML documents. Only the following characters are escaped: `&`, `<`, `>`, `"`, and `'`.
-.It Sy "--encode"
-Take a string of text and encode any symbols that aren't printable ASCII symbols and that can be replaced with character references. For example, it would turn `©` into `&#xA9;`, but it wouldn't turn `+` into `&#x2B;` since there is no point in doing so. Additionally, it replaces any remaining non-ASCII symbols with a hexadecimal escape sequence (e.g. `&#x1D306;`). The return value of this function is always valid HTML.
-.It Sy "--encode --use-named-refs"
-Enable the use of named character references (like `&copy;`) in the output. If compatibility with older browsers is a concern, don't use this option.
-.It Sy "--encode --everything"
-Encode every symbol in the input string, even safe printable ASCII symbols.
-.It Sy "--encode --allow-unsafe"
-Encode non-ASCII characters only. This leaves unsafe HTML/XML symbols like `&`, `<`, `>`, `"`, and `'` intact.
-.It Sy "--encode --decimal"
-Use decimal digits rather than hexadecimal digits for encoded character references, e.g. output `&#169;` instead of `&#xA9;`.
-.It Sy "--decode"
-Takes a string of HTML and decode any named and numerical character references in it using the algorithm described in the HTML spec.
-.It Sy "--decode --attribute"
-Parse the input as if it was an HTML attribute value rather than a string in an HTML text content.
-.It Sy "--decode --strict"
-Throw an error if an invalid character reference is encountered.
-.It Sy "-v, --version"
-Print he's version.
-.It Sy "-h, --help"
-Show the help screen.
-.El
-.Sh EXIT STATUS
-The
-.Nm he
-utility exits with one of the following values:
-.Pp
-.Bl -tag -width flag -compact
-.It Li 0
-.Nm
-did what it was instructed to do successfully; either it encoded/decoded the input and printed the result, or it printed the version or usage message.
-.It Li 1
-.Nm
-encountered an error.
-.El
-.Sh EXAMPLES
-.Bl -ohang -offset
-.It Sy "he --escape '<script>alert(1)</script>'"
-Print an escaped version of the given string that is safe for use in HTML text contexts, escaping only `&`, `<`, `>`, `"`, and `'`.
-.It Sy "he --decode '&copy;&#x1D306;'"
-Print the decoded version of the given HTML string.
-.It Sy "echo\ '&copy;&#x1D306;'\ |\ he --decode"
-Print the decoded version of the HTML string that gets piped in.
-.El
-.Sh BUGS
-he's bug tracker is located at <https://github.com/mathiasbynens/he/issues>.
-.Sh AUTHOR
-Mathias Bynens <https://mathiasbynens.be/>
-.Sh WWW
-<https://mths.be/he>

+ 0 - 90
node_modules.bak/he/package.json

@@ -1,90 +0,0 @@
-{
-  "_from": "he@1.2.x",
-  "_id": "he@1.2.0",
-  "_inBundle": false,
-  "_integrity": "sha1-hK5l+n6vsWX922FWauFLrwVmTw8=",
-  "_location": "/he",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "he@1.2.x",
-    "name": "he",
-    "escapedName": "he",
-    "rawSpec": "1.2.x",
-    "saveSpec": null,
-    "fetchSpec": "1.2.x"
-  },
-  "_requiredBy": [
-    "/html-minifier"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/he/download/he-1.2.0.tgz",
-  "_shasum": "84ae65fa7eafb165fddb61566ae14baf05664f0f",
-  "_spec": "he@1.2.x",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\html-minifier",
-  "author": {
-    "name": "Mathias Bynens",
-    "url": "https://mathiasbynens.be/"
-  },
-  "bin": {
-    "he": "bin/he"
-  },
-  "bugs": {
-    "url": "https://github.com/mathiasbynens/he/issues"
-  },
-  "bundleDependencies": false,
-  "deprecated": false,
-  "description": "A robust HTML entities encoder/decoder with full Unicode support.",
-  "devDependencies": {
-    "codecov.io": "^0.1.6",
-    "grunt": "^0.4.5",
-    "grunt-cli": "^1.3.1",
-    "grunt-shell": "^1.1.1",
-    "grunt-template": "^0.2.3",
-    "istanbul": "^0.4.2",
-    "jsesc": "^1.0.0",
-    "lodash": "^4.8.2",
-    "qunit-extras": "^1.4.5",
-    "qunitjs": "~1.11.0",
-    "regenerate": "^1.2.1",
-    "regexgen": "^1.3.0",
-    "requirejs": "^2.1.22",
-    "sort-object": "^3.0.2"
-  },
-  "directories": {
-    "bin": "bin",
-    "man": "man",
-    "test": "tests"
-  },
-  "files": [
-    "LICENSE-MIT.txt",
-    "he.js",
-    "bin/",
-    "man/"
-  ],
-  "homepage": "https://mths.be/he",
-  "keywords": [
-    "string",
-    "entities",
-    "entity",
-    "html",
-    "encode",
-    "decode",
-    "unicode"
-  ],
-  "license": "MIT",
-  "main": "he.js",
-  "man": [
-    "D:\\朗通信息\\icssDService\\node_modules\\he\\man\\he.1"
-  ],
-  "name": "he",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/mathiasbynens/he.git"
-  },
-  "scripts": {
-    "build": "grunt build",
-    "test": "node tests/tests.js"
-  },
-  "version": "1.2.0"
-}

+ 0 - 2
node_modules.bak/hmac-drbg/.npmignore

@@ -1,2 +0,0 @@
-node_modules/
-npm-debug.log

+ 0 - 11
node_modules.bak/hmac-drbg/.travis.yml

@@ -1,11 +0,0 @@
-sudo: false
-
-language: node_js
-
-node_js:
-  - "4"
-  - "6"
-  - "stable"
-
-script:
-  - npm test

+ 0 - 48
node_modules.bak/hmac-drbg/README.md

@@ -1,48 +0,0 @@
-# hmac-drbg
-[![Build Status](https://secure.travis-ci.org/indutny/hmac-drbg.svg)](http://travis-ci.org/indutny/hmac-drbg)
-[![NPM version](https://badge.fury.io/js/hmac-drbg.svg)](http://badge.fury.io/js/hmac-drbg)
-
-JS-only implementation of [HMAC DRBG][0].
-
-## Usage
-
-```js
-const DRBG = require('hmac-drbg');
-const hash = require('hash.js');
-
-const d = new DRBG({
-  hash: hash.sha256,
-  entropy: '0123456789abcdef',
-  nonce: '0123456789abcdef',
-  pers: '0123456789abcdef' /* or `null` */
-});
-
-d.generate(32, 'hex');
-```
-
-#### LICENSE
-
-This software is licensed under the MIT License.
-
-Copyright Fedor Indutny, 2017.
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to permit
-persons to whom the Software is furnished to do so, subject to the
-following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-[0]: http://csrc.nist.gov/groups/ST/toolkit/documents/rng/HashBlockCipherDRBG.pdf

+ 0 - 113
node_modules.bak/hmac-drbg/lib/hmac-drbg.js

@@ -1,113 +0,0 @@
-'use strict';
-
-var hash = require('hash.js');
-var utils = require('minimalistic-crypto-utils');
-var assert = require('minimalistic-assert');
-
-function HmacDRBG(options) {
-  if (!(this instanceof HmacDRBG))
-    return new HmacDRBG(options);
-  this.hash = options.hash;
-  this.predResist = !!options.predResist;
-
-  this.outLen = this.hash.outSize;
-  this.minEntropy = options.minEntropy || this.hash.hmacStrength;
-
-  this._reseed = null;
-  this.reseedInterval = null;
-  this.K = null;
-  this.V = null;
-
-  var entropy = utils.toArray(options.entropy, options.entropyEnc || 'hex');
-  var nonce = utils.toArray(options.nonce, options.nonceEnc || 'hex');
-  var pers = utils.toArray(options.pers, options.persEnc || 'hex');
-  assert(entropy.length >= (this.minEntropy / 8),
-         'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
-  this._init(entropy, nonce, pers);
-}
-module.exports = HmacDRBG;
-
-HmacDRBG.prototype._init = function init(entropy, nonce, pers) {
-  var seed = entropy.concat(nonce).concat(pers);
-
-  this.K = new Array(this.outLen / 8);
-  this.V = new Array(this.outLen / 8);
-  for (var i = 0; i < this.V.length; i++) {
-    this.K[i] = 0x00;
-    this.V[i] = 0x01;
-  }
-
-  this._update(seed);
-  this._reseed = 1;
-  this.reseedInterval = 0x1000000000000;  // 2^48
-};
-
-HmacDRBG.prototype._hmac = function hmac() {
-  return new hash.hmac(this.hash, this.K);
-};
-
-HmacDRBG.prototype._update = function update(seed) {
-  var kmac = this._hmac()
-                 .update(this.V)
-                 .update([ 0x00 ]);
-  if (seed)
-    kmac = kmac.update(seed);
-  this.K = kmac.digest();
-  this.V = this._hmac().update(this.V).digest();
-  if (!seed)
-    return;
-
-  this.K = this._hmac()
-               .update(this.V)
-               .update([ 0x01 ])
-               .update(seed)
-               .digest();
-  this.V = this._hmac().update(this.V).digest();
-};
-
-HmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {
-  // Optional entropy enc
-  if (typeof entropyEnc !== 'string') {
-    addEnc = add;
-    add = entropyEnc;
-    entropyEnc = null;
-  }
-
-  entropy = utils.toArray(entropy, entropyEnc);
-  add = utils.toArray(add, addEnc);
-
-  assert(entropy.length >= (this.minEntropy / 8),
-         'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
-
-  this._update(entropy.concat(add || []));
-  this._reseed = 1;
-};
-
-HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
-  if (this._reseed > this.reseedInterval)
-    throw new Error('Reseed is required');
-
-  // Optional encoding
-  if (typeof enc !== 'string') {
-    addEnc = add;
-    add = enc;
-    enc = null;
-  }
-
-  // Optional additional data
-  if (add) {
-    add = utils.toArray(add, addEnc || 'hex');
-    this._update(add);
-  }
-
-  var temp = [];
-  while (temp.length < len) {
-    this.V = this._hmac().update(this.V).digest();
-    temp = temp.concat(this.V);
-  }
-
-  var res = temp.slice(0, len);
-  this._update(add);
-  this._reseed++;
-  return utils.encode(res, enc);
-};

+ 0 - 60
node_modules.bak/hmac-drbg/package.json

@@ -1,60 +0,0 @@
-{
-  "_from": "hmac-drbg@^1.0.1",
-  "_id": "hmac-drbg@1.0.1",
-  "_inBundle": false,
-  "_integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=",
-  "_location": "/hmac-drbg",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "hmac-drbg@^1.0.1",
-    "name": "hmac-drbg",
-    "escapedName": "hmac-drbg",
-    "rawSpec": "^1.0.1",
-    "saveSpec": null,
-    "fetchSpec": "^1.0.1"
-  },
-  "_requiredBy": [
-    "/elliptic"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz",
-  "_shasum": "d2745701025a6c775a6c545793ed502fc0c649a1",
-  "_spec": "hmac-drbg@^1.0.1",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\elliptic",
-  "author": {
-    "name": "Fedor Indutny",
-    "email": "fedor@indutny.com"
-  },
-  "bugs": {
-    "url": "https://github.com/indutny/hmac-drbg/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "hash.js": "^1.0.3",
-    "minimalistic-assert": "^1.0.0",
-    "minimalistic-crypto-utils": "^1.0.1"
-  },
-  "deprecated": false,
-  "description": "Deterministic random bit generator (hmac)",
-  "devDependencies": {
-    "mocha": "^3.2.0"
-  },
-  "homepage": "https://github.com/indutny/hmac-drbg#readme",
-  "keywords": [
-    "hmac",
-    "drbg",
-    "prng"
-  ],
-  "license": "MIT",
-  "main": "lib/hmac-drbg.js",
-  "name": "hmac-drbg",
-  "repository": {
-    "type": "git",
-    "url": "git+ssh://git@github.com/indutny/hmac-drbg.git"
-  },
-  "scripts": {
-    "test": "mocha --reporter=spec test/*-test.js"
-  },
-  "version": "1.0.1"
-}

+ 0 - 91
node_modules.bak/hmac-drbg/test/drbg-test.js

@@ -1,91 +0,0 @@
-'use strict';
-
-const assert = require('assert');
-const HmacDRBG = require('../');
-const hash = require('hash.js');
-
-describe('Hmac_DRBG', () => {
-  it('should support hmac-drbg-sha256', () => {
-    function doDrbg(opt) {
-      const drbg = HmacDRBG({
-        hash: hash.sha256,
-        entropy: opt.entropy,
-        entropyEnc: 'utf8',
-        nonce: opt.nonce,
-        nonceEnc: 'utf8',
-        pers: opt.pers,
-        persEnc: 'utf8'
-      });
-      return drbg.generate(opt.size, 'hex');
-    }
-
-    const test = [
-      {
-        entropy: 'totally random0123456789',
-        nonce: 'secret nonce',
-        pers: 'my drbg',
-        size: 32,
-        res: '018ec5f8e08c41e5ac974eb129ac297c5388ee1864324fa13d9b15cf98d9a157'
-      },
-      {
-        entropy: 'totally random0123456789',
-        nonce: 'secret nonce',
-        pers: null,
-        size: 32,
-        res: 'ed5d61ecf0ef38258e62f03bbb49f19f2cd07ba5145a840d83b134d5963b3633'
-      }
-    ];
-    for (let i = 0; i < test.length; i++)
-      assert.equal(doDrbg(test[i]), test[i].res);
-  });
-
-  describe('NIST vector', function() {
-    require('./fixtures/hmac-drbg-nist.json').forEach(function (opt) {
-      it('should not fail at ' + opt.name, function() {
-        const drbg = HmacDRBG({
-          hash: hash.sha256,
-          entropy: opt.entropy,
-          nonce: opt.nonce,
-          pers: opt.pers
-        });
-
-        let last;
-        for (let i = 0; i < opt.add.length; i++) {
-          let add = opt.add[i];
-          last = drbg.generate(opt.expected.length / 2, 'hex', add);
-        }
-        assert.equal(last, opt.expected);
-      });
-    });
-  });
-
-  describe('reseeding', function() {
-    it('should reseed', function() {
-      const entropy = 'totally random string with many chars that I typed ' +
-                      'in agony';
-      const nonce = 'nonce';
-      const pers = 'pers';
-
-      const original = HmacDRBG({
-        hash: hash.sha256,
-        entropy,
-        nonce,
-        pers
-      });
-      const reseeded = HmacDRBG({
-        hash: hash.sha256,
-        entropy,
-        nonce,
-        pers
-      });
-
-      assert.strictEqual(original.generate(32, 'hex'),
-                         reseeded.generate(32, 'hex'));
-
-      reseeded.reseed('another absolutely random string');
-
-      assert.notEqual(original.generate(32, 'hex'),
-                      reseeded.generate(32, 'hex'));
-    });
-  });
-});

+ 0 - 332
node_modules.bak/hmac-drbg/test/fixtures/hmac-drbg-nist.json

@@ -1,332 +0,0 @@
-[
-  {
-    "name": "0",
-    "entropy": "ca851911349384bffe89de1cbdc46e6831e44d34a4fb935ee285dd14b71a7488",
-    "nonce": "659ba96c601dc69fc902940805ec0ca8",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "e528e9abf2dece54d47c7e75e5fe302149f817ea9fb4bee6f4199697d04d5b89d54fbb978a15b5c443c9ec21036d2460b6f73ebad0dc2aba6e624abf07745bc107694bb7547bb0995f70de25d6b29e2d3011bb19d27676c07162c8b5ccde0668961df86803482cb37ed6d5c0bb8d50cf1f50d476aa0458bdaba806f48be9dcb8"
-  },
-  {
-    "name": "1",
-    "entropy": "79737479ba4e7642a221fcfd1b820b134e9e3540a35bb48ffae29c20f5418ea3",
-    "nonce": "3593259c092bef4129bc2c6c9e19f343",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "cf5ad5984f9e43917aa9087380dac46e410ddc8a7731859c84e9d0f31bd43655b924159413e2293b17610f211e09f770f172b8fb693a35b85d3b9e5e63b1dc252ac0e115002e9bedfb4b5b6fd43f33b8e0eafb2d072e1a6fee1f159df9b51e6c8da737e60d5032dd30544ec51558c6f080bdbdab1de8a939e961e06b5f1aca37"
-  },
-  {
-    "name": "2",
-    "entropy": "b340907445b97a8b589264de4a17c0bea11bb53ad72f9f33297f05d2879d898d",
-    "nonce": "65cb27735d83c0708f72684ea58f7ee5",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "75183aaaf3574bc68003352ad655d0e9ce9dd17552723b47fab0e84ef903694a32987eeddbdc48efd24195dbdac8a46ba2d972f5808f23a869e71343140361f58b243e62722088fe10a98e43372d252b144e00c89c215a76a121734bdc485486f65c0b16b8963524a3a70e6f38f169c12f6cbdd169dd48fe4421a235847a23ff"
-  },
-  {
-    "name": "3",
-    "entropy": "8e159f60060a7d6a7e6fe7c9f769c30b98acb1240b25e7ee33f1da834c0858e7",
-    "nonce": "c39d35052201bdcce4e127a04f04d644",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "62910a77213967ea93d6457e255af51fc79d49629af2fccd81840cdfbb4910991f50a477cbd29edd8a47c4fec9d141f50dfde7c4d8fcab473eff3cc2ee9e7cc90871f180777a97841597b0dd7e779eff9784b9cc33689fd7d48c0dcd341515ac8fecf5c55a6327aea8d58f97220b7462373e84e3b7417a57e80ce946d6120db5"
-  },
-  {
-    "name": "4",
-    "entropy": "74755f196305f7fb6689b2fe6835dc1d81484fc481a6b8087f649a1952f4df6a",
-    "nonce": "c36387a544a5f2b78007651a7b74b749",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "b2896f3af4375dab67e8062d82c1a005ef4ed119d13a9f18371b1b873774418684805fd659bfd69964f83a5cfe08667ddad672cafd16befffa9faed49865214f703951b443e6dca22edb636f3308380144b9333de4bcb0735710e4d9266786342fc53babe7bdbe3c01a3addb7f23c63ce2834729fabbd419b47beceb4a460236"
-  },
-  {
-    "name": "5",
-    "entropy": "4b222718f56a3260b3c2625a4cf80950b7d6c1250f170bd5c28b118abdf23b2f",
-    "nonce": "7aed52d0016fcaef0b6492bc40bbe0e9",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "a6da029b3665cd39fd50a54c553f99fed3626f4902ffe322dc51f0670dfe8742ed48415cf04bbad5ed3b23b18b7892d170a7dcf3ef8052d5717cb0c1a8b3010d9a9ea5de70ae5356249c0e098946030c46d9d3d209864539444374d8fbcae068e1d6548fa59e6562e6b2d1acbda8da0318c23752ebc9be0c1c1c5b3cf66dd967"
-  },
-  {
-    "name": "6",
-    "entropy": "b512633f27fb182a076917e39888ba3ff35d23c3742eb8f3c635a044163768e0",
-    "nonce": "e2c39b84629a3de5c301db5643af1c21",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "fb931d0d0194a97b48d5d4c231fdad5c61aedf1c3a55ac24983ecbf38487b1c93396c6b86ff3920cfa8c77e0146de835ea5809676e702dee6a78100da9aa43d8ec0bf5720befa71f82193205ac2ea403e8d7e0e6270b366dc4200be26afd9f63b7e79286a35c688c57cbff55ac747d4c28bb80a2b2097b3b62ea439950d75dff"
-  },
-  {
-    "name": "7",
-    "entropy": "aae3ffc8605a975befefcea0a7a286642bc3b95fb37bd0eb0585a4cabf8b3d1e",
-    "nonce": "9504c3c0c4310c1c0746a036c91d9034",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "2819bd3b0d216dad59ddd6c354c4518153a2b04374b07c49e64a8e4d055575dfbc9a8fcde68bd257ff1ba5c6000564b46d6dd7ecd9c5d684fd757df62d85211575d3562d7814008ab5c8bc00e7b5a649eae2318665b55d762de36eba00c2906c0e0ec8706edb493e51ca5eb4b9f015dc932f262f52a86b11c41e9a6d5b3bd431"
-  },
-  {
-    "name": "8",
-    "entropy": "b9475210b79b87180e746df704b3cbc7bf8424750e416a7fbb5ce3ef25a82cc6",
-    "nonce": "24baf03599c10df6ef44065d715a93f7",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "ae12d784f796183c50db5a1a283aa35ed9a2b685dacea97c596ff8c294906d1b1305ba1f80254eb062b874a8dfffa3378c809ab2869aa51a4e6a489692284a25038908a347342175c38401193b8afc498077e10522bec5c70882b7f760ea5946870bd9fc72961eedbe8bff4fd58c7cc1589bb4f369ed0d3bf26c5bbc62e0b2b2"
-  },
-  {
-    "name": "9",
-    "entropy": "27838eb44ceccb4e36210703ebf38f659bc39dd3277cd76b7a9bcd6bc964b628",
-    "nonce": "39cfe0210db2e7b0eb52a387476e7ea1",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "e5e72a53605d2aaa67832f97536445ab774dd9bff7f13a0d11fd27bf6593bfb52309f2d4f09d147192199ea584503181de87002f4ee085c7dc18bf32ce5315647a3708e6f404d6588c92b2dda599c131aa350d18c747b33dc8eda15cf40e95263d1231e1b4b68f8d829f86054d49cfdb1b8d96ab0465110569c8583a424a099a"
-  },
-  {
-    "name": "10",
-    "entropy": "d7129e4f47008ad60c9b5d081ff4ca8eb821a6e4deb91608bf4e2647835373a5",
-    "nonce": "a72882773f78c2fc4878295840a53012",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "0cbf48585c5de9183b7ff76557f8fc9ebcfdfde07e588a8641156f61b7952725bbee954f87e9b937513b16bba0f2e523d095114658e00f0f3772175acfcb3240a01de631c19c5a834c94cc58d04a6837f0d2782fa53d2f9f65178ee9c837222494c799e64c60406069bd319549b889fa00a0032dd7ba5b1cc9edbf58de82bfcd"
-  },
-  {
-    "name": "11",
-    "entropy": "67fe5e300c513371976c80de4b20d4473889c9f1214bce718bc32d1da3ab7532",
-    "nonce": "e256d88497738a33923aa003a8d7845c",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "b44660d64ef7bcebc7a1ab71f8407a02285c7592d755ae6766059e894f694373ed9c776c0cfc8594413eefb400ed427e158d687e28da3ecc205e0f7370fb089676bbb0fa591ec8d916c3d5f18a3eb4a417120705f3e2198154cd60648dbfcfc901242e15711cacd501b2c2826abe870ba32da785ed6f1fdc68f203d1ab43a64f"
-  },
-  {
-    "name": "12",
-    "entropy": "de8142541255c46d66efc6173b0fe3ffaf5936c897a3ce2e9d5835616aafa2cb",
-    "nonce": "d01f9002c407127bc3297a561d89b81d",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "64d1020929d74716446d8a4e17205d0756b5264867811aa24d0d0da8644db25d5cde474143c57d12482f6bf0f31d10af9d1da4eb6d701bdd605a8db74fb4e77f79aaa9e450afda50b18d19fae68f03db1d7b5f1738d2fdce9ad3ee9461b58ee242daf7a1d72c45c9213eca34e14810a9fca5208d5c56d8066bab1586f1513de7"
-  },
-  {
-    "name": "13",
-    "entropy": "4a8e0bd90bdb12f7748ad5f147b115d7385bb1b06aee7d8b76136a25d779bcb7",
-    "nonce": "7f3cce4af8c8ce3c45bdf23c6b181a00",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "320c7ca4bbeb7af977bc054f604b5086a3f237aa5501658112f3e7a33d2231f5536d2c85c1dad9d9b0bf7f619c81be4854661626839c8c10ae7fdc0c0b571be34b58d66da553676167b00e7d8e49f416aacb2926c6eb2c66ec98bffae20864cf92496db15e3b09e530b7b9648be8d3916b3c20a3a779bec7d66da63396849aaf"
-  },
-  {
-    "name": "14",
-    "entropy": "451ed024bc4b95f1025b14ec3616f5e42e80824541dc795a2f07500f92adc665",
-    "nonce": "2f28e6ee8de5879db1eccd58c994e5f0",
-    "pers": null,
-    "add": [
-      null,
-      null
-    ],
-    "expected": "3fb637085ab75f4e95655faae95885166a5fbb423bb03dbf0543be063bcd48799c4f05d4e522634d9275fe02e1edd920e26d9accd43709cb0d8f6e50aa54a5f3bdd618be23cf73ef736ed0ef7524b0d14d5bef8c8aec1cf1ed3e1c38a808b35e61a44078127c7cb3a8fd7addfa50fcf3ff3bc6d6bc355d5436fe9b71eb44f7fd"
-  },
-  {
-    "name": "0 with additional data",
-    "entropy": "d3cc4d1acf3dde0c4bd2290d262337042dc632948223d3a2eaab87da44295fbd",
-    "nonce": "0109b0e729f457328aa18569a9224921",
-    "pers": null,
-    "add": [
-      "3c311848183c9a212a26f27f8c6647e40375e466a0857cc39c4e47575d53f1f6",
-      "fcb9abd19ccfbccef88c9c39bfb3dd7b1c12266c9808992e305bc3cff566e4e4"
-    ],
-    "expected": "9c7b758b212cd0fcecd5daa489821712e3cdea4467b560ef5ddc24ab47749a1f1ffdbbb118f4e62fcfca3371b8fbfc5b0646b83e06bfbbab5fac30ea09ea2bc76f1ea568c9be0444b2cc90517b20ca825f2d0eccd88e7175538b85d90ab390183ca6395535d34473af6b5a5b88f5a59ee7561573337ea819da0dcc3573a22974"
-  },
-  {
-    "name": "1 with additional data",
-    "entropy": "f97a3cfd91faa046b9e61b9493d436c4931f604b22f1081521b3419151e8ff06",
-    "nonce": "11f3a7d43595357d58120bd1e2dd8aed",
-    "pers": null,
-    "add": [
-      "517289afe444a0fe5ed1a41dbbb5eb17150079bdd31e29cf2ff30034d8268e3b",
-      "88028d29ef80b4e6f0fe12f91d7449fe75062682e89c571440c0c9b52c42a6e0"
-    ],
-    "expected": "c6871cff0824fe55ea7689a52229886730450e5d362da5bf590dcf9acd67fed4cb32107df5d03969a66b1f6494fdf5d63d5b4d0d34ea7399a07d0116126d0d518c7c55ba46e12f62efc8fe28a51c9d428e6d371d7397ab319fc73ded4722e5b4f30004032a6128df5e7497ecf82ca7b0a50e867ef6728a4f509a8c859087039c"
-  },
-  {
-    "name": "2 with additional data",
-    "entropy": "0f2f23d64f481cabec7abb01db3aabf125c3173a044b9bf26844300b69dcac8b",
-    "nonce": "9a5ae13232b43aa19cfe8d7958b4b590",
-    "pers": null,
-    "add": [
-      "ec4c7a62acab73385f567da10e892ff395a0929f959231a5628188ce0c26e818",
-      "6b97b8c6b6bb8935e676c410c17caa8042aa3145f856d0a32b641e4ae5298648"
-    ],
-    "expected": "7480a361058bd9afa3db82c9d7586e42269102013f6ec5c269b6d05f17987847748684766b44918fd4b65e1648622fc0e0954178b0279dfc9fa99b66c6f53e51c4860131e9e0644287a4afe4ca8e480417e070db68008a97c3397e4b320b5d1a1d7e1d18a95cfedd7d1e74997052bf649d132deb9ec53aae7dafdab55e6dae93"
-  },
-  {
-    "name": "3 with additional data",
-    "entropy": "53c56660c78481be9c63284e005fcc14fbc7fb27732c9bf1366d01a426765a31",
-    "nonce": "dc7a14d0eb5b0b3534e717a0b3c64614",
-    "pers": null,
-    "add": [
-      "3aa848706ecb877f5bedf4ffc332d57c22e08747a47e75cff6f0fd1316861c95",
-      "9a401afa739b8f752fddacd291e0b854f5eff4a55b515e20cb319852189d3722"
-    ],
-    "expected": "5c0eb420e0bf41ce9323e815310e4e8303cd677a8a8b023f31f0d79f0ca15aeb636099a369fd074d69889865eac1b72ab3cbfebdb8cf460b00072802e2ec648b1349a5303be4ccaadd729f1a9ea17482fd026aaeb93f1602bc1404b9853adde40d6c34b844cf148bc088941ecfc1642c8c0b9778e45f3b07e06e21ee2c9e0300"
-  },
-  {
-    "name": "4 with additional data",
-    "entropy": "f63c804404902db334c54bb298fc271a21d7acd9f770278e089775710bf4fdd7",
-    "nonce": "3e45009ea9cb2a36ba1aa4bf39178200",
-    "pers": null,
-    "add": [
-      "d165a13dc8cc43f3f0952c3f5d3de4136954d983683d4a3e6d2dc4c89bf23423",
-      "75106bc86d0336df85097f6af8e80e2da59046a03fa65b06706b8bbc7ffc6785"
-    ],
-    "expected": "6363139bba32c22a0f5cd23ca6d437b5669b7d432f786b8af445471bee0b2d24c9d5f2f93717cbe00d1f010cc3b9c515fc9f7336d53d4d26ba5c0d76a90186663c8582eb739c7b6578a3328bf68dc2cec2cd89b3a90201f6993adcc854df0f5c6974d0f5570765a15fe03dbce28942dd2fd16ba2027e68abac83926969349af8"
-  },
-  {
-    "name": "5 with additional data",
-    "entropy": "2aaca9147da66c176615726b69e3e851cc3537f5f279fe7344233d8e44cfc99d",
-    "nonce": "4e171f080af9a6081bee9f183ac9e340",
-    "pers": null,
-    "add": [
-      "d75a2a6eb66c3833e50f5ec3d2e434cf791448d618026d0c360806d120ded669",
-      "b643b74c15b37612e6577ed7ca2a4c67a78d560af9eb50a4108fca742e87b8d6"
-    ],
-    "expected": "501dcdc977f4ba856f24eaa4968b374bebb3166b280334cb510232c31ebffde10fa47b7840ef3fe3b77725c2272d3a1d4219baf23e0290c622271edcced58838cf428f0517425d2e19e0d8c89377eecfc378245f283236fafa466c914b99672ceafab369e8889a0c866d8bd639db9fb797254262c6fd44cfa9045ad6340a60ef"
-  },
-  {
-    "name": "6 with additional data",
-    "entropy": "a2e4cd48a5cf918d6f55942d95fcb4e8465cdc4f77b7c52b6fae5b16a25ca306",
-    "nonce": "bef036716440db6e6d333d9d760b7ca8",
-    "pers": null,
-    "add": [
-      "bfa591c7287f3f931168f95e38869441d1f9a11035ad8ea625bb61b9ea17591c",
-      "c00c735463bca215adc372cb892b05e939bf669583341c06d4e31d0e5b363a37"
-    ],
-    "expected": "e7d136af69926a5421d4266ee0420fd729f2a4f7c295d3c966bdfa05268180b508b8a2852d1b3a06fd2ab3e13c54005123ef319f42d0c6d3a575e6e7e1496cb28aacadbcf83740fba8f35fcee04bb2ed8a51db3d3362b01094a62fb57e33c99a432f29fce6676cffbbcc05107e794e75e44a02d5e6d9d748c5fbff00a0178d65"
-  },
-  {
-    "name": "7 with additional data",
-    "entropy": "95a67771cba69011a79776e713145d309edae56fad5fd6d41d83eaff89df6e5e",
-    "nonce": "be5b5164e31ecc51ba6f7c3c5199eb33",
-    "pers": null,
-    "add": [
-      "065f693b229a7c4fd373cd15b3807552dd9bf98c5485cef361949d4e7d774b53",
-      "9afb62406f0e812c4f156d58b19a656c904813c1b4a45a0029ae7f50731f8014"
-    ],
-    "expected": "f61b61a6e79a41183e8ed6647899d2dc85cdaf5c3abf5c7f3bf37685946dc28f4923dc842f2d4326bd6ce0d50a84cb3ba869d72a36e246910eba6512ba36cd7ed3a5437c9245b00a344308c792b668b458d3c3e16dee2fbec41867da31084d46d8ec168de2148ef64fc5b72069abf5a6ada1ead2b7146bb793ff1c9c3690fa56"
-  },
-  {
-    "name": "8 with additional data",
-    "entropy": "a459e1815cbca4514ec8094d5ab2414a557ba6fe10e613c345338d0521e4bf90",
-    "nonce": "62221392e2552e76cd0d36df6e6068eb",
-    "pers": null,
-    "add": [
-      "0a3642b02b23b3ef62c701a63401124022f5b896de86dab6e6c7451497aa1dcc",
-      "c80514865901371c45ba92d9f95d50bb7c9dd1768cb3dfbc45b968da94965c6e"
-    ],
-    "expected": "464e6977b8adaef307c9623e41c357013249c9ffd77f405f3925cebb69f151ce8fbb6a277164002aee7858fc224f6499042aa1e6322deee9a5d133c31d640e12a7487c731ba03ad866a24675badb1d79220c40be689f79c2a0be93cb4dada3e0eac4ab140cb91998b6f11953e68f2319b050c40f71c34de9905ae41b2de1c2f6"
-  },
-  {
-    "name": "9 with additional data",
-    "entropy": "252c2cad613e002478162861880979ee4e323025eebb6fb2e0aa9f200e28e0a1",
-    "nonce": "d001bc9a8f2c8c242e4369df0c191989",
-    "pers": null,
-    "add": [
-      "9bcfc61cb2bc000034bb3db980eb47c76fb5ecdd40553eff113368d639b947fd",
-      "8b0565c767c2610ee0014582e9fbecb96e173005b60e9581503a6dca5637a26e"
-    ],
-    "expected": "e96c15fe8a60692b0a7d67171e0195ff6e1c87aab844221e71700d1bbee75feea695f6a740c9760bbe0e812ecf4061d8f0955bc0195e18c4fd1516ebca50ba6a6db86881737dbab8321707675479b87611db6af2c97ea361a5484555ead454defb1a64335de964fc803d40f3a6f057893d2afc25725754f4f00abc51920743dc"
-  },
-  {
-    "name": "10 with additional data",
-    "entropy": "8be0ca6adc8b3870c9d69d6021bc1f1d8eb9e649073d35ee6c5aa0b7e56ad8a5",
-    "nonce": "9d1265f7d51fdb65377f1e6edd6ae0e4",
-    "pers": null,
-    "add": [
-      "da86167ac997c406bb7979f423986a84ec6614d6caa7afc10aff0699a9b2cf7f",
-      "e4baa3c555950b53e2bfdba480cb4c94b59381bac1e33947e0c22e838a9534cf"
-    ],
-    "expected": "64384ecc4ea6b458efc227ca697eac5510092265520c0a0d8a0ccf9ed3ca9d58074671188c6a7ad16d0b050cdc072c125d7298d3a31d9f044a9ee40da0089a84fea28cc7f05f1716db952fad29a0e779635cb7a912a959be67be2f0a4170aace2981802e2ff6467e5b46f0ffbff3b42ba5935fd553c82482ac266acf1cd247d7"
-  },
-  {
-    "name": "11 with additional data",
-    "entropy": "d43a75b6adf26d60322284cb12ac38327792442aa8f040f60a2f331b33ac4a8f",
-    "nonce": "0682f8b091f811afacaacaec9b04d279",
-    "pers": null,
-    "add": [
-      "7fd3b8f512940da7de5d80199d9a7b42670c04a945775a3dba869546cbb9bc65",
-      "2575db20bc7aafc2a90a5dabab760db851d754777bc9f05616af1858b24ff3da"
-    ],
-    "expected": "0da7a8dc73c163014bf0841913d3067806456bbca6d5de92b85534c6545467313648d71ef17c923d090dc92cff8d4d1a9a2bb63e001dc2e8ab1a597999be3d6cf70ff63fee9985801395fbd4f4990430c4259fcae4fa1fcd73dc3187ccc102d04af7c07532885e5a226fc42809c48f22eecf4f6ab996ae4fcb144786957d9f41"
-  },
-  {
-    "name": "12 with additional data",
-    "entropy": "64352f236af5d32067a529a8fd05ba00a338c9de306371a0b00c36e610a48d18",
-    "nonce": "df99ed2c7608c870624b962a5dc68acd",
-    "pers": null,
-    "add": [
-      "da416335e7aaf60cf3d06fb438735ce796aad09034f8969c8f8c3f81e32fef24",
-      "a28c07c21a2297311adf172c19e83ca0a87731bdffb80548978d2d1cd82cf8a3"
-    ],
-    "expected": "132b9f25868729e3853d3c51f99a3b5fae6d4204bea70890daf62e042b776a526c8fb831b80a6d5d3f153237df1fd39b6fd9137963f5516d9cdd4e3f9195c46e9972c15d3edc6606e3368bde1594977fb88d0ca6e6f5f3d057ccadc7d7dab77dfc42658a1e972aa446b20d418286386a52dfc1c714d2ac548713268b0b709729"
-  },
-  {
-    "name": "13 with additional data",
-    "entropy": "282f4d2e05a2cd30e9087f5633089389449f04bac11df718c90bb351cd3653a5",
-    "nonce": "90a7daf3c0de9ea286081efc4a684dfb",
-    "pers": null,
-    "add": [
-      "2630b4ccc7271cc379cb580b0aaede3d3aa8c1c7ba002cf791f0752c3d739007",
-      "c31d69de499f1017be44e3d4fa77ecebc6a9b9934749fcf136f267b29115d2cc"
-    ],
-    "expected": "c899094520e0197c37b91dd50778e20a5b950decfb308d39f1db709447ae48f6101d9abe63a783fbb830eec1d359a5f61a2013728966d349213ee96382614aa4135058a967627183810c6622a2158cababe3b8ab99169c89e362108bf5955b4ffc47440f87e4bad0d36bc738e737e072e64d8842e7619f1be0af1141f05afe2d"
-  },
-  {
-    "name": "14 with additional data",
-    "entropy": "13c752b9e745ce77bbc7c0dbda982313d3fe66f903e83ebd8dbe4ff0c11380e9",
-    "nonce": "f1a533095d6174164bd7c82532464ae7",
-    "pers": null,
-    "add": [
-      "4f53db89b9ba7fc00767bc751fb8f3c103fe0f76acd6d5c7891ab15b2b7cf67c",
-      "582c2a7d34679088cca6bd28723c99aac07db46c332dc0153d1673256903b446"
-    ],
-    "expected": "6311f4c0c4cd1f86bd48349abb9eb930d4f63df5e5f7217d1d1b91a71d8a6938b0ad2b3e897bd7e3d8703db125fab30e03464fad41e5ddf5bf9aeeb5161b244468cfb26a9d956931a5412c97d64188b0da1bd907819c686f39af82e91cfeef0cbffb5d1e229e383bed26d06412988640706815a6e820796876f416653e464961"
-  }
-]

+ 0 - 21
node_modules.bak/homedir-polyfill/LICENSE

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016 Brian Woodward
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 96
node_modules.bak/homedir-polyfill/README.md


+ 0 - 9
node_modules.bak/homedir-polyfill/index.js

@@ -1,9 +0,0 @@
-'use strict';
-
-var os = require('os');
-if (typeof os.homedir !== 'undefined') {
-  module.exports = os.homedir;
-} else {
-  module.exports = require('./polyfill.js');
-}
-

+ 0 - 94
node_modules.bak/homedir-polyfill/package.json

@@ -1,94 +0,0 @@
-{
-  "_from": "homedir-polyfill@^1.0.1",
-  "_id": "homedir-polyfill@1.0.3",
-  "_inBundle": false,
-  "_integrity": "sha1-dDKYzvTlrz4ZQWH7rcwhUdOgWOg=",
-  "_location": "/homedir-polyfill",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "homedir-polyfill@^1.0.1",
-    "name": "homedir-polyfill",
-    "escapedName": "homedir-polyfill",
-    "rawSpec": "^1.0.1",
-    "saveSpec": null,
-    "fetchSpec": "^1.0.1"
-  },
-  "_requiredBy": [
-    "/expand-tilde",
-    "/global-prefix"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/homedir-polyfill/download/homedir-polyfill-1.0.3.tgz",
-  "_shasum": "743298cef4e5af3e194161fbadcc2151d3a058e8",
-  "_spec": "homedir-polyfill@^1.0.1",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\expand-tilde",
-  "author": {
-    "name": "Brian Woodward",
-    "url": "https://github.com/doowb"
-  },
-  "bugs": {
-    "url": "https://github.com/doowb/homedir-polyfill/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "parse-passwd": "^1.0.0"
-  },
-  "deprecated": false,
-  "description": "Node.js os.homedir polyfill for older versions of node.js.",
-  "devDependencies": {
-    "gulp-format-md": "^0.1.11",
-    "mocha": "^3.1.2"
-  },
-  "engines": {
-    "node": ">=0.10.0"
-  },
-  "files": [
-    "index.js",
-    "polyfill.js",
-    "LICENSE"
-  ],
-  "homepage": "https://github.com/doowb/homedir-polyfill",
-  "keywords": [
-    "home",
-    "homedir",
-    "homedirectory",
-    "os",
-    "os-homedir",
-    "polyfill",
-    "userhome"
-  ],
-  "license": "MIT",
-  "main": "index.js",
-  "name": "homedir-polyfill",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/doowb/homedir-polyfill.git"
-  },
-  "scripts": {
-    "test": "mocha"
-  },
-  "verb": {
-    "toc": false,
-    "layout": "default",
-    "tasks": [
-      "readme"
-    ],
-    "plugins": [
-      "gulp-format-md"
-    ],
-    "lint": {
-      "reflinks": true
-    },
-    "related": {
-      "list": [
-        "parse-passwd"
-      ]
-    },
-    "reflinks": [
-      "verb",
-      "verb-generate-readme"
-    ]
-  },
-  "version": "1.0.3"
-}

+ 0 - 81
node_modules.bak/homedir-polyfill/polyfill.js

@@ -1,81 +0,0 @@
-'use strict';
-
-var fs = require('fs');
-var parse = require('parse-passwd');
-
-function homedir() {
-  // The following logic is from looking at logic used in the different platform
-  // versions of the uv_os_homedir function found in https://github.com/libuv/libuv
-  // This is the function used in modern versions of node.js
-
-  if (process.platform === 'win32') {
-    // check the USERPROFILE first
-    if (process.env.USERPROFILE) {
-      return process.env.USERPROFILE;
-    }
-
-    // check HOMEDRIVE and HOMEPATH
-    if (process.env.HOMEDRIVE && process.env.HOMEPATH) {
-      return process.env.HOMEDRIVE + process.env.HOMEPATH;
-    }
-
-    // fallback to HOME
-    if (process.env.HOME) {
-      return process.env.HOME;
-    }
-
-    return null;
-  }
-
-  // check HOME environment variable first
-  if (process.env.HOME) {
-    return process.env.HOME;
-  }
-
-  // on linux platforms (including OSX) find the current user and get their homedir from the /etc/passwd file
-  var passwd = tryReadFileSync('/etc/passwd');
-  var home = find(parse(passwd), getuid());
-  if (home) {
-    return home;
-  }
-
-  // fallback to using user environment variables
-  var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
-
-  if (!user) {
-    return null;
-  }
-
-  if (process.platform === 'darwin') {
-    return '/Users/' + user;
-  }
-
-  return '/home/' + user;
-}
-
-function find(arr, uid) {
-  var len = arr.length;
-  for (var i = 0; i < len; i++) {
-    if (+arr[i].uid === uid) {
-      return arr[i].homedir;
-    }
-  }
-}
-
-function getuid() {
-  if (typeof process.geteuid === 'function') {
-    return process.geteuid();
-  }
-  return process.getuid();
-}
-
-function tryReadFileSync(fp) {
-  try {
-    return fs.readFileSync(fp, 'utf8');
-  } catch (err) {
-    return '';
-  }
-}
-
-module.exports = homedir;
-

+ 0 - 2
node_modules.bak/hpack.js/.npmignore

@@ -1,2 +0,0 @@
-node_modules/
-npm-debug.log

+ 0 - 6
node_modules.bak/hpack.js/.travis.yml

@@ -1,6 +0,0 @@
-language: node_js
-node_js:
-  - "iojs"
-branches:
-  only:
-    - master

+ 0 - 52
node_modules.bak/hpack.js/README.md

@@ -1,52 +0,0 @@
-# HPACK.js
-
-[![Build Status](https://secure.travis-ci.org/indutny/hpack.js.png)](http://travis-ci.org/indutny/hpack.js)
-[![NPM version](https://badge.fury.io/js/hpack.js.svg)](http://badge.fury.io/js/hpack.js)
-
-Plain-JS implementation of [HPACK][0].
-
-## Usage
-
-```javascript
-var hpack = require('hpack.js');
-
-var comp = hpack.compressor.create({ table: { size: 256 } });
-var decomp = hpack.decompressor.create({ table: { size: 256 } });
-
-comp.write([ { name: 'host', value: 'localhost' } ]);
-var raw = comp.read();
-console.log(raw);
-// <Buffer 66 86 a0 e4 1d 13 9d 09>
-
-decomp.write(raw);
-decomp.execute();
-console.log(decomp.read());
-// { name: 'host', value: 'localhost', neverIndex: false }
-```
-
-#### LICENSE
-
-This software is licensed under the MIT License.
-
-Copyright Fedor Indutny, 2015.
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to permit
-persons to whom the Software is furnished to do so, subject to the
-following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-[0]: https://tools.ietf.org/html/rfc7541

+ 0 - 34
node_modules.bak/hpack.js/bin/benchmark

@@ -1,34 +0,0 @@
-#!/usr/bin/env node
-var hpack = require('../');
-
-var options = {
-  table: { size: 1024 }
-};
-
-var compressor = hpack.compressor.create(options);
-
-var vector = [];
-for (var i = 0; i < 1024; i++) {
-  vector.push({
-    name: 'kind-of-big-header-name__',
-    value: 'not-so-small value yes!',
-    huffman: true,
-    neverIndex: true
-  });
-}
-compressor.write(vector);
-var input = compressor.read();
-
-console.time('decompressor');
-for (var i = 0; i < 2000; i++) {
-  var decompressor = hpack.decompressor.create(options);
-
-  decompressor.write(input);
-  decompressor.execute();
-  while (true) {
-    var chunk = decompressor.read();
-    if (!chunk)
-      break;
-  }
-}
-console.timeEnd('decompressor');

+ 0 - 12
node_modules.bak/hpack.js/lib/hpack.js

@@ -1,12 +0,0 @@
-var hpack = exports;
-
-hpack.utils = require('./hpack/utils');
-hpack.huffman = require('./hpack/huffman');
-hpack['static-table'] = require('./hpack/static-table');
-hpack.table = require('./hpack/table');
-
-hpack.decoder = require('./hpack/decoder');
-hpack.decompressor = require('./hpack/decompressor');
-
-hpack.encoder = require('./hpack/encoder');
-hpack.compressor = require('./hpack/compressor');

+ 0 - 127
node_modules.bak/hpack.js/lib/hpack/compressor.js

@@ -1,127 +0,0 @@
-var hpack = require('../hpack');
-var utils = hpack.utils;
-var encoder = hpack.encoder;
-var table = hpack.table;
-var assert = utils.assert;
-
-var inherits = require('inherits');
-var Duplex = require('readable-stream').Duplex;
-
-function Compressor(options) {
-  Duplex.call(this, {
-    writableObjectMode: true
-  });
-
-  this._encoder = null;
-  this._table = table.create(options.table);
-}
-inherits(Compressor, Duplex);
-module.exports = Compressor;
-
-Compressor.create = function create(options) {
-  return new Compressor(options);
-};
-
-Compressor.prototype._read = function _read() {
-  // We only push!
-};
-
-Compressor.prototype._write = function _write(data, enc, cb) {
-  assert(Array.isArray(data), 'Compressor.write() expects list of headers');
-
-  this._encoder = encoder.create();
-  for (var i = 0; i < data.length; i++)
-    this._encodeHeader(data[i]);
-
-  var data = this._encoder.render();
-  this._encoder = null;
-
-  cb(null);
-  for (var i = 0; i < data.length; i++)
-    this.push(data[i]);
-};
-
-Compressor.prototype.updateTableSize = function updateTableSize(size) {
-  if (size >= this._table.protocolMaxSize) {
-    size = this._table.protocolMaxSize;
-
-    var enc = encoder.create();
-
-    // indexed = 0
-    // incremental = 0
-    // update = 1
-    enc.encodeBits(1, 3);
-    enc.encodeInt(size);
-
-    var data = enc.render();
-    for (var i = 0; i < data.length; i++)
-      this.push(data[i]);
-  }
-
-  this._table.updateSize(size);
-};
-
-Compressor.prototype.reset = function reset() {
-  var enc = encoder.create();
-  var size = this._table.maxSize;
-
-  // indexed = 0
-  // incremental = 0
-  // update = 1
-  enc.encodeBits(1, 3);
-  enc.encodeInt(0);
-
-  // Evict everything
-  this._table.updateSize(0);
-
-  // indexed = 0
-  // incremental = 0
-  // update = 1
-  enc.encodeBits(1, 3);
-  enc.encodeInt(size);
-
-  // Revert size
-  this._table.updateSize(size);
-
-  var data = enc.render();
-  for (var i = 0; i < data.length; i++)
-    this.push(data[i]);
-};
-
-Compressor.prototype._encodeHeader = function _encodeHeader(header) {
-  if (header.neverIndex) {
-    var index = 0;
-    var neverIndex = 1;
-    var isIndexed = 0;
-    var isIncremental = 0;
-  } else {
-    var index = this._table.reverseLookup(header.name, header.value);
-    var isIndexed = index > 0;
-    var isIncremental = header.incremental !== false;
-    var neverIndex = 0;
-  }
-
-  this._encoder.encodeBit(isIndexed);
-  if (isIndexed) {
-    this._encoder.encodeInt(index);
-    return;
-  }
-
-  var name = utils.toArray(header.name);
-  var value = utils.toArray(header.value);
-
-  this._encoder.encodeBit(isIncremental);
-  if (isIncremental) {
-    this._table.add(header.name, header.value, name.length, value.length);
-  } else {
-    // Update = false
-    this._encoder.encodeBit(0);
-    this._encoder.encodeBit(neverIndex);
-  }
-
-  // index is negative for `name`-only headers
-  this._encoder.encodeInt(-index);
-  if (index === 0)
-    this._encoder.encodeStr(name, header.huffman !== false);
-  this._encoder.encodeStr(value, header.huffman !== false);
-};

+ 0 - 169
node_modules.bak/hpack.js/lib/hpack/decoder.js

@@ -1,169 +0,0 @@
-var hpack = require('../hpack');
-var utils = hpack.utils;
-var huffman = hpack.huffman.decode;
-var assert = utils.assert;
-
-var OffsetBuffer = require('obuf');
-
-function Decoder() {
-  this.buffer = new OffsetBuffer();
-  this.bitOffset = 0;
-
-  // Used internally in decodeStr
-  this._huffmanNode = null;
-}
-module.exports = Decoder;
-
-Decoder.create = function create() {
-  return new Decoder();
-};
-
-Decoder.prototype.isEmpty = function isEmpty() {
-  return this.buffer.isEmpty();
-};
-
-Decoder.prototype.push = function push(chunk) {
-  this.buffer.push(chunk);
-};
-
-Decoder.prototype.decodeBit = function decodeBit() {
-  // Need at least one octet
-  assert(this.buffer.has(1), 'Buffer too small for an int');
-
-  var octet;
-  var offset = this.bitOffset;
-
-  if (++this.bitOffset === 8) {
-    octet = this.buffer.readUInt8();
-    this.bitOffset = 0;
-  } else {
-    octet = this.buffer.peekUInt8();
-  }
-  return (octet >>> (7 - offset)) & 1;
-};
-
-// Just for testing
-Decoder.prototype.skipBits = function skipBits(n) {
-  this.bitOffset += n;
-  this.buffer.skip(this.bitOffset >> 3);
-  this.bitOffset &= 0x7;
-};
-
-Decoder.prototype.decodeInt = function decodeInt() {
-  // Need at least one octet
-  assert(this.buffer.has(1), 'Buffer too small for an int');
-
-  var prefix = 8 - this.bitOffset;
-
-  // We are going to end up octet-aligned
-  this.bitOffset = 0;
-
-  var max = (1 << prefix) - 1;
-  var octet = this.buffer.readUInt8() & max;
-
-  // Fast case - int fits into the prefix
-  if (octet !== max)
-    return octet;
-
-  // TODO(indutny): what about > 32bit numbers?
-  var res = 0;
-  var isLast = false;
-  var len = 0;
-  do {
-    octet = this.buffer.readUInt8();
-    isLast = (octet & 0x80) === 0;
-
-    res <<= 7;
-    res |= octet & 0x7f;
-    len++;
-  } while (!isLast);
-  assert(isLast, 'Incomplete data for multi-octet integer');
-  assert(len <= 4, 'Integer does not fit into 32 bits');
-
-  // Reverse bits
-  res = (res >>> 21) |
-        (((res >> 14) & 0x7f) << 7) |
-        (((res >> 7) & 0x7f) << 14) |
-        ((res & 0x7f) << 21);
-  res >>= (4 - len) * 7;
-
-  // Append prefix max
-  res += max;
-
-  return res;
-};
-
-Decoder.prototype.decodeHuffmanWord = function decodeHuffmanWord(input,
-                                                                 inputBits,
-                                                                 out) {
-  var root = huffman;
-  var node = this._huffmanNode;
-  var word = input;
-  var bits = inputBits;
-
-  for (; bits > 0; word &= (1 << bits) - 1) {
-    // Nudge the word bit length to match it
-    for (var i = Math.max(0, bits - 8); i < bits; i++) {
-      var subnode = node[word >>> i];
-      if (typeof subnode !== 'number') {
-        node = subnode;
-        bits = i;
-        break;
-      }
-
-      if (subnode === 0)
-        continue;
-
-      // Word bit length should match
-      if ((subnode >>> 9) !== bits - i) {
-        subnode = 0;
-        continue;
-      }
-
-      var octet = subnode & 0x1ff;
-      assert(octet !== 256, 'EOS in encoding');
-      out.push(octet);
-      node = root;
-
-      bits = i;
-      break;
-    }
-    if (subnode === 0)
-      break;
-  }
-  this._huffmanNode = node;
-
-  return bits;
-};
-
-Decoder.prototype.decodeStr = function decodeStr() {
-  var isHuffman = this.decodeBit();
-  var len = this.decodeInt();
-  assert(this.buffer.has(len), 'Not enough octets for string');
-
-  if (!isHuffman)
-    return this.buffer.take(len);
-
-  this._huffmanNode = huffman;
-
-  var out = [];
-
-  var word = 0;
-  var bits = 0;
-  var lastKey = 0;
-  for (var i = 0; i < len; i++) {
-    word <<= 8;
-    word |= this.buffer.readUInt8();
-    bits += 8;
-
-    bits = this.decodeHuffmanWord(word, bits, out);
-    lastKey = word >> bits;
-    word &= (1 << bits) - 1;
-  }
-  assert(this._huffmanNode === huffman, '8-bit EOS');
-  assert(word + 1 === (1 << bits), 'Final sequence is not EOS');
-
-  this._huffmanNode = null;
-
-  return out;
-};

+ 0 - 116
node_modules.bak/hpack.js/lib/hpack/decompressor.js

@@ -1,116 +0,0 @@
-var hpack = require('../hpack');
-var utils = hpack.utils;
-var decoder = hpack.decoder;
-var table = hpack.table;
-var assert = utils.assert;
-
-var inherits = require('inherits');
-var Duplex = require('readable-stream').Duplex;
-
-function Decompressor(options) {
-  Duplex.call(this, {
-    readableObjectMode: true
-  });
-
-  this._decoder = decoder.create();
-  this._table = table.create(options.table);
-}
-inherits(Decompressor, Duplex);
-module.exports = Decompressor;
-
-Decompressor.create = function create(options) {
-  return new Decompressor(options);
-};
-
-Decompressor.prototype._read = function _read() {
-  // We only push!
-};
-
-Decompressor.prototype._write = function _write(data, enc, cb) {
-  this._decoder.push(data);
-
-  cb(null);
-};
-
-Decompressor.prototype.execute = function execute(cb) {
-  while (!this._decoder.isEmpty()) {
-    try {
-      this._execute();
-    } catch (err) {
-      if (cb)
-        return done(err);
-      else
-        return this.emit('error', err);
-    }
-  }
-
-  if (cb)
-    done(null);
-
-  function done(err) {
-    process.nextTick(function() {
-      cb(err);
-    });
-  }
-};
-
-Decompressor.prototype.updateTableSize = function updateTableSize(size) {
-  this._table.updateSize(size);
-};
-
-Decompressor.prototype._execute = function _execute() {
-  var isIndexed = this._decoder.decodeBit();
-  if (isIndexed)
-    return this._processIndexed();
-
-  var isIncremental = this._decoder.decodeBit();
-  var neverIndex = 0;
-  if (!isIncremental) {
-    var isUpdate = this._decoder.decodeBit();
-    if (isUpdate)
-      return this._processUpdate();
-
-    neverIndex = this._decoder.decodeBit();
-  }
-
-  this._processLiteral(isIncremental, neverIndex);
-};
-
-Decompressor.prototype._processIndexed = function _processIndexed() {
-  var index = this._decoder.decodeInt();
-
-  var lookup = this._table.lookup(index);
-  this.push({ name: lookup.name, value: lookup.value, neverIndex: false });
-};
-
-Decompressor.prototype._processLiteral = function _processLiteral(inc, never) {
-  var index = this._decoder.decodeInt();
-
-  var name;
-  var nameSize;
-
-  // Literal header-name too
-  if (index === 0) {
-    name = this._decoder.decodeStr();
-    nameSize = name.length;
-    name = utils.stringify(name);
-  } else {
-    var lookup = this._table.lookup(index);
-    nameSize = lookup.nameSize;
-    name = lookup.name;
-  }
-
-  var value = this._decoder.decodeStr();
-  var valueSize = value.length;
-  value = utils.stringify(value);
-
-  if (inc)
-    this._table.add(name, value, nameSize, valueSize);
-
-  this.push({ name: name, value: value, neverIndex: never !== 0});
-};
-
-Decompressor.prototype._processUpdate = function _processUpdate() {
-  var size = this._decoder.decodeInt();
-  this.updateTableSize(size);
-};

+ 0 - 129
node_modules.bak/hpack.js/lib/hpack/encoder.js

@@ -1,129 +0,0 @@
-var hpack = require('../hpack');
-var utils = hpack.utils;
-var huffman = hpack.huffman.encode;
-var assert = utils.assert;
-
-var WBuf = require('wbuf');
-
-function Encoder() {
-  this.buffer = new WBuf();
-  this.word = 0;
-  this.bitOffset = 0;
-}
-module.exports = Encoder;
-
-Encoder.create = function create() {
-  return new Encoder();
-};
-
-Encoder.prototype.render = function render() {
-  return this.buffer.render();
-};
-
-Encoder.prototype.encodeBit = function encodeBit(bit) {
-  var octet;
-
-  this.word <<= 1;
-  this.word |= bit;
-  this.bitOffset++;
-
-  if (this.bitOffset === 8) {
-    this.buffer.writeUInt8(this.word);
-    this.word = 0;
-    this.bitOffset = 0;
-  }
-};
-
-Encoder.prototype.encodeBits = function encodeBits(bits, len) {
-  var left = bits;
-  var leftLen = len;
-
-  while (leftLen > 0) {
-    var avail = Math.min(leftLen, 8 - this.bitOffset);
-    var toWrite = left >>> (leftLen - avail);
-
-    if (avail === 8) {
-      this.buffer.writeUInt8(toWrite);
-    } else {
-      this.word <<= avail;
-      this.word |= toWrite;
-      this.bitOffset += avail;
-      if (this.bitOffset === 8) {
-        this.buffer.writeUInt8(this.word);
-        this.word = 0;
-        this.bitOffset = 0;
-      }
-    }
-
-    leftLen -= avail;
-    left &= (1 << leftLen) - 1;
-  }
-};
-
-// Just for testing
-Encoder.prototype.skipBits = function skipBits(num) {
-  this.bitOffset += num;
-  this.buffer.skip(this.bitOffset >> 3);
-  this.bitOffset &= 0x7;
-};
-
-Encoder.prototype.encodeInt = function encodeInt(num) {
-  var prefix = 8 - this.bitOffset;
-
-  // We are going to end up octet-aligned
-  this.bitOffset = 0;
-
-  var max = (1 << prefix) - 1;
-
-  // Fast case - int fits into the prefix
-  if (num < max) {
-    this.buffer.writeUInt8((this.word << prefix) | num);
-    return octet;
-  }
-
-  var left = num - max;
-  this.buffer.writeUInt8((this.word << prefix) | max);
-  do {
-    var octet = left & 0x7f;
-    left >>= 7;
-    if (left !== 0)
-      octet |= 0x80;
-
-    this.buffer.writeUInt8(octet);
-  } while (left !== 0);
-};
-
-Encoder.prototype.encodeStr = function encodeStr(value, isHuffman) {
-  this.encodeBit(isHuffman ? 1 : 0);
-
-  if (!isHuffman) {
-    this.buffer.reserve(value.length + 1);
-    this.encodeInt(value.length);
-    for (var i = 0; i < value.length; i++)
-      this.buffer.writeUInt8(value[i]);
-    return;
-  }
-
-  var codes = [];
-  var len = 0;
-  var pad = 0;
-
-  for (var i = 0; i < value.length; i++) {
-    var code = huffman[value[i]];
-    codes.push(code);
-    len += code[0];
-  }
-  if (len % 8 !== 0)
-    pad = 8 - (len % 8);
-  len += pad;
-
-  this.buffer.reserve((len / 8) + 1);
-  this.encodeInt(len / 8);
-  for (var i = 0; i < codes.length; i++) {
-    var code = codes[i];
-    this.encodeBits(code[1], code[0]);
-  }
-
-  // Append padding
-  this.encodeBits(0xff >>> (8 - pad), pad);
-};

+ 0 - 159
node_modules.bak/hpack.js/lib/hpack/huffman.js

@@ -1,159 +0,0 @@
-exports.decode =
-    [2608,2609,2610,2657,2659,2661,2665,2671,2675,2676,0,0,0,0,0,0,0,0,0,0,
-    3104,3109,3117,3118,3119,3123,3124,3125,3126,3127,3128,3129,3133,3137,3167,
-    3170,3172,3174,3175,3176,3180,3181,3182,3184,3186,3189,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    3642,3650,3651,3652,3653,3654,3655,3656,3657,3658,3659,3660,3661,3662,3663,
-    3664,3665,3666,3667,3668,3669,3670,3671,3673,3690,3691,3697,3702,3703,3704,
-    3705,3706,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4134,4138,4140,4155,4184,4186,[1057,
-    1058,1064,1065,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
-    [1087,0,1575,1579,1660,0,0,0,0,0,2083,2110,0,0,0,0,0,0,0,0,0,0,0,0,2560,
-    2596,2624,2651,2653,2686,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,3166,3197,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3644,
-    3680,3707,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[1628,1731,1744,0,0,0,2176,2178,
-    2179,2210,2232,2242,2272,2274,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2713,2721,2727,
-    2732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0],[2736,2737,2739,2769,2776,2777,2787,2789,2790,0,0,0,0,0,0,0,0,0,
-    3201,3204,3205,3206,3208,3218,3226,3228,3232,3235,3236,3241,3242,3245,3250,
-    3253,3257,3258,3259,3261,3262,3268,3270,3300,3304,3305,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3585,
-    3719,3721,3722,3723,3724,3725,3727,3731,3733,3734,3735,3736,3739,3741,3742,
-    3749,3750,3752,3758,3759,3764,3766,3767,3772,3775,3781,3815,3823,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,4105,4238,4240,4241,4244,4255,4267,4302,4311,4321,4332,4333,[711,719,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[746,747,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[1216,1217,
-    1224,1225,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
-    [1226,1229,1234,1237,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0],[1242,1243,1262,1264,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0],[1266,1267,1279,0,0,0,1739,1740,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0],[1747,1748,1750,1757,1758,1759,1777,1780,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[1781,1782,1783,1784,1786,
-    1787,1788,1789,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[1790,0,
-    2050,2051,2052,2053,2054,2055,2056,2059,2060,2062,2063,2064,2065,2066,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2067,2068,2069,2071,2072,2073,2074,2075,
-    2076,2077,2078,2079,2175,2268,2297,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3082,3085,3094,3328,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-    0,0,0,0,0]]]];
-exports.encode =
-    [[13,8184],[23,8388568],[28,268435426],[28,268435427],[28,268435428],[28,
-    268435429],[28,268435430],[28,268435431],[28,268435432],[24,16777194],[30,
-    1073741820],[28,268435433],[28,268435434],[30,1073741821],[28,268435435],
-    [28,268435436],[28,268435437],[28,268435438],[28,268435439],[28,268435440],
-    [28,268435441],[28,268435442],[30,1073741822],[28,268435443],[28,
-    268435444],[28,268435445],[28,268435446],[28,268435447],[28,268435448],[28,
-    268435449],[28,268435450],[28,268435451],[6,20],[10,1016],[10,1017],[12,
-    4090],[13,8185],[6,21],[8,248],[11,2042],[10,1018],[10,1019],[8,249],[11,
-    2043],[8,250],[6,22],[6,23],[6,24],[5,0],[5,1],[5,2],[6,25],[6,26],[6,27],
-    [6,28],[6,29],[6,30],[6,31],[7,92],[8,251],[15,32764],[6,32],[12,4091],[10,
-    1020],[13,8186],[6,33],[7,93],[7,94],[7,95],[7,96],[7,97],[7,98],[7,99],[7,
-    100],[7,101],[7,102],[7,103],[7,104],[7,105],[7,106],[7,107],[7,108],[7,
-    109],[7,110],[7,111],[7,112],[7,113],[7,114],[8,252],[7,115],[8,253],[13,
-    8187],[19,524272],[13,8188],[14,16380],[6,34],[15,32765],[5,3],[6,35],[5,
-    4],[6,36],[5,5],[6,37],[6,38],[6,39],[5,6],[7,116],[7,117],[6,40],[6,41],
-    [6,42],[5,7],[6,43],[7,118],[6,44],[5,8],[5,9],[6,45],[7,119],[7,120],[7,
-    121],[7,122],[7,123],[15,32766],[11,2044],[14,16381],[13,8189],[28,
-    268435452],[20,1048550],[22,4194258],[20,1048551],[20,1048552],[22,
-    4194259],[22,4194260],[22,4194261],[23,8388569],[22,4194262],[23,8388570],
-    [23,8388571],[23,8388572],[23,8388573],[23,8388574],[24,16777195],[23,
-    8388575],[24,16777196],[24,16777197],[22,4194263],[23,8388576],[24,
-    16777198],[23,8388577],[23,8388578],[23,8388579],[23,8388580],[21,2097116],
-    [22,4194264],[23,8388581],[22,4194265],[23,8388582],[23,8388583],[24,
-    16777199],[22,4194266],[21,2097117],[20,1048553],[22,4194267],[22,4194268],
-    [23,8388584],[23,8388585],[21,2097118],[23,8388586],[22,4194269],[22,
-    4194270],[24,16777200],[21,2097119],[22,4194271],[23,8388587],[23,8388588],
-    [21,2097120],[21,2097121],[22,4194272],[21,2097122],[23,8388589],[22,
-    4194273],[23,8388590],[23,8388591],[20,1048554],[22,4194274],[22,4194275],
-    [22,4194276],[23,8388592],[22,4194277],[22,4194278],[23,8388593],[26,
-    67108832],[26,67108833],[20,1048555],[19,524273],[22,4194279],[23,8388594],
-    [22,4194280],[25,33554412],[26,67108834],[26,67108835],[26,67108836],[27,
-    134217694],[27,134217695],[26,67108837],[24,16777201],[25,33554413],[19,
-    524274],[21,2097123],[26,67108838],[27,134217696],[27,134217697],[26,
-    67108839],[27,134217698],[24,16777202],[21,2097124],[21,2097125],[26,
-    67108840],[26,67108841],[28,268435453],[27,134217699],[27,134217700],[27,
-    134217701],[20,1048556],[24,16777203],[20,1048557],[21,2097126],[22,
-    4194281],[21,2097127],[21,2097128],[23,8388595],[22,4194282],[22,4194283],
-    [25,33554414],[25,33554415],[24,16777204],[24,16777205],[26,67108842],[23,
-    8388596],[26,67108843],[27,134217702],[26,67108844],[26,67108845],[27,
-    134217703],[27,134217704],[27,134217705],[27,134217706],[27,134217707],[28,
-    268435454],[27,134217708],[27,134217709],[27,134217710],[27,134217711],[27,
-    134217712],[26,67108846],[30,1073741823]];

+ 0 - 691
node_modules.bak/hpack.js/lib/hpack/static-table.js

@@ -1,691 +0,0 @@
-exports.table = [
-  {
-    "name": ":authority",
-    "value": "",
-    "nameSize": 10,
-    "totalSize": 42
-  },
-  {
-    "name": ":method",
-    "value": "GET",
-    "nameSize": 7,
-    "totalSize": 42
-  },
-  {
-    "name": ":method",
-    "value": "POST",
-    "nameSize": 7,
-    "totalSize": 43
-  },
-  {
-    "name": ":path",
-    "value": "/",
-    "nameSize": 5,
-    "totalSize": 38
-  },
-  {
-    "name": ":path",
-    "value": "/index.html",
-    "nameSize": 5,
-    "totalSize": 48
-  },
-  {
-    "name": ":scheme",
-    "value": "http",
-    "nameSize": 7,
-    "totalSize": 43
-  },
-  {
-    "name": ":scheme",
-    "value": "https",
-    "nameSize": 7,
-    "totalSize": 44
-  },
-  {
-    "name": ":status",
-    "value": "200",
-    "nameSize": 7,
-    "totalSize": 42
-  },
-  {
-    "name": ":status",
-    "value": "204",
-    "nameSize": 7,
-    "totalSize": 42
-  },
-  {
-    "name": ":status",
-    "value": "206",
-    "nameSize": 7,
-    "totalSize": 42
-  },
-  {
-    "name": ":status",
-    "value": "304",
-    "nameSize": 7,
-    "totalSize": 42
-  },
-  {
-    "name": ":status",
-    "value": "400",
-    "nameSize": 7,
-    "totalSize": 42
-  },
-  {
-    "name": ":status",
-    "value": "404",
-    "nameSize": 7,
-    "totalSize": 42
-  },
-  {
-    "name": ":status",
-    "value": "500",
-    "nameSize": 7,
-    "totalSize": 42
-  },
-  {
-    "name": "accept-charset",
-    "value": "",
-    "nameSize": 14,
-    "totalSize": 46
-  },
-  {
-    "name": "accept-encoding",
-    "value": "gzip, deflate",
-    "nameSize": 15,
-    "totalSize": 60
-  },
-  {
-    "name": "accept-language",
-    "value": "",
-    "nameSize": 15,
-    "totalSize": 47
-  },
-  {
-    "name": "accept-ranges",
-    "value": "",
-    "nameSize": 13,
-    "totalSize": 45
-  },
-  {
-    "name": "accept",
-    "value": "",
-    "nameSize": 6,
-    "totalSize": 38
-  },
-  {
-    "name": "access-control-allow-origin",
-    "value": "",
-    "nameSize": 27,
-    "totalSize": 59
-  },
-  {
-    "name": "age",
-    "value": "",
-    "nameSize": 3,
-    "totalSize": 35
-  },
-  {
-    "name": "allow",
-    "value": "",
-    "nameSize": 5,
-    "totalSize": 37
-  },
-  {
-    "name": "authorization",
-    "value": "",
-    "nameSize": 13,
-    "totalSize": 45
-  },
-  {
-    "name": "cache-control",
-    "value": "",
-    "nameSize": 13,
-    "totalSize": 45
-  },
-  {
-    "name": "content-disposition",
-    "value": "",
-    "nameSize": 19,
-    "totalSize": 51
-  },
-  {
-    "name": "content-encoding",
-    "value": "",
-    "nameSize": 16,
-    "totalSize": 48
-  },
-  {
-    "name": "content-language",
-    "value": "",
-    "nameSize": 16,
-    "totalSize": 48
-  },
-  {
-    "name": "content-length",
-    "value": "",
-    "nameSize": 14,
-    "totalSize": 46
-  },
-  {
-    "name": "content-location",
-    "value": "",
-    "nameSize": 16,
-    "totalSize": 48
-  },
-  {
-    "name": "content-range",
-    "value": "",
-    "nameSize": 13,
-    "totalSize": 45
-  },
-  {
-    "name": "content-type",
-    "value": "",
-    "nameSize": 12,
-    "totalSize": 44
-  },
-  {
-    "name": "cookie",
-    "value": "",
-    "nameSize": 6,
-    "totalSize": 38
-  },
-  {
-    "name": "date",
-    "value": "",
-    "nameSize": 4,
-    "totalSize": 36
-  },
-  {
-    "name": "etag",
-    "value": "",
-    "nameSize": 4,
-    "totalSize": 36
-  },
-  {
-    "name": "expect",
-    "value": "",
-    "nameSize": 6,
-    "totalSize": 38
-  },
-  {
-    "name": "expires",
-    "value": "",
-    "nameSize": 7,
-    "totalSize": 39
-  },
-  {
-    "name": "from",
-    "value": "",
-    "nameSize": 4,
-    "totalSize": 36
-  },
-  {
-    "name": "host",
-    "value": "",
-    "nameSize": 4,
-    "totalSize": 36
-  },
-  {
-    "name": "if-match",
-    "value": "",
-    "nameSize": 8,
-    "totalSize": 40
-  },
-  {
-    "name": "if-modified-since",
-    "value": "",
-    "nameSize": 17,
-    "totalSize": 49
-  },
-  {
-    "name": "if-none-match",
-    "value": "",
-    "nameSize": 13,
-    "totalSize": 45
-  },
-  {
-    "name": "if-range",
-    "value": "",
-    "nameSize": 8,
-    "totalSize": 40
-  },
-  {
-    "name": "if-unmodified-since",
-    "value": "",
-    "nameSize": 19,
-    "totalSize": 51
-  },
-  {
-    "name": "last-modified",
-    "value": "",
-    "nameSize": 13,
-    "totalSize": 45
-  },
-  {
-    "name": "link",
-    "value": "",
-    "nameSize": 4,
-    "totalSize": 36
-  },
-  {
-    "name": "location",
-    "value": "",
-    "nameSize": 8,
-    "totalSize": 40
-  },
-  {
-    "name": "max-forwards",
-    "value": "",
-    "nameSize": 12,
-    "totalSize": 44
-  },
-  {
-    "name": "proxy-authenticate",
-    "value": "",
-    "nameSize": 18,
-    "totalSize": 50
-  },
-  {
-    "name": "proxy-authorization",
-    "value": "",
-    "nameSize": 19,
-    "totalSize": 51
-  },
-  {
-    "name": "range",
-    "value": "",
-    "nameSize": 5,
-    "totalSize": 37
-  },
-  {
-    "name": "referer",
-    "value": "",
-    "nameSize": 7,
-    "totalSize": 39
-  },
-  {
-    "name": "refresh",
-    "value": "",
-    "nameSize": 7,
-    "totalSize": 39
-  },
-  {
-    "name": "retry-after",
-    "value": "",
-    "nameSize": 11,
-    "totalSize": 43
-  },
-  {
-    "name": "server",
-    "value": "",
-    "nameSize": 6,
-    "totalSize": 38
-  },
-  {
-    "name": "set-cookie",
-    "value": "",
-    "nameSize": 10,
-    "totalSize": 42
-  },
-  {
-    "name": "strict-transport-security",
-    "value": "",
-    "nameSize": 25,
-    "totalSize": 57
-  },
-  {
-    "name": "transfer-encoding",
-    "value": "",
-    "nameSize": 17,
-    "totalSize": 49
-  },
-  {
-    "name": "user-agent",
-    "value": "",
-    "nameSize": 10,
-    "totalSize": 42
-  },
-  {
-    "name": "vary",
-    "value": "",
-    "nameSize": 4,
-    "totalSize": 36
-  },
-  {
-    "name": "via",
-    "value": "",
-    "nameSize": 3,
-    "totalSize": 35
-  },
-  {
-    "name": "www-authenticate",
-    "value": "",
-    "nameSize": 16,
-    "totalSize": 48
-  }
-];
-exports.map = {
-  ":authority": {
-    "index": 1,
-    "values": {
-      "": 1
-    }
-  },
-  ":method": {
-    "index": 2,
-    "values": {
-      "GET": 2,
-      "POST": 3
-    }
-  },
-  ":path": {
-    "index": 4,
-    "values": {
-      "/": 4,
-      "/index.html": 5
-    }
-  },
-  ":scheme": {
-    "index": 6,
-    "values": {
-      "http": 6,
-      "https": 7
-    }
-  },
-  ":status": {
-    "index": 8,
-    "values": {
-      "200": 8,
-      "204": 9,
-      "206": 10,
-      "304": 11,
-      "400": 12,
-      "404": 13,
-      "500": 14
-    }
-  },
-  "accept-charset": {
-    "index": 15,
-    "values": {
-      "": 15
-    }
-  },
-  "accept-encoding": {
-    "index": 16,
-    "values": {
-      "gzip, deflate": 16
-    }
-  },
-  "accept-language": {
-    "index": 17,
-    "values": {
-      "": 17
-    }
-  },
-  "accept-ranges": {
-    "index": 18,
-    "values": {
-      "": 18
-    }
-  },
-  "accept": {
-    "index": 19,
-    "values": {
-      "": 19
-    }
-  },
-  "access-control-allow-origin": {
-    "index": 20,
-    "values": {
-      "": 20
-    }
-  },
-  "age": {
-    "index": 21,
-    "values": {
-      "": 21
-    }
-  },
-  "allow": {
-    "index": 22,
-    "values": {
-      "": 22
-    }
-  },
-  "authorization": {
-    "index": 23,
-    "values": {
-      "": 23
-    }
-  },
-  "cache-control": {
-    "index": 24,
-    "values": {
-      "": 24
-    }
-  },
-  "content-disposition": {
-    "index": 25,
-    "values": {
-      "": 25
-    }
-  },
-  "content-encoding": {
-    "index": 26,
-    "values": {
-      "": 26
-    }
-  },
-  "content-language": {
-    "index": 27,
-    "values": {
-      "": 27
-    }
-  },
-  "content-length": {
-    "index": 28,
-    "values": {
-      "": 28
-    }
-  },
-  "content-location": {
-    "index": 29,
-    "values": {
-      "": 29
-    }
-  },
-  "content-range": {
-    "index": 30,
-    "values": {
-      "": 30
-    }
-  },
-  "content-type": {
-    "index": 31,
-    "values": {
-      "": 31
-    }
-  },
-  "cookie": {
-    "index": 32,
-    "values": {
-      "": 32
-    }
-  },
-  "date": {
-    "index": 33,
-    "values": {
-      "": 33
-    }
-  },
-  "etag": {
-    "index": 34,
-    "values": {
-      "": 34
-    }
-  },
-  "expect": {
-    "index": 35,
-    "values": {
-      "": 35
-    }
-  },
-  "expires": {
-    "index": 36,
-    "values": {
-      "": 36
-    }
-  },
-  "from": {
-    "index": 37,
-    "values": {
-      "": 37
-    }
-  },
-  "host": {
-    "index": 38,
-    "values": {
-      "": 38
-    }
-  },
-  "if-match": {
-    "index": 39,
-    "values": {
-      "": 39
-    }
-  },
-  "if-modified-since": {
-    "index": 40,
-    "values": {
-      "": 40
-    }
-  },
-  "if-none-match": {
-    "index": 41,
-    "values": {
-      "": 41
-    }
-  },
-  "if-range": {
-    "index": 42,
-    "values": {
-      "": 42
-    }
-  },
-  "if-unmodified-since": {
-    "index": 43,
-    "values": {
-      "": 43
-    }
-  },
-  "last-modified": {
-    "index": 44,
-    "values": {
-      "": 44
-    }
-  },
-  "link": {
-    "index": 45,
-    "values": {
-      "": 45
-    }
-  },
-  "location": {
-    "index": 46,
-    "values": {
-      "": 46
-    }
-  },
-  "max-forwards": {
-    "index": 47,
-    "values": {
-      "": 47
-    }
-  },
-  "proxy-authenticate": {
-    "index": 48,
-    "values": {
-      "": 48
-    }
-  },
-  "proxy-authorization": {
-    "index": 49,
-    "values": {
-      "": 49
-    }
-  },
-  "range": {
-    "index": 50,
-    "values": {
-      "": 50
-    }
-  },
-  "referer": {
-    "index": 51,
-    "values": {
-      "": 51
-    }
-  },
-  "refresh": {
-    "index": 52,
-    "values": {
-      "": 52
-    }
-  },
-  "retry-after": {
-    "index": 53,
-    "values": {
-      "": 53
-    }
-  },
-  "server": {
-    "index": 54,
-    "values": {
-      "": 54
-    }
-  },
-  "set-cookie": {
-    "index": 55,
-    "values": {
-      "": 55
-    }
-  },
-  "strict-transport-security": {
-    "index": 56,
-    "values": {
-      "": 56
-    }
-  },
-  "transfer-encoding": {
-    "index": 57,
-    "values": {
-      "": 57
-    }
-  },
-  "user-agent": {
-    "index": 58,
-    "values": {
-      "": 58
-    }
-  },
-  "vary": {
-    "index": 59,
-    "values": {
-      "": 59
-    }
-  },
-  "via": {
-    "index": 60,
-    "values": {
-      "": 60
-    }
-  },
-  "www-authenticate": {
-    "index": 61,
-    "values": {
-      "": 61
-    }
-  }
-};

+ 0 - 85
node_modules.bak/hpack.js/lib/hpack/table.js

@@ -1,85 +0,0 @@
-var hpack = require('../hpack');
-var utils = hpack.utils;
-var assert = utils.assert;
-
-function Table(options) {
-  this['static'] = hpack['static-table'];
-  this.dynamic = [];
-  this.size = 0;
-  this.maxSize = 0;
-  this.length = this['static'].table.length;
-  this.protocolMaxSize = options.maxSize;
-  this.maxSize = this.protocolMaxSize;
-  this.lookupDepth = options.lookupDepth || 32;
-}
-module.exports = Table;
-
-Table.create = function create(options) {
-  return new Table(options);
-};
-
-Table.prototype.lookup = function lookup(index) {
-  assert(index !== 0, 'Zero indexed field');
-  assert(index <= this.length, 'Indexed field OOB')
-
-  if (index <= this['static'].table.length)
-    return this['static'].table[index - 1];
-  else
-    return this.dynamic[this.length - index];
-};
-
-Table.prototype.reverseLookup = function reverseLookup(name, value) {
-  var staticEntry = this['static'].map[name];
-  if (staticEntry && staticEntry.values[value])
-    return staticEntry.values[value];
-
-  // Reverse search dynamic table (new items are at the end of it)
-  var limit = Math.max(0, this.dynamic.length - this.lookupDepth);
-  for (var i = this.dynamic.length - 1; i >= limit; i--) {
-    var entry = this.dynamic[i];
-    if (entry.name === name && entry.value === value)
-      return this.length - i;
-
-    if (entry.name === name) {
-      // Prefer smaller index
-      if (staticEntry)
-        break;
-      return -(this.length - i);
-    }
-  }
-
-  if (staticEntry)
-    return -staticEntry.index;
-
-  return 0;
-};
-
-Table.prototype.add = function add(name, value, nameSize, valueSize) {
-  var totalSize = nameSize + valueSize + 32;
-
-  this.dynamic.push({
-    name: name,
-    value: value,
-    nameSize: nameSize,
-    totalSize: totalSize
-  });
-  this.size += totalSize;
-  this.length++;
-
-  this.evict();
-};
-
-Table.prototype.evict = function evict() {
-  while (this.size > this.maxSize) {
-    var entry = this.dynamic.shift();
-    this.size -= entry.totalSize;
-    this.length--;
-  }
-  assert(this.size >= 0, 'Table size sanity check failed');
-};
-
-Table.prototype.updateSize = function updateSize(size) {
-  assert(size <= this.protocolMaxSize, 'Table size bigger than maximum');
-  this.maxSize = size;
-  this.evict();
-};

+ 0 - 25
node_modules.bak/hpack.js/lib/hpack/utils.js

@@ -1,25 +0,0 @@
-exports.assert = function assert(cond, text) {
-  if (!cond)
-    throw new Error(text);
-};
-
-exports.stringify = function stringify(arr) {
-  var res = '';
-  for (var i = 0; i < arr.length; i++)
-    res += String.fromCharCode(arr[i]);
-  return res;
-};
-
-exports.toArray = function toArray(str) {
-  var res = [];
-  for (var i = 0; i < str.length; i++) {
-    var c = str.charCodeAt(i);
-    var hi = c >>> 8;
-    var lo = c & 0xff;
-    if (hi)
-      res.push(hi, lo);
-    else
-      res.push(lo);
-  }
-  return res;
-};

+ 0 - 63
node_modules.bak/hpack.js/package.json

@@ -1,63 +0,0 @@
-{
-  "_from": "hpack.js@^2.1.6",
-  "_id": "hpack.js@2.1.6",
-  "_inBundle": false,
-  "_integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=",
-  "_location": "/hpack.js",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "hpack.js@^2.1.6",
-    "name": "hpack.js",
-    "escapedName": "hpack.js",
-    "rawSpec": "^2.1.6",
-    "saveSpec": null,
-    "fetchSpec": "^2.1.6"
-  },
-  "_requiredBy": [
-    "/spdy-transport"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/hpack.js/download/hpack.js-2.1.6.tgz",
-  "_shasum": "87774c0949e513f42e84575b3c45681fade2a0b2",
-  "_spec": "hpack.js@^2.1.6",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\spdy-transport",
-  "author": {
-    "name": "Fedor Indutny",
-    "email": "fedor@indutny.com"
-  },
-  "bugs": {
-    "url": "https://github.com/indutny/hpack.js/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "inherits": "^2.0.1",
-    "obuf": "^1.0.0",
-    "readable-stream": "^2.0.1",
-    "wbuf": "^1.1.0"
-  },
-  "deprecated": false,
-  "description": "HPACK implementation",
-  "devDependencies": {
-    "mocha": "^2.2.5"
-  },
-  "homepage": "https://github.com/indutny/hpack.js#readme",
-  "keywords": [
-    "HPACK",
-    "HTTP2",
-    "compress",
-    "decompress",
-    "headers"
-  ],
-  "license": "MIT",
-  "main": "lib/hpack.js",
-  "name": "hpack.js",
-  "repository": {
-    "type": "git",
-    "url": "git+ssh://git@github.com/indutny/hpack.js.git"
-  },
-  "scripts": {
-    "test": "mocha test/*-test.js"
-  },
-  "version": "2.1.6"
-}

+ 0 - 136
node_modules.bak/hpack.js/test/compressor-test.js

@@ -1,136 +0,0 @@
-var assert = require('assert');
-var hpack = require('../');
-var fixtures = require('./fixtures');
-
-describe('hpack/compressor', function() {
-  var comp;
-
-  beforeEach(function() {
-    comp = hpack.compressor.create({
-      table: {
-        maxSize: 1024
-      }
-    });
-  });
-
-  function expect(arr, enc) {
-    function isNumber(num) {
-      return typeof num === 'number';
-    }
-
-    var out = comp.read().toString('hex');
-    if (Array.isArray(arr) && !arr.every(isNumber)) {
-      arr = arr.map(function(item) {
-        return new Buffer(item, enc);
-      });
-      arr = Buffer.concat(arr);
-    } else {
-      arr = new Buffer(arr, enc);
-    }
-    var actual = arr.toString('hex');
-    assert.equal(out, actual);
-  }
-
-  describe('indexed field', function() {
-    it('should lookup entry from static table', function() {
-      comp.write([{ name: ':method', value: 'GET' }]);
-      expect([ 0b10000000 | 2 ]);
-    });
-
-    it('should fetch entry from the end of the static table', function() {
-      comp.write([{ name: 'www-authenticate', value: '' }]);
-      expect([ 0b10000000 | 61 ]);
-    });
-  });
-
-  describe('literal field', function() {
-    it('should lookup name in the table (incremental)', function() {
-      comp.write([{ name: 'host', value: 'localhost' }]);
-      expect('6686a0e41d139d09', 'hex');
-
-      comp.write([{ name: 'host', value: 'localhost' }]);
-      expect([ 0b10000000 | 62 ]);
-    });
-
-    it('should lookup name in the table (not-incremental)', function() {
-      comp.write([{ name: 'host', value: 'localhost', incremental: false }]);
-      expect('0f1786a0e41d139d09', 'hex');
-
-      // Should not use the table
-      comp.write([{ name: 'host', value: 'localhost' }]);
-      expect('6686a0e41d139d09', 'hex');
-    });
-
-    it('should evict header field from the table', function() {
-      for (var i = 0; i < 1000; i++) {
-        comp.write([{ name: 'host', value: 'localhost' + i }]);
-        comp.read();
-      }
-
-      assert(comp._table.size < comp._table.maxSize);
-      assert.equal(comp._table.dynamic.length, 21);
-    });
-  });
-
-  describe('update size', function() {
-    it('should evict header field from the table', function() {
-      comp.write([{ name: 'host', value: 'localhost' }]);
-      expect('6686a0e41d139d09', 'hex');
-
-      comp.reset();
-
-      // update=0, update=maxSize
-      expect('203fe107', 'hex');
-
-      comp.write([{ name: 'host', value: 'localhost' }]);
-      expect('6686a0e41d139d09', 'hex');
-    });
-
-    it('should send dynamic update if size >= protocolMaxSize', function() {
-      comp.updateTableSize(Infinity);
-
-      // update=maxSize
-      expect('3fe107', 'hex');
-    });
-  });
-
-  describe('spec examples', function() {
-    beforeEach(function() {
-      comp = hpack.compressor.create({
-        table: {
-          maxSize: 256
-        }
-      });
-    });
-
-    var tests = fixtures.specExamples;
-
-    tests.forEach(function(test, i) {
-      var prev = tests[i - 1];
-      it('should give expected output on ' + test.id, function() {
-        var startFrom = test.continuation ? prev.comp : comp;
-        if (!startFrom)
-          throw new Error('Previous test failed');
-        comp = startFrom;
-
-        comp.write(test.output.map(function(pair) {
-          return { name: pair[0], value: pair[1], huffman: test.huffman };
-        }));
-        expect(test.input.replace(/ /g, ''), 'hex');
-
-        // Verify table contents
-        assert.deepEqual(comp._table.dynamic.map(function(header) {
-          return [ header.name, header.value, header.totalSize ];
-        }).reverse(), test.table);
-
-        // Verify table size
-        var expectedSize = test.table.reduce(function(acc, item) {
-          return acc + item[2];
-        }, 0);
-        assert.equal(comp._table.size, expectedSize);
-
-        test.comp = comp;
-      });
-    });
-  });
-});

+ 0 - 181
node_modules.bak/hpack.js/test/decoder-test.js

@@ -1,181 +0,0 @@
-var assert = require('assert');
-var hpack = require('../');
-
-describe('hpack/decoder', function() {
-  var decoder;
-
-  beforeEach(function() {
-    decoder = hpack.decoder.create();
-  });
-
-  describe('bit', function() {
-    it('should decode number bit-by-bit', function() {
-      decoder.push([ 0b11101010, 0b10101111 ]);
-      var out = '';
-      for (var i = 0; i < 16; i++)
-        out += decoder.decodeBit();
-      assert.equal(out, '11101010' + '10101111');
-    });
-  });
-
-  describe('integer', function() {
-    it('should decode 10 in prefix-5 (C.1.1)', function() {
-      decoder.push([ 0b11101010 ]);
-      decoder.skipBits(3);
-      assert.equal(decoder.decodeInt(), 10);
-    });
-
-    it('should decode 1337 in prefix-5 (C.1.2)', function() {
-      decoder.push([ 0b11111111, 0b10011010, 0b00001010 ]);
-      decoder.skipBits(3);
-      assert.equal(decoder.decodeInt(), 1337);
-    });
-
-    it('should decode 42 at octect boundary (C.1.3)', function() {
-      decoder.push([ 0b00101010 ]);
-      assert.equal(decoder.decodeInt(8), 42);
-    });
-
-    it('should throw on empty input', function() {
-      assert.throws(function() {
-        decoder.decodeInt();
-      });
-    });
-
-    it('should throw on incomplete int', function() {
-      decoder.push([ 0b11111111, 0b10011010 ]);
-      decoder.skipBits(3);
-      assert.throws(function() {
-        decoder.decodeInt();
-      });
-    });
-
-    it('should throw on overflowing int', function() {
-      decoder.push([
-        0b11111111,
-        0b10011010,
-        0b10011010,
-        0b10011010,
-        0b10011010,
-        0b10011010
-      ]);
-      decoder.skipBits(3);
-      assert.throws(function() {
-        decoder.decodeInt();
-      });
-    });
-  });
-
-  describe('string', function() {
-    it('should decode literal from (C.2.1)', function() {
-      decoder.push([ 0x0a ]);
-      decoder.push(new Buffer('custom-key'));
-
-      assert.equal(decoder.decodeStr().toString(), 'custom-key');
-    });
-
-    it('should decode literal from (C.4.1)', function() {
-      decoder.push(new Buffer(
-        '8c' +
-            'f1e3 c2e5 f23a 6ba0 ab90 f4ff'.replace(/ /g, ''),
-        'hex'));
-
-      assert.equal(new Buffer(decoder.decodeStr()).toString(),
-                   'www.example.com');
-    });
-
-    it('should decode literal from (C.4.2)', function() {
-      decoder.push(new Buffer(
-        '86' +
-            'a8eb 1064 9cbf'.replace(/ /g, ''),
-        'hex'));
-
-      assert.equal(new Buffer(decoder.decodeStr()).toString(), 'no-cache');
-    });
-
-    it('should decode literal from (C.4.3) #1', function() {
-      decoder.push(new Buffer(
-        '88' +
-            '25a8 49e9 5ba9 7d7f'.replace(/ /g, ''),
-        'hex'));
-
-      assert.equal(new Buffer(decoder.decodeStr()).toString(), 'custom-key');
-    });
-
-    it('should decode literal from (C.4.3) #2', function() {
-      decoder.push(new Buffer(
-        '89' +
-            '25a8 49e9 5bb8 e8b4 bf'.replace(/ /g, ''),
-        'hex'));
-
-      assert.equal(new Buffer(decoder.decodeStr()).toString(), 'custom-value');
-    });
-
-    it('should decode literal from (C.6.1) #1', function() {
-      decoder.push(new Buffer(
-        ('96' +
-            'd07a be94 1054 d444 a820 0595 040b 8166' +
-            'e082 a62d 1bff').replace(/ /g, ''),
-        'hex'));
-
-      assert.equal(new Buffer(decoder.decodeStr()).toString(),
-                   'Mon, 21 Oct 2013 20:13:21 GMT');
-    });
-
-    it('should decode literal from (C.6.1) #2', function() {
-      decoder.push(new Buffer(
-        ('91' +
-            '9d29 ad17 1863 c78f 0b97 c8e9 ae82 ae43' +
-            'd3').replace(/ /g, ''),
-        'hex'));
-      assert.equal(new Buffer(decoder.decodeStr()).toString(),
-                   'https://www.example.com');
-    });
-
-    it('should decode many 5 bit chars', function() {
-      // e = 00101, 0x294A5294A5 = 00101 x 8
-      decoder.push(new Buffer('85294A5294A5', 'hex'));
-      assert.equal(new Buffer(decoder.decodeStr()).toString(), 'eeeeeeee');
-    });
-
-    it('should decode many 5 bit chars with 3-bit EOS', function() {
-      // e = 00101, EOS=111,
-      // 0x294A5294A52F = 00101 x 9 + 111
-      decoder.push(new Buffer('86294A5294A52F', 'hex'));
-      assert.equal(new Buffer(decoder.decodeStr()).toString(), 'eeeeeeeee');
-    });
-
-    it('should decode many 5 bit chars with 2-bit EOS', function() {
-      // e = 00101, EOS=11,
-      // 0x294A5297 = 00101 x 6 + 11
-      decoder.push(new Buffer('84294A5297', 'hex'));
-      assert.equal(new Buffer(decoder.decodeStr()).toString(), 'eeeeee');
-    });
-
-    it('should decode many multi-octet chars', function() {
-      decoder.push(new Buffer(
-          '97ffffb1ffff63fffec7fffd8ffffb1ffff63fffec7fffd8',
-          'hex'));
-      assert.deepEqual(decoder.decodeStr(), [
-        1, 1, 1, 1, 1, 1, 1, 1
-      ]);
-    });
-
-    it('should fail on 8 bit EOS', function() {
-      // e = 00101, 0x294A5294A5 = 00101 x 8
-      decoder.push(new Buffer('86294A5294A5ff', 'hex'));
-      assert.throws(function() {
-        decoder.decodeStr();
-      });
-    });
-
-    it('should fail on invalid 2-bit EOS', function() {
-      // e = 00101, EOS=10,
-      // 0x294A5297 = 00101 x 6 + 11
-      decoder.push(new Buffer('84294A5296', 'hex'));
-      assert.throws(function() {
-        decoder.decodeStr();
-      });
-    });
-  });
-});

+ 0 - 184
node_modules.bak/hpack.js/test/decompressor-test.js

@@ -1,184 +0,0 @@
-var assert = require('assert');
-var hpack = require('../');
-var fixtures = require('./fixtures');
-
-describe('hpack/decompressor', function() {
-  var decomp;
-
-  beforeEach(function() {
-    decomp = hpack.decompressor.create({
-      table: {
-        maxSize: 1024
-      }
-    });
-  });
-
-  describe('indexed field', function() {
-    it('should fail on 0-index', function(cb) {
-      decomp.write(new Buffer([ 0b10000000 ]));
-      decomp.execute(function(err) {
-        assert(/zero index/i.test(err.message), err.message);
-        cb();
-      });
-    });
-
-    it('should fetch entry from static table', function() {
-      decomp.write(new Buffer([ 0b10000000 | 2 ]));
-      decomp.execute();
-      var field = decomp.read();
-      assert.equal(field.name, ':method');
-      assert.equal(field.value, 'GET');
-    });
-
-    it('should fetch entry from the end of the static table', function() {
-      decomp.write(new Buffer([ 0b10000000 | 61 ]));
-      decomp.execute();
-      var field = decomp.read();
-      assert.equal(field.name, 'www-authenticate');
-      assert.equal(field.value, '');
-    });
-
-    it('should fail on OOB-index', function(cb) {
-      decomp.write(new Buffer([ 0b11000000 ]));
-      decomp.execute(function(err) {
-        assert(/field oob/i.test(err.message), err.message);
-        cb();
-      });
-    });
-  });
-
-  describe('literal field', function() {
-    it('should lookup name in the table (incremental)', function() {
-      var value = new Buffer('localhost');
-      var header = new Buffer([
-        0b01000000 | 38,  // 38th element from static table
-        value.length
-      ]);
-      decomp.write(Buffer.concat([ header, value ]));
-      decomp.execute();
-
-      var field = decomp.read();
-      assert.equal(field.name, 'host');
-      assert.equal(field.value, 'localhost');
-
-      decomp.write(new Buffer([ 0b10000000 | 62 ]));
-      decomp.execute();
-      var field = decomp.read();
-      assert.equal(field.name, 'host');
-      assert.equal(field.value, 'localhost');
-    });
-
-    it('should lookup name in the table (not-incremental)', function(cb) {
-      var value = new Buffer('localhost');
-      var header = new Buffer([
-        0b00001111,
-        0b00000000 | 23,
-        value.length
-      ]);
-      decomp.write(Buffer.concat([ header, value ]));
-      decomp.execute();
-
-      var field = decomp.read();
-      assert.equal(field.name, 'host');
-      assert.equal(field.value, 'localhost');
-
-      decomp.write(new Buffer([ 0b10000000 | 62 ]));
-      decomp.execute(function(err) {
-        assert(/field oob/i.test(err.message), err.message);
-        cb();
-      });
-    });
-
-    it('should evict header field from the table', function() {
-      var value = new Buffer('localhost');
-      var header = new Buffer([
-        0b01000000 | 38,  // 38th element from static table
-        value.length
-      ]);
-      for (var i = 0; i < 1000; i++) {
-        decomp.write(Buffer.concat([ header, value ]));
-        decomp.execute();
-        var field = decomp.read();
-        assert.equal(field.name, 'host');
-        assert.equal(field.value, 'localhost');
-      }
-
-      assert(decomp._table.size < decomp._table.maxSize);
-      assert.equal(decomp._table.dynamic.length, 22);
-    });
-  });
-
-  describe('update size', function() {
-    it('should evict header field from the table', function() {
-      var value = new Buffer('localhost');
-      var header = new Buffer([
-        0b01000000 | 38,  // 38th element from static table
-        value.length
-      ]);
-
-      decomp.write(Buffer.concat([ header, value ]));
-      decomp.execute();
-      var field = decomp.read();
-      assert.equal(field.name, 'host');
-      assert.equal(field.value, 'localhost');
-      assert.equal(decomp._table.dynamic.length, 1);
-
-      decomp.write(new Buffer([
-        0b00100000
-      ]));
-      decomp.execute();
-
-      assert.equal(decomp._table.dynamic.length, 0);
-    });
-  });
-
-  describe('spec examples', function() {
-    var decomp;
-    beforeEach(function() {
-      decomp = hpack.decompressor.create({
-        table: {
-          maxSize: 256
-        }
-      });
-    });
-
-    var tests = fixtures.specExamples;
-
-    tests.forEach(function(test, i) {
-      var prev = tests[i - 1];
-      it('should give expected output on ' + test.id, function() {
-        var startFrom = test.continuation ? prev.decomp : decomp;
-        if (!startFrom)
-          throw new Error('Previous test failed');
-        decomp = startFrom;
-
-        decomp.write(new Buffer(test.input.replace(/ /g, ''), 'hex'));
-        decomp.execute();
-
-        var output = [];
-        for (;;) {
-          var chunk = decomp.read();
-          if (!chunk)
-            break;
-
-          output.push([ chunk.name, chunk.value ]);
-        }
-
-        assert.deepEqual(output, test.output);
-
-        // Verify table contents
-        assert.deepEqual(decomp._table.dynamic.map(function(header) {
-          return [ header.name, header.value, header.totalSize ];
-        }).reverse(), test.table);
-
-        // Verify table size
-        var expectedSize = test.table.reduce(function(acc, item) {
-          return acc + item[2];
-        }, 0);
-        assert.equal(decomp._table.size, expectedSize);
-
-        test.decomp = decomp;
-      });
-    });
-  });
-});

+ 0 - 166
node_modules.bak/hpack.js/test/encoder-test.js

@@ -1,166 +0,0 @@
-var assert = require('assert');
-var hpack = require('../');
-
-describe('hpack/encoder', function() {
-  var encoder;
-
-  beforeEach(function() {
-    encoder = hpack.encoder.create();
-  });
-
-  function expect(arr, enc) {
-    function isNumber(num) {
-      return typeof num === 'number';
-    }
-
-    var out = Buffer.concat(encoder.render()).toString('hex');
-    if (Array.isArray(arr) && !arr.every(isNumber)) {
-      arr = arr.map(function(item) {
-        return new Buffer(item, enc);
-      });
-      arr = Buffer.concat(arr);
-    } else {
-      arr = new Buffer(arr, enc);
-    }
-    var actual = arr.toString('hex');
-    assert.equal(out, actual);
-  }
-
-  describe('bit', function() {
-    it('should encode number bit-by-bit', function() {
-      [ 1, 1, 1, 0, 1, 0, 1, 0,
-        1, 0, 1, 0, 1, 1, 1, 1 ].forEach(function(bit) {
-        encoder.encodeBit(bit);
-      });
-      expect([
-        0b11101010,
-        0b10101111
-      ]);
-    });
-
-    it('should encode number using multiple bits', function() {
-      for (var i = 0; i < 8; i++)
-        encoder.encodeBits(0b1011010, 7);
-      expect([
-        0b10110101,
-        0b01101010,
-        0b11010101,
-        0b10101011,
-        0b01010110,
-        0b10101101,
-        0b01011010
-      ]);
-    });
-  });
-
-  describe('integer', function() {
-    it('should encode 10 in prefix-5 (C.1.1)', function() {
-      encoder.skipBits(3);
-      encoder.encodeInt(10);
-      expect([ 0x0a ]);
-    });
-
-    it('should decode 1337 in prefix-5 (C.1.2)', function() {
-      encoder.skipBits(3);
-      encoder.encodeInt(1337);
-      expect([
-        0b00011111,
-        0b10011010,
-        0b00001010
-      ]);
-    });
-
-    it('should decode 42 at octect boundary (C.1.3)', function() {
-      encoder.encodeInt(42);
-      expect([ 0b00101010 ]);
-    });
-
-    it('should regression 6-bit test', function() {
-      encoder.skipBits(2);
-      encoder.encodeInt(63);
-      expect([ 0b00111111, 0b00000000 ]);
-    });
-  });
-
-  describe('string', function() {
-    it('should encode literal from (C.2.1)', function() {
-      encoder.encodeStr(new Buffer('custom-key'), false);
-      expect([ [ 0x0a ], 'custom-key' ]);
-    });
-
-    it('should encode literal from (C.4.1)', function() {
-      encoder.encodeStr(new Buffer('www.example.com'), true);
-      expect('8c' +
-                 'f1e3 c2e5 f23a 6ba0 ab90 f4ff'.replace(/ /g, ''),
-             'hex');
-    });
-
-    it('should decode literal from (C.4.2)', function() {
-      encoder.encodeStr(new Buffer('no-cache'), true);
-      expect(
-        '86' +
-            'a8eb 1064 9cbf'.replace(/ /g, ''),
-        'hex');
-    });
-
-    it('should encode literal from (C.4.3) #1', function() {
-      encoder.encodeStr(new Buffer('custom-key'), true);
-      expect(
-        '88' +
-            '25a8 49e9 5ba9 7d7f'.replace(/ /g, ''),
-        'hex');
-    });
-
-    it('should encode literal from (C.4.3) #2', function() {
-      encoder.encodeStr(new Buffer('custom-value'), true);
-      expect(
-        '89' +
-            '25a8 49e9 5bb8 e8b4 bf'.replace(/ /g, ''),
-        'hex');
-    });
-
-    it('should encode literal from (C.6.1) #1', function() {
-      encoder.encodeStr(new Buffer('Mon, 21 Oct 2013 20:13:21 GMT'), true);
-      expect(
-        ('96' +
-            'd07a be94 1054 d444 a820 0595 040b 8166' +
-            'e082 a62d 1bff').replace(/ /g, ''),
-        'hex');
-    });
-
-    it('should encode literal from (C.6.1) #2', function() {
-      encoder.encodeStr(new Buffer('https://www.example.com'), true);
-      expect(
-        ('91' +
-            '9d29 ad17 1863 c78f 0b97 c8e9 ae82 ae43' +
-            'd3').replace(/ /g, ''),
-        'hex');
-    });
-
-    it('should encode many 5 bit chars', function() {
-      encoder.encodeStr(new Buffer('eeeeeeee'), true);
-      // e = 00101, 0x294A5294A5 = 00101 x 8
-      expect('85294A5294A5', 'hex');
-    });
-
-    it('should encode many 5 bit chars with 3-bit EOS', function() {
-      // e = 00101, EOS=111,
-      // 0x294A5294A52F = 00101 x 9 + 111
-      encoder.encodeStr(new Buffer('eeeeeeeee'), true);
-      expect('86294A5294A52F', 'hex');
-    });
-
-    it('should decode many 5 bit chars with 2-bit EOS', function() {
-      // e = 00101, EOS=11,
-      // 0x294A5297 = 00101 x 6 + 11
-      encoder.encodeStr(new Buffer('eeeeee'), true);
-      expect('84294A5297', 'hex');
-    });
-
-    it('should decode many multi-octet chars', function() {
-      encoder.encodeStr([ 1, 1, 1, 1, 1, 1, 1, 1 ], true);
-      expect('97ffffb1ffff63fffec7fffd8ffffb1ffff63fffec7fffd8',
-             'hex');
-    });
-  });
-});

+ 0 - 232
node_modules.bak/hpack.js/test/fixtures.js

@@ -1,232 +0,0 @@
-exports.specExamples = [
-  {
-    id: 'C.3.1',
-    huffman: false,
-    input: '8286 8441 0f77 7777 2e65 7861 6d70 6c65' +
-           '2e63 6f6d',
-    output: [
-      [ ':method', 'GET' ],
-      [ ':scheme', 'http' ],
-      [ ':path', '/' ],
-      [ ':authority', 'www.example.com' ]
-    ],
-    table: [
-      [ ':authority', 'www.example.com', 57 ]
-    ]
-  },
-  {
-    id: 'C.3.2',
-    continuation: true,
-    huffman: false,
-    input: '8286 84be 5808 6e6f 2d63 6163 6865',
-    output: [
-      [ ':method', 'GET' ],
-      [ ':scheme', 'http' ],
-      [ ':path', '/' ],
-      [ ':authority', 'www.example.com' ],
-      [ 'cache-control', 'no-cache' ]
-    ],
-    table: [
-      [ 'cache-control', 'no-cache', 53 ],
-      [ ':authority', 'www.example.com', 57 ]
-    ]
-  },
-  {
-    id: 'C.3.3',
-    continuation: true,
-    huffman: false,
-    input: '8287 85bf 400a 6375 7374 6f6d 2d6b 6579' +
-           '0c63 7573 746f 6d2d 7661 6c75 65',
-    output: [
-      [ ':method', 'GET' ],
-      [ ':scheme', 'https' ],
-      [ ':path', '/index.html' ],
-      [ ':authority', 'www.example.com' ],
-      [ 'custom-key', 'custom-value' ]
-    ],
-    table: [
-      [ 'custom-key', 'custom-value', 54 ],
-      [ 'cache-control', 'no-cache', 53 ],
-      [ ':authority', 'www.example.com', 57 ]
-    ]
-  },
-
-  {
-    id: 'C.4.1',
-    input: '8286 8441 8cf1 e3c2 e5f2 3a6b a0ab 90f4' +
-           'ff',
-    output: [
-      [ ':method', 'GET' ],
-      [ ':scheme', 'http' ],
-      [ ':path', '/' ],
-      [ ':authority', 'www.example.com' ]
-    ],
-    table: [
-      [ ':authority', 'www.example.com', 57 ]
-    ]
-  },
-  {
-    id: 'C.4.2',
-    continuation: true,
-    input: '8286 84be 5886 a8eb 1064 9cbf',
-    output: [
-      [ ':method', 'GET' ],
-      [ ':scheme', 'http' ],
-      [ ':path', '/' ],
-      [ ':authority', 'www.example.com' ],
-      [ 'cache-control', 'no-cache' ]
-    ],
-    table: [
-      [ 'cache-control', 'no-cache', 53 ],
-      [ ':authority', 'www.example.com', 57 ]
-    ]
-  },
-  {
-    id: 'C.4.3',
-    continuation: true,
-    input: '8287 85bf 4088 25a8 49e9 5ba9 7d7f 8925' +
-           'a849 e95b b8e8 b4bf',
-    output: [
-      [ ':method', 'GET' ],
-      [ ':scheme', 'https' ],
-      [ ':path', '/index.html' ],
-      [ ':authority', 'www.example.com' ],
-      [ 'custom-key', 'custom-value' ]
-    ],
-    table: [
-      [ 'custom-key', 'custom-value', 54 ],
-      [ 'cache-control', 'no-cache', 53 ],
-      [ ':authority', 'www.example.com', 57 ]
-    ]
-  },
-
-  {
-    id: 'C.5.1',
-    huffman: false,
-    input: '4803 3330 3258 0770 7269 7661 7465 611d' +
-           '4d6f 6e2c 2032 3120 4f63 7420 3230 3133' +
-           '2032 303a 3133 3a32 3120 474d 546e 1768' +
-           '7474 7073 3a2f 2f77 7777 2e65 7861 6d70' +
-           '6c65 2e63 6f6d',
-    output: [
-      [ ':status', '302' ],
-      [ 'cache-control', 'private' ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT' ],
-      [ 'location', 'https://www.example.com' ]
-    ],
-    table: [
-      [ 'location', 'https://www.example.com', 63 ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT', 65 ],
-      [ 'cache-control', 'private', 52 ],
-      [ ':status', '302', 42 ]
-    ]
-  },
-  {
-    id: 'C.5.2',
-    huffman: false,
-    continuation: true,
-    input: '4803 3330 37c1 c0bf',
-    output: [
-      [ ':status', '307' ],
-      [ 'cache-control', 'private' ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT' ],
-      [ 'location', 'https://www.example.com' ]
-    ],
-    table: [
-      [ ':status', '307', 42 ],
-      [ 'location', 'https://www.example.com', 63 ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT', 65 ],
-      [ 'cache-control', 'private', 52 ]
-    ]
-  },
-  {
-    id: 'C.5.3',
-    huffman: false,
-    continuation: true,
-    input: '88c1 611d 4d6f 6e2c 2032 3120 4f63 7420' +
-           '3230 3133 2032 303a 3133 3a32 3220 474d' +
-           '54c0 5a04 677a 6970 7738 666f 6f3d 4153' +
-           '444a 4b48 514b 425a 584f 5157 454f 5049' +
-           '5541 5851 5745 4f49 553b 206d 6178 2d61' +
-           '6765 3d33 3630 303b 2076 6572 7369 6f6e' +
-           '3d31',
-    output: [
-      [ ':status', '200' ],
-      [ 'cache-control', 'private' ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:22 GMT' ],
-      [ 'location', 'https://www.example.com' ],
-      [ 'content-encoding', 'gzip' ],
-      [ 'set-cookie',
-        'foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU; max-age=3600; version=1' ]
-    ],
-    table: [
-      [ 'set-cookie',
-        'foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU; max-age=3600; version=1',
-        98 ],
-      [ 'content-encoding', 'gzip', 52 ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:22 GMT', 65 ]
-    ]
-  },
-
-  {
-    id: 'C.6.1',
-    input: '4882 6402 5885 aec3 771a 4b61 96d0 7abe' +
-           '9410 54d4 44a8 2005 9504 0b81 66e0 82a6' +
-           '2d1b ff6e 919d 29ad 1718 63c7 8f0b 97c8' +
-           'e9ae 82ae 43d3',
-    output: [
-      [ ':status', '302' ],
-      [ 'cache-control', 'private' ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT' ],
-      [ 'location', 'https://www.example.com' ]
-    ],
-    table: [
-      [ 'location', 'https://www.example.com', 63 ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT', 65 ],
-      [ 'cache-control', 'private', 52 ],
-      [ ':status', '302', 42 ]
-    ]
-  },
-  {
-    id: 'C.6.2',
-    continuation: true,
-    input: '4883 640e ffc1 c0bf',
-    output: [
-      [ ':status', '307' ],
-      [ 'cache-control', 'private' ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT' ],
-      [ 'location', 'https://www.example.com' ]
-    ],
-    table: [
-      [ ':status', '307', 42 ],
-      [ 'location', 'https://www.example.com', 63 ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT', 65 ],
-      [ 'cache-control', 'private', 52 ]
-    ]
-  },
-  {
-    id: 'C.6.3',
-    continuation: true,
-    input: '88c1 6196 d07a be94 1054 d444 a820 0595' +
-           '040b 8166 e084 a62d 1bff c05a 839b d9ab' +
-           '77ad 94e7 821d d7f2 e6c7 b335 dfdf cd5b' +
-           '3960 d5af 2708 7f36 72c1 ab27 0fb5 291f' +
-           '9587 3160 65c0 03ed 4ee5 b106 3d50 07',
-    output: [
-      [ ':status', '200' ],
-      [ 'cache-control', 'private' ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:22 GMT' ],
-      [ 'location', 'https://www.example.com' ],
-      [ 'content-encoding', 'gzip' ],
-      [ 'set-cookie',
-        'foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU; max-age=3600; version=1' ]
-    ],
-    table: [
-      [ 'set-cookie',
-        'foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU; max-age=3600; version=1',
-        98 ],
-      [ 'content-encoding', 'gzip', 52 ],
-      [ 'date', 'Mon, 21 Oct 2013 20:13:22 GMT', 65 ]
-    ]
-  }
-];

+ 0 - 309
node_modules.bak/hpack.js/tools/gen-huffman.js

@@ -1,309 +0,0 @@
-var utils = require('./utils');
-
-var table = `
-    (  0)  |11111111|11000                             1ff8  [13]
-    (  1)  |11111111|11111111|1011000                7fffd8  [23]
-    (  2)  |11111111|11111111|11111110|0010         fffffe2  [28]
-    (  3)  |11111111|11111111|11111110|0011         fffffe3  [28]
-    (  4)  |11111111|11111111|11111110|0100         fffffe4  [28]
-    (  5)  |11111111|11111111|11111110|0101         fffffe5  [28]
-    (  6)  |11111111|11111111|11111110|0110         fffffe6  [28]
-    (  7)  |11111111|11111111|11111110|0111         fffffe7  [28]
-    (  8)  |11111111|11111111|11111110|1000         fffffe8  [28]
-    (  9)  |11111111|11111111|11101010               ffffea  [24]
-    ( 10)  |11111111|11111111|11111111|111100      3ffffffc  [30]
-    ( 11)  |11111111|11111111|11111110|1001         fffffe9  [28]
-    ( 12)  |11111111|11111111|11111110|1010         fffffea  [28]
-    ( 13)  |11111111|11111111|11111111|111101      3ffffffd  [30]
-    ( 14)  |11111111|11111111|11111110|1011         fffffeb  [28]
-    ( 15)  |11111111|11111111|11111110|1100         fffffec  [28]
-    ( 16)  |11111111|11111111|11111110|1101         fffffed  [28]
-    ( 17)  |11111111|11111111|11111110|1110         fffffee  [28]
-    ( 18)  |11111111|11111111|11111110|1111         fffffef  [28]
-    ( 19)  |11111111|11111111|11111111|0000         ffffff0  [28]
-    ( 20)  |11111111|11111111|11111111|0001         ffffff1  [28]
-    ( 21)  |11111111|11111111|11111111|0010         ffffff2  [28]
-    ( 22)  |11111111|11111111|11111111|111110      3ffffffe  [30]
-    ( 23)  |11111111|11111111|11111111|0011         ffffff3  [28]
-    ( 24)  |11111111|11111111|11111111|0100         ffffff4  [28]
-    ( 25)  |11111111|11111111|11111111|0101         ffffff5  [28]
-    ( 26)  |11111111|11111111|11111111|0110         ffffff6  [28]
-    ( 27)  |11111111|11111111|11111111|0111         ffffff7  [28]
-    ( 28)  |11111111|11111111|11111111|1000         ffffff8  [28]
-    ( 29)  |11111111|11111111|11111111|1001         ffffff9  [28]
-    ( 30)  |11111111|11111111|11111111|1010         ffffffa  [28]
-    ( 31)  |11111111|11111111|11111111|1011         ffffffb  [28]
-' ' ( 32)  |010100                                       14  [ 6]
-'!' ( 33)  |11111110|00                                 3f8  [10]
-'"' ( 34)  |11111110|01                                 3f9  [10]
-'#' ( 35)  |11111111|1010                               ffa  [12]
-'$' ( 36)  |11111111|11001                             1ff9  [13]
-'%' ( 37)  |010101                                       15  [ 6]
-'&' ( 38)  |11111000                                     f8  [ 8]
-''' ( 39)  |11111111|010                                7fa  [11]
-'(' ( 40)  |11111110|10                                 3fa  [10]
-')' ( 41)  |11111110|11                                 3fb  [10]
-'*' ( 42)  |11111001                                     f9  [ 8]
-'+' ( 43)  |11111111|011                                7fb  [11]
-',' ( 44)  |11111010                                     fa  [ 8]
-'-' ( 45)  |010110                                       16  [ 6]
-'.' ( 46)  |010111                                       17  [ 6]
-'/' ( 47)  |011000                                       18  [ 6]
-'0' ( 48)  |00000                                         0  [ 5]
-'1' ( 49)  |00001                                         1  [ 5]
-'2' ( 50)  |00010                                         2  [ 5]
-'3' ( 51)  |011001                                       19  [ 6]
-'4' ( 52)  |011010                                       1a  [ 6]
-'5' ( 53)  |011011                                       1b  [ 6]
-'6' ( 54)  |011100                                       1c  [ 6]
-'7' ( 55)  |011101                                       1d  [ 6]
-'8' ( 56)  |011110                                       1e  [ 6]
-'9' ( 57)  |011111                                       1f  [ 6]
-':' ( 58)  |1011100                                      5c  [ 7]
-';' ( 59)  |11111011                                     fb  [ 8]
-'<' ( 60)  |11111111|1111100                           7ffc  [15]
-'=' ( 61)  |100000                                       20  [ 6]
-'>' ( 62)  |11111111|1011                               ffb  [12]
-'?' ( 63)  |11111111|00                                 3fc  [10]
-'@' ( 64)  |11111111|11010                             1ffa  [13]
-'A' ( 65)  |100001                                       21  [ 6]
-'B' ( 66)  |1011101                                      5d  [ 7]
-'C' ( 67)  |1011110                                      5e  [ 7]
-'D' ( 68)  |1011111                                      5f  [ 7]
-'E' ( 69)  |1100000                                      60  [ 7]
-'F' ( 70)  |1100001                                      61  [ 7]
-'G' ( 71)  |1100010                                      62  [ 7]
-'H' ( 72)  |1100011                                      63  [ 7]
-'I' ( 73)  |1100100                                      64  [ 7]
-'J' ( 74)  |1100101                                      65  [ 7]
-'K' ( 75)  |1100110                                      66  [ 7]
-'L' ( 76)  |1100111                                      67  [ 7]
-'M' ( 77)  |1101000                                      68  [ 7]
-'N' ( 78)  |1101001                                      69  [ 7]
-'O' ( 79)  |1101010                                      6a  [ 7]
-'P' ( 80)  |1101011                                      6b  [ 7]
-'Q' ( 81)  |1101100                                      6c  [ 7]
-'R' ( 82)  |1101101                                      6d  [ 7]
-'S' ( 83)  |1101110                                      6e  [ 7]
-'T' ( 84)  |1101111                                      6f  [ 7]
-'U' ( 85)  |1110000                                      70  [ 7]
-'V' ( 86)  |1110001                                      71  [ 7]
-'W' ( 87)  |1110010                                      72  [ 7]
-'X' ( 88)  |11111100                                     fc  [ 8]
-'Y' ( 89)  |1110011                                      73  [ 7]
-'Z' ( 90)  |11111101                                     fd  [ 8]
-'[' ( 91)  |11111111|11011                             1ffb  [13]
-'\\' ( 92)  |11111111|11111110|000                     7fff0  [19]
-']' ( 93)  |11111111|11100                             1ffc  [13]
-'^' ( 94)  |11111111|111100                            3ffc  [14]
-'_' ( 95)  |100010                                       22  [ 6]
-'\`' ( 96)  |11111111|1111101                           7ffd  [15]
-'a' ( 97)  |00011                                         3  [ 5]
-'b' ( 98)  |100011                                       23  [ 6]
-'c' ( 99)  |00100                                         4  [ 5]
-'d' (100)  |100100                                       24  [ 6]
-'e' (101)  |00101                                         5  [ 5]
-'f' (102)  |100101                                       25  [ 6]
-'g' (103)  |100110                                       26  [ 6]
-'h' (104)  |100111                                       27  [ 6]
-'i' (105)  |00110                                         6  [ 5]
-'j' (106)  |1110100                                      74  [ 7]
-'k' (107)  |1110101                                      75  [ 7]
-'l' (108)  |101000                                       28  [ 6]
-'m' (109)  |101001                                       29  [ 6]
-'n' (110)  |101010                                       2a  [ 6]
-'o' (111)  |00111                                         7  [ 5]
-'p' (112)  |101011                                       2b  [ 6]
-'q' (113)  |1110110                                      76  [ 7]
-'r' (114)  |101100                                       2c  [ 6]
-'s' (115)  |01000                                         8  [ 5]
-'t' (116)  |01001                                         9  [ 5]
-'u' (117)  |101101                                       2d  [ 6]
-'v' (118)  |1110111                                      77  [ 7]
-'w' (119)  |1111000                                      78  [ 7]
-'x' (120)  |1111001                                      79  [ 7]
-'y' (121)  |1111010                                      7a  [ 7]
-'z' (122)  |1111011                                      7b  [ 7]
-'{' (123)  |11111111|1111110                           7ffe  [15]
-'|' (124)  |11111111|100                                7fc  [11]
-'}' (125)  |11111111|111101                            3ffd  [14]
-'~' (126)  |11111111|11101                             1ffd  [13]
-    (127)  |11111111|11111111|11111111|1100         ffffffc  [28]
-    (128)  |11111111|11111110|0110                    fffe6  [20]
-    (129)  |11111111|11111111|010010                 3fffd2  [22]
-    (130)  |11111111|11111110|0111                    fffe7  [20]
-    (131)  |11111111|11111110|1000                    fffe8  [20]
-    (132)  |11111111|11111111|010011                 3fffd3  [22]
-    (133)  |11111111|11111111|010100                 3fffd4  [22]
-    (134)  |11111111|11111111|010101                 3fffd5  [22]
-    (135)  |11111111|11111111|1011001                7fffd9  [23]
-    (136)  |11111111|11111111|010110                 3fffd6  [22]
-    (137)  |11111111|11111111|1011010                7fffda  [23]
-    (138)  |11111111|11111111|1011011                7fffdb  [23]
-    (139)  |11111111|11111111|1011100                7fffdc  [23]
-    (140)  |11111111|11111111|1011101                7fffdd  [23]
-    (141)  |11111111|11111111|1011110                7fffde  [23]
-    (142)  |11111111|11111111|11101011               ffffeb  [24]
-    (143)  |11111111|11111111|1011111                7fffdf  [23]
-    (144)  |11111111|11111111|11101100               ffffec  [24]
-    (145)  |11111111|11111111|11101101               ffffed  [24]
-    (146)  |11111111|11111111|010111                 3fffd7  [22]
-    (147)  |11111111|11111111|1100000                7fffe0  [23]
-    (148)  |11111111|11111111|11101110               ffffee  [24]
-    (149)  |11111111|11111111|1100001                7fffe1  [23]
-    (150)  |11111111|11111111|1100010                7fffe2  [23]
-    (151)  |11111111|11111111|1100011                7fffe3  [23]
-    (152)  |11111111|11111111|1100100                7fffe4  [23]
-    (153)  |11111111|11111110|11100                  1fffdc  [21]
-    (154)  |11111111|11111111|011000                 3fffd8  [22]
-    (155)  |11111111|11111111|1100101                7fffe5  [23]
-    (156)  |11111111|11111111|011001                 3fffd9  [22]
-    (157)  |11111111|11111111|1100110                7fffe6  [23]
-    (158)  |11111111|11111111|1100111                7fffe7  [23]
-    (159)  |11111111|11111111|11101111               ffffef  [24]
-    (160)  |11111111|11111111|011010                 3fffda  [22]
-    (161)  |11111111|11111110|11101                  1fffdd  [21]
-    (162)  |11111111|11111110|1001                    fffe9  [20]
-    (163)  |11111111|11111111|011011                 3fffdb  [22]
-    (164)  |11111111|11111111|011100                 3fffdc  [22]
-    (165)  |11111111|11111111|1101000                7fffe8  [23]
-    (166)  |11111111|11111111|1101001                7fffe9  [23]
-    (167)  |11111111|11111110|11110                  1fffde  [21]
-    (168)  |11111111|11111111|1101010                7fffea  [23]
-    (169)  |11111111|11111111|011101                 3fffdd  [22]
-    (170)  |11111111|11111111|011110                 3fffde  [22]
-    (171)  |11111111|11111111|11110000               fffff0  [24]
-    (172)  |11111111|11111110|11111                  1fffdf  [21]
-    (173)  |11111111|11111111|011111                 3fffdf  [22]
-    (174)  |11111111|11111111|1101011                7fffeb  [23]
-    (175)  |11111111|11111111|1101100                7fffec  [23]
-    (176)  |11111111|11111111|00000                  1fffe0  [21]
-    (177)  |11111111|11111111|00001                  1fffe1  [21]
-    (178)  |11111111|11111111|100000                 3fffe0  [22]
-    (179)  |11111111|11111111|00010                  1fffe2  [21]
-    (180)  |11111111|11111111|1101101                7fffed  [23]
-    (181)  |11111111|11111111|100001                 3fffe1  [22]
-    (182)  |11111111|11111111|1101110                7fffee  [23]
-    (183)  |11111111|11111111|1101111                7fffef  [23]
-    (184)  |11111111|11111110|1010                    fffea  [20]
-    (185)  |11111111|11111111|100010                 3fffe2  [22]
-    (186)  |11111111|11111111|100011                 3fffe3  [22]
-    (187)  |11111111|11111111|100100                 3fffe4  [22]
-    (188)  |11111111|11111111|1110000                7ffff0  [23]
-    (189)  |11111111|11111111|100101                 3fffe5  [22]
-    (190)  |11111111|11111111|100110                 3fffe6  [22]
-    (191)  |11111111|11111111|1110001                7ffff1  [23]
-    (192)  |11111111|11111111|11111000|00           3ffffe0  [26]
-    (193)  |11111111|11111111|11111000|01           3ffffe1  [26]
-    (194)  |11111111|11111110|1011                    fffeb  [20]
-    (195)  |11111111|11111110|001                     7fff1  [19]
-    (196)  |11111111|11111111|100111                 3fffe7  [22]
-    (197)  |11111111|11111111|1110010                7ffff2  [23]
-    (198)  |11111111|11111111|101000                 3fffe8  [22]
-    (199)  |11111111|11111111|11110110|0            1ffffec  [25]
-    (200)  |11111111|11111111|11111000|10           3ffffe2  [26]
-    (201)  |11111111|11111111|11111000|11           3ffffe3  [26]
-    (202)  |11111111|11111111|11111001|00           3ffffe4  [26]
-    (203)  |11111111|11111111|11111011|110          7ffffde  [27]
-    (204)  |11111111|11111111|11111011|111          7ffffdf  [27]
-    (205)  |11111111|11111111|11111001|01           3ffffe5  [26]
-    (206)  |11111111|11111111|11110001               fffff1  [24]
-    (207)  |11111111|11111111|11110110|1            1ffffed  [25]
-    (208)  |11111111|11111110|010                     7fff2  [19]
-    (209)  |11111111|11111111|00011                  1fffe3  [21]
-    (210)  |11111111|11111111|11111001|10           3ffffe6  [26]
-    (211)  |11111111|11111111|11111100|000          7ffffe0  [27]
-    (212)  |11111111|11111111|11111100|001          7ffffe1  [27]
-    (213)  |11111111|11111111|11111001|11           3ffffe7  [26]
-    (214)  |11111111|11111111|11111100|010          7ffffe2  [27]
-    (215)  |11111111|11111111|11110010               fffff2  [24]
-    (216)  |11111111|11111111|00100                  1fffe4  [21]
-    (217)  |11111111|11111111|00101                  1fffe5  [21]
-    (218)  |11111111|11111111|11111010|00           3ffffe8  [26]
-    (219)  |11111111|11111111|11111010|01           3ffffe9  [26]
-    (220)  |11111111|11111111|11111111|1101         ffffffd  [28]
-    (221)  |11111111|11111111|11111100|011          7ffffe3  [27]
-    (222)  |11111111|11111111|11111100|100          7ffffe4  [27]
-    (223)  |11111111|11111111|11111100|101          7ffffe5  [27]
-    (224)  |11111111|11111110|1100                    fffec  [20]
-    (225)  |11111111|11111111|11110011               fffff3  [24]
-    (226)  |11111111|11111110|1101                    fffed  [20]
-    (227)  |11111111|11111111|00110                  1fffe6  [21]
-    (228)  |11111111|11111111|101001                 3fffe9  [22]
-    (229)  |11111111|11111111|00111                  1fffe7  [21]
-    (230)  |11111111|11111111|01000                  1fffe8  [21]
-    (231)  |11111111|11111111|1110011                7ffff3  [23]
-    (232)  |11111111|11111111|101010                 3fffea  [22]
-    (233)  |11111111|11111111|101011                 3fffeb  [22]
-    (234)  |11111111|11111111|11110111|0            1ffffee  [25]
-    (235)  |11111111|11111111|11110111|1            1ffffef  [25]
-    (236)  |11111111|11111111|11110100               fffff4  [24]
-    (237)  |11111111|11111111|11110101               fffff5  [24]
-    (238)  |11111111|11111111|11111010|10           3ffffea  [26]
-    (239)  |11111111|11111111|1110100                7ffff4  [23]
-    (240)  |11111111|11111111|11111010|11           3ffffeb  [26]
-    (241)  |11111111|11111111|11111100|110          7ffffe6  [27]
-    (242)  |11111111|11111111|11111011|00           3ffffec  [26]
-    (243)  |11111111|11111111|11111011|01           3ffffed  [26]
-    (244)  |11111111|11111111|11111100|111          7ffffe7  [27]
-    (245)  |11111111|11111111|11111101|000          7ffffe8  [27]
-    (246)  |11111111|11111111|11111101|001          7ffffe9  [27]
-    (247)  |11111111|11111111|11111101|010          7ffffea  [27]
-    (248)  |11111111|11111111|11111101|011          7ffffeb  [27]
-    (249)  |11111111|11111111|11111111|1110         ffffffe  [28]
-    (250)  |11111111|11111111|11111101|100          7ffffec  [27]
-    (251)  |11111111|11111111|11111101|101          7ffffed  [27]
-    (252)  |11111111|11111111|11111101|110          7ffffee  [27]
-    (253)  |11111111|11111111|11111101|111          7ffffef  [27]
-    (254)  |11111111|11111111|11111110|000          7fffff0  [27]
-    (255)  |11111111|11111111|11111011|10           3ffffee  [26]
-    EOS (256)  |11111111|11111111|11111111|111111      3fffffff  [30]
-`;
-
-table = table.split('\n').filter(function(line) {
-  return line.length > 0;
-});
-
-function createNode() {
-  // See `encodeBits`
-  var arr = new Array(256);
-  for (var i = 0; i < arr.length; i++)
-    arr[i] = 0;
-  return arr;
-}
-
-var decode = createNode();
-var encode = createNode();
-
-function encodeBits(bits) {
-  var num = parseInt(bits, 2);
-
-  return num;
-}
-
-table.forEach(function(line) {
-  var match = line.match(/\(\s*([\d]+)\)\s+\|([^\s]+)\s+([^\s]+)/);
-  var octet = match[1] | 0;
-  var bits = match[2].split(/\|/g);
-  var hex = parseInt(match[3], 16);
-
-  var node = decode;
-  var totalLen = 0;
-  for (var i = 0; i < bits.length - 1; i++) {
-    var b = encodeBits(bits[i]);
-    totalLen += bits[i].length;
-    if (node[b] === 0)
-      node[b] = createNode();
-    node = node[b];
-  }
-  totalLen += bits[i].length;
-  node[encodeBits(bits[i])] = (bits[i].length << 9) | octet;
-  encode[octet] = [ totalLen, hex ];
-});
-
-// Wrap lines after 79 chars
-out = 'exports.decode =\n' + utils.wrap(JSON.stringify(decode)) + ';';
-console.log(out);
-
-out = 'exports.encode =\n' + utils.wrap(JSON.stringify(encode)) + ';';
-console.log(out);

+ 0 - 103
node_modules.bak/hpack.js/tools/gen-static-table.js

@@ -1,103 +0,0 @@
-var utils = require('./utils');
-
-var table = `
-1	:authority	
-2	:method	GET
-3	:method	POST
-4	:path	/
-5	:path	/index.html
-6	:scheme	http
-7	:scheme	https
-8	:status	200
-9	:status	204
-10	:status	206
-11	:status	304
-12	:status	400
-13	:status	404
-14	:status	500
-15	accept-charset	
-16	accept-encoding	gzip, deflate
-17	accept-language	
-18	accept-ranges	
-19	accept	
-20	access-control-allow-origin	
-21	age	
-22	allow	
-23	authorization	
-24	cache-control	
-25	content-disposition	
-26	content-encoding	
-27	content-language	
-28	content-length	
-29	content-location	
-30	content-range	
-31	content-type	
-32	cookie	
-33	date	
-34	etag	
-35	expect	
-36	expires	
-37	from	
-38	host	
-39	if-match	
-40	if-modified-since	
-41	if-none-match	
-42	if-range	
-43	if-unmodified-since	
-44	last-modified	
-45	link	
-46	location	
-47	max-forwards	
-48	proxy-authenticate	
-49	proxy-authorization	
-50	range	
-51	referer	
-52	refresh	
-53	retry-after	
-54	server	
-55	set-cookie	
-56	strict-transport-security	
-57	transfer-encoding	
-58	user-agent	
-59	vary	
-60	via	
-61	www-authenticate	
-`;
-
-var out = [];
-table.split('\n').filter(function(line) {
-  return line;
-}).forEach(function(line) {
-  var columns = line.split(/\t/g);
-  var name = columns[1];
-  var value = columns[2];
-  var nameSize = Buffer.byteLength(name);
-  var valueSize = Buffer.byteLength(value);
-  out.push({
-    name: name,
-    value: value,
-    nameSize: nameSize,
-    totalSize: nameSize + valueSize + 32
-  });
-});
-
-console.log('exports.table = ' + JSON.stringify(out, false, 2) + ';');
-
-var map = {};
-table.split('\n').filter(function(line) {
-  return line;
-}).forEach(function(line) {
-  var columns = line.split(/\t/g);
-  var name = columns[1];
-  var value = columns[2];
-
-  var index = columns[0] | 0;
-  if (!map[name]) {
-    map[name] = {
-      index: index,
-      values: {}
-    };
-  }
-  map[name].values[value] = index;
-});
-console.log('exports.map = ' + JSON.stringify(map, false, 2) + ';');

+ 0 - 23
node_modules.bak/hpack.js/tools/utils.js

@@ -1,23 +0,0 @@
-// Wrap lines after 79 chars
-exports.wrap = function wrap(str) {
-  var out = [];
-  var pad = '    ';
-  var line = pad;
-
-  var chunks = str.split(/,/g);
-  chunks.forEach(function(chunk, i) {
-    var append = chunk;
-    if (i !== chunks.length - 1)
-      append += ',';
-
-    if (line.length + append.length > 79) {
-      out.push(line);
-      line = pad;
-    }
-    line += append;
-  });
-  if (line !== pad)
-    out.push(line);
-
-  return out.join('\n');
-};

+ 0 - 19
node_modules.bak/html-entities/LICENSE

@@ -1,19 +0,0 @@
-Copyright (c) 2013 Dulin Marat
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.

+ 0 - 63
node_modules.bak/html-entities/README.md

@@ -1,63 +0,0 @@
-html-entities
-=============
-
-[![Build Status](https://travis-ci.org/mdevils/node-html-entities.svg?branch=master)](https://travis-ci.org/mdevils/node-html-entities)
-[![Coverage Status](https://coveralls.io/repos/mdevils/node-html-entities/badge.svg?branch=master&service=github)](https://coveralls.io/github/mdevils/node-html-entities?branch=master)
-
-Fast html entities library.
-
-
-Installation
-------------
-
-```bash
-$ npm install html-entities
-```
-
-Usage
------
-
-**XML entities**
-
-HTML validity and XSS attack prevention you can achieve from XmlEntities class.
-
-```javascript
-const Entities = require('html-entities').XmlEntities;
-
-const entities = new Entities();
-
-console.log(entities.encode('<>"\'&©®')); // &lt;&gt;&quot;&apos;&amp;©®
-console.log(entities.encodeNonUTF('<>"\'&©®')); // &lt;&gt;&quot;&apos;&amp;&#169;&#174;
-console.log(entities.encodeNonASCII('<>"\'&©®')); // <>"\'&©®
-console.log(entities.decode('&lt;&gt;&quot;&apos;&amp;&copy;&reg;&#8710;')); // <>"'&&copy;&reg;∆
-```
-
-**All HTML entities encoding/decoding**
-
-
-```javascript
-const Entities = require('html-entities').AllHtmlEntities;
-
-const entities = new Entities();
-
-console.log(entities.encode('<>"&©®∆')); // &lt;&gt;&quot;&amp;&copy;&reg;∆
-console.log(entities.encodeNonUTF('<>"&©®∆')); // &lt;&gt;&quot;&amp;&copy;&reg;&#8710;
-console.log(entities.encodeNonASCII('<>"&©®∆')); // <>"&©®&#8710;
-console.log(entities.decode('&lt;&gt;&quot;&amp;&copy;&reg;')); // <>"&©®
-```
-
-**Available classes**
-
-```javascript
-const XmlEntities = require('html-entities').XmlEntities, // <>"'& + &#...; decoding
-      Html4Entities = require('html-entities').Html4Entities, // HTML4 entities.
-      Html5Entities = require('html-entities').Html5Entities, // HTML5 entities.
-      AllHtmlEntities = require('html-entities').AllHtmlEntities; // Synonym for HTML5 entities.
-```
-
-Supports four methods for every class:
-
-* encode — encodes, replacing characters to its entity representations. Ignores UTF characters with no entity representation.
-* encodeNonUTF — encodes, replacing characters to its entity representations. Inserts numeric entities for UTF characters.
-* encodeNonASCII — encodes, replacing only non-ASCII characters to its numeric entity representations.
-* decode — decodes, replacing entities to characters. Unknown entities are left as is.

+ 0 - 10
node_modules.bak/html-entities/lib/html4-entities.d.ts

@@ -1,10 +0,0 @@
-export declare class Html4Entities {
-    decode(str: string): string;
-    static decode(str: string): string;
-    encode(str: string): string;
-    static encode(str: string): string;
-    encodeNonUTF(str: string): string;
-    static encodeNonUTF(str: string): string;
-    encodeNonASCII(str: string): string;
-    static encodeNonASCII(str: string): string;
-}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 128
node_modules.bak/html-entities/lib/html4-entities.js


+ 0 - 10
node_modules.bak/html-entities/lib/html5-entities.d.ts

@@ -1,10 +0,0 @@
-export declare class Html5Entities {
-    decode(str: string): string;
-    static decode(str: string): string;
-    encode(str: string): string;
-    static encode(str: string): string;
-    encodeNonUTF(str: string): string;
-    static encodeNonUTF(str: string): string;
-    encodeNonASCII(str: string): string;
-    static encodeNonASCII(str: string): string;
-}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 167
node_modules.bak/html-entities/lib/html5-entities.js


+ 0 - 3
node_modules.bak/html-entities/lib/index.d.ts

@@ -1,3 +0,0 @@
-export { XmlEntities } from './xml-entities';
-export { Html4Entities } from './html4-entities';
-export { Html5Entities, Html5Entities as AllHtmlEntities } from './html5-entities';

+ 0 - 9
node_modules.bak/html-entities/lib/index.js

@@ -1,9 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var xml_entities_1 = require("./xml-entities");
-exports.XmlEntities = xml_entities_1.XmlEntities;
-var html4_entities_1 = require("./html4-entities");
-exports.Html4Entities = html4_entities_1.Html4Entities;
-var html5_entities_1 = require("./html5-entities");
-exports.Html5Entities = html5_entities_1.Html5Entities;
-exports.AllHtmlEntities = html5_entities_1.Html5Entities;

+ 0 - 4
node_modules.bak/html-entities/lib/surrogate-pairs.d.ts

@@ -1,4 +0,0 @@
-export declare const fromCodePoint: (...codePoints: number[]) => string;
-export declare const getCodePoint: (input: string, position: number) => number | undefined;
-export declare const highSurrogateFrom = 55296;
-export declare const highSurrogateTo = 56319;

+ 0 - 15
node_modules.bak/html-entities/lib/surrogate-pairs.js

@@ -1,15 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.fromCodePoint = String.fromCodePoint || function (astralCodePoint) {
-    return String.fromCharCode(Math.floor((astralCodePoint - 0x10000) / 0x400) + 0xD800, (astralCodePoint - 0x10000) % 0x400 + 0xDC00);
-};
-exports.getCodePoint = String.prototype.codePointAt ?
-    function (input, position) {
-        return input.codePointAt(position);
-    } :
-    function (input, position) {
-        return (input.charCodeAt(position) - 0xD800) * 0x400
-            + input.charCodeAt(position + 1) - 0xDC00 + 0x10000;
-    };
-exports.highSurrogateFrom = 0xD800;
-exports.highSurrogateTo = 0xDBFF;

+ 0 - 10
node_modules.bak/html-entities/lib/xml-entities.d.ts

@@ -1,10 +0,0 @@
-export declare class XmlEntities {
-    encode(str: string): string;
-    static encode(str: string): string;
-    decode(str: string): string;
-    static decode(str: string): string;
-    encodeNonUTF(str: string): string;
-    static encodeNonUTF(str: string): string;
-    encodeNonASCII(str: string): string;
-    static encodeNonASCII(str: string): string;
-}

+ 0 - 132
node_modules.bak/html-entities/lib/xml-entities.js

@@ -1,132 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var surrogate_pairs_1 = require("./surrogate-pairs");
-var ALPHA_INDEX = {
-    '&lt': '<',
-    '&gt': '>',
-    '&quot': '"',
-    '&apos': '\'',
-    '&amp': '&',
-    '&lt;': '<',
-    '&gt;': '>',
-    '&quot;': '"',
-    '&apos;': '\'',
-    '&amp;': '&'
-};
-var CHAR_INDEX = {
-    60: 'lt',
-    62: 'gt',
-    34: 'quot',
-    39: 'apos',
-    38: 'amp'
-};
-var CHAR_S_INDEX = {
-    '<': '&lt;',
-    '>': '&gt;',
-    '"': '&quot;',
-    '\'': '&apos;',
-    '&': '&amp;'
-};
-var XmlEntities = /** @class */ (function () {
-    function XmlEntities() {
-    }
-    XmlEntities.prototype.encode = function (str) {
-        if (!str || !str.length) {
-            return '';
-        }
-        return str.replace(/[<>"'&]/g, function (s) {
-            return CHAR_S_INDEX[s];
-        });
-    };
-    XmlEntities.encode = function (str) {
-        return new XmlEntities().encode(str);
-    };
-    XmlEntities.prototype.decode = function (str) {
-        if (!str || !str.length) {
-            return '';
-        }
-        return str.replace(/&#?[0-9a-zA-Z]+;?/g, function (s) {
-            if (s.charAt(1) === '#') {
-                var code = s.charAt(2).toLowerCase() === 'x' ?
-                    parseInt(s.substr(3), 16) :
-                    parseInt(s.substr(2));
-                if (!isNaN(code) || code >= -32768) {
-                    if (code <= 65535) {
-                        return String.fromCharCode(code);
-                    }
-                    else {
-                        return surrogate_pairs_1.fromCodePoint(code);
-                    }
-                }
-                return '';
-            }
-            return ALPHA_INDEX[s] || s;
-        });
-    };
-    XmlEntities.decode = function (str) {
-        return new XmlEntities().decode(str);
-    };
-    XmlEntities.prototype.encodeNonUTF = function (str) {
-        if (!str || !str.length) {
-            return '';
-        }
-        var strLength = str.length;
-        var result = '';
-        var i = 0;
-        while (i < strLength) {
-            var c = str.charCodeAt(i);
-            var alpha = CHAR_INDEX[c];
-            if (alpha) {
-                result += "&" + alpha + ";";
-                i++;
-                continue;
-            }
-            if (c < 32 || c > 126) {
-                if (c >= surrogate_pairs_1.highSurrogateFrom && c <= surrogate_pairs_1.highSurrogateTo) {
-                    result += '&#' + surrogate_pairs_1.getCodePoint(str, i) + ';';
-                    i++;
-                }
-                else {
-                    result += '&#' + c + ';';
-                }
-            }
-            else {
-                result += str.charAt(i);
-            }
-            i++;
-        }
-        return result;
-    };
-    XmlEntities.encodeNonUTF = function (str) {
-        return new XmlEntities().encodeNonUTF(str);
-    };
-    XmlEntities.prototype.encodeNonASCII = function (str) {
-        if (!str || !str.length) {
-            return '';
-        }
-        var strLength = str.length;
-        var result = '';
-        var i = 0;
-        while (i < strLength) {
-            var c = str.charCodeAt(i);
-            if (c <= 255) {
-                result += str[i++];
-                continue;
-            }
-            if (c >= surrogate_pairs_1.highSurrogateFrom && c <= surrogate_pairs_1.highSurrogateTo) {
-                result += '&#' + surrogate_pairs_1.getCodePoint(str, i) + ';';
-                i++;
-            }
-            else {
-                result += '&#' + c + ';';
-            }
-            i++;
-        }
-        return result;
-    };
-    XmlEntities.encodeNonASCII = function (str) {
-        return new XmlEntities().encodeNonASCII(str);
-    };
-    return XmlEntities;
-}());
-exports.XmlEntities = XmlEntities;

+ 0 - 82
node_modules.bak/html-entities/package.json

@@ -1,82 +0,0 @@
-{
-  "_from": "html-entities@^1.3.1",
-  "_id": "html-entities@1.4.0",
-  "_inBundle": false,
-  "_integrity": "sha1-z70bAdKvr5rcobEK59/6uYxx0tw=",
-  "_location": "/html-entities",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "html-entities@^1.3.1",
-    "name": "html-entities",
-    "escapedName": "html-entities",
-    "rawSpec": "^1.3.1",
-    "saveSpec": null,
-    "fetchSpec": "^1.3.1"
-  },
-  "_requiredBy": [
-    "/webpack-dev-server"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/html-entities/download/html-entities-1.4.0.tgz?cache=0&sync_timestamp=1617031787889&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhtml-entities%2Fdownload%2Fhtml-entities-1.4.0.tgz",
-  "_shasum": "cfbd1b01d2afaf9adca1b10ae7dffab98c71d2dc",
-  "_spec": "html-entities@^1.3.1",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\webpack-dev-server",
-  "author": {
-    "name": "Marat Dulin",
-    "email": "mdevils@yandex.ru"
-  },
-  "bugs": {
-    "url": "https://github.com/mdevils/node-html-entities/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {},
-  "deprecated": false,
-  "description": "Faster HTML entities encode/decode library.",
-  "devDependencies": {
-    "@types/benchmark": "^2.1.0",
-    "@types/chai": "^4.2.11",
-    "@types/mocha": "^7.0.2",
-    "@types/node": "^13.13.4",
-    "benchmark": "^2.1.4",
-    "chai": "^4.2.0",
-    "coveralls": "^3.1.0",
-    "entities": "^2.0.0",
-    "mocha": "^7.1.2",
-    "node-html-encoder": "^0.0.2",
-    "ts-node": "^8.9.1",
-    "typescript": "^3.8.3"
-  },
-  "files": [
-    "index.js",
-    "lib",
-    "LICENSE"
-  ],
-  "homepage": "https://github.com/mdevils/node-html-entities#readme",
-  "keywords": [
-    "html",
-    "html entities",
-    "html entities encode",
-    "html entities decode",
-    "entities",
-    "entities encode",
-    "entities decode"
-  ],
-  "license": "MIT",
-  "main": "./lib/index.js",
-  "name": "html-entities",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/mdevils/node-html-entities.git"
-  },
-  "scripts": {
-    "benchmark": "ts-node benchmark/benchmark",
-    "build": "tsc",
-    "prepublishOnly": "yarn build",
-    "test": "mocha --recursive -r ts-node/register test/**/*.ts",
-    "travis": "yarn test"
-  },
-  "types": "./lib/index.d.ts",
-  "typings": "./lib/index.d.ts",
-  "version": "1.4.0"
-}

+ 0 - 22
node_modules.bak/html-minifier/LICENSE

@@ -1,22 +0,0 @@
-Copyright (c) 2010-2018 Juriy "kangax" Zaytsev
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 159
node_modules.bak/html-minifier/README.md


+ 0 - 310
node_modules.bak/html-minifier/cli.js

@@ -1,310 +0,0 @@
-#!/usr/bin/env node
-/**
- * html-minifier CLI tool
- *
- * The MIT License (MIT)
- *
- *  Copyright (c) 2014-2016 Zoltan Frombach
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a copy of
- *  this software and associated documentation files (the "Software"), to deal in
- *  the Software without restriction, including without limitation the rights to
- *  use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
- *  the Software, and to permit persons to whom the Software is furnished to do so,
- *  subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included in all
- *  copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
- *  FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
- *  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
- *  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- *  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- */
-
-'use strict';
-
-var camelCase = require('camel-case');
-var fs = require('fs');
-var info = require('./package.json');
-var minify = require('./' + info.main).minify;
-var paramCase = require('param-case');
-var path = require('path');
-var program = require('commander');
-
-program._name = info.name;
-program.version(info.version);
-
-function fatal(message) {
-  console.error(message);
-  process.exit(1);
-}
-
-/**
- * JSON does not support regexes, so, e.g., JSON.parse() will not create
- * a RegExp from the JSON value `[ "/matchString/" ]`, which is
- * technically just an array containing a string that begins and end with
- * a forward slash. To get a RegExp from a JSON string, it must be
- * constructed explicitly in JavaScript.
- *
- * The likelihood of actually wanting to match text that is enclosed in
- * forward slashes is probably quite rare, so if forward slashes were
- * included in an argument that requires a regex, the user most likely
- * thought they were part of the syntax for specifying a regex.
- *
- * In the unlikely case that forward slashes are indeed desired in the
- * search string, the user would need to enclose the expression in a
- * second set of slashes:
- *
- *    --customAttrSrround "[\"//matchString//\"]"
- */
-function parseRegExp(value) {
-  if (value) {
-    return new RegExp(value.replace(/^\/(.*)\/$/, '$1'));
-  }
-}
-
-function parseJSON(value) {
-  if (value) {
-    try {
-      return JSON.parse(value);
-    }
-    catch (e) {
-      if (/^{/.test(value)) {
-        fatal('Could not parse JSON value \'' + value + '\'');
-      }
-      return value;
-    }
-  }
-}
-
-function parseJSONArray(value) {
-  if (value) {
-    value = parseJSON(value);
-    return Array.isArray(value) ? value : [value];
-  }
-}
-
-function parseJSONRegExpArray(value) {
-  value = parseJSONArray(value);
-  return value && value.map(parseRegExp);
-}
-
-function parseString(value) {
-  return value;
-}
-
-var mainOptions = {
-  caseSensitive: 'Treat attributes in case sensitive manner (useful for SVG; e.g. viewBox)',
-  collapseBooleanAttributes: 'Omit attribute values from boolean attributes',
-  collapseInlineTagWhitespace: 'Collapse white space around inline tag',
-  collapseWhitespace: 'Collapse white space that contributes to text nodes in a document tree.',
-  conservativeCollapse: 'Always collapse to 1 space (never remove it entirely)',
-  customAttrAssign: ['Arrays of regex\'es that allow to support custom attribute assign expressions (e.g. \'<div flex?="{{mode != cover}}"></div>\')', parseJSONRegExpArray],
-  customAttrCollapse: ['Regex that specifies custom attribute to strip newlines from (e.g. /ng-class/)', parseRegExp],
-  customAttrSurround: ['Arrays of regex\'es that allow to support custom attribute surround expressions (e.g. <input {{#if value}}checked="checked"{{/if}}>)', parseJSONRegExpArray],
-  customEventAttributes: ['Arrays of regex\'es that allow to support custom event attributes for minifyJS (e.g. ng-click)', parseJSONRegExpArray],
-  decodeEntities: 'Use direct Unicode characters whenever possible',
-  html5: 'Parse input according to HTML5 specifications',
-  ignoreCustomComments: ['Array of regex\'es that allow to ignore certain comments, when matched', parseJSONRegExpArray],
-  ignoreCustomFragments: ['Array of regex\'es that allow to ignore certain fragments, when matched (e.g. <?php ... ?>, {{ ... }})', parseJSONRegExpArray],
-  includeAutoGeneratedTags: 'Insert tags generated by HTML parser',
-  keepClosingSlash: 'Keep the trailing slash on singleton elements',
-  maxLineLength: ['Max line length', parseInt],
-  minifyCSS: ['Minify CSS in style elements and style attributes (uses clean-css)', parseJSON],
-  minifyJS: ['Minify Javascript in script elements and on* attributes (uses uglify-js)', parseJSON],
-  minifyURLs: ['Minify URLs in various attributes (uses relateurl)', parseJSON],
-  preserveLineBreaks: 'Always collapse to 1 line break (never remove it entirely) when whitespace between tags include a line break.',
-  preventAttributesEscaping: 'Prevents the escaping of the values of attributes.',
-  processConditionalComments: 'Process contents of conditional comments through minifier',
-  processScripts: ['Array of strings corresponding to types of script elements to process through minifier (e.g. "text/ng-template", "text/x-handlebars-template", etc.)', parseJSONArray],
-  quoteCharacter: ['Type of quote to use for attribute values (\' or ")', parseString],
-  removeAttributeQuotes: 'Remove quotes around attributes when possible.',
-  removeComments: 'Strip HTML comments',
-  removeEmptyAttributes: 'Remove all attributes with whitespace-only values',
-  removeEmptyElements: 'Remove all elements with empty contents',
-  removeOptionalTags: 'Remove unrequired tags',
-  removeRedundantAttributes: 'Remove attributes when value matches default.',
-  removeScriptTypeAttributes: 'Remove type="text/javascript" from script tags. Other type attribute values are left intact.',
-  removeStyleLinkTypeAttributes: 'Remove type="text/css" from style and link tags. Other type attribute values are left intact.',
-  removeTagWhitespace: 'Remove space between attributes whenever possible',
-  sortAttributes: 'Sort attributes by frequency',
-  sortClassName: 'Sort style classes by frequency',
-  trimCustomFragments: 'Trim white space around ignoreCustomFragments.',
-  useShortDoctype: 'Replaces the doctype with the short (HTML5) doctype'
-};
-var mainOptionKeys = Object.keys(mainOptions);
-mainOptionKeys.forEach(function(key) {
-  var option = mainOptions[key];
-  if (Array.isArray(option)) {
-    key = key === 'minifyURLs' ? '--minify-urls' : '--' + paramCase(key);
-    key += option[1] === parseJSON ? ' [value]' : ' <value>';
-    program.option(key, option[0], option[1]);
-  }
-  else if (~['html5', 'includeAutoGeneratedTags'].indexOf(key)) {
-    program.option('--no-' + paramCase(key), option);
-  }
-  else {
-    program.option('--' + paramCase(key), option);
-  }
-});
-program.option('-o --output <file>', 'Specify output file (if not specified STDOUT will be used for output)');
-
-function readFile(file) {
-  try {
-    return fs.readFileSync(file, { encoding: 'utf8' });
-  }
-  catch (e) {
-    fatal('Cannot read ' + file + '\n' + e.message);
-  }
-}
-
-var config = {};
-program.option('-c --config-file <file>', 'Use config file', function(configPath) {
-  var data = readFile(configPath);
-  try {
-    config = JSON.parse(data);
-  }
-  catch (je) {
-    try {
-      config = require(path.resolve(configPath));
-    }
-    catch (ne) {
-      fatal('Cannot read the specified config file.\nAs JSON: ' + je.message + '\nAs module: ' + ne.message);
-    }
-  }
-  mainOptionKeys.forEach(function(key) {
-    if (key in config) {
-      var option = mainOptions[key];
-      if (Array.isArray(option)) {
-        var value = config[key];
-        config[key] = option[1](typeof value === 'string' ? value : JSON.stringify(value));
-      }
-    }
-  });
-});
-program.option('--input-dir <dir>', 'Specify an input directory');
-program.option('--output-dir <dir>', 'Specify an output directory');
-program.option('--file-ext <text>', 'Specify an extension to be read, ex: html');
-var content;
-program.arguments('[files...]').action(function(files) {
-  content = files.map(readFile).join('');
-}).parse(process.argv);
-
-function createOptions() {
-  var options = {};
-  mainOptionKeys.forEach(function(key) {
-    var param = program[key === 'minifyURLs' ? 'minifyUrls' : camelCase(key)];
-    if (typeof param !== 'undefined') {
-      options[key] = param;
-    }
-    else if (key in config) {
-      options[key] = config[key];
-    }
-  });
-  return options;
-}
-
-function mkdir(outputDir, callback) {
-  fs.mkdir(outputDir, function(err) {
-    if (err) {
-      switch (err.code) {
-        case 'ENOENT':
-          return mkdir(path.join(outputDir, '..'), function() {
-            mkdir(outputDir, callback);
-          });
-        case 'EEXIST':
-          break;
-        default:
-          fatal('Cannot create directory ' + outputDir + '\n' + err.message);
-      }
-    }
-    callback();
-  });
-}
-
-function processFile(inputFile, outputFile) {
-  fs.readFile(inputFile, { encoding: 'utf8' }, function(err, data) {
-    if (err) {
-      fatal('Cannot read ' + inputFile + '\n' + err.message);
-    }
-    var minified;
-    try {
-      minified = minify(data, createOptions());
-    }
-    catch (e) {
-      fatal('Minification error on ' + inputFile + '\n' + e.message);
-    }
-    fs.writeFile(outputFile, minified, { encoding: 'utf8' }, function(err) {
-      if (err) {
-        fatal('Cannot write ' + outputFile + '\n' + err.message);
-      }
-    });
-  });
-}
-
-function processDirectory(inputDir, outputDir, fileExt) {
-  fs.readdir(inputDir, function(err, files) {
-    if (err) {
-      fatal('Cannot read directory ' + inputDir + '\n' + err.message);
-    }
-    files.forEach(function(file) {
-      var inputFile = path.join(inputDir, file);
-      var outputFile = path.join(outputDir, file);
-      fs.stat(inputFile, function(err, stat) {
-        if (err) {
-          fatal('Cannot read ' + inputFile + '\n' + err.message);
-        }
-        else if (stat.isDirectory()) {
-          processDirectory(inputFile, outputFile, fileExt);
-        }
-        else if (!fileExt || path.extname(file) === '.' + fileExt) {
-          mkdir(outputDir, function() {
-            processFile(inputFile, outputFile);
-          });
-        }
-      });
-    });
-  });
-}
-
-function writeMinify() {
-  var minified;
-  try {
-    minified = minify(content, createOptions());
-  }
-  catch (e) {
-    fatal('Minification error:\n' + e.message);
-  }
-  (program.output ? fs.createWriteStream(program.output).on('error', function(e) {
-    fatal('Cannot write ' + program.output + '\n' + e.message);
-  }) : process.stdout).write(minified);
-}
-
-var inputDir = program.inputDir;
-var outputDir = program.outputDir;
-var fileExt = program.fileExt;
-if (inputDir || outputDir) {
-  if (!inputDir) {
-    fatal('The option output-dir needs to be used with the option input-dir. If you are working with a single file, use -o.');
-  }
-  else if (!outputDir) {
-    fatal('You need to specify where to write the output files with the option --output-dir');
-  }
-  processDirectory(inputDir, outputDir, fileExt);
-}
-// Minifying one or more files specified on the CMD line
-else if (content) {
-  writeMinify();
-}
-// Minifying input coming from STDIN
-else {
-  content = '';
-  process.stdin.setEncoding('utf8');
-  process.stdin.on('data', function(data) {
-    content += data;
-  }).on('end', writeMinify);
-}

+ 0 - 129
node_modules.bak/html-minifier/package.json

@@ -1,129 +0,0 @@
-{
-  "_from": "html-minifier@^3.2.3",
-  "_id": "html-minifier@3.5.21",
-  "_inBundle": false,
-  "_integrity": "sha1-0AQOBUcw41TbAIRjWTGUAVIS0gw=",
-  "_location": "/html-minifier",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "html-minifier@^3.2.3",
-    "name": "html-minifier",
-    "escapedName": "html-minifier",
-    "rawSpec": "^3.2.3",
-    "saveSpec": null,
-    "fetchSpec": "^3.2.3"
-  },
-  "_requiredBy": [
-    "/html-webpack-plugin"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/html-minifier/download/html-minifier-3.5.21.tgz",
-  "_shasum": "d0040e054730e354db008463593194015212d20c",
-  "_spec": "html-minifier@^3.2.3",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\html-webpack-plugin",
-  "author": {
-    "name": "Juriy \"kangax\" Zaytsev"
-  },
-  "benchmarkDependencies": {
-    "brotli": "1.3.x",
-    "chalk": "2.4.x",
-    "cli-table": "0.3.x",
-    "lzma": "2.3.x",
-    "minimize": "2.2.x",
-    "progress": "2.0.x"
-  },
-  "bin": {
-    "html-minifier": "cli.js"
-  },
-  "bugs": {
-    "url": "https://github.com/kangax/html-minifier/issues"
-  },
-  "bundleDependencies": false,
-  "contributors": [
-    {
-      "name": "Gilmore Davidson",
-      "url": "https://github.com/gilmoreorless"
-    },
-    {
-      "name": "Hugo Wetterberg",
-      "email": "hugo@wetterberg.nu"
-    },
-    {
-      "name": "Zoltan Frombach",
-      "email": "tssajo@gmail.com"
-    }
-  ],
-  "dependencies": {
-    "camel-case": "3.0.x",
-    "clean-css": "4.2.x",
-    "commander": "2.17.x",
-    "he": "1.2.x",
-    "param-case": "2.1.x",
-    "relateurl": "0.2.x",
-    "uglify-js": "3.4.x"
-  },
-  "deprecated": false,
-  "description": "Highly configurable, well-tested, JavaScript-based HTML minifier.",
-  "devDependencies": {
-    "grunt": "1.0.x",
-    "grunt-browserify": "5.3.x",
-    "grunt-contrib-uglify": "3.4.x",
-    "gruntify-eslint": "4.0.x",
-    "phantomjs-prebuilt": "2.1.x",
-    "qunit": "2.x"
-  },
-  "engines": {
-    "node": ">=4"
-  },
-  "files": [
-    "src/*.js",
-    "cli.js",
-    "sample-cli-config-file.conf"
-  ],
-  "homepage": "https://kangax.github.io/html-minifier/",
-  "keywords": [
-    "cli",
-    "compress",
-    "compressor",
-    "css",
-    "html",
-    "htmlmin",
-    "javascript",
-    "min",
-    "minification",
-    "minifier",
-    "minify",
-    "optimize",
-    "optimizer",
-    "pack",
-    "packer",
-    "parse",
-    "parser",
-    "uglifier",
-    "uglify"
-  ],
-  "license": "MIT",
-  "main": "src/htmlminifier.js",
-  "maintainers": [
-    {
-      "name": "Alex Lam",
-      "email": "alexlamsl@gmail.com"
-    },
-    {
-      "name": "Juriy Zaytsev",
-      "email": "kangax@gmail.com",
-      "url": "http://perfectionkills.com/"
-    }
-  ],
-  "name": "html-minifier",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/kangax/html-minifier.git"
-  },
-  "scripts": {
-    "dist": "grunt dist",
-    "test": "grunt test"
-  },
-  "version": "3.5.21"
-}

+ 0 - 39
node_modules.bak/html-minifier/sample-cli-config-file.conf

@@ -1,39 +0,0 @@
-{
-  "caseSensitive": false,
-  "collapseBooleanAttributes": true,
-  "collapseInlineTagWhitespace": false,
-  "collapseWhitespace": true,
-  "conservativeCollapse": false,
-  "customAttrCollapse": ".*",
-  "decodeEntities": true,
-  "html5": true,
-  "ignoreCustomFragments": [
-    "<#[\\s\\S]*?#>",
-    "<%[\\s\\S]*?%>",
-    "<\\?[\\s\\S]*?\\?>"
-  ],
-  "includeAutoGeneratedTags": false,
-  "keepClosingSlash": false,
-  "maxLineLength": 0,
-  "minifyCSS": true,
-  "minifyJS": true,
-  "preserveLineBreaks": false,
-  "preventAttributesEscaping": false,
-  "processConditionalComments": true,
-  "processScripts": [
-    "text/html"
-  ],
-  "removeAttributeQuotes": true,
-  "removeComments": true,
-  "removeEmptyAttributes": true,
-  "removeEmptyElements": true,
-  "removeOptionalTags": true,
-  "removeRedundantAttributes": true,
-  "removeScriptTypeAttributes": true,
-  "removeStyleLinkTypeAttributes": true,
-  "removeTagWhitespace": true,
-  "sortAttributes": true,
-  "sortClassName": true,
-  "trimCustomFragments": true,
-  "useShortDoctype": true
-}

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 1329
node_modules.bak/html-minifier/src/htmlminifier.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 563
node_modules.bak/html-minifier/src/htmlparser.js


+ 0 - 71
node_modules.bak/html-minifier/src/tokenchain.js

@@ -1,71 +0,0 @@
-'use strict';
-
-function Sorter() {
-}
-
-Sorter.prototype.sort = function(tokens, fromIndex) {
-  fromIndex = fromIndex || 0;
-  for (var i = 0, len = this.keys.length; i < len; i++) {
-    var key = this.keys[i];
-    var token = key.slice(1);
-    var index = tokens.indexOf(token, fromIndex);
-    if (index !== -1) {
-      do {
-        if (index !== fromIndex) {
-          tokens.splice(index, 1);
-          tokens.splice(fromIndex, 0, token);
-        }
-        fromIndex++;
-      } while ((index = tokens.indexOf(token, fromIndex)) !== -1);
-      return this[key].sort(tokens, fromIndex);
-    }
-  }
-  return tokens;
-};
-
-function TokenChain() {
-}
-
-TokenChain.prototype = {
-  add: function(tokens) {
-    var self = this;
-    tokens.forEach(function(token) {
-      var key = '$' + token;
-      if (!self[key]) {
-        self[key] = [];
-        self[key].processed = 0;
-      }
-      self[key].push(tokens);
-    });
-  },
-  createSorter: function() {
-    var self = this;
-    var sorter = new Sorter();
-    sorter.keys = Object.keys(self).sort(function(j, k) {
-      var m = self[j].length;
-      var n = self[k].length;
-      return m < n ? 1 : m > n ? -1 : j < k ? -1 : j > k ? 1 : 0;
-    }).filter(function(key) {
-      if (self[key].processed < self[key].length) {
-        var token = key.slice(1);
-        var chain = new TokenChain();
-        self[key].forEach(function(tokens) {
-          var index;
-          while ((index = tokens.indexOf(token)) !== -1) {
-            tokens.splice(index, 1);
-          }
-          tokens.forEach(function(token) {
-            self['$' + token].processed++;
-          });
-          chain.add(tokens.slice(0));
-        });
-        sorter[key] = chain.createSorter();
-        return true;
-      }
-      return false;
-    });
-    return sorter;
-  }
-};
-
-module.exports = TokenChain;

+ 0 - 18
node_modules.bak/html-minifier/src/utils.js

@@ -1,18 +0,0 @@
-'use strict';
-
-function createMap(values, ignoreCase) {
-  var map = {};
-  values.forEach(function(value) {
-    map[value] = 1;
-  });
-  return ignoreCase ? function(value) {
-    return map[value.toLowerCase()] === 1;
-  } : function(value) {
-    return map[value] === 1;
-  };
-}
-
-exports.createMap = createMap;
-exports.createMapFromString = function(values, ignoreCase) {
-  return createMap(values.split(/,/), ignoreCase);
-};

+ 0 - 452
node_modules.bak/html-webpack-plugin/CHANGELOG.md

@@ -1,452 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-<a name="3.2.0"></a>
-# [3.2.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.1.0...v3.2.0) (2018-04-03)
-
-
-### Bug Fixes
-
-* **loader:** Allow to add new template parameters ([f7eac19](https://github.com/jantimon/html-webpack-plugin/commit/f7eac19)), closes [#915](https://github.com/jantimon/html-webpack-plugin/issues/915)
-* **loader:** Use lodash inside the loader directly ([7b4eb7f](https://github.com/jantimon/html-webpack-plugin/commit/7b4eb7f)), closes [#786](https://github.com/jantimon/html-webpack-plugin/issues/786)
-
-
-### Features
-
-* Add meta tag option ([a7d37ca](https://github.com/jantimon/html-webpack-plugin/commit/a7d37ca))
-* Support node 6.9 ([74a22c4](https://github.com/jantimon/html-webpack-plugin/commit/74a22c4)), closes [#918](https://github.com/jantimon/html-webpack-plugin/issues/918)
-
-
-
-<a name="3.1.0"></a>
-# [3.1.0](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.8...v3.1.0) (2018-03-22)
-
-
-### Features
-
-* Allow to overwrite the templateParameter [#830](https://github.com/jantimon/html-webpack-plugin/issues/830) ([c5e32d3](https://github.com/jantimon/html-webpack-plugin/commit/c5e32d3))
-
-
-
-<a name="3.0.8"></a>
-## [3.0.8](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.7...v3.0.8) (2018-03-22)
-
-
-### Bug Fixes
-
-* **compiler:** Fallback to 3.0.7 because of [#900](https://github.com/jantimon/html-webpack-plugin/issues/900) ([05ee29b](https://github.com/jantimon/html-webpack-plugin/commit/05ee29b))
-
-
-
-<a name="3.0.7"></a>
-## [3.0.7](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.6...v3.0.7) (2018-03-19)
-
-
-### Bug Fixes
-
-* **compiler:** Set single entry name [#895](https://github.com/jantimon/html-webpack-plugin/issues/895) ([26dcb98](https://github.com/jantimon/html-webpack-plugin/commit/26dcb98))
-
-
-
-<a name="3.0.6"></a>
-## [3.0.6](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.5...v3.0.6) (2018-03-06)
-
-
-### Bug Fixes
-
-* **hooks:** Call tapable.apply directly [#879](https://github.com/jantimon/html-webpack-plugin/issues/879) ([bcbb036](https://github.com/jantimon/html-webpack-plugin/commit/bcbb036))
-
-
-
-<a name="3.0.5"></a>
-## [3.0.5](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.5) (2018-03-06)
-
-
-### Bug Fixes
-
-* **entries:** do not ignore JS if there is also CSS ([020b714](https://github.com/jantimon/html-webpack-plugin/commit/020b714))
-* **entries:** Don't add css entries twice ([0348d6b](https://github.com/jantimon/html-webpack-plugin/commit/0348d6b))
-* **hooks:** Remove deprecated tapable calls [#879](https://github.com/jantimon/html-webpack-plugin/issues/879) ([2288f20](https://github.com/jantimon/html-webpack-plugin/commit/2288f20))
-
-
-
-<a name="3.0.4"></a>
-## [3.0.4](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.4) (2018-03-01)
-
-
-### Bug Fixes
-
-* **entries:** Don't add css entries twice ([e890f23](https://github.com/jantimon/html-webpack-plugin/commit/e890f23))
-
-
-
-<a name="3.0.3"></a>
-## [3.0.3](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.2...v3.0.3) (2018-03-01)
-
-
-### Refactor
-
-* **performance:** Reduce the amount of chunk information gathered based on #825 ([06c59a7](https://github.com/jantimon/html-webpack-plugin/commit/06c59a7))
-
-
-<a name="3.0.2"></a>
-## [3.0.2](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.1...v3.0.2) (2018-03-01)
-
-
-### Bug Fixes
-
-* **query-loader:** In case no query is provided, return an empty object. This fixes #727 ([7587754](https://github.com/jantimon/html-webpack-plugin/commit/7587754))
-
-
-
-<a name="3.0.1"></a>
-## [3.0.1](https://github.com/jantimon/html-webpack-plugin/compare/v3.0.0...v3.0.1) (2018-03-01)
-
-
-### Bug Fixes
-
-* **package:** Remove the extract-text-webpack-plugin peer dependency ([57411a9](https://github.com/jantimon/html-webpack-plugin/commit/57411a9))
-
-<a name="3.0.0"></a>
-## [3.0.0](https://github.com/jantimon/html-webpack-plugin/compare/v2.30.1...v3.0.0) (2018-28-02)
-
-### Features
-
-* Add support for the new [webpack tapable](https://github.com/webpack/tapable) to be compatible with webpack 4.x
-* Remove bluebird dependency
-
-### BREAKING CHANGES
-
-* Similar to webpack 4.x the support for node versions older than 6 are no longer supported
-
-<a name="2.30.1"></a>
-## 2.30.1
-
-* Revert part the performance optimization ([#723](https://github.com/jantimon/html-webpack-plugin/pull/723)) because of [#753](https://github.com/jantimon/html-webpack-plugin/issues/753).
-
-<a name="2.30.0"></a>
-## 2.30.0
-
-* Add manual sort
-* Performance improvements ([#723](https://github.com/jantimon/html-webpack-plugin/pull/723))
-
-<a name="2.29.0"></a>
-## 2.29.0
-
-* Add support for Webpack 3
-
-<a name="2.28.0"></a>
-## 2.28.0
-
-* Backport 3.x void tag for plugin authors
-
-<a name="2.27.1"></a>
-## 2.27.1
-
-* Revert 2.25.0 loader resolving
-
-<a name="2.27.0"></a>
-## 2.27.0
-
-* Fix a chunksorter webpack 2 issue ([#569](https://github.com/jantimon/html-webpack-plugin/pull/569))
-* Fix template path resolving ([#542](https://github.com/jantimon/html-webpack-plugin/pull/542))
-
-<a name="2.26.0"></a>
-## 2.26.0
-
-* Allow plugins to add attributes without values to the `<script>` and `<link>` tags
-
-<a name="2.25.0"></a>
-## 2.25.0
-
-* Clearer loader output
-* Add basic support for webpack 2
-
-<a name="2.24.1"></a>
-## 2.24.1
-
-* Hide event deprecated warning of 'applyPluginsAsyncWaterfall' for html-webpack-plugin-after-emit and improve the warning message.
-
-<a name="2.24.0"></a>
-## 2.24.0
-
-* Update dependencies
-* Add deprecate warning for plugins not returning a result
-* Add [path] for favicons
-
-<a name="2.23.0"></a>
-## 2.23.0
-
-* Update dependencies
-* Stop automated tests for webpack 2 beta because of [#401](https://github.com/jantimon/html-webpack-plugin/issues/401)
-
-<a name="2.22.0"></a>
-## 2.22.0
-
-* Update dependencies
-
-<a name="2.21.1"></a>
-## 2.21.1
-
-* Better error handling ([#354](https://github.com/jantimon/html-webpack-plugin/pull/354))
-
-<a name="2.21.0"></a>
-## 2.21.0
-
-* Add `html-webpack-plugin-alter-asset-tags` event to allow plugins to adjust the script/link tags
-
-<a name="2.20.0"></a>
-## 2.20.0
-
-* Exclude chunks works now even if combined with dependency sort
-
-<a name="2.19.0"></a>
-## 2.19.0
-
-* Add `html-webpack-plugin-alter-chunks` event for custom chunk sorting and interpolation
-
-<a name="2.18.0"></a>
-## 2.18.0
-
-* Updated all dependencies
-
-<a name="2.17.0"></a>
-## 2.17.0
-
-* Add `type` attribute to `script` element to prevent issues in Safari 9.1.1
-
-<a name="2.16.2"></a>
-## 2.16.2
-
-* Fix bug introduced by 2.16.2. Fixes  [#315](https://github.com/jantimon/html-webpack-plugin/issues/315)
-
-<a name="2.16.1"></a>
-## 2.16.1
-
-* Fix hot module replacement for webpack 2.x
-
-<a name="2.16.0"></a>
-## 2.16.0
-
-* Add support for dynamic filenames like index[hash].html
-
-<a name="2.15.0"></a>
-## 2.15.0
-
-* Add full unit test coverage for the webpack 2 beta version
-* For webpack 2 the default sort will be 'dependency' instead of 'id'
-* Upgrade dependencies
-
-<a name="2.14.0"></a>
-## 2.14.0
-
-* Export publicPath to the template
-* Add example for inlining css and js
-
-<a name="2.13.0"></a>
-## 2.13.0
-
-* Add support for absolute output file names
-* Add support for relative file names outside the output path
-
-<a name="2.12.0"></a>
-## 2.12.0
-
-* Basic Webpack 2.x support #225
-
-<a name="2.11.0"></a>
-## 2.11.0
-
-* Add `xhtml` option which is turned of by default. When activated it will inject self closed `<link href=".." />` tags instead of unclosed `<link href="..">` tags. ([#255](https://github.com/ampedandwired/html-webpack-plugin/pull/255))
-* Add support for webpack placeholders inside the public path e.g. `'/dist/[hash]/'`. ([#249](https://github.com/ampedandwired/html-webpack-plugin/pull/249))
-
-<a name="2.10.0"></a>
-## 2.10.0
-
-* Add `hash` field to the chunk object
-* Add `compilation` field to the templateParam object ([#237](https://github.com/ampedandwired/html-webpack-plugin/issues/237))
-* Add `html-webpack-plugin-before-html-generation` event
-* Improve error messages
-
-<a name="2.9.0"></a>
-## 2.9.0
-
-* Fix favicon path ([#185](https://github.com/ampedandwired/html-webpack-plugin/issues/185), [#208](https://github.com/ampedandwired/html-webpack-plugin/issues/208), [#215](https://github.com/ampedandwired/html-webpack-plugin/pull/215))
-
-<a name="2.8.2"></a>
-## 2.8.2
-
-* Support relative URLs on Windows ([#205](https://github.com/ampedandwired/html-webpack-plugin/issues/205))
-
-<a name="2.8.1"></a>
-## 2.8.1
-
-* Caching improvements ([#204](https://github.com/ampedandwired/html-webpack-plugin/issues/204))
-
-<a name="2.8.0"></a>
-## 2.8.0
-
-* Add `dependency` mode for `chunksSortMode` to sort chunks based on their dependencies with each other
-
-<a name="2.7.2"></a>
-## 2.7.2
-
-* Add support for require in js templates
-
-<a name="2.7.1"></a>
-## 2.7.1
-
-* Refactoring
-* Fix relative windows path
-
-<a name="2.6.5"></a>
-## 2.6.5
-
-* Minor refactoring
-
-<a name="2.6.4"></a>
-## 2.6.4
-
-* Fix for `"Uncaught TypeError: __webpack_require__(...) is not a function"`
-* Fix incomplete cache modules causing "HtmlWebpackPlugin Error: No source available"
-* Fix some issues on Windows
-
-<a name="2.6.3"></a>
-## 2.6.3
-
-* Prevent parsing the base template with the html-loader
-
-<a name="2.6.2"></a>
-## 2.6.2
-
-* Fix `lodash` resolve error ([#172](https://github.com/ampedandwired/html-webpack-plugin/issues/172))
-
-<a name="2.6.1"></a>
-## 2.6.1
-
-* Fix missing module ([#164](https://github.com/ampedandwired/html-webpack-plugin/issues/164))
-
-<a name="2.6.0"></a>
-## 2.6.0
-
-* Move compiler to its own file
-* Improve error messages
-* Fix global HTML_WEBPACK_PLUGIN variable
-
-<a name="2.5.0"></a>
-## 2.5.0
-
-* Support `lodash` template's HTML _"escape"_ delimiter (`<%- %>`)
-* Fix bluebird warning ([#130](https://github.com/ampedandwired/html-webpack-plugin/issues/130))
-* Fix an issue where incomplete cache modules were used
-
-<a name="2.4.0"></a>
-## 2.4.0
-
-* Don't recompile if the assets didn't change
-
-<a name="2.3.0"></a>
-## 2.3.0
-
-* Add events `html-webpack-plugin-before-html-processing`, `html-webpack-plugin-after-html-processing`, `html-webpack-plugin-after-emit` to allow other plugins to alter the html this plugin executes
-
-<a name="2.2.0"></a>
-## 2.2.0
-
-* Inject css and js even if the html file is incomplete ([#135](https://github.com/ampedandwired/html-webpack-plugin/issues/135))
-* Update dependencies
-
-<a name="2.1.0"></a>
-## 2.1.0
-
-* Synchronize with the stable `@1` version
-
-<a name="2.0.4"></a>
-## 2.0.4
-
-* Fix `minify` option
-* Fix missing hash interpolation in publicPath
-
-<a name="2.0.3"></a>
-## 2.0.3
-
-* Add support for webpack.BannerPlugin
-
-<a name="2.0.2"></a>
-## 2.0.2
-
-* Add support for loaders in templates ([#41](https://github.com/ampedandwired/html-webpack-plugin/pull/41))
-* Remove `templateContent` option from configuration
-* Better error messages
-* Update dependencies
-
-
-<a name="1.7.0"></a>
-## 1.7.0
-
-* Add `chunksSortMode` option to configuration to control how chunks should be sorted before they are included to the html
-* Don't insert async chunks into html ([#95](https://github.com/ampedandwired/html-webpack-plugin/issues/95))
-* Update dependencies
-
-<a name="1.6.2"></a>
-## 1.6.2
-
-* Fix paths on Windows
-* Fix missing hash interpolation in publicPath
-* Allow only `false` or `object` in `minify` configuration option
-
-<a name="1.6.1"></a>
-## 1.6.1
-
-* Add `size` field to the chunk object
-* Fix stylesheet `<link>`s being discarded when used with `"inject: 'head'"`
-* Update dependencies
-
-<a name="1.6.0"></a>
-## 1.6.0
-
-* Support placing templates in subfolders
-* Don't include chunks with undefined name ([#60](https://github.com/ampedandwired/html-webpack-plugin/pull/60))
-* Don't include async chunks
-
-<a name="1.5.2"></a>
-## 1.5.2
-
-* Update dependencies (lodash)
-
-<a name="1.5.1"></a>
-## 1.5.1
-
-* Fix error when manifest is specified ([#56](https://github.com/ampedandwired/html-webpack-plugin/issues/56))
-
-<a name="1.5.0"></a>
-## 1.5.0
-
-* Allow to inject javascript files into the head of the html page
-* Fix error reporting
-
-<a name="1.4.0"></a>
-## 1.4.0
-
-* Add `favicon.ico` option
-* Add html minifcation
-
-<a name="1.2.0"></a>
-## 1.2.0
-
-* Set charset using HTML5 meta attribute
-* Reload upon change when using webpack watch mode
-* Generate manifest attribute when using
-  [appcache-webpack-plugin](https://github.com/lettertwo/appcache-webpack-plugin)
-* Optionally add webpack hash as a query string to resources included in the HTML
-  (`hash: true`) for cache busting
-* CSS files generated using webpack (for example, by using the
-  [extract-text-webpack-plugin](https://github.com/webpack/extract-text-webpack-plugin))
-  are now automatically included into the generated HTML
-* More detailed information about the files generated by webpack is now available
-  to templates in the `o.htmlWebpackPlugin.files` attribute. See readme for more
-  details. This new attribute deprecates the old `o.htmlWebpackPlugin.assets` attribute.
-* The `templateContent` option can now be a function that returns the template string to use
-* Expose webpack configuration to templates (`o.webpackConfig`)
-* Sort chunks to honour dependencies between them (useful for use with CommonsChunkPlugin).

+ 0 - 20
node_modules.bak/html-webpack-plugin/LICENSE

@@ -1,20 +0,0 @@
-Copyright JS Foundation and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0 - 415
node_modules.bak/html-webpack-plugin/README.md

@@ -1,415 +0,0 @@
-[![npm][npm]][npm-url]
-[![node][node]][node-url]
-![npm](https://img.shields.io/npm/dw/html-webpack-plugin.svg)
-[![deps][deps]][deps-url]
-[![tests][tests]][tests-url]
-[![Backers on Open Collective](https://opencollective.com/html-webpack-plugin/backers/badge.svg)](#backers)
- [![Sponsors on Open Collective](https://opencollective.com/html-webpack-plugin/sponsors/badge.svg)](#sponsors) 
-
-<div align="center">
-  <img width="200" height="200" src="https://worldvectorlogo.com/logos/html5.svg">
-  <a href="https://github.com/webpack/webpack">
-    <img width="200" height="200"
-      src="https://webpack.js.org/assets/icon-square-big.svg">
-  </a>
-  <div>
-    <img width="100" height="100" title="Webpack Plugin" src="http://michael-ciniawsky.github.io/postcss-load-plugins/logo.svg">
-  </div>
-  <h1>HTML Webpack Plugin</h1>
-  <p>Plugin that simplifies creation of HTML files to serve your bundles</p>
-</div>
-
-<h2 align="center">Install</h2>
-
-
-```bash
-  npm i --save-dev html-webpack-plugin
-```
-
-```bash
-  yarn add --dev html-webpack-plugin
-```
-
-
-
-This is a [webpack](http://webpack.js.org/) plugin that simplifies creation of HTML files to serve your `webpack` bundles. This is especially useful for `webpack` bundles that include a hash in the filename which changes every compilation. You can either let the plugin generate an HTML file for you, supply
-your own template using `lodash` templates or use your own loader.
-
-### `Plugins`
-
-The `html-webpack-plugin` provides [hooks](https://github.com/jantimon/html-webpack-plugin#events) to extend it to your needs. There are already some really powerful plugins which can be integrated with zero configuration
-
- * [webpack-subresource-integrity](https://www.npmjs.com/package/webpack-subresource-integrity) for enhanced asset security
- * [appcache-webpack-plugin](https://github.com/lettertwo/appcache-webpack-plugin) for iOS and Android offline usage
- * [favicons-webpack-plugin](https://github.com/jantimon/favicons-webpack-plugin) which generates favicons and icons for iOS, Android and desktop browsers
- * [html-webpack-harddisk-plugin](https://github.com/jantimon/html-webpack-harddisk-plugin) can be used to always write to disk the html file, useful when webpack-dev-server / HMR are being used
- * [html-webpack-inline-source-plugin](https://github.com/DustinJackson/html-webpack-inline-source-plugin) to inline your assets in the resulting HTML file
- * [html-webpack-inline-svg-plugin](https://github.com/thegc/html-webpack-inline-svg-plugin) to inline SVGs in the resulting HTML file.
- * [html-webpack-exclude-assets-plugin](https://github.com/jamesjieye/html-webpack-exclude-assets-plugin) for excluding assets using regular expressions
- * [html-webpack-include-assets-plugin](https://github.com/jharris4/html-webpack-include-assets-plugin) for including lists of js or css file paths (such as those copied by the copy-webpack-plugin).
- * [script-ext-html-webpack-plugin](https://github.com/numical/script-ext-html-webpack-plugin) to add `async`, `defer` or `module` attributes to your `<script>` elements, or even inline them
- * [style-ext-html-webpack-plugin](https://github.com/numical/style-ext-html-webpack-plugin) to convert your `<link>`s to external stylesheets into `<style>` elements containing internal CSS
- * [resource-hints-webpack-plugin](https://github.com/jantimon/resource-hints-webpack-plugin) to add resource hints for faster initial page loads using `<link rel='preload'>` and `<link rel='prefetch'>`
- * [preload-webpack-plugin](https://github.com/GoogleChrome/preload-webpack-plugin) for automatically wiring up asynchronous (and other types) of JavaScript chunks using `<link rel='preload'>` helping with lazy-loading
- * [link-media-html-webpack-plugin](https://github.com/yaycmyk/link-media-html-webpack-plugin) allows for injected stylesheet `<link />` tags to have their media attribute set automatically; useful for providing specific desktop/mobile/print etc. stylesheets that the browser will conditionally download
- * [inline-chunk-manifest-html-webpack-plugin](https://github.com/jouni-kantola/inline-chunk-manifest-html-webpack-plugin) for inlining webpack's chunk manifest. Default extracts manifest and inlines in `<head>`
- * [html-webpack-inline-style-plugin](https://github.com/djaax/html-webpack-inline-style-plugin) for inlining styles to HTML elements using [juice](https://github.com/Automattic/juice). Useful for email generation automatisation.
- * [html-webpack-exclude-empty-assets-plugin](https://github.com/KnisterPeter/html-webpack-exclude-empty-assets-plugin) removes empty assets from being added to the html. This fixes some problems with extract-text-plugin with webpack 4.
- * [webpack-concat-plugin](https://github.com/hxlniada/webpack-concat-plugin) for concat and uglify files that needn't to be webpack bundles(for legacy files) and inject to html-webpack-plugin.
- 
-
-<h2 align="center">Usage</h2>
-
-The plugin will generate an HTML5 file for you that includes all your `webpack`
-bundles in the body using `script` tags. Just add the plugin to your `webpack`
-config as follows:
-
-**webpack.config.js**
-```js
-const HtmlWebpackPlugin = require('html-webpack-plugin')
-
-module.exports = {
-  entry: 'index.js',
-  output: {
-    path: __dirname + '/dist',
-    filename: 'index_bundle.js'
-  },
-  plugins: [
-    new HtmlWebpackPlugin()
-  ]
-}
-```
-
-This will generate a file `dist/index.html` containing the following
-
-```html
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta charset="UTF-8">
-    <title>Webpack App</title>
-  </head>
-  <body>
-    <script src="index_bundle.js"></script>
-  </body>
-</html>
-```
-
-If you have multiple `webpack` entry points, they will all be included with `script` tags in the generated HTML.
-
-If you have any CSS assets in webpack's output (for example, CSS extracted with the [ExtractTextPlugin](https://github.com/webpack/extract-text-webpack-plugin))
-then these will be included with `<link>` tags in the HTML head.
-
-If you have plugins that make use of it, `html-webpack-plugin` should be ordered first before any of the integrated plugins.
-
-<h2 align="center">Options</h2>
-
-You can pass a hash of configuration options to `html-webpack-plugin`.
-Allowed values are as follows
-
-|Name|Type|Default|Description|
-|:--:|:--:|:-----:|:----------|
-|**[`title`](#)**|`{String}`|``|The title to use for the generated HTML document|
-|**[`filename`](#)**|`{String}`|`'index.html'`|The file to write the HTML to. Defaults to `index.html`. You can specify a subdirectory here too (eg: `assets/admin.html`)|
-|**[`template`](#)**|`{String}`|``|`webpack` require path to the template. Please see the [docs](https://github.com/jantimon/html-webpack-plugin/blob/master/docs/template-option.md) for details|
-|**[`templateParameters`](#)**|`{Boolean\|Object\|Function}`|``| Allows to overwrite the parameters used in the template |
-|**[`inject`](#)**|`{Boolean\|String}`|`true`|`true \|\| 'head' \|\| 'body' \|\| false` Inject all assets into the given `template` or `templateContent`. When passing `true` or `'body'` all javascript resources will be placed at the bottom of the body element. `'head'` will place the scripts in the head element|
-|**[`favicon`](#)**|`{String}`|``|Adds the given favicon path to the output HTML|
-|**[`meta`](#)**|`{Object}`|`{}`|Allows to inject `meta`-tags. E.g. `meta: {viewport: 'width=device-width, initial-scale=1, shrink-to-fit=no'}`|
-|**[`minify`](#)**|`{Boolean\|Object}`|`true`|Pass [html-minifier](https://github.com/kangax/html-minifier#options-quick-reference)'s options as object to minify the output|
-|**[`hash`](#)**|`{Boolean}`|`false`|If `true` then append a unique `webpack` compilation hash to all included scripts and CSS files. This is useful for cache busting|
-|**[`cache`](#)**|`{Boolean}`|`true`|Emit the file only if it was changed|
-|**[`showErrors`](#)**|`{Boolean}`|`true`|Errors details will be written into the HTML page|
-|**[`chunks`](#)**|`{?}`|`?`|Allows you to add only some chunks (e.g only the unit-test chunk)|
-|**[`chunksSortMode`](#plugins)**|`{String\|Function}`|`auto`|Allows to control how chunks should be sorted before they are included to the HTML. Allowed values are `'none' \| 'auto' \| 'dependency' \| 'manual' \| {Function}`|
-|**[`excludeChunks`](#)**|`{Array.<string>}`|``|Allows you to skip some chunks (e.g don't add the unit-test chunk)|
-|**[`xhtml`](#)**|`{Boolean}`|`false`|If `true` render the `link` tags as self-closing (XHTML compliant)|
-
-Here's an example webpack config illustrating how to use these options
-
-**webpack.config.js**
-```js
-{
-  entry: 'index.js',
-  output: {
-    path: __dirname + '/dist',
-    filename: 'index_bundle.js'
-  },
-  plugins: [
-    new HtmlWebpackPlugin({
-      title: 'My App',
-      filename: 'assets/admin.html'
-    })
-  ]
-}
-```
-
-### `Generating Multiple HTML Files`
-
-To generate more than one HTML file, declare the plugin more than
-once in your plugins array
-
-**webpack.config.js**
-```js
-{
-  entry: 'index.js',
-  output: {
-    path: __dirname + '/dist',
-    filename: 'index_bundle.js'
-  },
-  plugins: [
-    new HtmlWebpackPlugin(), // Generates default index.html
-    new HtmlWebpackPlugin({  // Also generate a test.html
-      filename: 'test.html',
-      template: 'src/assets/test.html'
-    })
-  ]
-}
-```
-
-### `Writing Your Own Templates`
-
-If the default generated HTML doesn't meet your needs you can supply
-your own template. The easiest way is to use the `template` option and pass a custom HTML file.
-The html-webpack-plugin will automatically inject all necessary CSS, JS, manifest
-and favicon files into the markup.
-
-```js
-plugins: [
-  new HtmlWebpackPlugin({
-    title: 'Custom template',
-    // Load a custom template (lodash by default see the FAQ for details)
-    template: 'index.html'
-  })
-]
-```
-
-**index.html**
-```html
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
-    <title><%= htmlWebpackPlugin.options.title %></title>
-  </head>
-  <body>
-  </body>
-</html>
-```
-
-If you already have a template loader, you can use it to parse the template.
-Please note that this will also happen if you specifiy the html-loader and use `.html` file as template.
-
-**webpack.config.js**
-```js
-module: {
-  loaders: [
-    { test: /\.hbs$/, loader: "handlebars" }
-  ]
-},
-plugins: [
-  new HtmlWebpackPlugin({
-    title: 'Custom template using Handlebars',
-    template: 'index.hbs'
-  })
-]
-```
-
-You can use the `lodash` syntax out of the box. If the `inject` feature doesn't fit your needs and you want full control over the asset placement use the [default template](https://github.com/jaketrent/html-webpack-template/blob/86f285d5c790a6c15263f5cc50fd666d51f974fd/index.html) of the [html-webpack-template project](https://github.com/jaketrent/html-webpack-template) as a starting point for writing your own.
-
-The following variables are available in the template:
-- `htmlWebpackPlugin`: data specific to this plugin
-  - `htmlWebpackPlugin.files`: a massaged representation of the
-    `assetsByChunkName` attribute of webpack's [stats](https://github.com/webpack/docs/wiki/node.js-api#stats)
-    object. It contains a mapping from entry point name to the bundle filename, eg:
-    ```json
-    "htmlWebpackPlugin": {
-      "files": {
-        "css": [ "main.css" ],
-        "js": [ "assets/head_bundle.js", "assets/main_bundle.js"],
-        "chunks": {
-          "head": {
-            "entry": "assets/head_bundle.js",
-            "css": [ "main.css" ]
-          },
-          "main": {
-            "entry": "assets/main_bundle.js",
-            "css": []
-          },
-        }
-      }
-    }
-    ```
-    If you've set a publicPath in your webpack config this will be reflected
-    correctly in this assets hash.
-
-  - `htmlWebpackPlugin.options`: the options hash that was passed to
-     the plugin. In addition to the options actually used by this plugin,
-     you can use this hash to pass arbitrary data through to your template.
-
-- `webpack`: the webpack [stats](https://github.com/webpack/docs/wiki/node.js-api#stats)
-  object. Note that this is the stats object as it was at the time the HTML template
-  was emitted and as such may not have the full set of stats that are available
-  after the webpack run is complete.
-
-- `webpackConfig`: the webpack configuration that was used for this compilation. This
-  can be used, for example, to get the `publicPath` (`webpackConfig.output.publicPath`).
-
-- `compilation`: the webpack [compilation](https://webpack.js.org/api/compilation/) object.
-  This can be used, for example, to get the contents of processed assets and inline them
-  directly in the page, through `compilation.assets[...].source()`
-  (see [the inline template example](examples/inline/template.jade)).
-
-
-### `Filtering Chunks`
-
-To include only certain chunks you can limit the chunks being used
-
-**webpack.config.js**
-```js
-plugins: [
-  new HtmlWebpackPlugin({
-    chunks: ['app']
-  })
-]
-```
-
-It is also possible to exclude certain chunks by setting the `excludeChunks` option
-
-**webpack.config.js**
-```js
-plugins: [
-  new HtmlWebpackPlugin({
-    excludeChunks: [ 'dev-helper' ]
-  })
-]
-```
-
-### `Events`
-
-To allow other [plugins](https://github.com/webpack/docs/wiki/plugins) to alter the HTML this plugin executes the following events:
-
-#### `Sync`
-
-* `html-webpack-plugin-alter-chunks`
-
-#### `Async`
-
-* `html-webpack-plugin-before-html-generation`
-* `html-webpack-plugin-before-html-processing`
-* `html-webpack-plugin-alter-asset-tags`
-* `html-webpack-plugin-after-html-processing`
-* `html-webpack-plugin-after-emit`
-
-Example implementation: [html-webpack-harddisk-plugin](https://github.com/jantimon/html-webpack-harddisk-plugin)
-
-**plugin.js**
-```js
-function MyPlugin(options) {
-  // Configure your plugin with options...
-}
-
-MyPlugin.prototype.apply = function (compiler) {
-  compiler.plugin('compilation', (compilation) => {
-    console.log('The compiler is starting a new compilation...');
-
-    compilation.plugin(
-      'html-webpack-plugin-before-html-processing',
-      (data, cb) => {
-        data.html += 'The Magic Footer'
-
-        cb(null, data)
-      }
-    )
-  })
-}
-
-module.exports = MyPlugin
-```
-
-**webpack.config.js**
-```js
-plugins: [
-  new MyPlugin({ options: '' })
-]
-```
-
-Note that the callback must be passed the HtmlWebpackPluginData in order to pass this onto any other plugins listening on the same `html-webpack-plugin-before-html-processing` event
-
-<h2 align="center">Maintainers</h2>
-
-<table>
-  <tbody>
-    <tr>
-      <td align="center">
-        <img width="150" height="150"
-        src="https://avatars3.githubusercontent.com/u/4113649?v=3&s=150">
-        </br>
-        <a href="https://github.com/jantimon">Jan Nicklas</a>
-      </td>
-      <td align="center">
-        <img width="150" height="150"
-        src="https://avatars2.githubusercontent.com/u/4112409?v=3&s=150">
-        </br>
-        <a href="https://github.com/mastilver">Thomas Sileghem</a>
-      </td>
-    </tr>
-  <tbody>
-</table>
-
-
-[npm]: https://img.shields.io/npm/v/html-webpack-plugin.svg
-[npm-url]: https://npmjs.com/package/html-webpack-plugin
-
-[node]: https://img.shields.io/node/v/html-webpack-plugin.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/jantimon/html-webpack-plugin.svg
-[deps-url]: https://david-dm.org/jantimon/html-webpack-plugin
-
-[tests]: http://img.shields.io/travis/jantimon/html-webpack-plugin.svg
-[tests-url]: https://travis-ci.org/jantimon/html-webpack-plugin
-
-
-## Contributors
-
-This project exists thanks to all the people who contribute.
-
-You're free to contribute to this project by submitting [issues](https://github.com/jantimon/html-webpack-plugin/issues) and/or [pull requests](https://github.com/jantimon/html-webpack-plugin/pulls). This project is test-driven, so keep in mind that every change and new feature should be covered by tests.
-
-This project uses the [semistandard code style](https://github.com/Flet/semistandard).
-
-<a href="https://github.com/jantimon/html-webpack-plugin/graphs/contributors"><img src="https://opencollective.com/html-webpack-plugin/contributors.svg?width=890&button=false" /></a>
-
-
-## Backers
-
-Thank you to all our backers! 🙏 [Become a backer](https://opencollective.com/html-webpack-plugin#backer)
-
-<a href="https://opencollective.com/html-webpack-plugin/backer/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/0/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/1/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/2/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/2/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/3/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/3/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/4/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/4/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/5/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/5/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/6/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/6/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/7/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/7/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/8/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/8/avatar.svg?requireActive=false"></a>
-<a href="https://opencollective.com/html-webpack-plugin/backer/9/website?requireActive=false" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/backer/9/avatar.svg?requireActive=false"></a>
-
-## Sponsors
-
-Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor](https://opencollective.com/html-webpack-plugin#sponsor)
-
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/0/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/0/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/1/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/1/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/2/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/2/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/3/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/3/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/4/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/4/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/5/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/5/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/6/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/6/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/7/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/7/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/8/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/8/avatar.svg"></a>
-<a href="https://opencollective.com/html-webpack-plugin/sponsor/9/website" target="_blank"><img src="https://opencollective.com/html-webpack-plugin/sponsor/9/avatar.svg"></a>
-
-

+ 0 - 9
node_modules.bak/html-webpack-plugin/default_index.ejs

@@ -1,9 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta charset="UTF-8">
-    <title><%= htmlWebpackPlugin.options.title %></title>
-  </head>
-  <body>
-  </body>
-</html>

+ 0 - 729
node_modules.bak/html-webpack-plugin/index.js

@@ -1,729 +0,0 @@
-'use strict';
-
-// use Polyfill for util.promisify in node versions < v8
-const promisify = require('util.promisify');
-
-const vm = require('vm');
-const fs = require('fs');
-const _ = require('lodash');
-const path = require('path');
-const childCompiler = require('./lib/compiler.js');
-const prettyError = require('./lib/errors.js');
-const chunkSorter = require('./lib/chunksorter.js');
-
-const fsStatAsync = promisify(fs.stat);
-const fsReadFileAsync = promisify(fs.readFile);
-
-class HtmlWebpackPlugin {
-  constructor (options) {
-    // Default options
-    this.options = _.extend({
-      template: path.join(__dirname, 'default_index.ejs'),
-      templateParameters: templateParametersGenerator,
-      filename: 'index.html',
-      hash: false,
-      inject: true,
-      compile: true,
-      favicon: false,
-      minify: false,
-      cache: true,
-      showErrors: true,
-      chunks: 'all',
-      excludeChunks: [],
-      chunksSortMode: 'auto',
-      meta: {},
-      title: 'Webpack App',
-      xhtml: false
-    }, options);
-  }
-
-  apply (compiler) {
-    const self = this;
-    let isCompilationCached = false;
-    let compilationPromise;
-
-    this.options.template = this.getFullTemplatePath(this.options.template, compiler.context);
-
-    // convert absolute filename into relative so that webpack can
-    // generate it at correct location
-    const filename = this.options.filename;
-    if (path.resolve(filename) === path.normalize(filename)) {
-      this.options.filename = path.relative(compiler.options.output.path, filename);
-    }
-
-    // setup hooks for webpack 4
-    if (compiler.hooks) {
-      compiler.hooks.compilation.tap('HtmlWebpackPluginHooks', compilation => {
-        const SyncWaterfallHook = require('tapable').SyncWaterfallHook;
-        const AsyncSeriesWaterfallHook = require('tapable').AsyncSeriesWaterfallHook;
-        compilation.hooks.htmlWebpackPluginAlterChunks = new SyncWaterfallHook(['chunks', 'objectWithPluginRef']);
-        compilation.hooks.htmlWebpackPluginBeforeHtmlGeneration = new AsyncSeriesWaterfallHook(['pluginArgs']);
-        compilation.hooks.htmlWebpackPluginBeforeHtmlProcessing = new AsyncSeriesWaterfallHook(['pluginArgs']);
-        compilation.hooks.htmlWebpackPluginAlterAssetTags = new AsyncSeriesWaterfallHook(['pluginArgs']);
-        compilation.hooks.htmlWebpackPluginAfterHtmlProcessing = new AsyncSeriesWaterfallHook(['pluginArgs']);
-        compilation.hooks.htmlWebpackPluginAfterEmit = new AsyncSeriesWaterfallHook(['pluginArgs']);
-      });
-    }
-
-    // Backwards compatible version of: compiler.hooks.make.tapAsync()
-    (compiler.hooks ? compiler.hooks.make.tapAsync.bind(compiler.hooks.make, 'HtmlWebpackPlugin') : compiler.plugin.bind(compiler, 'make'))((compilation, callback) => {
-      // Compile the template (queued)
-      compilationPromise = childCompiler.compileTemplate(self.options.template, compiler.context, self.options.filename, compilation)
-        .catch(err => {
-          compilation.errors.push(prettyError(err, compiler.context).toString());
-          return {
-            content: self.options.showErrors ? prettyError(err, compiler.context).toJsonHtml() : 'ERROR',
-            outputName: self.options.filename
-          };
-        })
-        .then(compilationResult => {
-          // If the compilation change didnt change the cache is valid
-          isCompilationCached = compilationResult.hash && self.childCompilerHash === compilationResult.hash;
-          self.childCompilerHash = compilationResult.hash;
-          self.childCompilationOutputName = compilationResult.outputName;
-          callback();
-          return compilationResult.content;
-        });
-    });
-
-    // Backwards compatible version of: compiler.plugin.emit.tapAsync()
-    (compiler.hooks ? compiler.hooks.emit.tapAsync.bind(compiler.hooks.emit, 'HtmlWebpackPlugin') : compiler.plugin.bind(compiler, 'emit'))((compilation, callback) => {
-      const applyPluginsAsyncWaterfall = self.applyPluginsAsyncWaterfall(compilation);
-      // Get chunks info as json
-      // Note: we're excluding stuff that we don't need to improve toJson serialization speed.
-      const chunkOnlyConfig = {
-        assets: false,
-        cached: false,
-        children: false,
-        chunks: true,
-        chunkModules: false,
-        chunkOrigins: false,
-        errorDetails: false,
-        hash: false,
-        modules: false,
-        reasons: false,
-        source: false,
-        timings: false,
-        version: false
-      };
-      const allChunks = compilation.getStats().toJson(chunkOnlyConfig).chunks;
-      // Filter chunks (options.chunks and options.excludeCHunks)
-      let chunks = self.filterChunks(allChunks, self.options.chunks, self.options.excludeChunks);
-      // Sort chunks
-      chunks = self.sortChunks(chunks, self.options.chunksSortMode, compilation);
-      // Let plugins alter the chunks and the chunk sorting
-      if (compilation.hooks) {
-        chunks = compilation.hooks.htmlWebpackPluginAlterChunks.call(chunks, { plugin: self });
-      } else {
-        // Before Webpack 4
-        chunks = compilation.applyPluginsWaterfall('html-webpack-plugin-alter-chunks', chunks, { plugin: self });
-      }
-      // Get assets
-      const assets = self.htmlWebpackPluginAssets(compilation, chunks);
-      // If this is a hot update compilation, move on!
-      // This solves a problem where an `index.html` file is generated for hot-update js files
-      // It only happens in Webpack 2, where hot updates are emitted separately before the full bundle
-      if (self.isHotUpdateCompilation(assets)) {
-        return callback();
-      }
-
-      // If the template and the assets did not change we don't have to emit the html
-      const assetJson = JSON.stringify(self.getAssetFiles(assets));
-      if (isCompilationCached && self.options.cache && assetJson === self.assetJson) {
-        return callback();
-      } else {
-        self.assetJson = assetJson;
-      }
-
-      Promise.resolve()
-        // Favicon
-        .then(() => {
-          if (self.options.favicon) {
-            return self.addFileToAssets(self.options.favicon, compilation)
-              .then(faviconBasename => {
-                let publicPath = compilation.mainTemplate.getPublicPath({hash: compilation.hash}) || '';
-                if (publicPath && publicPath.substr(-1) !== '/') {
-                  publicPath += '/';
-                }
-                assets.favicon = publicPath + faviconBasename;
-              });
-          }
-        })
-        // Wait for the compilation to finish
-        .then(() => compilationPromise)
-        .then(compiledTemplate => {
-          // Allow to use a custom function / string instead
-          if (self.options.templateContent !== undefined) {
-            return self.options.templateContent;
-          }
-          // Once everything is compiled evaluate the html factory
-          // and replace it with its content
-          return self.evaluateCompilationResult(compilation, compiledTemplate);
-        })
-        // Allow plugins to make changes to the assets before invoking the template
-        // This only makes sense to use if `inject` is `false`
-        .then(compilationResult => applyPluginsAsyncWaterfall('html-webpack-plugin-before-html-generation', false, {
-          assets: assets,
-          outputName: self.childCompilationOutputName,
-          plugin: self
-        })
-      .then(() => compilationResult))
-        // Execute the template
-        .then(compilationResult => typeof compilationResult !== 'function'
-        ? compilationResult
-        : self.executeTemplate(compilationResult, chunks, assets, compilation))
-        // Allow plugins to change the html before assets are injected
-        .then(html => {
-          const pluginArgs = {html: html, assets: assets, plugin: self, outputName: self.childCompilationOutputName};
-          return applyPluginsAsyncWaterfall('html-webpack-plugin-before-html-processing', true, pluginArgs);
-        })
-        .then(result => {
-          const html = result.html;
-          const assets = result.assets;
-          // Prepare script and link tags
-          const assetTags = self.generateHtmlTags(assets);
-          const pluginArgs = {head: assetTags.head, body: assetTags.body, plugin: self, chunks: chunks, outputName: self.childCompilationOutputName};
-          // Allow plugins to change the assetTag definitions
-          return applyPluginsAsyncWaterfall('html-webpack-plugin-alter-asset-tags', true, pluginArgs)
-            .then(result => self.postProcessHtml(html, assets, { body: result.body, head: result.head })
-            .then(html => _.extend(result, {html: html, assets: assets})));
-        })
-        // Allow plugins to change the html after assets are injected
-        .then(result => {
-          const html = result.html;
-          const assets = result.assets;
-          const pluginArgs = {html: html, assets: assets, plugin: self, outputName: self.childCompilationOutputName};
-          return applyPluginsAsyncWaterfall('html-webpack-plugin-after-html-processing', true, pluginArgs)
-            .then(result => result.html);
-        })
-        .catch(err => {
-          // In case anything went wrong the promise is resolved
-          // with the error message and an error is logged
-          compilation.errors.push(prettyError(err, compiler.context).toString());
-          // Prevent caching
-          self.hash = null;
-          return self.options.showErrors ? prettyError(err, compiler.context).toHtml() : 'ERROR';
-        })
-        .then(html => {
-          // Replace the compilation result with the evaluated html code
-          compilation.assets[self.childCompilationOutputName] = {
-            source: () => html,
-            size: () => html.length
-          };
-        })
-        .then(() => applyPluginsAsyncWaterfall('html-webpack-plugin-after-emit', false, {
-          html: compilation.assets[self.childCompilationOutputName],
-          outputName: self.childCompilationOutputName,
-          plugin: self
-        }).catch(err => {
-          console.error(err);
-          return null;
-        }).then(() => null))
-        // Let webpack continue with it
-        .then(() => {
-          callback();
-        });
-    });
-  }
-
-  /**
-   * Evaluates the child compilation result
-   * Returns a promise
-   */
-  evaluateCompilationResult (compilation, source) {
-    if (!source) {
-      return Promise.reject('The child compilation didn\'t provide a result');
-    }
-
-    // The LibraryTemplatePlugin stores the template result in a local variable.
-    // To extract the result during the evaluation this part has to be removed.
-    source = source.replace('var HTML_WEBPACK_PLUGIN_RESULT =', '');
-    const template = this.options.template.replace(/^.+!/, '').replace(/\?.+$/, '');
-    const vmContext = vm.createContext(_.extend({HTML_WEBPACK_PLUGIN: true, require: require}, global));
-    const vmScript = new vm.Script(source, {filename: template});
-    // Evaluate code and cast to string
-    let newSource;
-    try {
-      newSource = vmScript.runInContext(vmContext);
-    } catch (e) {
-      return Promise.reject(e);
-    }
-    if (typeof newSource === 'object' && newSource.__esModule && newSource.default) {
-      newSource = newSource.default;
-    }
-    return typeof newSource === 'string' || typeof newSource === 'function'
-      ? Promise.resolve(newSource)
-      : Promise.reject('The loader "' + this.options.template + '" didn\'t return html.');
-  }
-
-  /**
-   * Generate the template parameters for the template function
-   */
-  getTemplateParameters (compilation, assets) {
-    if (typeof this.options.templateParameters === 'function') {
-      return this.options.templateParameters(compilation, assets, this.options);
-    }
-    if (typeof this.options.templateParameters === 'object') {
-      return this.options.templateParameters;
-    }
-    return {};
-  }
-
-  /**
-   * Html post processing
-   *
-   * Returns a promise
-   */
-  executeTemplate (templateFunction, chunks, assets, compilation) {
-    return Promise.resolve()
-      // Template processing
-      .then(() => {
-        const templateParams = this.getTemplateParameters(compilation, assets);
-        let html = '';
-        try {
-          html = templateFunction(templateParams);
-        } catch (e) {
-          compilation.errors.push(new Error('Template execution failed: ' + e));
-          return Promise.reject(e);
-        }
-        return html;
-      });
-  }
-
-  /**
-   * Html post processing
-   *
-   * Returns a promise
-   */
-  postProcessHtml (html, assets, assetTags) {
-    const self = this;
-    if (typeof html !== 'string') {
-      return Promise.reject('Expected html to be a string but got ' + JSON.stringify(html));
-    }
-    return Promise.resolve()
-      // Inject
-      .then(() => {
-        if (self.options.inject) {
-          return self.injectAssetsIntoHtml(html, assets, assetTags);
-        } else {
-          return html;
-        }
-      })
-      // Minify
-      .then(html => {
-        if (self.options.minify) {
-          const minify = require('html-minifier').minify;
-          return minify(html, self.options.minify);
-        }
-        return html;
-      });
-  }
-
-  /*
-   * Pushes the content of the given filename to the compilation assets
-   */
-  addFileToAssets (filename, compilation) {
-    filename = path.resolve(compilation.compiler.context, filename);
-    return Promise.all([
-      fsStatAsync(filename),
-      fsReadFileAsync(filename)
-    ])
-    .then(([size, source]) => {
-      return {
-        size,
-        source
-      };
-    })
-    .catch(() => Promise.reject(new Error('HtmlWebpackPlugin: could not load file ' + filename)))
-    .then(results => {
-      const basename = path.basename(filename);
-      if (compilation.fileDependencies.add) {
-        compilation.fileDependencies.add(filename);
-      } else {
-        // Before Webpack 4 - fileDepenencies was an array
-        compilation.fileDependencies.push(filename);
-      }
-      compilation.assets[basename] = {
-        source: () => results.source,
-        size: () => results.size.size
-      };
-      return basename;
-    });
-  }
-
-  /**
-   * Helper to sort chunks
-   */
-  sortChunks (chunks, sortMode, compilation) {
-    // Custom function
-    if (typeof sortMode === 'function') {
-      return chunks.sort(sortMode);
-    }
-    // Check if the given sort mode is a valid chunkSorter sort mode
-    if (typeof chunkSorter[sortMode] !== 'undefined') {
-      return chunkSorter[sortMode](chunks, this.options, compilation);
-    }
-    throw new Error('"' + sortMode + '" is not a valid chunk sort mode');
-  }
-
-  /**
-   * Return all chunks from the compilation result which match the exclude and include filters
-   */
-  filterChunks (chunks, includedChunks, excludedChunks) {
-    return chunks.filter(chunk => {
-      const chunkName = chunk.names[0];
-      // This chunk doesn't have a name. This script can't handled it.
-      if (chunkName === undefined) {
-        return false;
-      }
-      // Skip if the chunk should be lazy loaded
-      if (typeof chunk.isInitial === 'function') {
-        if (!chunk.isInitial()) {
-          return false;
-        }
-      } else if (!chunk.initial) {
-        return false;
-      }
-      // Skip if the chunks should be filtered and the given chunk was not added explicity
-      if (Array.isArray(includedChunks) && includedChunks.indexOf(chunkName) === -1) {
-        return false;
-      }
-      // Skip if the chunks should be filtered and the given chunk was excluded explicity
-      if (Array.isArray(excludedChunks) && excludedChunks.indexOf(chunkName) !== -1) {
-        return false;
-      }
-      // Add otherwise
-      return true;
-    });
-  }
-
-  isHotUpdateCompilation (assets) {
-    return assets.js.length && assets.js.every(name => /\.hot-update\.js$/.test(name));
-  }
-
-  htmlWebpackPluginAssets (compilation, chunks) {
-    const self = this;
-    const compilationHash = compilation.hash;
-
-    // Use the configured public path or build a relative path
-    let publicPath = typeof compilation.options.output.publicPath !== 'undefined'
-      // If a hard coded public path exists use it
-      ? compilation.mainTemplate.getPublicPath({hash: compilationHash})
-      // If no public path was set get a relative url path
-      : path.relative(path.resolve(compilation.options.output.path, path.dirname(self.childCompilationOutputName)), compilation.options.output.path)
-        .split(path.sep).join('/');
-
-    if (publicPath.length && publicPath.substr(-1, 1) !== '/') {
-      publicPath += '/';
-    }
-
-    const assets = {
-      // The public path
-      publicPath: publicPath,
-      // Will contain all js & css files by chunk
-      chunks: {},
-      // Will contain all js files
-      js: [],
-      // Will contain all css files
-      css: [],
-      // Will contain the html5 appcache manifest files if it exists
-      manifest: Object.keys(compilation.assets).filter(assetFile => path.extname(assetFile) === '.appcache')[0]
-    };
-
-    // Append a hash for cache busting
-    if (this.options.hash) {
-      assets.manifest = self.appendHash(assets.manifest, compilationHash);
-      assets.favicon = self.appendHash(assets.favicon, compilationHash);
-    }
-
-    for (let i = 0; i < chunks.length; i++) {
-      const chunk = chunks[i];
-      const chunkName = chunk.names[0];
-
-      assets.chunks[chunkName] = {};
-
-      // Prepend the public path to all chunk files
-      let chunkFiles = [].concat(chunk.files).map(chunkFile => publicPath + chunkFile);
-
-      // Append a hash for cache busting
-      if (this.options.hash) {
-        chunkFiles = chunkFiles.map(chunkFile => self.appendHash(chunkFile, compilationHash));
-      }
-
-      // Webpack outputs an array for each chunk when using sourcemaps
-      // or when one chunk hosts js and css simultaneously
-      const js = chunkFiles.find(chunkFile => /.js($|\?)/.test(chunkFile));
-      if (js) {
-        assets.chunks[chunkName].size = chunk.size;
-        assets.chunks[chunkName].entry = js;
-        assets.chunks[chunkName].hash = chunk.hash;
-        assets.js.push(js);
-      }
-
-      // Gather all css files
-      const css = chunkFiles.filter(chunkFile => /.css($|\?)/.test(chunkFile));
-      assets.chunks[chunkName].css = css;
-      assets.css = assets.css.concat(css);
-    }
-
-    // Duplicate css assets can occur on occasion if more than one chunk
-    // requires the same css.
-    assets.css = _.uniq(assets.css);
-
-    return assets;
-  }
-
-  /**
-   * Generate meta tags
-   */
-  getMetaTags () {
-    if (this.options.meta === false) {
-      return [];
-    }
-    // Make tags self-closing in case of xhtml
-    // Turn { "viewport" : "width=500, initial-scale=1" } into
-    // [{ name:"viewport" content:"width=500, initial-scale=1" }]
-    const selfClosingTag = !!this.options.xhtml;
-    const metaTagAttributeObjects = Object.keys(this.options.meta).map((metaName) => {
-      const metaTagContent = this.options.meta[metaName];
-      return (typeof metaTagContent === 'object') ? metaTagContent : {
-        name: metaName,
-        content: metaTagContent
-      };
-    });
-    // Turn [{ name:"viewport" content:"width=500, initial-scale=1" }] into
-    // the html-webpack-plugin tag structure
-    return metaTagAttributeObjects.map((metaTagAttributes) => {
-      return {
-        tagName: 'meta',
-        voidTag: true,
-        selfClosingTag: selfClosingTag,
-        attributes: metaTagAttributes
-      };
-    });
-  }
-
-  /**
-   * Injects the assets into the given html string
-   */
-  generateHtmlTags (assets) {
-    // Turn script files into script tags
-    const scripts = assets.js.map(scriptPath => ({
-      tagName: 'script',
-      closeTag: true,
-      attributes: {
-        type: 'text/javascript',
-        src: scriptPath
-      }
-    }));
-    // Make tags self-closing in case of xhtml
-    const selfClosingTag = !!this.options.xhtml;
-    // Turn css files into link tags
-    const styles = assets.css.map(stylePath => ({
-      tagName: 'link',
-      selfClosingTag: selfClosingTag,
-      voidTag: true,
-      attributes: {
-        href: stylePath,
-        rel: 'stylesheet'
-      }
-    }));
-    // Injection targets
-    let head = this.getMetaTags();
-    let body = [];
-
-    // If there is a favicon present, add it to the head
-    if (assets.favicon) {
-      head.push({
-        tagName: 'link',
-        selfClosingTag: selfClosingTag,
-        voidTag: true,
-        attributes: {
-          rel: 'shortcut icon',
-          href: assets.favicon
-        }
-      });
-    }
-    // Add styles to the head
-    head = head.concat(styles);
-    // Add scripts to body or head
-    if (this.options.inject === 'head') {
-      head = head.concat(scripts);
-    } else {
-      body = body.concat(scripts);
-    }
-    return {head: head, body: body};
-  }
-
-  /**
-   * Injects the assets into the given html string
-   */
-  injectAssetsIntoHtml (html, assets, assetTags) {
-    const htmlRegExp = /(<html[^>]*>)/i;
-    const headRegExp = /(<\/head\s*>)/i;
-    const bodyRegExp = /(<\/body\s*>)/i;
-    const body = assetTags.body.map(this.createHtmlTag.bind(this));
-    const head = assetTags.head.map(this.createHtmlTag.bind(this));
-
-    if (body.length) {
-      if (bodyRegExp.test(html)) {
-        // Append assets to body element
-        html = html.replace(bodyRegExp, match => body.join('') + match);
-      } else {
-        // Append scripts to the end of the file if no <body> element exists:
-        html += body.join('');
-      }
-    }
-
-    if (head.length) {
-      // Create a head tag if none exists
-      if (!headRegExp.test(html)) {
-        if (!htmlRegExp.test(html)) {
-          html = '<head></head>' + html;
-        } else {
-          html = html.replace(htmlRegExp, match => match + '<head></head>');
-        }
-      }
-
-      // Append assets to head element
-      html = html.replace(headRegExp, match => head.join('') + match);
-    }
-
-    // Inject manifest into the opening html tag
-    if (assets.manifest) {
-      html = html.replace(/(<html[^>]*)(>)/i, (match, start, end) => {
-        // Append the manifest only if no manifest was specified
-        if (/\smanifest\s*=/.test(match)) {
-          return match;
-        }
-        return start + ' manifest="' + assets.manifest + '"' + end;
-      });
-    }
-    return html;
-  }
-
-  /**
-   * Appends a cache busting hash
-   */
-  appendHash (url, hash) {
-    if (!url) {
-      return url;
-    }
-    return url + (url.indexOf('?') === -1 ? '?' : '&') + hash;
-  }
-
-  /**
-   * Turn a tag definition into a html string
-   */
-  createHtmlTag (tagDefinition) {
-    const attributes = Object.keys(tagDefinition.attributes || {})
-      .filter(attributeName => tagDefinition.attributes[attributeName] !== false)
-      .map(attributeName => {
-        if (tagDefinition.attributes[attributeName] === true) {
-          return attributeName;
-        }
-        return attributeName + '="' + tagDefinition.attributes[attributeName] + '"';
-      });
-    // Backport of 3.x void tag definition
-    const voidTag = tagDefinition.voidTag !== undefined ? tagDefinition.voidTag : !tagDefinition.closeTag;
-    const selfClosingTag = tagDefinition.voidTag !== undefined ? tagDefinition.voidTag && this.options.xhtml : tagDefinition.selfClosingTag;
-    return '<' + [tagDefinition.tagName].concat(attributes).join(' ') + (selfClosingTag ? '/' : '') + '>' +
-      (tagDefinition.innerHTML || '') +
-      (voidTag ? '' : '</' + tagDefinition.tagName + '>');
-  }
-
-  /**
-   * Helper to return the absolute template path with a fallback loader
-   */
-  getFullTemplatePath (template, context) {
-    // If the template doesn't use a loader use the lodash template loader
-    if (template.indexOf('!') === -1) {
-      template = require.resolve('./lib/loader.js') + '!' + path.resolve(context, template);
-    }
-    // Resolve template path
-    return template.replace(
-      /([!])([^/\\][^!?]+|[^/\\!?])($|\?[^!?\n]+$)/,
-      (match, prefix, filepath, postfix) => prefix + path.resolve(filepath) + postfix);
-  }
-
-  /**
-   * Helper to return a sorted unique array of all asset files out of the
-   * asset object
-   */
-  getAssetFiles (assets) {
-    const files = _.uniq(Object.keys(assets).filter(assetType => assetType !== 'chunks' && assets[assetType]).reduce((files, assetType) => files.concat(assets[assetType]), []));
-    files.sort();
-    return files;
-  }
-
-  /**
-   * Helper to promisify compilation.applyPluginsAsyncWaterfall that returns
-   * a function that helps to merge given plugin arguments with processed ones
-   */
-  applyPluginsAsyncWaterfall (compilation) {
-    if (compilation.hooks) {
-      return (eventName, requiresResult, pluginArgs) => {
-        const ccEventName = trainCaseToCamelCase(eventName);
-        if (!compilation.hooks[ccEventName]) {
-          compilation.errors.push(
-            new Error('No hook found for ' + eventName)
-          );
-        }
-
-        return compilation.hooks[ccEventName].promise(pluginArgs);
-      };
-    }
-
-    // Before Webpack 4
-    const promisedApplyPluginsAsyncWaterfall = function (name, init) {
-      return new Promise((resolve, reject) => {
-        const callback = function (err, result) {
-          if (err) {
-            return reject(err);
-          }
-          resolve(result);
-        };
-        compilation.applyPluginsAsyncWaterfall(name, init, callback);
-      });
-    };
-
-    return (eventName, requiresResult, pluginArgs) => promisedApplyPluginsAsyncWaterfall(eventName, pluginArgs)
-      .then(result => {
-        if (requiresResult && !result) {
-          compilation.warnings.push(
-            new Error('Using ' + eventName + ' without returning a result is deprecated.')
-          );
-        }
-        return _.extend(pluginArgs, result);
-      });
-  }
-}
-
-/**
- * Takes a string in train case and transforms it to camel case
- *
- * Example: 'hello-my-world' to 'helloMyWorld'
- *
- * @param {string} word
- */
-function trainCaseToCamelCase (word) {
-  return word.replace(/-([\w])/g, (match, p1) => p1.toUpperCase());
-}
-
-/**
- * The default for options.templateParameter
- * Generate the template parameters
- */
-function templateParametersGenerator (compilation, assets, options) {
-  return {
-    compilation: compilation,
-    webpack: compilation.getStats().toJson(),
-    webpackConfig: compilation.options,
-    htmlWebpackPlugin: {
-      files: assets,
-      options: options
-    }
-  };
-}
-
-module.exports = HtmlWebpackPlugin;

+ 0 - 139
node_modules.bak/html-webpack-plugin/lib/chunksorter.js

@@ -1,139 +0,0 @@
-'use strict';
-
-const toposort = require('toposort');
-const _ = require('lodash');
-
-/**
-  Sorts dependencies between chunks by their "parents" attribute.
-
-  This function sorts chunks based on their dependencies with each other.
-  The parent relation between chunks as generated by Webpack for each chunk
-  is used to define a directed (and hopefully acyclic) graph, which is then
-  topologically sorted in order to retrieve the correct order in which
-  chunks need to be embedded into HTML. A directed edge in this graph is
-  describing a "is parent of" relationship from a chunk to another (distinct)
-  chunk. Thus topological sorting orders chunks from bottom-layer chunks to
-  highest level chunks that use the lower-level chunks.
-
-  @param {Array} chunks an array of chunks as generated by the html-webpack-plugin.
-  - For webpack < 4, It is assumed that each entry contains at least the properties
-  "id" (containing the chunk id) and "parents" (array containing the ids of the
-  parent chunks).
-  - For webpack 4+ the see the chunkGroups param for parent-child relationships
-
-  @param {Array} chunks an array of ChunkGroups that has a getParents method.
-  Each ChunkGroup contains a list of chunks in order.
-
-  @return {Array} A topologically sorted version of the input chunks
-*/
-module.exports.dependency = (chunks, options, compilation) => {
-  const chunkGroups = compilation.chunkGroups;
-  if (!chunks) {
-    return chunks;
-  }
-
-  // We build a map (chunk-id -> chunk) for faster access during graph building.
-  const nodeMap = {};
-
-  chunks.forEach(chunk => {
-    nodeMap[chunk.id] = chunk;
-  });
-
-  // Next, we add an edge for each parent relationship into the graph
-  let edges = [];
-
-  if (chunkGroups) {
-    // Add an edge for each parent (parent -> child)
-    edges = chunkGroups.reduce((result, chunkGroup) => result.concat(
-      Array.from(chunkGroup.parentsIterable, parentGroup => [parentGroup, chunkGroup])
-    ), []);
-    const sortedGroups = toposort.array(chunkGroups, edges);
-    // flatten chunkGroup into chunks
-    const sortedChunks = sortedGroups
-      .reduce((result, chunkGroup) => result.concat(chunkGroup.chunks), [])
-      .map(chunk => // use the chunk from the list passed in, since it may be a filtered list
-    nodeMap[chunk.id])
-      .filter((chunk, index, self) => {
-        // make sure exists (ie excluded chunks not in nodeMap)
-        const exists = !!chunk;
-        // make sure we have a unique list
-        const unique = self.indexOf(chunk) === index;
-        return exists && unique;
-      });
-    return sortedChunks;
-  } else {
-    // before webpack 4 there was no chunkGroups
-    chunks.forEach(chunk => {
-      if (chunk.parents) {
-        // Add an edge for each parent (parent -> child)
-        chunk.parents.forEach(parentId => {
-          // webpack2 chunk.parents are chunks instead of string id(s)
-          const parentChunk = _.isObject(parentId) ? parentId : nodeMap[parentId];
-          // If the parent chunk does not exist (e.g. because of an excluded chunk)
-          // we ignore that parent
-          if (parentChunk) {
-            edges.push([parentChunk, chunk]);
-          }
-        });
-      }
-    });
-    // We now perform a topological sorting on the input chunks and built edges
-    return toposort.array(chunks, edges);
-  }
-};
-
-/**
- * Sorts the chunks based on the chunk id.
- *
- * @param  {Array} chunks the list of chunks to sort
- * @return {Array} The sorted list of chunks
- */
-module.exports.id = chunks => chunks.sort(function orderEntryLast (a, b) {
-  if (a.entry !== b.entry) {
-    return b.entry ? 1 : -1;
-  } else {
-    return b.id - a.id;
-  }
-});
-
-/**
- * Performs identity mapping (no-sort).
- * @param  {Array} chunks the chunks to sort
- * @return {Array} The sorted chunks
- */
-module.exports.none = chunks => chunks;
-
-/**
- * Sort manually by the chunks
- * @param  {Array} chunks the chunks to sort
- * @return {Array} The sorted chunks
- */
-module.exports.manual = (chunks, options) => {
-  const specifyChunks = options.chunks;
-  const chunksResult = [];
-  let filterResult = [];
-  if (Array.isArray(specifyChunks)) {
-    for (var i = 0; i < specifyChunks.length; i++) {
-      filterResult = chunks.filter(chunk => {
-        if (chunk.names[0] && chunk.names[0] === specifyChunks[i]) {
-          return true;
-        }
-        return false;
-      });
-      filterResult.length > 0 && chunksResult.push(filterResult[0]);
-    }
-  }
-  return chunksResult;
-};
-
-/**
- * Defines the default sorter.
- */
-module.exports.auto = module.exports.id;
-
-// In webpack 2 the ids have been flipped.
-// Therefore the id sort doesn't work the same way as it did for webpack 1
-// Luckily the dependency sort is working as expected
-if (Number(require('webpack/package.json').version.split('.')[0]) > 1) {
-  module.exports.auto = module.exports.dependency;
-}

+ 0 - 125
node_modules.bak/html-webpack-plugin/lib/compiler.js

@@ -1,125 +0,0 @@
-/*
- * This file uses webpack to compile a template with a child compiler.
- *
- * [TEMPLATE] -> [JAVASCRIPT]
- *
- */
-'use strict';
-const path = require('path');
-const NodeTemplatePlugin = require('webpack/lib/node/NodeTemplatePlugin');
-const NodeTargetPlugin = require('webpack/lib/node/NodeTargetPlugin');
-const LoaderTargetPlugin = require('webpack/lib/LoaderTargetPlugin');
-const LibraryTemplatePlugin = require('webpack/lib/LibraryTemplatePlugin');
-const SingleEntryPlugin = require('webpack/lib/SingleEntryPlugin');
-
-/**
- * Compiles the template into a nodejs factory, adds its to the compilation.assets
- * and returns a promise of the result asset object.
- *
- * @param template relative path to the template file
- * @param context path context
- * @param outputFilename the file name
- * @param compilation The webpack compilation object
- *
- * Returns an object:
- * {
- *  hash: {String} - Base64 hash of the file
- *  content: {String} - Javascript executable code of the template
- * }
- *
- */
-module.exports.compileTemplate = function compileTemplate (template, context, outputFilename, compilation) {
-  // The entry file is just an empty helper as the dynamic template
-  // require is added in "loader.js"
-  const outputOptions = {
-    filename: outputFilename,
-    publicPath: compilation.outputOptions.publicPath
-  };
-  // Store the result of the parent compilation before we start the child compilation
-  const assetsBeforeCompilation = Object.assign({}, compilation.assets[outputOptions.filename]);
-  // Create an additional child compiler which takes the template
-  // and turns it into an Node.JS html factory.
-  // This allows us to use loaders during the compilation
-  const compilerName = getCompilerName(context, outputFilename);
-  const childCompiler = compilation.createChildCompiler(compilerName, outputOptions);
-  childCompiler.context = context;
-  new NodeTemplatePlugin(outputOptions).apply(childCompiler);
-  new NodeTargetPlugin().apply(childCompiler);
-  new LibraryTemplatePlugin('HTML_WEBPACK_PLUGIN_RESULT', 'var').apply(childCompiler);
-
-  // Using undefined as name for the SingleEntryPlugin causes a unexpected output as described in
-  // https://github.com/jantimon/html-webpack-plugin/issues/895
-  // Using a string as a name for the SingleEntryPlugin causes problems with HMR as described in
-  // https://github.com/jantimon/html-webpack-plugin/issues/900
-  // Until the HMR issue is fixed we keep the ugly output:
-  new SingleEntryPlugin(this.context, template, undefined).apply(childCompiler);
-
-  new LoaderTargetPlugin('node').apply(childCompiler);
-
-  // Fix for "Uncaught TypeError: __webpack_require__(...) is not a function"
-  // Hot module replacement requires that every child compiler has its own
-  // cache. @see https://github.com/ampedandwired/html-webpack-plugin/pull/179
-
-  // Backwards compatible version of: childCompiler.hooks.compilation
-  (childCompiler.hooks ? childCompiler.hooks.compilation.tap.bind(childCompiler.hooks.compilation, 'HtmlWebpackPlugin') : childCompiler.plugin.bind(childCompiler, 'compilation'))(compilation => {
-    if (compilation.cache) {
-      if (!compilation.cache[compilerName]) {
-        compilation.cache[compilerName] = {};
-      }
-      compilation.cache = compilation.cache[compilerName];
-    }
-  });
-
-  // Compile and return a promise
-  return new Promise((resolve, reject) => {
-    childCompiler.runAsChild((err, entries, childCompilation) => {
-      // Resolve / reject the promise
-      if (childCompilation && childCompilation.errors && childCompilation.errors.length) {
-        const errorDetails = childCompilation.errors.map(error => error.message + (error.error ? ':\n' + error.error : '')).join('\n');
-        reject(new Error('Child compilation failed:\n' + errorDetails));
-      } else if (err) {
-        reject(err);
-      } else {
-        // Replace [hash] placeholders in filename
-        // In webpack 4 the plugin interface changed, so check for available fns
-        const outputName = compilation.mainTemplate.getAssetPath
-          ? compilation.mainTemplate.hooks.assetPath.call(outputOptions.filename, {
-            hash: childCompilation.hash,
-            chunk: entries[0]
-          })
-          : compilation.mainTemplate.applyPluginsWaterfall(
-              'asset-path',
-              outputOptions.filename,
-            {
-              hash: childCompilation.hash,
-              chunk: entries[0]
-            });
-
-        // Restore the parent compilation to the state like it
-        // was before the child compilation
-        compilation.assets[outputName] = assetsBeforeCompilation[outputName];
-        if (assetsBeforeCompilation[outputName] === undefined) {
-          // If it wasn't there - delete it
-          delete compilation.assets[outputName];
-        }
-        resolve({
-          // Hash of the template entry point
-          hash: entries[0].hash,
-          // Output name
-          outputName: outputName,
-          // Compiled code
-          content: childCompilation.assets[outputName].source()
-        });
-      }
-    });
-  });
-};
-
-/**
- * Returns the child compiler name e.g. 'html-webpack-plugin for "index.html"'
- */
-function getCompilerName (context, filename) {
-  const absolutePath = path.resolve(context, filename);
-  const relativePath = path.relative(context, absolutePath);
-  return 'html-webpack-plugin for "' + (absolutePath.length < relativePath.length ? absolutePath : relativePath) + '"';
-}

+ 0 - 23
node_modules.bak/html-webpack-plugin/lib/errors.js

@@ -1,23 +0,0 @@
-'use strict';
-const PrettyError = require('pretty-error');
-const prettyError = new PrettyError();
-prettyError.withoutColors();
-prettyError.skipPackage(['html-plugin-evaluation']);
-prettyError.skipNodeFiles();
-prettyError.skip(function (traceLine) {
-  return traceLine.path === 'html-plugin-evaluation';
-});
-
-module.exports = function (err, context) {
-  return {
-    toHtml: function () {
-      return 'Html Webpack Plugin:\n<pre>\n' + this.toString() + '</pre>';
-    },
-    toJsonHtml: function () {
-      return JSON.stringify(this.toHtml());
-    },
-    toString: function () {
-      return prettyError.render(err).replace(/webpack:\/\/\/\./g, context);
-    }
-  };
-};

+ 0 - 35
node_modules.bak/html-webpack-plugin/lib/loader.js

@@ -1,35 +0,0 @@
-/* This loader renders the template with underscore if no other loader was found */
-'use strict';
-
-const _ = require('lodash');
-const loaderUtils = require('loader-utils');
-
-module.exports = function (source) {
-  if (this.cacheable) {
-    this.cacheable();
-  }
-  const allLoadersButThisOne = this.loaders.filter(function (loader) {
-    // Loader API changed from `loader.module` to `loader.normal` in Webpack 2.
-    return (loader.module || loader.normal) !== module.exports;
-  });
-  // This loader shouldn't kick in if there is any other loader
-  if (allLoadersButThisOne.length > 0) {
-    return source;
-  }
-  // Skip .js files
-  if (/\.js$/.test(this.resourcePath)) {
-    return source;
-  }
-
-  // The following part renders the tempalte with lodash as aminimalistic loader
-  //
-  // Get templating options
-  const options = this.query !== '' ? loaderUtils.parseQuery(this.query) : {};
-  const template = _.template(source, _.defaults(options, { variable: 'data' }));
-  // Require !!lodash - using !! will disable all loaders (e.g. babel)
-  return 'var _ = require(' + loaderUtils.stringifyRequest(this, '!!' + require.resolve('lodash')) + ');' +
-    'module.exports = function (templateParams) { with(templateParams) {' +
-      // Execute the lodash template
-      'return (' + template.source + ')();' +
-    '}}';
-};

+ 0 - 111
node_modules.bak/html-webpack-plugin/package.json

@@ -1,111 +0,0 @@
-{
-  "_from": "html-webpack-plugin@^3.2.0",
-  "_id": "html-webpack-plugin@3.2.0",
-  "_inBundle": false,
-  "_integrity": "sha1-sBq71yOsqqeze2r0SS69oD2d03s=",
-  "_location": "/html-webpack-plugin",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "html-webpack-plugin@^3.2.0",
-    "name": "html-webpack-plugin",
-    "escapedName": "html-webpack-plugin",
-    "rawSpec": "^3.2.0",
-    "saveSpec": null,
-    "fetchSpec": "^3.2.0"
-  },
-  "_requiredBy": [
-    "#DEV:/"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/html-webpack-plugin/download/html-webpack-plugin-3.2.0.tgz",
-  "_shasum": "b01abbd723acaaa7b37b6af4492ebda03d9dd37b",
-  "_spec": "html-webpack-plugin@^3.2.0",
-  "_where": "D:\\朗通信息\\icssDService",
-  "author": {
-    "name": "Charles Blaxland",
-    "email": "charles.blaxland@gmail.com",
-    "url": "https://github.com/ampedandwired"
-  },
-  "bugs": {
-    "url": "https://github.com/jantimon/html-webpack-plugin/issues"
-  },
-  "bundleDependencies": false,
-  "config": {
-    "commitizen": {
-      "path": "./node_modules/cz-conventional-changelog"
-    }
-  },
-  "dependencies": {
-    "html-minifier": "^3.2.3",
-    "loader-utils": "^0.2.16",
-    "lodash": "^4.17.3",
-    "pretty-error": "^2.0.2",
-    "tapable": "^1.0.0",
-    "toposort": "^1.0.0",
-    "util.promisify": "1.0.0"
-  },
-  "deprecated": "3.x is no longer supported",
-  "description": "Simplifies creation of HTML files to serve your webpack bundles",
-  "devDependencies": {
-    "appcache-webpack-plugin": "^1.3.0",
-    "commitizen": "2.9.6",
-    "css-loader": "^0.26.1",
-    "cz-conventional-changelog": "2.1.0",
-    "dir-compare": "1.3.0",
-    "es6-promise": "^4.0.5",
-    "extract-text-webpack-plugin": "^1.0.1",
-    "file-loader": "^0.9.0",
-    "html-loader": "^0.4.4",
-    "jade": "^1.11.0",
-    "jade-loader": "^0.8.0",
-    "jasmine": "^2.5.2",
-    "jasmine-diff-matchers": "^2.0.0",
-    "rimraf": "^2.5.4",
-    "semistandard": "8.0.0",
-    "standard-version": "^4.3.0",
-    "style-loader": "^0.13.1",
-    "underscore-template-loader": "^0.7.3",
-    "url-loader": "^0.5.7",
-    "webpack": "^1.14.0",
-    "webpack-recompilation-simulator": "^1.3.0"
-  },
-  "engines": {
-    "node": ">=6.9"
-  },
-  "files": [
-    "lib/",
-    "index.js",
-    "default_index.ejs"
-  ],
-  "homepage": "https://github.com/jantimon/html-webpack-plugin",
-  "keywords": [
-    "webpack",
-    "plugin",
-    "html",
-    "html-webpack-plugin"
-  ],
-  "license": "MIT",
-  "main": "index.js",
-  "name": "html-webpack-plugin",
-  "peerDependencies": {
-    "webpack": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0"
-  },
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/jantimon/html-webpack-plugin.git"
-  },
-  "scripts": {
-    "build-examples": "node examples/build-examples.js",
-    "commit": "git-cz",
-    "pretest": "semistandard",
-    "release": "standard-version",
-    "test": "jasmine"
-  },
-  "semistandard": {
-    "ignore": [
-      "examples/*/dist/**/*.*"
-    ]
-  },
-  "version": "3.2.0"
-}

+ 0 - 18
node_modules.bak/htmlparser2/LICENSE

@@ -1,18 +0,0 @@
-Copyright 2010, 2011, Chris Winberry <chris@winberry.net>. All rights reserved.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
- 
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
- 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.

+ 0 - 91
node_modules.bak/htmlparser2/README.md

@@ -1,91 +0,0 @@
-# htmlparser2
-
-[![NPM version](http://img.shields.io/npm/v/htmlparser2.svg?style=flat)](https://npmjs.org/package/htmlparser2)
-[![Downloads](https://img.shields.io/npm/dm/htmlparser2.svg?style=flat)](https://npmjs.org/package/htmlparser2)
-[![Build Status](http://img.shields.io/travis/fb55/htmlparser2/master.svg?style=flat)](http://travis-ci.org/fb55/htmlparser2)
-[![Coverage](http://img.shields.io/coveralls/fb55/htmlparser2.svg?style=flat)](https://coveralls.io/r/fb55/htmlparser2)
-
-A forgiving HTML/XML/RSS parser. The parser can handle streams and provides a callback interface.
-
-## Installation
-	npm install htmlparser2
-
-A live demo of htmlparser2 is available [here](https://astexplorer.net/#/2AmVrGuGVJ).
-
-## Usage
-
-```javascript
-var htmlparser = require("htmlparser2");
-var parser = new htmlparser.Parser({
-	onopentag: function(name, attribs){
-		if(name === "script" && attribs.type === "text/javascript"){
-			console.log("JS! Hooray!");
-		}
-	},
-	ontext: function(text){
-		console.log("-->", text);
-	},
-	onclosetag: function(tagname){
-		if(tagname === "script"){
-			console.log("That's it?!");
-		}
-	}
-}, {decodeEntities: true});
-parser.write("Xyz <script type='text/javascript'>var foo = '<<bar>>';</ script>");
-parser.end();
-```
-
-Output (simplified):
-
-```
---> Xyz
-JS! Hooray!
---> var foo = '<<bar>>';
-That's it?!
-```
-
-## Documentation
-
-Read more about the parser and its options in the [wiki](https://github.com/fb55/htmlparser2/wiki/Parser-options).
-
-## Get a DOM
-The `DomHandler` (known as `DefaultHandler` in the original `htmlparser` module) produces a DOM (document object model) that can be manipulated using the [`DomUtils`](https://github.com/fb55/DomUtils) helper.
-
-The `DomHandler`, while still bundled with this module, was moved to its [own module](https://github.com/fb55/domhandler). Have a look at it for further information.
-
-## Parsing RSS/RDF/Atom Feeds
-
-```javascript
-new htmlparser.FeedHandler(function(<error> error, <object> feed){
-    ...
-});
-```
-
-Note: While the provided feed handler works for most feeds, you might want to use  [danmactough/node-feedparser](https://github.com/danmactough/node-feedparser), which is much better tested and actively maintained.
-
-## Performance
-
-After having some artificial benchmarks for some time, __@AndreasMadsen__ published his [`htmlparser-benchmark`](https://github.com/AndreasMadsen/htmlparser-benchmark), which benchmarks HTML parses based on real-world websites.
-
-At the time of writing, the latest versions of all supported parsers show the following performance characteristics on [Travis CI](https://travis-ci.org/AndreasMadsen/htmlparser-benchmark/builds/10805007) (please note that Travis doesn't guarantee equal conditions for all tests):
-
-```
-gumbo-parser   : 34.9208 ms/file ± 21.4238
-html-parser    : 24.8224 ms/file ± 15.8703
-html5          : 419.597 ms/file ± 264.265
-htmlparser     : 60.0722 ms/file ± 384.844
-htmlparser2-dom: 12.0749 ms/file ± 6.49474
-htmlparser2    : 7.49130 ms/file ± 5.74368
-hubbub         : 30.4980 ms/file ± 16.4682
-libxmljs       : 14.1338 ms/file ± 18.6541
-parse5         : 22.0439 ms/file ± 15.3743
-sax            : 49.6513 ms/file ± 26.6032
-```
-
-## How does this module differ from [node-htmlparser](https://github.com/tautologistics/node-htmlparser)?
-
-This is a fork of the `htmlparser` module. The main difference is that this is intended to be used only with node (it runs on other platforms using [browserify](https://github.com/substack/node-browserify)). `htmlparser2` was rewritten multiple times and, while it maintains an API that's compatible with `htmlparser` in most cases, the projects don't share any code anymore.
-
-The parser now provides a callback interface close to [sax.js](https://github.com/isaacs/sax-js) (originally targeted at [readabilitySAX](https://github.com/fb55/readabilitysax)). As a result, old handlers won't work anymore.
-
-The `DefaultHandler` and the `RssHandler` were renamed to clarify their purpose (to `DomHandler` and `FeedHandler`). The old names are still available when requiring `htmlparser2`, your code should work as expected.

+ 0 - 57
node_modules.bak/htmlparser2/lib/CollectingHandler.js

@@ -1,57 +0,0 @@
-module.exports = CollectingHandler;
-
-function CollectingHandler(cbs) {
-    this._cbs = cbs || {};
-    this.events = [];
-}
-
-var EVENTS = require("./").EVENTS;
-Object.keys(EVENTS).forEach(function(name) {
-    if (EVENTS[name] === 0) {
-        name = "on" + name;
-        CollectingHandler.prototype[name] = function() {
-            this.events.push([name]);
-            if (this._cbs[name]) this._cbs[name]();
-        };
-    } else if (EVENTS[name] === 1) {
-        name = "on" + name;
-        CollectingHandler.prototype[name] = function(a) {
-            this.events.push([name, a]);
-            if (this._cbs[name]) this._cbs[name](a);
-        };
-    } else if (EVENTS[name] === 2) {
-        name = "on" + name;
-        CollectingHandler.prototype[name] = function(a, b) {
-            this.events.push([name, a, b]);
-            if (this._cbs[name]) this._cbs[name](a, b);
-        };
-    } else {
-        throw Error("wrong number of arguments");
-    }
-});
-
-CollectingHandler.prototype.onreset = function() {
-    this.events = [];
-    if (this._cbs.onreset) this._cbs.onreset();
-};
-
-CollectingHandler.prototype.restart = function() {
-    if (this._cbs.onreset) this._cbs.onreset();
-
-    for (var i = 0, len = this.events.length; i < len; i++) {
-        if (this._cbs[this.events[i][0]]) {
-            var num = this.events[i].length;
-
-            if (num === 1) {
-                this._cbs[this.events[i][0]]();
-            } else if (num === 2) {
-                this._cbs[this.events[i][0]](this.events[i][1]);
-            } else {
-                this._cbs[this.events[i][0]](
-                    this.events[i][1],
-                    this.events[i][2]
-                );
-            }
-        }
-    }
-};

+ 0 - 114
node_modules.bak/htmlparser2/lib/FeedHandler.js

@@ -1,114 +0,0 @@
-var DomHandler = require("domhandler");
-var DomUtils = require("domutils");
-
-//TODO: make this a streamable handler
-function FeedHandler(callback, options) {
-    this.init(callback, options);
-}
-
-require("inherits")(FeedHandler, DomHandler);
-
-FeedHandler.prototype.init = DomHandler;
-
-function getElements(what, where) {
-    return DomUtils.getElementsByTagName(what, where, true);
-}
-function getOneElement(what, where) {
-    return DomUtils.getElementsByTagName(what, where, true, 1)[0];
-}
-function fetch(what, where, recurse) {
-    return DomUtils.getText(
-        DomUtils.getElementsByTagName(what, where, recurse, 1)
-    ).trim();
-}
-
-function addConditionally(obj, prop, what, where, recurse) {
-    var tmp = fetch(what, where, recurse);
-    if (tmp) obj[prop] = tmp;
-}
-
-var isValidFeed = function(value) {
-    return value === "rss" || value === "feed" || value === "rdf:RDF";
-};
-
-FeedHandler.prototype.onend = function() {
-    var feed = {},
-        feedRoot = getOneElement(isValidFeed, this.dom),
-        tmp,
-        childs;
-
-    if (feedRoot) {
-        if (feedRoot.name === "feed") {
-            childs = feedRoot.children;
-
-            feed.type = "atom";
-            addConditionally(feed, "id", "id", childs);
-            addConditionally(feed, "title", "title", childs);
-            if (
-                (tmp = getOneElement("link", childs)) &&
-                (tmp = tmp.attribs) &&
-                (tmp = tmp.href)
-            )
-                feed.link = tmp;
-            addConditionally(feed, "description", "subtitle", childs);
-            if ((tmp = fetch("updated", childs))) feed.updated = new Date(tmp);
-            addConditionally(feed, "author", "email", childs, true);
-
-            feed.items = getElements("entry", childs).map(function(item) {
-                var entry = {},
-                    tmp;
-
-                item = item.children;
-
-                addConditionally(entry, "id", "id", item);
-                addConditionally(entry, "title", "title", item);
-                if (
-                    (tmp = getOneElement("link", item)) &&
-                    (tmp = tmp.attribs) &&
-                    (tmp = tmp.href)
-                )
-                    entry.link = tmp;
-                if ((tmp = fetch("summary", item) || fetch("content", item)))
-                    entry.description = tmp;
-                if ((tmp = fetch("updated", item)))
-                    entry.pubDate = new Date(tmp);
-                return entry;
-            });
-        } else {
-            childs = getOneElement("channel", feedRoot.children).children;
-
-            feed.type = feedRoot.name.substr(0, 3);
-            feed.id = "";
-            addConditionally(feed, "title", "title", childs);
-            addConditionally(feed, "link", "link", childs);
-            addConditionally(feed, "description", "description", childs);
-            if ((tmp = fetch("lastBuildDate", childs)))
-                feed.updated = new Date(tmp);
-            addConditionally(feed, "author", "managingEditor", childs, true);
-
-            feed.items = getElements("item", feedRoot.children).map(function(
-                item
-            ) {
-                var entry = {},
-                    tmp;
-
-                item = item.children;
-
-                addConditionally(entry, "id", "guid", item);
-                addConditionally(entry, "title", "title", item);
-                addConditionally(entry, "link", "link", item);
-                addConditionally(entry, "description", "description", item);
-                if ((tmp = fetch("pubDate", item)))
-                    entry.pubDate = new Date(tmp);
-                return entry;
-            });
-        }
-    }
-    this.dom = feed;
-    DomHandler.prototype._handleCallback.call(
-        this,
-        feedRoot ? null : Error("couldn't find root of feed")
-    );
-};
-
-module.exports = FeedHandler;

+ 0 - 382
node_modules.bak/htmlparser2/lib/Parser.js

@@ -1,382 +0,0 @@
-var Tokenizer = require("./Tokenizer.js");
-
-/*
-	Options:
-
-	xmlMode: Disables the special behavior for script/style tags (false by default)
-	lowerCaseAttributeNames: call .toLowerCase for each attribute name (true if xmlMode is `false`)
-	lowerCaseTags: call .toLowerCase for each tag name (true if xmlMode is `false`)
-*/
-
-/*
-	Callbacks:
-
-	oncdataend,
-	oncdatastart,
-	onclosetag,
-	oncomment,
-	oncommentend,
-	onerror,
-	onopentag,
-	onprocessinginstruction,
-	onreset,
-	ontext
-*/
-
-var formTags = {
-    input: true,
-    option: true,
-    optgroup: true,
-    select: true,
-    button: true,
-    datalist: true,
-    textarea: true
-};
-
-var openImpliesClose = {
-    tr: { tr: true, th: true, td: true },
-    th: { th: true },
-    td: { thead: true, th: true, td: true },
-    body: { head: true, link: true, script: true },
-    li: { li: true },
-    p: { p: true },
-    h1: { p: true },
-    h2: { p: true },
-    h3: { p: true },
-    h4: { p: true },
-    h5: { p: true },
-    h6: { p: true },
-    select: formTags,
-    input: formTags,
-    output: formTags,
-    button: formTags,
-    datalist: formTags,
-    textarea: formTags,
-    option: { option: true },
-    optgroup: { optgroup: true }
-};
-
-var voidElements = {
-    __proto__: null,
-    area: true,
-    base: true,
-    basefont: true,
-    br: true,
-    col: true,
-    command: true,
-    embed: true,
-    frame: true,
-    hr: true,
-    img: true,
-    input: true,
-    isindex: true,
-    keygen: true,
-    link: true,
-    meta: true,
-    param: true,
-    source: true,
-    track: true,
-    wbr: true
-};
-
-var foreignContextElements = {
-    __proto__: null,
-    math: true,
-    svg: true
-};
-var htmlIntegrationElements = {
-    __proto__: null,
-    mi: true,
-    mo: true,
-    mn: true,
-    ms: true,
-    mtext: true,
-    "annotation-xml": true,
-    foreignObject: true,
-    desc: true,
-    title: true
-};
-
-var re_nameEnd = /\s|\//;
-
-function Parser(cbs, options) {
-    this._options = options || {};
-    this._cbs = cbs || {};
-
-    this._tagname = "";
-    this._attribname = "";
-    this._attribvalue = "";
-    this._attribs = null;
-    this._stack = [];
-    this._foreignContext = [];
-
-    this.startIndex = 0;
-    this.endIndex = null;
-
-    this._lowerCaseTagNames =
-        "lowerCaseTags" in this._options
-            ? !!this._options.lowerCaseTags
-            : !this._options.xmlMode;
-    this._lowerCaseAttributeNames =
-        "lowerCaseAttributeNames" in this._options
-            ? !!this._options.lowerCaseAttributeNames
-            : !this._options.xmlMode;
-
-    if (this._options.Tokenizer) {
-        Tokenizer = this._options.Tokenizer;
-    }
-    this._tokenizer = new Tokenizer(this._options, this);
-
-    if (this._cbs.onparserinit) this._cbs.onparserinit(this);
-}
-
-require("inherits")(Parser, require("events").EventEmitter);
-
-Parser.prototype._updatePosition = function(initialOffset) {
-    if (this.endIndex === null) {
-        if (this._tokenizer._sectionStart <= initialOffset) {
-            this.startIndex = 0;
-        } else {
-            this.startIndex = this._tokenizer._sectionStart - initialOffset;
-        }
-    } else this.startIndex = this.endIndex + 1;
-    this.endIndex = this._tokenizer.getAbsoluteIndex();
-};
-
-//Tokenizer event handlers
-Parser.prototype.ontext = function(data) {
-    this._updatePosition(1);
-    this.endIndex--;
-
-    if (this._cbs.ontext) this._cbs.ontext(data);
-};
-
-Parser.prototype.onopentagname = function(name) {
-    if (this._lowerCaseTagNames) {
-        name = name.toLowerCase();
-    }
-
-    this._tagname = name;
-
-    if (!this._options.xmlMode && name in openImpliesClose) {
-        for (
-            var el;
-            (el = this._stack[this._stack.length - 1]) in
-            openImpliesClose[name];
-            this.onclosetag(el)
-        );
-    }
-
-    if (this._options.xmlMode || !(name in voidElements)) {
-        this._stack.push(name);
-        if (name in foreignContextElements) this._foreignContext.push(true);
-        else if (name in htmlIntegrationElements)
-            this._foreignContext.push(false);
-    }
-
-    if (this._cbs.onopentagname) this._cbs.onopentagname(name);
-    if (this._cbs.onopentag) this._attribs = {};
-};
-
-Parser.prototype.onopentagend = function() {
-    this._updatePosition(1);
-
-    if (this._attribs) {
-        if (this._cbs.onopentag)
-            this._cbs.onopentag(this._tagname, this._attribs);
-        this._attribs = null;
-    }
-
-    if (
-        !this._options.xmlMode &&
-        this._cbs.onclosetag &&
-        this._tagname in voidElements
-    ) {
-        this._cbs.onclosetag(this._tagname);
-    }
-
-    this._tagname = "";
-};
-
-Parser.prototype.onclosetag = function(name) {
-    this._updatePosition(1);
-
-    if (this._lowerCaseTagNames) {
-        name = name.toLowerCase();
-    }
-    
-    if (name in foreignContextElements || name in htmlIntegrationElements) {
-        this._foreignContext.pop();
-    }
-
-    if (
-        this._stack.length &&
-        (!(name in voidElements) || this._options.xmlMode)
-    ) {
-        var pos = this._stack.lastIndexOf(name);
-        if (pos !== -1) {
-            if (this._cbs.onclosetag) {
-                pos = this._stack.length - pos;
-                while (pos--) this._cbs.onclosetag(this._stack.pop());
-            } else this._stack.length = pos;
-        } else if (name === "p" && !this._options.xmlMode) {
-            this.onopentagname(name);
-            this._closeCurrentTag();
-        }
-    } else if (!this._options.xmlMode && (name === "br" || name === "p")) {
-        this.onopentagname(name);
-        this._closeCurrentTag();
-    }
-};
-
-Parser.prototype.onselfclosingtag = function() {
-    if (
-        this._options.xmlMode ||
-        this._options.recognizeSelfClosing ||
-        this._foreignContext[this._foreignContext.length - 1]
-    ) {
-        this._closeCurrentTag();
-    } else {
-        this.onopentagend();
-    }
-};
-
-Parser.prototype._closeCurrentTag = function() {
-    var name = this._tagname;
-
-    this.onopentagend();
-
-    //self-closing tags will be on the top of the stack
-    //(cheaper check than in onclosetag)
-    if (this._stack[this._stack.length - 1] === name) {
-        if (this._cbs.onclosetag) {
-            this._cbs.onclosetag(name);
-        }
-        this._stack.pop();
-        
-    }
-};
-
-Parser.prototype.onattribname = function(name) {
-    if (this._lowerCaseAttributeNames) {
-        name = name.toLowerCase();
-    }
-    this._attribname = name;
-};
-
-Parser.prototype.onattribdata = function(value) {
-    this._attribvalue += value;
-};
-
-Parser.prototype.onattribend = function() {
-    if (this._cbs.onattribute)
-        this._cbs.onattribute(this._attribname, this._attribvalue);
-    if (
-        this._attribs &&
-        !Object.prototype.hasOwnProperty.call(this._attribs, this._attribname)
-    ) {
-        this._attribs[this._attribname] = this._attribvalue;
-    }
-    this._attribname = "";
-    this._attribvalue = "";
-};
-
-Parser.prototype._getInstructionName = function(value) {
-    var idx = value.search(re_nameEnd),
-        name = idx < 0 ? value : value.substr(0, idx);
-
-    if (this._lowerCaseTagNames) {
-        name = name.toLowerCase();
-    }
-
-    return name;
-};
-
-Parser.prototype.ondeclaration = function(value) {
-    if (this._cbs.onprocessinginstruction) {
-        var name = this._getInstructionName(value);
-        this._cbs.onprocessinginstruction("!" + name, "!" + value);
-    }
-};
-
-Parser.prototype.onprocessinginstruction = function(value) {
-    if (this._cbs.onprocessinginstruction) {
-        var name = this._getInstructionName(value);
-        this._cbs.onprocessinginstruction("?" + name, "?" + value);
-    }
-};
-
-Parser.prototype.oncomment = function(value) {
-    this._updatePosition(4);
-
-    if (this._cbs.oncomment) this._cbs.oncomment(value);
-    if (this._cbs.oncommentend) this._cbs.oncommentend();
-};
-
-Parser.prototype.oncdata = function(value) {
-    this._updatePosition(1);
-
-    if (this._options.xmlMode || this._options.recognizeCDATA) {
-        if (this._cbs.oncdatastart) this._cbs.oncdatastart();
-        if (this._cbs.ontext) this._cbs.ontext(value);
-        if (this._cbs.oncdataend) this._cbs.oncdataend();
-    } else {
-        this.oncomment("[CDATA[" + value + "]]");
-    }
-};
-
-Parser.prototype.onerror = function(err) {
-    if (this._cbs.onerror) this._cbs.onerror(err);
-};
-
-Parser.prototype.onend = function() {
-    if (this._cbs.onclosetag) {
-        for (
-            var i = this._stack.length;
-            i > 0;
-            this._cbs.onclosetag(this._stack[--i])
-        );
-    }
-    if (this._cbs.onend) this._cbs.onend();
-};
-
-//Resets the parser to a blank state, ready to parse a new HTML document
-Parser.prototype.reset = function() {
-    if (this._cbs.onreset) this._cbs.onreset();
-    this._tokenizer.reset();
-
-    this._tagname = "";
-    this._attribname = "";
-    this._attribs = null;
-    this._stack = [];
-
-    if (this._cbs.onparserinit) this._cbs.onparserinit(this);
-};
-
-//Parses a complete HTML document and pushes it to the handler
-Parser.prototype.parseComplete = function(data) {
-    this.reset();
-    this.end(data);
-};
-
-Parser.prototype.write = function(chunk) {
-    this._tokenizer.write(chunk);
-};
-
-Parser.prototype.end = function(chunk) {
-    this._tokenizer.end(chunk);
-};
-
-Parser.prototype.pause = function() {
-    this._tokenizer.pause();
-};
-
-Parser.prototype.resume = function() {
-    this._tokenizer.resume();
-};
-
-//alias for backwards compat
-Parser.prototype.parseChunk = Parser.prototype.write;
-Parser.prototype.done = Parser.prototype.end;
-
-module.exports = Parser;

+ 0 - 27
node_modules.bak/htmlparser2/lib/ProxyHandler.js

@@ -1,27 +0,0 @@
-module.exports = ProxyHandler;
-
-function ProxyHandler(cbs) {
-    this._cbs = cbs || {};
-}
-
-var EVENTS = require("./").EVENTS;
-Object.keys(EVENTS).forEach(function(name) {
-    if (EVENTS[name] === 0) {
-        name = "on" + name;
-        ProxyHandler.prototype[name] = function() {
-            if (this._cbs[name]) this._cbs[name]();
-        };
-    } else if (EVENTS[name] === 1) {
-        name = "on" + name;
-        ProxyHandler.prototype[name] = function(a) {
-            if (this._cbs[name]) this._cbs[name](a);
-        };
-    } else if (EVENTS[name] === 2) {
-        name = "on" + name;
-        ProxyHandler.prototype[name] = function(a, b) {
-            if (this._cbs[name]) this._cbs[name](a, b);
-        };
-    } else {
-        throw Error("wrong number of arguments");
-    }
-});

+ 0 - 35
node_modules.bak/htmlparser2/lib/Stream.js

@@ -1,35 +0,0 @@
-module.exports = Stream;
-
-var Parser = require("./WritableStream.js");
-
-function Stream(options) {
-    Parser.call(this, new Cbs(this), options);
-}
-
-require("inherits")(Stream, Parser);
-
-Stream.prototype.readable = true;
-
-function Cbs(scope) {
-    this.scope = scope;
-}
-
-var EVENTS = require("../").EVENTS;
-
-Object.keys(EVENTS).forEach(function(name) {
-    if (EVENTS[name] === 0) {
-        Cbs.prototype["on" + name] = function() {
-            this.scope.emit(name);
-        };
-    } else if (EVENTS[name] === 1) {
-        Cbs.prototype["on" + name] = function(a) {
-            this.scope.emit(name, a);
-        };
-    } else if (EVENTS[name] === 2) {
-        Cbs.prototype["on" + name] = function(a, b) {
-            this.scope.emit(name, a, b);
-        };
-    } else {
-        throw Error("wrong number of arguments!");
-    }
-});

+ 0 - 970
node_modules.bak/htmlparser2/lib/Tokenizer.js

@@ -1,970 +0,0 @@
-module.exports = Tokenizer;
-
-var decodeCodePoint = require("entities/lib/decode_codepoint.js");
-var entityMap = require("entities/maps/entities.json");
-var legacyMap = require("entities/maps/legacy.json");
-var xmlMap = require("entities/maps/xml.json");
-
-var i = 0;
-
-var TEXT = i++;
-var BEFORE_TAG_NAME = i++; //after <
-var IN_TAG_NAME = i++;
-var IN_SELF_CLOSING_TAG = i++;
-var BEFORE_CLOSING_TAG_NAME = i++;
-var IN_CLOSING_TAG_NAME = i++;
-var AFTER_CLOSING_TAG_NAME = i++;
-
-//attributes
-var BEFORE_ATTRIBUTE_NAME = i++;
-var IN_ATTRIBUTE_NAME = i++;
-var AFTER_ATTRIBUTE_NAME = i++;
-var BEFORE_ATTRIBUTE_VALUE = i++;
-var IN_ATTRIBUTE_VALUE_DQ = i++; // "
-var IN_ATTRIBUTE_VALUE_SQ = i++; // '
-var IN_ATTRIBUTE_VALUE_NQ = i++;
-
-//declarations
-var BEFORE_DECLARATION = i++; // !
-var IN_DECLARATION = i++;
-
-//processing instructions
-var IN_PROCESSING_INSTRUCTION = i++; // ?
-
-//comments
-var BEFORE_COMMENT = i++;
-var IN_COMMENT = i++;
-var AFTER_COMMENT_1 = i++;
-var AFTER_COMMENT_2 = i++;
-
-//cdata
-var BEFORE_CDATA_1 = i++; // [
-var BEFORE_CDATA_2 = i++; // C
-var BEFORE_CDATA_3 = i++; // D
-var BEFORE_CDATA_4 = i++; // A
-var BEFORE_CDATA_5 = i++; // T
-var BEFORE_CDATA_6 = i++; // A
-var IN_CDATA = i++; // [
-var AFTER_CDATA_1 = i++; // ]
-var AFTER_CDATA_2 = i++; // ]
-
-//special tags
-var BEFORE_SPECIAL = i++; //S
-var BEFORE_SPECIAL_END = i++; //S
-
-var BEFORE_SCRIPT_1 = i++; //C
-var BEFORE_SCRIPT_2 = i++; //R
-var BEFORE_SCRIPT_3 = i++; //I
-var BEFORE_SCRIPT_4 = i++; //P
-var BEFORE_SCRIPT_5 = i++; //T
-var AFTER_SCRIPT_1 = i++; //C
-var AFTER_SCRIPT_2 = i++; //R
-var AFTER_SCRIPT_3 = i++; //I
-var AFTER_SCRIPT_4 = i++; //P
-var AFTER_SCRIPT_5 = i++; //T
-
-var BEFORE_STYLE_1 = i++; //T
-var BEFORE_STYLE_2 = i++; //Y
-var BEFORE_STYLE_3 = i++; //L
-var BEFORE_STYLE_4 = i++; //E
-var AFTER_STYLE_1 = i++; //T
-var AFTER_STYLE_2 = i++; //Y
-var AFTER_STYLE_3 = i++; //L
-var AFTER_STYLE_4 = i++; //E
-
-var BEFORE_ENTITY = i++; //&
-var BEFORE_NUMERIC_ENTITY = i++; //#
-var IN_NAMED_ENTITY = i++;
-var IN_NUMERIC_ENTITY = i++;
-var IN_HEX_ENTITY = i++; //X
-
-var j = 0;
-
-var SPECIAL_NONE = j++;
-var SPECIAL_SCRIPT = j++;
-var SPECIAL_STYLE = j++;
-
-function whitespace(c) {
-    return c === " " || c === "\n" || c === "\t" || c === "\f" || c === "\r";
-}
-
-function ifElseState(upper, SUCCESS, FAILURE) {
-    var lower = upper.toLowerCase();
-
-    if (upper === lower) {
-        return function(c) {
-            if (c === lower) {
-                this._state = SUCCESS;
-            } else {
-                this._state = FAILURE;
-                this._index--;
-            }
-        };
-    } else {
-        return function(c) {
-            if (c === lower || c === upper) {
-                this._state = SUCCESS;
-            } else {
-                this._state = FAILURE;
-                this._index--;
-            }
-        };
-    }
-}
-
-function consumeSpecialNameChar(upper, NEXT_STATE) {
-    var lower = upper.toLowerCase();
-
-    return function(c) {
-        if (c === lower || c === upper) {
-            this._state = NEXT_STATE;
-        } else {
-            this._state = IN_TAG_NAME;
-            this._index--; //consume the token again
-        }
-    };
-}
-
-function Tokenizer(options, cbs) {
-    this._state = TEXT;
-    this._buffer = "";
-    this._sectionStart = 0;
-    this._index = 0;
-    this._bufferOffset = 0; //chars removed from _buffer
-    this._baseState = TEXT;
-    this._special = SPECIAL_NONE;
-    this._cbs = cbs;
-    this._running = true;
-    this._ended = false;
-    this._xmlMode = !!(options && options.xmlMode);
-    this._decodeEntities = !!(options && options.decodeEntities);
-}
-
-Tokenizer.prototype._stateText = function(c) {
-    if (c === "<") {
-        if (this._index > this._sectionStart) {
-            this._cbs.ontext(this._getSection());
-        }
-        this._state = BEFORE_TAG_NAME;
-        this._sectionStart = this._index;
-    } else if (
-        this._decodeEntities &&
-        this._special === SPECIAL_NONE &&
-        c === "&"
-    ) {
-        if (this._index > this._sectionStart) {
-            this._cbs.ontext(this._getSection());
-        }
-        this._baseState = TEXT;
-        this._state = BEFORE_ENTITY;
-        this._sectionStart = this._index;
-    }
-};
-
-Tokenizer.prototype._stateBeforeTagName = function(c) {
-    if (c === "/") {
-        this._state = BEFORE_CLOSING_TAG_NAME;
-    } else if (c === "<") {
-        this._cbs.ontext(this._getSection());
-        this._sectionStart = this._index;
-    } else if (c === ">" || this._special !== SPECIAL_NONE || whitespace(c)) {
-        this._state = TEXT;
-    } else if (c === "!") {
-        this._state = BEFORE_DECLARATION;
-        this._sectionStart = this._index + 1;
-    } else if (c === "?") {
-        this._state = IN_PROCESSING_INSTRUCTION;
-        this._sectionStart = this._index + 1;
-    } else {
-        this._state =
-            !this._xmlMode && (c === "s" || c === "S")
-                ? BEFORE_SPECIAL
-                : IN_TAG_NAME;
-        this._sectionStart = this._index;
-    }
-};
-
-Tokenizer.prototype._stateInTagName = function(c) {
-    if (c === "/" || c === ">" || whitespace(c)) {
-        this._emitToken("onopentagname");
-        this._state = BEFORE_ATTRIBUTE_NAME;
-        this._index--;
-    }
-};
-
-Tokenizer.prototype._stateBeforeCloseingTagName = function(c) {
-    if (whitespace(c));
-    else if (c === ">") {
-        this._state = TEXT;
-    } else if (this._special !== SPECIAL_NONE) {
-        if (c === "s" || c === "S") {
-            this._state = BEFORE_SPECIAL_END;
-        } else {
-            this._state = TEXT;
-            this._index--;
-        }
-    } else {
-        this._state = IN_CLOSING_TAG_NAME;
-        this._sectionStart = this._index;
-    }
-};
-
-Tokenizer.prototype._stateInCloseingTagName = function(c) {
-    if (c === ">" || whitespace(c)) {
-        this._emitToken("onclosetag");
-        this._state = AFTER_CLOSING_TAG_NAME;
-        this._index--;
-    }
-};
-
-Tokenizer.prototype._stateAfterCloseingTagName = function(c) {
-    //skip everything until ">"
-    if (c === ">") {
-        this._state = TEXT;
-        this._sectionStart = this._index + 1;
-    }
-};
-
-Tokenizer.prototype._stateBeforeAttributeName = function(c) {
-    if (c === ">") {
-        this._cbs.onopentagend();
-        this._state = TEXT;
-        this._sectionStart = this._index + 1;
-    } else if (c === "/") {
-        this._state = IN_SELF_CLOSING_TAG;
-    } else if (!whitespace(c)) {
-        this._state = IN_ATTRIBUTE_NAME;
-        this._sectionStart = this._index;
-    }
-};
-
-Tokenizer.prototype._stateInSelfClosingTag = function(c) {
-    if (c === ">") {
-        this._cbs.onselfclosingtag();
-        this._state = TEXT;
-        this._sectionStart = this._index + 1;
-    } else if (!whitespace(c)) {
-        this._state = BEFORE_ATTRIBUTE_NAME;
-        this._index--;
-    }
-};
-
-Tokenizer.prototype._stateInAttributeName = function(c) {
-    if (c === "=" || c === "/" || c === ">" || whitespace(c)) {
-        this._cbs.onattribname(this._getSection());
-        this._sectionStart = -1;
-        this._state = AFTER_ATTRIBUTE_NAME;
-        this._index--;
-    }
-};
-
-Tokenizer.prototype._stateAfterAttributeName = function(c) {
-    if (c === "=") {
-        this._state = BEFORE_ATTRIBUTE_VALUE;
-    } else if (c === "/" || c === ">") {
-        this._cbs.onattribend();
-        this._state = BEFORE_ATTRIBUTE_NAME;
-        this._index--;
-    } else if (!whitespace(c)) {
-        this._cbs.onattribend();
-        this._state = IN_ATTRIBUTE_NAME;
-        this._sectionStart = this._index;
-    }
-};
-
-Tokenizer.prototype._stateBeforeAttributeValue = function(c) {
-    if (c === '"') {
-        this._state = IN_ATTRIBUTE_VALUE_DQ;
-        this._sectionStart = this._index + 1;
-    } else if (c === "'") {
-        this._state = IN_ATTRIBUTE_VALUE_SQ;
-        this._sectionStart = this._index + 1;
-    } else if (!whitespace(c)) {
-        this._state = IN_ATTRIBUTE_VALUE_NQ;
-        this._sectionStart = this._index;
-        this._index--; //reconsume token
-    }
-};
-
-Tokenizer.prototype._stateInAttributeValueDoubleQuotes = function(c) {
-    if (c === '"') {
-        this._emitToken("onattribdata");
-        this._cbs.onattribend();
-        this._state = BEFORE_ATTRIBUTE_NAME;
-    } else if (this._decodeEntities && c === "&") {
-        this._emitToken("onattribdata");
-        this._baseState = this._state;
-        this._state = BEFORE_ENTITY;
-        this._sectionStart = this._index;
-    }
-};
-
-Tokenizer.prototype._stateInAttributeValueSingleQuotes = function(c) {
-    if (c === "'") {
-        this._emitToken("onattribdata");
-        this._cbs.onattribend();
-        this._state = BEFORE_ATTRIBUTE_NAME;
-    } else if (this._decodeEntities && c === "&") {
-        this._emitToken("onattribdata");
-        this._baseState = this._state;
-        this._state = BEFORE_ENTITY;
-        this._sectionStart = this._index;
-    }
-};
-
-Tokenizer.prototype._stateInAttributeValueNoQuotes = function(c) {
-    if (whitespace(c) || c === ">") {
-        this._emitToken("onattribdata");
-        this._cbs.onattribend();
-        this._state = BEFORE_ATTRIBUTE_NAME;
-        this._index--;
-    } else if (this._decodeEntities && c === "&") {
-        this._emitToken("onattribdata");
-        this._baseState = this._state;
-        this._state = BEFORE_ENTITY;
-        this._sectionStart = this._index;
-    }
-};
-
-Tokenizer.prototype._stateBeforeDeclaration = function(c) {
-    this._state =
-        c === "["
-            ? BEFORE_CDATA_1
-            : c === "-"
-                ? BEFORE_COMMENT
-                : IN_DECLARATION;
-};
-
-Tokenizer.prototype._stateInDeclaration = function(c) {
-    if (c === ">") {
-        this._cbs.ondeclaration(this._getSection());
-        this._state = TEXT;
-        this._sectionStart = this._index + 1;
-    }
-};
-
-Tokenizer.prototype._stateInProcessingInstruction = function(c) {
-    if (c === ">") {
-        this._cbs.onprocessinginstruction(this._getSection());
-        this._state = TEXT;
-        this._sectionStart = this._index + 1;
-    }
-};
-
-Tokenizer.prototype._stateBeforeComment = function(c) {
-    if (c === "-") {
-        this._state = IN_COMMENT;
-        this._sectionStart = this._index + 1;
-    } else {
-        this._state = IN_DECLARATION;
-    }
-};
-
-Tokenizer.prototype._stateInComment = function(c) {
-    if (c === "-") this._state = AFTER_COMMENT_1;
-};
-
-Tokenizer.prototype._stateAfterComment1 = function(c) {
-    if (c === "-") {
-        this._state = AFTER_COMMENT_2;
-    } else {
-        this._state = IN_COMMENT;
-    }
-};
-
-Tokenizer.prototype._stateAfterComment2 = function(c) {
-    if (c === ">") {
-        //remove 2 trailing chars
-        this._cbs.oncomment(
-            this._buffer.substring(this._sectionStart, this._index - 2)
-        );
-        this._state = TEXT;
-        this._sectionStart = this._index + 1;
-    } else if (c !== "-") {
-        this._state = IN_COMMENT;
-    }
-    // else: stay in AFTER_COMMENT_2 (`--->`)
-};
-
-Tokenizer.prototype._stateBeforeCdata1 = ifElseState(
-    "C",
-    BEFORE_CDATA_2,
-    IN_DECLARATION
-);
-Tokenizer.prototype._stateBeforeCdata2 = ifElseState(
-    "D",
-    BEFORE_CDATA_3,
-    IN_DECLARATION
-);
-Tokenizer.prototype._stateBeforeCdata3 = ifElseState(
-    "A",
-    BEFORE_CDATA_4,
-    IN_DECLARATION
-);
-Tokenizer.prototype._stateBeforeCdata4 = ifElseState(
-    "T",
-    BEFORE_CDATA_5,
-    IN_DECLARATION
-);
-Tokenizer.prototype._stateBeforeCdata5 = ifElseState(
-    "A",
-    BEFORE_CDATA_6,
-    IN_DECLARATION
-);
-
-Tokenizer.prototype._stateBeforeCdata6 = function(c) {
-    if (c === "[") {
-        this._state = IN_CDATA;
-        this._sectionStart = this._index + 1;
-    } else {
-        this._state = IN_DECLARATION;
-        this._index--;
-    }
-};
-
-Tokenizer.prototype._stateInCdata = function(c) {
-    if (c === "]") this._state = AFTER_CDATA_1;
-};
-
-Tokenizer.prototype._stateAfterCdata1 = function(c) {
-    if (c === "]") this._state = AFTER_CDATA_2;
-    else this._state = IN_CDATA;
-};
-
-Tokenizer.prototype._stateAfterCdata2 = function(c) {
-    if (c === ">") {
-        //remove 2 trailing chars
-        this._cbs.oncdata(
-            this._buffer.substring(this._sectionStart, this._index - 2)
-        );
-        this._state = TEXT;
-        this._sectionStart = this._index + 1;
-    } else if (c !== "]") {
-        this._state = IN_CDATA;
-    }
-    //else: stay in AFTER_CDATA_2 (`]]]>`)
-};
-
-Tokenizer.prototype._stateBeforeSpecial = function(c) {
-    if (c === "c" || c === "C") {
-        this._state = BEFORE_SCRIPT_1;
-    } else if (c === "t" || c === "T") {
-        this._state = BEFORE_STYLE_1;
-    } else {
-        this._state = IN_TAG_NAME;
-        this._index--; //consume the token again
-    }
-};
-
-Tokenizer.prototype._stateBeforeSpecialEnd = function(c) {
-    if (this._special === SPECIAL_SCRIPT && (c === "c" || c === "C")) {
-        this._state = AFTER_SCRIPT_1;
-    } else if (this._special === SPECIAL_STYLE && (c === "t" || c === "T")) {
-        this._state = AFTER_STYLE_1;
-    } else this._state = TEXT;
-};
-
-Tokenizer.prototype._stateBeforeScript1 = consumeSpecialNameChar(
-    "R",
-    BEFORE_SCRIPT_2
-);
-Tokenizer.prototype._stateBeforeScript2 = consumeSpecialNameChar(
-    "I",
-    BEFORE_SCRIPT_3
-);
-Tokenizer.prototype._stateBeforeScript3 = consumeSpecialNameChar(
-    "P",
-    BEFORE_SCRIPT_4
-);
-Tokenizer.prototype._stateBeforeScript4 = consumeSpecialNameChar(
-    "T",
-    BEFORE_SCRIPT_5
-);
-
-Tokenizer.prototype._stateBeforeScript5 = function(c) {
-    if (c === "/" || c === ">" || whitespace(c)) {
-        this._special = SPECIAL_SCRIPT;
-    }
-    this._state = IN_TAG_NAME;
-    this._index--; //consume the token again
-};
-
-Tokenizer.prototype._stateAfterScript1 = ifElseState("R", AFTER_SCRIPT_2, TEXT);
-Tokenizer.prototype._stateAfterScript2 = ifElseState("I", AFTER_SCRIPT_3, TEXT);
-Tokenizer.prototype._stateAfterScript3 = ifElseState("P", AFTER_SCRIPT_4, TEXT);
-Tokenizer.prototype._stateAfterScript4 = ifElseState("T", AFTER_SCRIPT_5, TEXT);
-
-Tokenizer.prototype._stateAfterScript5 = function(c) {
-    if (c === ">" || whitespace(c)) {
-        this._special = SPECIAL_NONE;
-        this._state = IN_CLOSING_TAG_NAME;
-        this._sectionStart = this._index - 6;
-        this._index--; //reconsume the token
-    } else this._state = TEXT;
-};
-
-Tokenizer.prototype._stateBeforeStyle1 = consumeSpecialNameChar(
-    "Y",
-    BEFORE_STYLE_2
-);
-Tokenizer.prototype._stateBeforeStyle2 = consumeSpecialNameChar(
-    "L",
-    BEFORE_STYLE_3
-);
-Tokenizer.prototype._stateBeforeStyle3 = consumeSpecialNameChar(
-    "E",
-    BEFORE_STYLE_4
-);
-
-Tokenizer.prototype._stateBeforeStyle4 = function(c) {
-    if (c === "/" || c === ">" || whitespace(c)) {
-        this._special = SPECIAL_STYLE;
-    }
-    this._state = IN_TAG_NAME;
-    this._index--; //consume the token again
-};
-
-Tokenizer.prototype._stateAfterStyle1 = ifElseState("Y", AFTER_STYLE_2, TEXT);
-Tokenizer.prototype._stateAfterStyle2 = ifElseState("L", AFTER_STYLE_3, TEXT);
-Tokenizer.prototype._stateAfterStyle3 = ifElseState("E", AFTER_STYLE_4, TEXT);
-
-Tokenizer.prototype._stateAfterStyle4 = function(c) {
-    if (c === ">" || whitespace(c)) {
-        this._special = SPECIAL_NONE;
-        this._state = IN_CLOSING_TAG_NAME;
-        this._sectionStart = this._index - 5;
-        this._index--; //reconsume the token
-    } else this._state = TEXT;
-};
-
-Tokenizer.prototype._stateBeforeEntity = ifElseState(
-    "#",
-    BEFORE_NUMERIC_ENTITY,
-    IN_NAMED_ENTITY
-);
-Tokenizer.prototype._stateBeforeNumericEntity = ifElseState(
-    "X",
-    IN_HEX_ENTITY,
-    IN_NUMERIC_ENTITY
-);
-
-//for entities terminated with a semicolon
-Tokenizer.prototype._parseNamedEntityStrict = function() {
-    //offset = 1
-    if (this._sectionStart + 1 < this._index) {
-        var entity = this._buffer.substring(
-                this._sectionStart + 1,
-                this._index
-            ),
-            map = this._xmlMode ? xmlMap : entityMap;
-
-        if (map.hasOwnProperty(entity)) {
-            this._emitPartial(map[entity]);
-            this._sectionStart = this._index + 1;
-        }
-    }
-};
-
-//parses legacy entities (without trailing semicolon)
-Tokenizer.prototype._parseLegacyEntity = function() {
-    var start = this._sectionStart + 1,
-        limit = this._index - start;
-
-    if (limit > 6) limit = 6; //the max length of legacy entities is 6
-
-    while (limit >= 2) {
-        //the min length of legacy entities is 2
-        var entity = this._buffer.substr(start, limit);
-
-        if (legacyMap.hasOwnProperty(entity)) {
-            this._emitPartial(legacyMap[entity]);
-            this._sectionStart += limit + 1;
-            return;
-        } else {
-            limit--;
-        }
-    }
-};
-
-Tokenizer.prototype._stateInNamedEntity = function(c) {
-    if (c === ";") {
-        this._parseNamedEntityStrict();
-        if (this._sectionStart + 1 < this._index && !this._xmlMode) {
-            this._parseLegacyEntity();
-        }
-        this._state = this._baseState;
-    } else if (
-        (c < "a" || c > "z") &&
-        (c < "A" || c > "Z") &&
-        (c < "0" || c > "9")
-    ) {
-        if (this._xmlMode);
-        else if (this._sectionStart + 1 === this._index);
-        else if (this._baseState !== TEXT) {
-            if (c !== "=") {
-                this._parseNamedEntityStrict();
-            }
-        } else {
-            this._parseLegacyEntity();
-        }
-
-        this._state = this._baseState;
-        this._index--;
-    }
-};
-
-Tokenizer.prototype._decodeNumericEntity = function(offset, base) {
-    var sectionStart = this._sectionStart + offset;
-
-    if (sectionStart !== this._index) {
-        //parse entity
-        var entity = this._buffer.substring(sectionStart, this._index);
-        var parsed = parseInt(entity, base);
-
-        this._emitPartial(decodeCodePoint(parsed));
-        this._sectionStart = this._index;
-    } else {
-        this._sectionStart--;
-    }
-
-    this._state = this._baseState;
-};
-
-Tokenizer.prototype._stateInNumericEntity = function(c) {
-    if (c === ";") {
-        this._decodeNumericEntity(2, 10);
-        this._sectionStart++;
-    } else if (c < "0" || c > "9") {
-        if (!this._xmlMode) {
-            this._decodeNumericEntity(2, 10);
-        } else {
-            this._state = this._baseState;
-        }
-        this._index--;
-    }
-};
-
-Tokenizer.prototype._stateInHexEntity = function(c) {
-    if (c === ";") {
-        this._decodeNumericEntity(3, 16);
-        this._sectionStart++;
-    } else if (
-        (c < "a" || c > "f") &&
-        (c < "A" || c > "F") &&
-        (c < "0" || c > "9")
-    ) {
-        if (!this._xmlMode) {
-            this._decodeNumericEntity(3, 16);
-        } else {
-            this._state = this._baseState;
-        }
-        this._index--;
-    }
-};
-
-Tokenizer.prototype._cleanup = function() {
-    if (this._sectionStart < 0) {
-        this._buffer = "";
-        this._bufferOffset += this._index;
-        this._index = 0;
-    } else if (this._running) {
-        if (this._state === TEXT) {
-            if (this._sectionStart !== this._index) {
-                this._cbs.ontext(this._buffer.substr(this._sectionStart));
-            }
-            this._buffer = "";
-            this._bufferOffset += this._index;
-            this._index = 0;
-        } else if (this._sectionStart === this._index) {
-            //the section just started
-            this._buffer = "";
-            this._bufferOffset += this._index;
-            this._index = 0;
-        } else {
-            //remove everything unnecessary
-            this._buffer = this._buffer.substr(this._sectionStart);
-            this._index -= this._sectionStart;
-            this._bufferOffset += this._sectionStart;
-        }
-
-        this._sectionStart = 0;
-    }
-};
-
-//TODO make events conditional
-Tokenizer.prototype.write = function(chunk) {
-    if (this._ended) this._cbs.onerror(Error(".write() after done!"));
-
-    this._buffer += chunk;
-    this._parse();
-};
-
-Tokenizer.prototype._parse = function() {
-    while (this._index < this._buffer.length && this._running) {
-        var c = this._buffer.charAt(this._index);
-        if (this._state === TEXT) {
-            this._stateText(c);
-        } else if (this._state === BEFORE_TAG_NAME) {
-            this._stateBeforeTagName(c);
-        } else if (this._state === IN_TAG_NAME) {
-            this._stateInTagName(c);
-        } else if (this._state === BEFORE_CLOSING_TAG_NAME) {
-            this._stateBeforeCloseingTagName(c);
-        } else if (this._state === IN_CLOSING_TAG_NAME) {
-            this._stateInCloseingTagName(c);
-        } else if (this._state === AFTER_CLOSING_TAG_NAME) {
-            this._stateAfterCloseingTagName(c);
-        } else if (this._state === IN_SELF_CLOSING_TAG) {
-            this._stateInSelfClosingTag(c);
-        } else if (this._state === BEFORE_ATTRIBUTE_NAME) {
-
-        /*
-		*	attributes
-		*/
-            this._stateBeforeAttributeName(c);
-        } else if (this._state === IN_ATTRIBUTE_NAME) {
-            this._stateInAttributeName(c);
-        } else if (this._state === AFTER_ATTRIBUTE_NAME) {
-            this._stateAfterAttributeName(c);
-        } else if (this._state === BEFORE_ATTRIBUTE_VALUE) {
-            this._stateBeforeAttributeValue(c);
-        } else if (this._state === IN_ATTRIBUTE_VALUE_DQ) {
-            this._stateInAttributeValueDoubleQuotes(c);
-        } else if (this._state === IN_ATTRIBUTE_VALUE_SQ) {
-            this._stateInAttributeValueSingleQuotes(c);
-        } else if (this._state === IN_ATTRIBUTE_VALUE_NQ) {
-            this._stateInAttributeValueNoQuotes(c);
-        } else if (this._state === BEFORE_DECLARATION) {
-
-        /*
-		*	declarations
-		*/
-            this._stateBeforeDeclaration(c);
-        } else if (this._state === IN_DECLARATION) {
-            this._stateInDeclaration(c);
-        } else if (this._state === IN_PROCESSING_INSTRUCTION) {
-
-        /*
-		*	processing instructions
-		*/
-            this._stateInProcessingInstruction(c);
-        } else if (this._state === BEFORE_COMMENT) {
-
-        /*
-		*	comments
-		*/
-            this._stateBeforeComment(c);
-        } else if (this._state === IN_COMMENT) {
-            this._stateInComment(c);
-        } else if (this._state === AFTER_COMMENT_1) {
-            this._stateAfterComment1(c);
-        } else if (this._state === AFTER_COMMENT_2) {
-            this._stateAfterComment2(c);
-        } else if (this._state === BEFORE_CDATA_1) {
-
-        /*
-		*	cdata
-		*/
-            this._stateBeforeCdata1(c);
-        } else if (this._state === BEFORE_CDATA_2) {
-            this._stateBeforeCdata2(c);
-        } else if (this._state === BEFORE_CDATA_3) {
-            this._stateBeforeCdata3(c);
-        } else if (this._state === BEFORE_CDATA_4) {
-            this._stateBeforeCdata4(c);
-        } else if (this._state === BEFORE_CDATA_5) {
-            this._stateBeforeCdata5(c);
-        } else if (this._state === BEFORE_CDATA_6) {
-            this._stateBeforeCdata6(c);
-        } else if (this._state === IN_CDATA) {
-            this._stateInCdata(c);
-        } else if (this._state === AFTER_CDATA_1) {
-            this._stateAfterCdata1(c);
-        } else if (this._state === AFTER_CDATA_2) {
-            this._stateAfterCdata2(c);
-        } else if (this._state === BEFORE_SPECIAL) {
-
-        /*
-		* special tags
-		*/
-            this._stateBeforeSpecial(c);
-        } else if (this._state === BEFORE_SPECIAL_END) {
-            this._stateBeforeSpecialEnd(c);
-        } else if (this._state === BEFORE_SCRIPT_1) {
-
-        /*
-		* script
-		*/
-            this._stateBeforeScript1(c);
-        } else if (this._state === BEFORE_SCRIPT_2) {
-            this._stateBeforeScript2(c);
-        } else if (this._state === BEFORE_SCRIPT_3) {
-            this._stateBeforeScript3(c);
-        } else if (this._state === BEFORE_SCRIPT_4) {
-            this._stateBeforeScript4(c);
-        } else if (this._state === BEFORE_SCRIPT_5) {
-            this._stateBeforeScript5(c);
-        } else if (this._state === AFTER_SCRIPT_1) {
-            this._stateAfterScript1(c);
-        } else if (this._state === AFTER_SCRIPT_2) {
-            this._stateAfterScript2(c);
-        } else if (this._state === AFTER_SCRIPT_3) {
-            this._stateAfterScript3(c);
-        } else if (this._state === AFTER_SCRIPT_4) {
-            this._stateAfterScript4(c);
-        } else if (this._state === AFTER_SCRIPT_5) {
-            this._stateAfterScript5(c);
-        } else if (this._state === BEFORE_STYLE_1) {
-
-        /*
-		* style
-		*/
-            this._stateBeforeStyle1(c);
-        } else if (this._state === BEFORE_STYLE_2) {
-            this._stateBeforeStyle2(c);
-        } else if (this._state === BEFORE_STYLE_3) {
-            this._stateBeforeStyle3(c);
-        } else if (this._state === BEFORE_STYLE_4) {
-            this._stateBeforeStyle4(c);
-        } else if (this._state === AFTER_STYLE_1) {
-            this._stateAfterStyle1(c);
-        } else if (this._state === AFTER_STYLE_2) {
-            this._stateAfterStyle2(c);
-        } else if (this._state === AFTER_STYLE_3) {
-            this._stateAfterStyle3(c);
-        } else if (this._state === AFTER_STYLE_4) {
-            this._stateAfterStyle4(c);
-        } else if (this._state === BEFORE_ENTITY) {
-
-        /*
-		* entities
-		*/
-            this._stateBeforeEntity(c);
-        } else if (this._state === BEFORE_NUMERIC_ENTITY) {
-            this._stateBeforeNumericEntity(c);
-        } else if (this._state === IN_NAMED_ENTITY) {
-            this._stateInNamedEntity(c);
-        } else if (this._state === IN_NUMERIC_ENTITY) {
-            this._stateInNumericEntity(c);
-        } else if (this._state === IN_HEX_ENTITY) {
-            this._stateInHexEntity(c);
-        } else {
-            this._cbs.onerror(Error("unknown _state"), this._state);
-        }
-
-        this._index++;
-    }
-
-    this._cleanup();
-};
-
-Tokenizer.prototype.pause = function() {
-    this._running = false;
-};
-Tokenizer.prototype.resume = function() {
-    this._running = true;
-
-    if (this._index < this._buffer.length) {
-        this._parse();
-    }
-    if (this._ended) {
-        this._finish();
-    }
-};
-
-Tokenizer.prototype.end = function(chunk) {
-    if (this._ended) this._cbs.onerror(Error(".end() after done!"));
-    if (chunk) this.write(chunk);
-
-    this._ended = true;
-
-    if (this._running) this._finish();
-};
-
-Tokenizer.prototype._finish = function() {
-    //if there is remaining data, emit it in a reasonable way
-    if (this._sectionStart < this._index) {
-        this._handleTrailingData();
-    }
-
-    this._cbs.onend();
-};
-
-Tokenizer.prototype._handleTrailingData = function() {
-    var data = this._buffer.substr(this._sectionStart);
-
-    if (
-        this._state === IN_CDATA ||
-        this._state === AFTER_CDATA_1 ||
-        this._state === AFTER_CDATA_2
-    ) {
-        this._cbs.oncdata(data);
-    } else if (
-        this._state === IN_COMMENT ||
-        this._state === AFTER_COMMENT_1 ||
-        this._state === AFTER_COMMENT_2
-    ) {
-        this._cbs.oncomment(data);
-    } else if (this._state === IN_NAMED_ENTITY && !this._xmlMode) {
-        this._parseLegacyEntity();
-        if (this._sectionStart < this._index) {
-            this._state = this._baseState;
-            this._handleTrailingData();
-        }
-    } else if (this._state === IN_NUMERIC_ENTITY && !this._xmlMode) {
-        this._decodeNumericEntity(2, 10);
-        if (this._sectionStart < this._index) {
-            this._state = this._baseState;
-            this._handleTrailingData();
-        }
-    } else if (this._state === IN_HEX_ENTITY && !this._xmlMode) {
-        this._decodeNumericEntity(3, 16);
-        if (this._sectionStart < this._index) {
-            this._state = this._baseState;
-            this._handleTrailingData();
-        }
-    } else if (
-        this._state !== IN_TAG_NAME &&
-        this._state !== BEFORE_ATTRIBUTE_NAME &&
-        this._state !== BEFORE_ATTRIBUTE_VALUE &&
-        this._state !== AFTER_ATTRIBUTE_NAME &&
-        this._state !== IN_ATTRIBUTE_NAME &&
-        this._state !== IN_ATTRIBUTE_VALUE_SQ &&
-        this._state !== IN_ATTRIBUTE_VALUE_DQ &&
-        this._state !== IN_ATTRIBUTE_VALUE_NQ &&
-        this._state !== IN_CLOSING_TAG_NAME
-    ) {
-        this._cbs.ontext(data);
-    }
-    //else, ignore remaining data
-    //TODO add a way to remove current tag
-};
-
-Tokenizer.prototype.reset = function() {
-    Tokenizer.call(
-        this,
-        { xmlMode: this._xmlMode, decodeEntities: this._decodeEntities },
-        this._cbs
-    );
-};
-
-Tokenizer.prototype.getAbsoluteIndex = function() {
-    return this._bufferOffset + this._index;
-};
-
-Tokenizer.prototype._getSection = function() {
-    return this._buffer.substring(this._sectionStart, this._index);
-};
-
-Tokenizer.prototype._emitToken = function(name) {
-    this._cbs[name](this._getSection());
-    this._sectionStart = -1;
-};
-
-Tokenizer.prototype._emitPartial = function(value) {
-    if (this._baseState !== TEXT) {
-        this._cbs.onattribdata(value); //TODO implement the new event
-    } else {
-        this._cbs.ontext(value);
-    }
-};

+ 0 - 25
node_modules.bak/htmlparser2/lib/WritableStream.js

@@ -1,25 +0,0 @@
-module.exports = Stream;
-
-var Parser = require("./Parser.js");
-var WritableStream = require("readable-stream").Writable;
-var StringDecoder = require("string_decoder").StringDecoder;
-var Buffer = require("buffer").Buffer;
-
-function Stream(cbs, options) {
-    var parser = (this._parser = new Parser(cbs, options));
-    var decoder = (this._decoder = new StringDecoder());
-
-    WritableStream.call(this, { decodeStrings: false });
-
-    this.once("finish", function() {
-        parser.end(decoder.end());
-    });
-}
-
-require("inherits")(Stream, WritableStream);
-
-Stream.prototype._write = function(chunk, encoding, cb) {
-    if (chunk instanceof Buffer) chunk = this._decoder.write(chunk);
-    this._parser.write(chunk);
-    cb();
-};

+ 0 - 72
node_modules.bak/htmlparser2/lib/index.js

@@ -1,72 +0,0 @@
-var Parser = require("./Parser.js");
-var DomHandler = require("domhandler");
-
-function defineProp(name, value) {
-    delete module.exports[name];
-    module.exports[name] = value;
-    return value;
-}
-
-module.exports = {
-    Parser: Parser,
-    Tokenizer: require("./Tokenizer.js"),
-    ElementType: require("domelementtype"),
-    DomHandler: DomHandler,
-    get FeedHandler() {
-        return defineProp("FeedHandler", require("./FeedHandler.js"));
-    },
-    get Stream() {
-        return defineProp("Stream", require("./Stream.js"));
-    },
-    get WritableStream() {
-        return defineProp("WritableStream", require("./WritableStream.js"));
-    },
-    get ProxyHandler() {
-        return defineProp("ProxyHandler", require("./ProxyHandler.js"));
-    },
-    get DomUtils() {
-        return defineProp("DomUtils", require("domutils"));
-    },
-    get CollectingHandler() {
-        return defineProp(
-            "CollectingHandler",
-            require("./CollectingHandler.js")
-        );
-    },
-    // For legacy support
-    DefaultHandler: DomHandler,
-    get RssHandler() {
-        return defineProp("RssHandler", this.FeedHandler);
-    },
-    //helper methods
-    parseDOM: function(data, options) {
-        var handler = new DomHandler(options);
-        new Parser(handler, options).end(data);
-        return handler.dom;
-    },
-    parseFeed: function(feed, options) {
-        var handler = new module.exports.FeedHandler(options);
-        new Parser(handler, options).end(feed);
-        return handler.dom;
-    },
-    createDomStream: function(cb, options, elementCb) {
-        var handler = new DomHandler(cb, options, elementCb);
-        return new Parser(handler, options);
-    },
-    // List of all events that the parser emits
-    EVENTS: {
-        /* Format: eventname: number of arguments */
-        attribute: 2,
-        cdatastart: 0,
-        cdataend: 0,
-        text: 1,
-        processinginstruction: 2,
-        comment: 1,
-        commentend: 0,
-        closetag: 1,
-        opentag: 2,
-        opentagname: 1,
-        error: 1,
-        end: 0
-    }
-};

+ 0 - 91
node_modules.bak/htmlparser2/package.json

@@ -1,91 +0,0 @@
-{
-  "_from": "htmlparser2@^3.10.1",
-  "_id": "htmlparser2@3.10.1",
-  "_inBundle": false,
-  "_integrity": "sha1-vWedw/WYl7ajS7EHSchVu1OpOS8=",
-  "_location": "/htmlparser2",
-  "_phantomChildren": {
-    "inherits": "2.0.4",
-    "string_decoder": "1.1.1",
-    "util-deprecate": "1.0.2"
-  },
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "htmlparser2@^3.10.1",
-    "name": "htmlparser2",
-    "escapedName": "htmlparser2",
-    "rawSpec": "^3.10.1",
-    "saveSpec": null,
-    "fetchSpec": "^3.10.1"
-  },
-  "_requiredBy": [
-    "/renderkid"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/htmlparser2/download/htmlparser2-3.10.1.tgz?cache=0&sync_timestamp=1617916210217&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhtmlparser2%2Fdownload%2Fhtmlparser2-3.10.1.tgz",
-  "_shasum": "bd679dc3f59897b6a34bb10749c855bb53a9392f",
-  "_spec": "htmlparser2@^3.10.1",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\renderkid",
-  "author": {
-    "name": "Felix Boehm",
-    "email": "me@feedic.com"
-  },
-  "browser": {
-    "readable-stream": false
-  },
-  "bugs": {
-    "url": "http://github.com/fb55/htmlparser2/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "domelementtype": "^1.3.1",
-    "domhandler": "^2.3.0",
-    "domutils": "^1.5.1",
-    "entities": "^1.1.1",
-    "inherits": "^2.0.1",
-    "readable-stream": "^3.1.1"
-  },
-  "deprecated": false,
-  "description": "Fast & forgiving HTML/XML/RSS parser",
-  "devDependencies": {
-    "coveralls": "^3.0.1",
-    "eslint": "^5.13.0",
-    "istanbul": "^0.4.3",
-    "mocha": "^5.2.0",
-    "mocha-lcov-reporter": "^1.2.0"
-  },
-  "directories": {
-    "lib": "lib/"
-  },
-  "files": [
-    "lib"
-  ],
-  "homepage": "https://github.com/fb55/htmlparser2#readme",
-  "keywords": [
-    "html",
-    "parser",
-    "streams",
-    "xml",
-    "dom",
-    "rss",
-    "feed",
-    "atom"
-  ],
-  "license": "MIT",
-  "main": "lib/index.js",
-  "name": "htmlparser2",
-  "prettier": {
-    "tabWidth": 4
-  },
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/fb55/htmlparser2.git"
-  },
-  "scripts": {
-    "coveralls": "npm run lint && npm run lcov && (cat coverage/lcov.info | coveralls || exit 0)",
-    "lcov": "istanbul cover _mocha --report lcovonly -- -R spec",
-    "lint": "eslint lib test",
-    "test": "mocha && npm run lint"
-  },
-  "version": "3.10.1"
-}

+ 0 - 2
node_modules.bak/http-deceiver/.npmignore

@@ -1,2 +0,0 @@
-node_modules/
-npm-debug.log

+ 0 - 5
node_modules.bak/http-deceiver/.travis.yml

@@ -1,5 +0,0 @@
-language: node_js
-node_js:
-  - "0.10"
-  - "0.12"
-  - "iojs"

+ 0 - 31
node_modules.bak/http-deceiver/README.md

@@ -1,31 +0,0 @@
-# HTTP Deceiver
-
-[![Build Status](https://secure.travis-ci.org/indutny/http-deceiver.png)](http://travis-ci.org/indutny/http-deceiver)
-[![NPM version](https://badge.fury.io/js/http-deceiver.svg)](http://badge.fury.io/js/http-deceiver)
-
-Deceive!
-
-## LICENSE
-
-This software is licensed under the MIT License.
-
-Copyright Fedor Indutny, 2015.
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to permit
-persons to whom the Software is furnished to do so, subject to the
-following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0 - 250
node_modules.bak/http-deceiver/lib/deceiver.js

@@ -1,250 +0,0 @@
-var assert = require('assert');
-var util = require('util');
-
-var Buffer = require('buffer').Buffer;
-
-// Node.js version
-var mode = /^v0\.8\./.test(process.version) ? 'rusty' :
-           /^v0\.(9|10)\./.test(process.version) ? 'old' :
-           /^v0\.12\./.test(process.version) ? 'normal' :
-           'modern';
-
-var HTTPParser;
-
-var methods;
-var reverseMethods;
-
-var kOnHeaders;
-var kOnHeadersComplete;
-var kOnMessageComplete;
-var kOnBody;
-if (mode === 'normal' || mode === 'modern') {
-  HTTPParser = process.binding('http_parser').HTTPParser;
-  methods = HTTPParser.methods;
-
-  // v6
-  if (!methods)
-    methods = process.binding('http_parser').methods;
-
-  reverseMethods = {};
-
-  methods.forEach(function(method, index) {
-    reverseMethods[method] = index;
-  });
-
-  kOnHeaders = HTTPParser.kOnHeaders | 0;
-  kOnHeadersComplete = HTTPParser.kOnHeadersComplete | 0;
-  kOnMessageComplete = HTTPParser.kOnMessageComplete | 0;
-  kOnBody = HTTPParser.kOnBody | 0;
-} else {
-  kOnHeaders = 'onHeaders';
-  kOnHeadersComplete = 'onHeadersComplete';
-  kOnMessageComplete = 'onMessageComplete';
-  kOnBody = 'onBody';
-}
-
-function Deceiver(socket, options) {
-  this.socket = socket;
-  this.options = options || {};
-  this.isClient = this.options.isClient;
-}
-module.exports = Deceiver;
-
-Deceiver.create = function create(stream, options) {
-  return new Deceiver(stream, options);
-};
-
-Deceiver.prototype._toHeaderList = function _toHeaderList(object) {
-  var out = [];
-  var keys = Object.keys(object);
-
-  for (var i = 0; i < keys.length; i++)
-    out.push(keys[i], object[keys[i]]);
-
-  return out;
-};
-
-Deceiver.prototype._isUpgrade = function _isUpgrade(request) {
-  return request.method === 'CONNECT' ||
-         request.headers.upgrade ||
-         request.headers.connection &&
-            /(^|\W)upgrade(\W|$)/i.test(request.headers.connection);
-};
-
-// TODO(indutny): support CONNECT
-if (mode === 'modern') {
-  /*
-  function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
-                                   url, statusCode, statusMessage, upgrade,
-                                   shouldKeepAlive) {
-   */
-  Deceiver.prototype.emitRequest = function emitRequest(request) {
-    var parser = this.socket.parser;
-    assert(parser, 'No parser present');
-
-    parser.execute = null;
-
-    var self = this;
-    var method = reverseMethods[request.method];
-    parser.execute = function execute() {
-      self._skipExecute(this);
-      this[kOnHeadersComplete](1,
-                               1,
-                               self._toHeaderList(request.headers),
-                               method,
-                               request.path,
-                               0,
-                               '',
-                               self._isUpgrade(request),
-                               true);
-      return 0;
-    };
-
-    this._emitEmpty();
-  };
-
-  Deceiver.prototype.emitResponse = function emitResponse(response) {
-    var parser = this.socket.parser;
-    assert(parser, 'No parser present');
-
-    parser.execute = null;
-
-    var self = this;
-    parser.execute = function execute() {
-      self._skipExecute(this);
-      this[kOnHeadersComplete](1,
-                               1,
-                               self._toHeaderList(response.headers),
-                               response.path,
-                               response.code,
-                               response.status,
-                               response.reason || '',
-                               self._isUpgrade(response),
-                               true);
-      return 0;
-    };
-
-    this._emitEmpty();
-  };
-} else {
-  /*
-    `function parserOnHeadersComplete(info) {`
-
-    info = { .versionMajor, .versionMinor, .url, .headers, .method,
-             .statusCode, .statusMessage, .upgrade, .shouldKeepAlive }
-   */
-  Deceiver.prototype.emitRequest = function emitRequest(request) {
-    var parser = this.socket.parser;
-    assert(parser, 'No parser present');
-
-    var method = request.method;
-    if (reverseMethods)
-      method = reverseMethods[method];
-
-    var info = {
-      versionMajor: 1,
-      versionMinor: 1,
-      url: request.path,
-      headers: this._toHeaderList(request.headers),
-      method: method,
-      statusCode: 0,
-      statusMessage: '',
-      upgrade: this._isUpgrade(request),
-      shouldKeepAlive: true
-    };
-
-    var self = this;
-    parser.execute = function execute() {
-      self._skipExecute(this);
-      this[kOnHeadersComplete](info);
-      return 0;
-    };
-
-    this._emitEmpty();
-  };
-
-  Deceiver.prototype.emitResponse = function emitResponse(response) {
-    var parser = this.socket.parser;
-    assert(parser, 'No parser present');
-
-    var info = {
-      versionMajor: 1,
-      versionMinor: 1,
-      url: response.path,
-      headers: this._toHeaderList(response.headers),
-      method: false,
-      statusCode: response.status,
-      statusMessage: response.reason || '',
-      upgrade: this._isUpgrade(response),
-      shouldKeepAlive: true
-    };
-
-    var self = this;
-    parser.execute = function execute() {
-      self._skipExecute(this);
-      this[kOnHeadersComplete](info);
-      return 0;
-    };
-
-    this._emitEmpty();
-  };
-}
-
-Deceiver.prototype._skipExecute = function _skipExecute(parser) {
-  var self = this;
-  var oldExecute = parser.constructor.prototype.execute;
-  var oldFinish = parser.constructor.prototype.finish;
-
-  parser.execute = null;
-  parser.finish = null;
-
-  parser.execute = function execute(buffer, start, len) {
-    // Parser reuse
-    if (this.socket !== self.socket) {
-      this.execute = oldExecute;
-      this.finish = oldFinish;
-      return this.execute(buffer, start, len);
-    }
-
-    if (start !== undefined)
-      buffer = buffer.slice(start, start + len);
-    self.emitBody(buffer);
-    return len;
-  };
-
-  parser.finish = function finish() {
-    // Parser reuse
-    if (this.socket !== self.socket) {
-      this.execute = oldExecute;
-      this.finish = oldFinish;
-      return this.finish();
-    }
-
-    this.execute = oldExecute;
-    this.finish = oldFinish;
-    self.emitMessageComplete();
-  };
-};
-
-Deceiver.prototype.emitBody = function emitBody(buffer) {
-  var parser = this.socket.parser;
-  assert(parser, 'No parser present');
-
-  parser[kOnBody](buffer, 0, buffer.length);
-};
-
-Deceiver.prototype._emitEmpty = function _emitEmpty() {
-  // Emit data to force out handling of UPGRADE
-  var empty = new Buffer(0);
-  if (this.socket.ondata)
-    this.socket.ondata(empty, 0, 0);
-  else
-    this.socket.emit('data', empty);
-};
-
-Deceiver.prototype.emitMessageComplete = function emitMessageComplete() {
-  var parser = this.socket.parser;
-  assert(parser, 'No parser present');
-
-  parser[kOnMessageComplete]();
-};

+ 0 - 58
node_modules.bak/http-deceiver/package.json

@@ -1,58 +0,0 @@
-{
-  "_from": "http-deceiver@^1.2.7",
-  "_id": "http-deceiver@1.2.7",
-  "_inBundle": false,
-  "_integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=",
-  "_location": "/http-deceiver",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "http-deceiver@^1.2.7",
-    "name": "http-deceiver",
-    "escapedName": "http-deceiver",
-    "rawSpec": "^1.2.7",
-    "saveSpec": null,
-    "fetchSpec": "^1.2.7"
-  },
-  "_requiredBy": [
-    "/spdy"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/http-deceiver/download/http-deceiver-1.2.7.tgz",
-  "_shasum": "fa7168944ab9a519d337cb0bec7284dc3e723d87",
-  "_spec": "http-deceiver@^1.2.7",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\spdy",
-  "author": {
-    "name": "Fedor Indutny",
-    "email": "fedor@indutny.com"
-  },
-  "bugs": {
-    "url": "https://github.com/indutny/http-deceiver/issues"
-  },
-  "bundleDependencies": false,
-  "deprecated": false,
-  "description": "Deceive HTTP parser",
-  "devDependencies": {
-    "handle-thing": "^1.0.1",
-    "mocha": "^2.2.5",
-    "readable-stream": "^2.0.1",
-    "stream-pair": "^1.0.0"
-  },
-  "homepage": "https://github.com/indutny/http-deceiver#readme",
-  "keywords": [
-    "http",
-    "net",
-    "deceive"
-  ],
-  "license": "MIT",
-  "main": "lib/deceiver.js",
-  "name": "http-deceiver",
-  "repository": {
-    "type": "git",
-    "url": "git+ssh://git@github.com/indutny/http-deceiver.git"
-  },
-  "scripts": {
-    "test": "mocha --reporter=spec test/*-test.js"
-  },
-  "version": "1.2.7"
-}

+ 0 - 226
node_modules.bak/http-deceiver/test/api-test.js

@@ -1,226 +0,0 @@
-var assert = require('assert');
-var net = require('net');
-var http = require('http');
-var streamPair = require('stream-pair');
-var thing = require('handle-thing');
-
-var httpDeceiver = require('../');
-
-describe('HTTP Deceiver', function() {
-  var handle;
-  var pair;
-  var socket;
-  var deceiver;
-
-  beforeEach(function() {
-    pair = streamPair.create();
-    handle = thing.create(pair.other);
-    socket = new net.Socket({ handle: handle });
-
-    // For v0.8
-    socket.readable = true;
-    socket.writable = true;
-
-    deceiver = httpDeceiver.create(socket);
-  });
-
-  it('should emit request', function(done) {
-    var server = http.createServer();
-    server.emit('connection', socket);
-
-    server.on('request', function(req, res) {
-      assert.equal(req.method, 'PUT');
-      assert.equal(req.url, '/hello');
-      assert.deepEqual(req.headers, { a: 'b' });
-
-      done();
-    });
-
-    deceiver.emitRequest({
-      method: 'PUT',
-      path: '/hello',
-      headers: {
-        a: 'b'
-      }
-    });
-  });
-
-  it('should emit response', function(done) {
-    var agent = new http.Agent();
-    agent.createConnection = function createConnection() {
-      return socket;
-    };
-    var client = http.request({
-      method: 'POST',
-      path: '/ok',
-      agent: agent
-    }, function(res) {
-      assert.equal(res.statusCode, 421);
-      assert.deepEqual(res.headers, { a: 'b' });
-
-      done();
-    });
-
-    process.nextTick(function() {
-      deceiver.emitResponse({
-        status: 421,
-        reason: 'F',
-        headers: {
-          a: 'b'
-        }
-      });
-    });
-  });
-
-  it('should override .execute and .finish', function(done) {
-    var server = http.createServer();
-    server.emit('connection', socket);
-
-    server.on('request', function(req, res) {
-      assert.equal(req.method, 'PUT');
-      assert.equal(req.url, '/hello');
-      assert.deepEqual(req.headers, { a: 'b' });
-
-      var actual = '';
-      req.on('data', function(chunk) {
-        actual += chunk;
-      });
-      req.once('end', function() {
-        assert.equal(actual, 'hello world');
-        done();
-      });
-    });
-
-    deceiver.emitRequest({
-      method: 'PUT',
-      path: '/hello',
-      headers: {
-        a: 'b'
-      }
-    });
-
-    pair.write('hello');
-    pair.end(' world');
-  });
-
-  it('should work with reusing parser', function(done) {
-    var server = http.createServer();
-    server.emit('connection', socket);
-
-    function secondRequest() {
-      pair = streamPair.create();
-      handle = thing.create(pair.other);
-      socket = new net.Socket({ handle: handle });
-
-      // For v0.8
-      socket.readable = true;
-      socket.writable = true;
-
-      server.emit('connection', socket);
-
-      pair.end('PUT /second HTTP/1.1\r\nContent-Length:11\r\n\r\nhello world');
-    }
-
-    server.on('request', function(req, res) {
-      var actual = '';
-      req.on('data', function(chunk) {
-        actual += chunk;
-      });
-      req.once('end', function() {
-        assert.equal(actual, 'hello world');
-
-        if (req.url === '/first')
-          secondRequest();
-        else
-          done();
-      });
-    });
-
-    deceiver.emitRequest({
-      method: 'PUT',
-      path: '/first',
-      headers: {
-        a: 'b'
-      }
-    });
-
-    pair.write('hello');
-    pair.end(' world');
-  });
-
-  it('should emit CONNECT request', function(done) {
-    var server = http.createServer();
-    server.emit('connection', socket);
-
-    server.on('connect', function(req, socket, bodyHead) {
-      assert.equal(req.method, 'CONNECT');
-      assert.equal(req.url, '/hello');
-
-      done();
-    });
-
-    deceiver.emitRequest({
-      method: 'CONNECT',
-      path: '/hello',
-      headers: {
-      }
-    });
-  });
-
-  it('should emit Upgrade request', function(done) {
-    var server = http.createServer();
-    server.emit('connection', socket);
-
-    server.on('upgrade', function(req, socket, bodyHead) {
-      assert.equal(req.method, 'POST');
-      assert.equal(req.url, '/hello');
-
-      socket.on('data', function(chunk) {
-        assert.equal(chunk + '', 'hm');
-        done();
-      });
-    });
-
-    deceiver.emitRequest({
-      method: 'POST',
-      path: '/hello',
-      headers: {
-        'upgrade': 'websocket'
-      }
-    });
-
-    pair.write('hm');
-  });
-
-  it('should emit Upgrade response', function(done) {
-    var agent = new http.Agent();
-    agent.createConnection = function createConnection() {
-      return socket;
-    };
-    var client = http.request({
-      method: 'POST',
-      path: '/ok',
-      headers: {
-        connection: 'upgrade',
-        upgrade: 'websocket'
-      },
-      agent: agent
-    }, function(res) {
-      assert(false);
-    });
-    client.on('upgrade', function(res, socket) {
-      assert.equal(res.statusCode, 421);
-      done();
-    });
-
-    process.nextTick(function() {
-      deceiver.emitResponse({
-        status: 421,
-        reason: 'F',
-        headers: {
-          upgrade: 'websocket'
-        }
-      });
-    });
-  });
-});

+ 0 - 149
node_modules.bak/http-errors/HISTORY.md

@@ -1,149 +0,0 @@
-2019-02-18 / 1.7.2
-==================
-
-  * deps: setprototypeof@1.1.1
-
-2018-09-08 / 1.7.1
-==================
-
-  * Fix error creating objects in some environments
-
-2018-07-30 / 1.7.0
-==================
-
-  * Set constructor name when possible
-  * Use `toidentifier` module to make class names
-  * deps: statuses@'>= 1.5.0 < 2'
-
-2018-03-29 / 1.6.3
-==================
-
-  * deps: depd@~1.1.2
-    - perf: remove argument reassignment
-  * deps: setprototypeof@1.1.0
-  * deps: statuses@'>= 1.4.0 < 2'
-
-2017-08-04 / 1.6.2
-==================
-
-  * deps: depd@1.1.1
-    - Remove unnecessary `Buffer` loading
-
-2017-02-20 / 1.6.1
-==================
-
-  * deps: setprototypeof@1.0.3
-    - Fix shim for old browsers
-
-2017-02-14 / 1.6.0
-==================
-
-  * Accept custom 4xx and 5xx status codes in factory
-  * Add deprecation message to `"I'mateapot"` export
-  * Deprecate passing status code as anything except first argument in factory
-  * Deprecate using non-error status codes
-  * Make `message` property enumerable for `HttpError`s
-
-2016-11-16 / 1.5.1
-==================
-
-  * deps: inherits@2.0.3
-    - Fix issue loading in browser
-  * deps: setprototypeof@1.0.2
-  * deps: statuses@'>= 1.3.1 < 2'
-
-2016-05-18 / 1.5.0
-==================
-
-  * Support new code `421 Misdirected Request`
-  * Use `setprototypeof` module to replace `__proto__` setting
-  * deps: statuses@'>= 1.3.0 < 2'
-    - Add `421 Misdirected Request`
-    - perf: enable strict mode
-  * perf: enable strict mode
-
-2016-01-28 / 1.4.0
-==================
-
-  * Add `HttpError` export, for `err instanceof createError.HttpError`
-  * deps: inherits@2.0.1
-  * deps: statuses@'>= 1.2.1 < 2'
-    - Fix message for status 451
-    - Remove incorrect nginx status code
-
-2015-02-02 / 1.3.1
-==================
-
-  * Fix regression where status can be overwritten in `createError` `props`
-
-2015-02-01 / 1.3.0
-==================
-
-  * Construct errors using defined constructors from `createError`
-  * Fix error names that are not identifiers
-    - `createError["I'mateapot"]` is now `createError.ImATeapot`
-  * Set a meaningful `name` property on constructed errors
-
-2014-12-09 / 1.2.8
-==================
-
-  * Fix stack trace from exported function
-  * Remove `arguments.callee` usage
-
-2014-10-14 / 1.2.7
-==================
-
-  * Remove duplicate line
-
-2014-10-02 / 1.2.6
-==================
-
-  * Fix `expose` to be `true` for `ClientError` constructor
-
-2014-09-28 / 1.2.5
-==================
-
-  * deps: statuses@1
-
-2014-09-21 / 1.2.4
-==================
-
-  * Fix dependency version to work with old `npm`s
-
-2014-09-21 / 1.2.3
-==================
-
-  * deps: statuses@~1.1.0
-
-2014-09-21 / 1.2.2
-==================
-
-  * Fix publish error
-
-2014-09-21 / 1.2.1
-==================
-
-  * Support Node.js 0.6
-  * Use `inherits` instead of `util`
-
-2014-09-09 / 1.2.0
-==================
-
-  * Fix the way inheriting functions
-  * Support `expose` being provided in properties argument
-
-2014-09-08 / 1.1.0
-==================
-
-  * Default status to 500
-  * Support provided `error` to extend
-
-2014-09-08 / 1.0.1
-==================
-
-  * Fix accepting string message
-
-2014-09-08 / 1.0.0
-==================
-
-  * Initial release

+ 0 - 23
node_modules.bak/http-errors/LICENSE

@@ -1,23 +0,0 @@
-
-The MIT License (MIT)
-
-Copyright (c) 2014 Jonathan Ong me@jongleberry.com
-Copyright (c) 2016 Douglas Christopher Wilson doug@somethingdoug.com
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.

+ 0 - 163
node_modules.bak/http-errors/README.md

@@ -1,163 +0,0 @@
-# http-errors
-
-[![NPM Version][npm-version-image]][npm-url]
-[![NPM Downloads][npm-downloads-image]][node-url]
-[![Node.js Version][node-image]][node-url]
-[![Build Status][travis-image]][travis-url]
-[![Test Coverage][coveralls-image]][coveralls-url]
-
-Create HTTP errors for Express, Koa, Connect, etc. with ease.
-
-## Install
-
-This is a [Node.js](https://nodejs.org/en/) module available through the
-[npm registry](https://www.npmjs.com/). Installation is done using the
-[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
-
-```bash
-$ npm install http-errors
-```
-
-## Example
-
-```js
-var createError = require('http-errors')
-var express = require('express')
-var app = express()
-
-app.use(function (req, res, next) {
-  if (!req.user) return next(createError(401, 'Please login to view this page.'))
-  next()
-})
-```
-
-## API
-
-This is the current API, currently extracted from Koa and subject to change.
-
-### Error Properties
-
-- `expose` - can be used to signal if `message` should be sent to the client,
-  defaulting to `false` when `status` >= 500
-- `headers` - can be an object of header names to values to be sent to the
-  client, defaulting to `undefined`. When defined, the key names should all
-  be lower-cased
-- `message` - the traditional error message, which should be kept short and all
-  single line
-- `status` - the status code of the error, mirroring `statusCode` for general
-  compatibility
-- `statusCode` - the status code of the error, defaulting to `500`
-
-### createError([status], [message], [properties])
-
-Create a new error object with the given message `msg`.
-The error object inherits from `createError.HttpError`.
-
-<!-- eslint-disable no-undef, no-unused-vars -->
-
-```js
-var err = createError(404, 'This video does not exist!')
-```
-
-- `status: 500` - the status code as a number
-- `message` - the message of the error, defaulting to node's text for that status code.
-- `properties` - custom properties to attach to the object
-
-### createError([status], [error], [properties])
-
-Extend the given `error` object with `createError.HttpError`
-properties. This will not alter the inheritance of the given
-`error` object, and the modified `error` object is the
-return value.
-
-<!-- eslint-disable no-redeclare, no-undef, no-unused-vars -->
-
-```js
-fs.readFile('foo.txt', function (err, buf) {
-  if (err) {
-    if (err.code === 'ENOENT') {
-      var httpError = createError(404, err, { expose: false })
-    } else {
-      var httpError = createError(500, err)
-    }
-  }
-})
-```
-
-- `status` - the status code as a number
-- `error` - the error object to extend
-- `properties` - custom properties to attach to the object
-
-### new createError\[code || name\](\[msg]\))
-
-Create a new error object with the given message `msg`.
-The error object inherits from `createError.HttpError`.
-
-<!-- eslint-disable no-undef, no-unused-vars -->
-
-```js
-var err = new createError.NotFound()
-```
-
-- `code` - the status code as a number
-- `name` - the name of the error as a "bumpy case", i.e. `NotFound` or `InternalServerError`.
-
-#### List of all constructors
-
-|Status Code|Constructor Name             |
-|-----------|-----------------------------|
-|400        |BadRequest                   |
-|401        |Unauthorized                 |
-|402        |PaymentRequired              |
-|403        |Forbidden                    |
-|404        |NotFound                     |
-|405        |MethodNotAllowed             |
-|406        |NotAcceptable                |
-|407        |ProxyAuthenticationRequired  |
-|408        |RequestTimeout               |
-|409        |Conflict                     |
-|410        |Gone                         |
-|411        |LengthRequired               |
-|412        |PreconditionFailed           |
-|413        |PayloadTooLarge              |
-|414        |URITooLong                   |
-|415        |UnsupportedMediaType         |
-|416        |RangeNotSatisfiable          |
-|417        |ExpectationFailed            |
-|418        |ImATeapot                    |
-|421        |MisdirectedRequest           |
-|422        |UnprocessableEntity          |
-|423        |Locked                       |
-|424        |FailedDependency             |
-|425        |UnorderedCollection          |
-|426        |UpgradeRequired              |
-|428        |PreconditionRequired         |
-|429        |TooManyRequests              |
-|431        |RequestHeaderFieldsTooLarge  |
-|451        |UnavailableForLegalReasons   |
-|500        |InternalServerError          |
-|501        |NotImplemented               |
-|502        |BadGateway                   |
-|503        |ServiceUnavailable           |
-|504        |GatewayTimeout               |
-|505        |HTTPVersionNotSupported      |
-|506        |VariantAlsoNegotiates        |
-|507        |InsufficientStorage          |
-|508        |LoopDetected                 |
-|509        |BandwidthLimitExceeded       |
-|510        |NotExtended                  |
-|511        |NetworkAuthenticationRequired|
-
-## License
-
-[MIT](LICENSE)
-
-[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/http-errors/master
-[coveralls-url]: https://coveralls.io/r/jshttp/http-errors?branch=master
-[node-image]: https://badgen.net/npm/node/http-errors
-[node-url]: https://nodejs.org/en/download
-[npm-downloads-image]: https://badgen.net/npm/dm/http-errors
-[npm-url]: https://npmjs.org/package/http-errors
-[npm-version-image]: https://badgen.net/npm/v/http-errors
-[travis-image]: https://badgen.net/travis/jshttp/http-errors/master
-[travis-url]: https://travis-ci.org/jshttp/http-errors

+ 0 - 266
node_modules.bak/http-errors/index.js

@@ -1,266 +0,0 @@
-/*!
- * http-errors
- * Copyright(c) 2014 Jonathan Ong
- * Copyright(c) 2016 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict'
-
-/**
- * Module dependencies.
- * @private
- */
-
-var deprecate = require('depd')('http-errors')
-var setPrototypeOf = require('setprototypeof')
-var statuses = require('statuses')
-var inherits = require('inherits')
-var toIdentifier = require('toidentifier')
-
-/**
- * Module exports.
- * @public
- */
-
-module.exports = createError
-module.exports.HttpError = createHttpErrorConstructor()
-
-// Populate exports for all constructors
-populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError)
-
-/**
- * Get the code class of a status code.
- * @private
- */
-
-function codeClass (status) {
-  return Number(String(status).charAt(0) + '00')
-}
-
-/**
- * Create a new HTTP Error.
- *
- * @returns {Error}
- * @public
- */
-
-function createError () {
-  // so much arity going on ~_~
-  var err
-  var msg
-  var status = 500
-  var props = {}
-  for (var i = 0; i < arguments.length; i++) {
-    var arg = arguments[i]
-    if (arg instanceof Error) {
-      err = arg
-      status = err.status || err.statusCode || status
-      continue
-    }
-    switch (typeof arg) {
-      case 'string':
-        msg = arg
-        break
-      case 'number':
-        status = arg
-        if (i !== 0) {
-          deprecate('non-first-argument status code; replace with createError(' + arg + ', ...)')
-        }
-        break
-      case 'object':
-        props = arg
-        break
-    }
-  }
-
-  if (typeof status === 'number' && (status < 400 || status >= 600)) {
-    deprecate('non-error status code; use only 4xx or 5xx status codes')
-  }
-
-  if (typeof status !== 'number' ||
-    (!statuses[status] && (status < 400 || status >= 600))) {
-    status = 500
-  }
-
-  // constructor
-  var HttpError = createError[status] || createError[codeClass(status)]
-
-  if (!err) {
-    // create error
-    err = HttpError
-      ? new HttpError(msg)
-      : new Error(msg || statuses[status])
-    Error.captureStackTrace(err, createError)
-  }
-
-  if (!HttpError || !(err instanceof HttpError) || err.status !== status) {
-    // add properties to generic error
-    err.expose = status < 500
-    err.status = err.statusCode = status
-  }
-
-  for (var key in props) {
-    if (key !== 'status' && key !== 'statusCode') {
-      err[key] = props[key]
-    }
-  }
-
-  return err
-}
-
-/**
- * Create HTTP error abstract base class.
- * @private
- */
-
-function createHttpErrorConstructor () {
-  function HttpError () {
-    throw new TypeError('cannot construct abstract class')
-  }
-
-  inherits(HttpError, Error)
-
-  return HttpError
-}
-
-/**
- * Create a constructor for a client error.
- * @private
- */
-
-function createClientErrorConstructor (HttpError, name, code) {
-  var className = name.match(/Error$/) ? name : name + 'Error'
-
-  function ClientError (message) {
-    // create the error object
-    var msg = message != null ? message : statuses[code]
-    var err = new Error(msg)
-
-    // capture a stack trace to the construction point
-    Error.captureStackTrace(err, ClientError)
-
-    // adjust the [[Prototype]]
-    setPrototypeOf(err, ClientError.prototype)
-
-    // redefine the error message
-    Object.defineProperty(err, 'message', {
-      enumerable: true,
-      configurable: true,
-      value: msg,
-      writable: true
-    })
-
-    // redefine the error name
-    Object.defineProperty(err, 'name', {
-      enumerable: false,
-      configurable: true,
-      value: className,
-      writable: true
-    })
-
-    return err
-  }
-
-  inherits(ClientError, HttpError)
-  nameFunc(ClientError, className)
-
-  ClientError.prototype.status = code
-  ClientError.prototype.statusCode = code
-  ClientError.prototype.expose = true
-
-  return ClientError
-}
-
-/**
- * Create a constructor for a server error.
- * @private
- */
-
-function createServerErrorConstructor (HttpError, name, code) {
-  var className = name.match(/Error$/) ? name : name + 'Error'
-
-  function ServerError (message) {
-    // create the error object
-    var msg = message != null ? message : statuses[code]
-    var err = new Error(msg)
-
-    // capture a stack trace to the construction point
-    Error.captureStackTrace(err, ServerError)
-
-    // adjust the [[Prototype]]
-    setPrototypeOf(err, ServerError.prototype)
-
-    // redefine the error message
-    Object.defineProperty(err, 'message', {
-      enumerable: true,
-      configurable: true,
-      value: msg,
-      writable: true
-    })
-
-    // redefine the error name
-    Object.defineProperty(err, 'name', {
-      enumerable: false,
-      configurable: true,
-      value: className,
-      writable: true
-    })
-
-    return err
-  }
-
-  inherits(ServerError, HttpError)
-  nameFunc(ServerError, className)
-
-  ServerError.prototype.status = code
-  ServerError.prototype.statusCode = code
-  ServerError.prototype.expose = false
-
-  return ServerError
-}
-
-/**
- * Set the name of a function, if possible.
- * @private
- */
-
-function nameFunc (func, name) {
-  var desc = Object.getOwnPropertyDescriptor(func, 'name')
-
-  if (desc && desc.configurable) {
-    desc.value = name
-    Object.defineProperty(func, 'name', desc)
-  }
-}
-
-/**
- * Populate the exports object with constructors for every error class.
- * @private
- */
-
-function populateConstructorExports (exports, codes, HttpError) {
-  codes.forEach(function forEachCode (code) {
-    var CodeError
-    var name = toIdentifier(statuses[code])
-
-    switch (codeClass(code)) {
-      case 400:
-        CodeError = createClientErrorConstructor(HttpError, name, code)
-        break
-      case 500:
-        CodeError = createServerErrorConstructor(HttpError, name, code)
-        break
-    }
-
-    if (CodeError) {
-      // export the constructor
-      exports[code] = CodeError
-      exports[name] = CodeError
-    }
-  })
-
-  // backwards-compatibility
-  exports["I'mateapot"] = deprecate.function(exports.ImATeapot,
-    '"I\'mateapot"; use "ImATeapot" instead')
-}

+ 0 - 93
node_modules.bak/http-errors/package.json

@@ -1,93 +0,0 @@
-{
-  "_from": "http-errors@1.7.2",
-  "_id": "http-errors@1.7.2",
-  "_inBundle": false,
-  "_integrity": "sha1-T1ApzxMjnzEDblsuVSkrz7zIXI8=",
-  "_location": "/http-errors",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "version",
-    "registry": true,
-    "raw": "http-errors@1.7.2",
-    "name": "http-errors",
-    "escapedName": "http-errors",
-    "rawSpec": "1.7.2",
-    "saveSpec": null,
-    "fetchSpec": "1.7.2"
-  },
-  "_requiredBy": [
-    "/body-parser",
-    "/raw-body",
-    "/send"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/http-errors/download/http-errors-1.7.2.tgz?cache=0&sync_timestamp=1593407634112&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhttp-errors%2Fdownload%2Fhttp-errors-1.7.2.tgz",
-  "_shasum": "4f5029cf13239f31036e5b2e55292bcfbcc85c8f",
-  "_spec": "http-errors@1.7.2",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\body-parser",
-  "author": {
-    "name": "Jonathan Ong",
-    "email": "me@jongleberry.com",
-    "url": "http://jongleberry.com"
-  },
-  "bugs": {
-    "url": "https://github.com/jshttp/http-errors/issues"
-  },
-  "bundleDependencies": false,
-  "contributors": [
-    {
-      "name": "Alan Plum",
-      "email": "me@pluma.io"
-    },
-    {
-      "name": "Douglas Christopher Wilson",
-      "email": "doug@somethingdoug.com"
-    }
-  ],
-  "dependencies": {
-    "depd": "~1.1.2",
-    "inherits": "2.0.3",
-    "setprototypeof": "1.1.1",
-    "statuses": ">= 1.5.0 < 2",
-    "toidentifier": "1.0.0"
-  },
-  "deprecated": false,
-  "description": "Create HTTP error objects",
-  "devDependencies": {
-    "eslint": "5.13.0",
-    "eslint-config-standard": "12.0.0",
-    "eslint-plugin-import": "2.16.0",
-    "eslint-plugin-markdown": "1.0.0",
-    "eslint-plugin-node": "7.0.1",
-    "eslint-plugin-promise": "4.0.1",
-    "eslint-plugin-standard": "4.0.0",
-    "istanbul": "0.4.5",
-    "mocha": "5.2.0"
-  },
-  "engines": {
-    "node": ">= 0.6"
-  },
-  "files": [
-    "index.js",
-    "HISTORY.md",
-    "LICENSE",
-    "README.md"
-  ],
-  "homepage": "https://github.com/jshttp/http-errors#readme",
-  "keywords": [
-    "http",
-    "error"
-  ],
-  "license": "MIT",
-  "name": "http-errors",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/jshttp/http-errors.git"
-  },
-  "scripts": {
-    "lint": "eslint --plugin markdown --ext js,md . && node ./scripts/lint-readme-list.js",
-    "test": "mocha --reporter spec --bail",
-    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
-    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"
-  },
-  "version": "1.7.2"
-}

+ 0 - 14
node_modules.bak/http-parser-js/CHANGELOG.md

@@ -1,14 +0,0 @@
-# HTTP Parser
-
-## 0.4.4
-
-Made 'maxHeaderSize' configurable.
-
-```js
-// Monkey patch before you require http for the first time.
-process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser;
-require('http-parser-js').HTTPParser.maxHeaderSize = 1024 * 1024; // 1MB instead of 80kb
-
-var http = require('http');
-// ...
-```

+ 0 - 110
node_modules.bak/http-parser-js/LICENSE.md

@@ -1,110 +0,0 @@
-Copyright (c) 2015 Tim Caswell (https://github.com/creationix) and other
-contributors. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-
-Some files from the tests folder are from joyent/node and mscedex/io.js, a fork
-of nodejs/io.js:
-
-- tests/iojs/test-http-parser-durability.js
-
-  This file is from https://github.com/mscdex/io.js/blob/js-http-parser/test/pummel/test-http-parser-durability.js
-  with modifications by Jan Schär (jscissr).
-
-  """
-  Copyright io.js contributors. All rights reserved.
-
-  Permission is hereby granted, free of charge, to any person obtaining a copy
-  of this software and associated documentation files (the "Software"), to
-  deal in the Software without restriction, including without limitation the
-  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-  sell copies of the Software, and to permit persons to whom the Software is
-  furnished to do so, subject to the following conditions:
-
-  The above copyright notice and this permission notice shall be included in
-  all copies or substantial portions of the Software.
-
-  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-  IN THE SOFTWARE.
-  """
-
-- tests/fixtures/*
-  tests/parallel/*
-  tests/testpy/*
-  tests/common.js
-  tests/test.py
-  tests/utils.py
-
-  These files are from https://github.com/nodejs/node with changes by
-  Jan Schär (jscissr).
-
-  Node.js is licensed for use as follows:
-  
-  """
-  Copyright Node.js contributors. All rights reserved.
-
-  Permission is hereby granted, free of charge, to any person obtaining a copy
-  of this software and associated documentation files (the "Software"), to
-  deal in the Software without restriction, including without limitation the
-  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-  sell copies of the Software, and to permit persons to whom the Software is
-  furnished to do so, subject to the following conditions:
-
-  The above copyright notice and this permission notice shall be included in
-  all copies or substantial portions of the Software.
-
-  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-  IN THE SOFTWARE.
-  """
-
-  This license applies to parts of Node.js originating from the
-  https://github.com/joyent/node repository:
-
-  """
-  Copyright Joyent, Inc. and other Node contributors. All rights reserved.
-  Permission is hereby granted, free of charge, to any person obtaining a copy
-  of this software and associated documentation files (the "Software"), to
-  deal in the Software without restriction, including without limitation the
-  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-  sell copies of the Software, and to permit persons to whom the Software is
-  furnished to do so, subject to the following conditions:
-
-  The above copyright notice and this permission notice shall be included in
-  all copies or substantial portions of the Software.
-
-  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-  IN THE SOFTWARE.
-  """
-  

+ 0 - 31
node_modules.bak/http-parser-js/README.md

@@ -1,31 +0,0 @@
-# HTTP Parser
-
-This library parses HTTP protocol for requests and responses.  It was created to replace `http_parser.c` since calling C++ function from JS is really slow in V8.  However, it is now primarily useful in having a more flexible/tolerant HTTP parser when dealing with legacy services that do not meet the strict HTTP parsing rules Node's parser follows.
-
-This is packaged as a standalone npm module.  To use in node, monkeypatch HTTPParser.
-
-```js
-// Monkey patch before you require http for the first time.
-process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser;
-
-var http = require('http');
-// ...
-```
-
-## Testing
-
-Simply do `npm test`. The tests are copied from node and mscedex/io.js, with some modifcations.
-
-## Status
-
-This should now be usable in any node application, it now supports (nearly) everything `http_parser.c` does while still being tolerant with corrupted headers, and other kinds of malformed data.
-
-### Node Versions
-
-`http-parser-js` should work via monkey-patching on Node v6-v11, and v13.
-
-Node v12.x renamed the internal http parser, and did not expose it for monkey-patching, so to be able to monkey-patch on Node v12, you must run `node --http-parser=legacy file.js` to opt in to the old, monkey-patchable http_parser binding.
-
-## License
-
-MIT. See LICENSE.md

+ 0 - 461
node_modules.bak/http-parser-js/http-parser.js

@@ -1,461 +0,0 @@
-/*jshint node:true */
-
-var assert = require('assert');
-
-exports.HTTPParser = HTTPParser;
-function HTTPParser(type) {
-  assert.ok(type === HTTPParser.REQUEST || type === HTTPParser.RESPONSE || type === undefined);
-  if (type === undefined) {
-    // Node v12+
-  } else {
-    this.initialize(type);
-  }
-}
-HTTPParser.prototype.initialize = function (type, async_resource) {
-  assert.ok(type === HTTPParser.REQUEST || type === HTTPParser.RESPONSE);
-  this.type = type;
-  this.state = type + '_LINE';
-  this.info = {
-    headers: [],
-    upgrade: false
-  };
-  this.trailers = [];
-  this.line = '';
-  this.isChunked = false;
-  this.connection = '';
-  this.headerSize = 0; // for preventing too big headers
-  this.body_bytes = null;
-  this.isUserCall = false;
-  this.hadError = false;
-};
-
-HTTPParser.encoding = 'ascii';
-HTTPParser.maxHeaderSize = 80 * 1024; // maxHeaderSize (in bytes) is configurable, but 80kb by default;
-HTTPParser.REQUEST = 'REQUEST';
-HTTPParser.RESPONSE = 'RESPONSE';
-
-// Note: *not* starting with kOnHeaders=0 line the Node parser, because any
-//   newly added constants (kOnTimeout in Node v12.19.0) will overwrite 0!
-var kOnHeaders = HTTPParser.kOnHeaders = 1;
-var kOnHeadersComplete = HTTPParser.kOnHeadersComplete = 2;
-var kOnBody = HTTPParser.kOnBody = 3;
-var kOnMessageComplete = HTTPParser.kOnMessageComplete = 4;
-
-// Some handler stubs, needed for compatibility
-HTTPParser.prototype[kOnHeaders] =
-HTTPParser.prototype[kOnHeadersComplete] =
-HTTPParser.prototype[kOnBody] =
-HTTPParser.prototype[kOnMessageComplete] = function () {};
-
-var compatMode0_12 = true;
-Object.defineProperty(HTTPParser, 'kOnExecute', {
-    get: function () {
-      // hack for backward compatibility
-      compatMode0_12 = false;
-      return 99;
-    }
-  });
-
-var methods = exports.methods = HTTPParser.methods = [
-  'DELETE',
-  'GET',
-  'HEAD',
-  'POST',
-  'PUT',
-  'CONNECT',
-  'OPTIONS',
-  'TRACE',
-  'COPY',
-  'LOCK',
-  'MKCOL',
-  'MOVE',
-  'PROPFIND',
-  'PROPPATCH',
-  'SEARCH',
-  'UNLOCK',
-  'BIND',
-  'REBIND',
-  'UNBIND',
-  'ACL',
-  'REPORT',
-  'MKACTIVITY',
-  'CHECKOUT',
-  'MERGE',
-  'M-SEARCH',
-  'NOTIFY',
-  'SUBSCRIBE',
-  'UNSUBSCRIBE',
-  'PATCH',
-  'PURGE',
-  'MKCALENDAR',
-  'LINK',
-  'UNLINK'
-];
-var method_connect = methods.indexOf('CONNECT');
-HTTPParser.prototype.reinitialize = HTTPParser;
-HTTPParser.prototype.close =
-HTTPParser.prototype.pause =
-HTTPParser.prototype.resume =
-HTTPParser.prototype.free = function () {};
-HTTPParser.prototype._compatMode0_11 = false;
-HTTPParser.prototype.getAsyncId = function() { return 0; };
-
-var headerState = {
-  REQUEST_LINE: true,
-  RESPONSE_LINE: true,
-  HEADER: true
-};
-HTTPParser.prototype.execute = function (chunk, start, length) {
-  if (!(this instanceof HTTPParser)) {
-    throw new TypeError('not a HTTPParser');
-  }
-
-  // backward compat to node < 0.11.4
-  // Note: the start and length params were removed in newer version
-  start = start || 0;
-  length = typeof length === 'number' ? length : chunk.length;
-
-  this.chunk = chunk;
-  this.offset = start;
-  var end = this.end = start + length;
-  try {
-    while (this.offset < end) {
-      if (this[this.state]()) {
-        break;
-      }
-    }
-  } catch (err) {
-    if (this.isUserCall) {
-      throw err;
-    }
-    this.hadError = true;
-    return err;
-  }
-  this.chunk = null;
-  length = this.offset - start;
-  if (headerState[this.state]) {
-    this.headerSize += length;
-    if (this.headerSize > HTTPParser.maxHeaderSize) {
-      return new Error('max header size exceeded');
-    }
-  }
-  return length;
-};
-
-var stateFinishAllowed = {
-  REQUEST_LINE: true,
-  RESPONSE_LINE: true,
-  BODY_RAW: true
-};
-HTTPParser.prototype.finish = function () {
-  if (this.hadError) {
-    return;
-  }
-  if (!stateFinishAllowed[this.state]) {
-    return new Error('invalid state for EOF');
-  }
-  if (this.state === 'BODY_RAW') {
-    this.userCall()(this[kOnMessageComplete]());
-  }
-};
-
-// These three methods are used for an internal speed optimization, and it also
-// works if theses are noops. Basically consume() asks us to read the bytes
-// ourselves, but if we don't do it we get them through execute().
-HTTPParser.prototype.consume =
-HTTPParser.prototype.unconsume =
-HTTPParser.prototype.getCurrentBuffer = function () {};
-
-//For correct error handling - see HTTPParser#execute
-//Usage: this.userCall()(userFunction('arg'));
-HTTPParser.prototype.userCall = function () {
-  this.isUserCall = true;
-  var self = this;
-  return function (ret) {
-    self.isUserCall = false;
-    return ret;
-  };
-};
-
-HTTPParser.prototype.nextRequest = function () {
-  this.userCall()(this[kOnMessageComplete]());
-  this.reinitialize(this.type);
-};
-
-HTTPParser.prototype.consumeLine = function () {
-  var end = this.end,
-      chunk = this.chunk;
-  for (var i = this.offset; i < end; i++) {
-    if (chunk[i] === 0x0a) { // \n
-      var line = this.line + chunk.toString(HTTPParser.encoding, this.offset, i);
-      if (line.charAt(line.length - 1) === '\r') {
-        line = line.substr(0, line.length - 1);
-      }
-      this.line = '';
-      this.offset = i + 1;
-      return line;
-    }
-  }
-  //line split over multiple chunks
-  this.line += chunk.toString(HTTPParser.encoding, this.offset, this.end);
-  this.offset = this.end;
-};
-
-var headerExp = /^([^: \t]+):[ \t]*((?:.*[^ \t])|)/;
-var headerContinueExp = /^[ \t]+(.*[^ \t])/;
-HTTPParser.prototype.parseHeader = function (line, headers) {
-  if (line.indexOf('\r') !== -1) {
-    throw parseErrorCode('HPE_LF_EXPECTED');
-  }
-
-  var match = headerExp.exec(line);
-  var k = match && match[1];
-  if (k) { // skip empty string (malformed header)
-    headers.push(k);
-    headers.push(match[2]);
-  } else {
-    var matchContinue = headerContinueExp.exec(line);
-    if (matchContinue && headers.length) {
-      if (headers[headers.length - 1]) {
-        headers[headers.length - 1] += ' ';
-      }
-      headers[headers.length - 1] += matchContinue[1];
-    }
-  }
-};
-
-var requestExp = /^([A-Z-]+) ([^ ]+) HTTP\/(\d)\.(\d)$/;
-HTTPParser.prototype.REQUEST_LINE = function () {
-  var line = this.consumeLine();
-  if (!line) {
-    return;
-  }
-  var match = requestExp.exec(line);
-  if (match === null) {
-    throw parseErrorCode('HPE_INVALID_CONSTANT');
-  }
-  this.info.method = this._compatMode0_11 ? match[1] : methods.indexOf(match[1]);
-  if (this.info.method === -1) {
-    throw new Error('invalid request method');
-  }
-  this.info.url = match[2];
-  this.info.versionMajor = +match[3];
-  this.info.versionMinor = +match[4];
-  this.body_bytes = 0;
-  this.state = 'HEADER';
-};
-
-var responseExp = /^HTTP\/(\d)\.(\d) (\d{3}) ?(.*)$/;
-HTTPParser.prototype.RESPONSE_LINE = function () {
-  var line = this.consumeLine();
-  if (!line) {
-    return;
-  }
-  var match = responseExp.exec(line);
-  if (match === null) {
-    throw parseErrorCode('HPE_INVALID_CONSTANT');
-  }
-  this.info.versionMajor = +match[1];
-  this.info.versionMinor = +match[2];
-  var statusCode = this.info.statusCode = +match[3];
-  this.info.statusMessage = match[4];
-  // Implied zero length.
-  if ((statusCode / 100 | 0) === 1 || statusCode === 204 || statusCode === 304) {
-    this.body_bytes = 0;
-  }
-  this.state = 'HEADER';
-};
-
-HTTPParser.prototype.shouldKeepAlive = function () {
-  if (this.info.versionMajor > 0 && this.info.versionMinor > 0) {
-    if (this.connection.indexOf('close') !== -1) {
-      return false;
-    }
-  } else if (this.connection.indexOf('keep-alive') === -1) {
-    return false;
-  }
-  if (this.body_bytes !== null || this.isChunked) { // || skipBody
-    return true;
-  }
-  return false;
-};
-
-HTTPParser.prototype.HEADER = function () {
-  var line = this.consumeLine();
-  if (line === undefined) {
-    return;
-  }
-  var info = this.info;
-  if (line) {
-    this.parseHeader(line, info.headers);
-  } else {
-    var headers = info.headers;
-    var hasContentLength = false;
-    var currentContentLengthValue;
-    var hasUpgradeHeader = false;
-    for (var i = 0; i < headers.length; i += 2) {
-      switch (headers[i].toLowerCase()) {
-        case 'transfer-encoding':
-          this.isChunked = headers[i + 1].toLowerCase() === 'chunked';
-          break;
-        case 'content-length':
-          currentContentLengthValue = +headers[i + 1];
-          if (hasContentLength) {
-            // Fix duplicate Content-Length header with same values.
-            // Throw error only if values are different.
-            // Known issues:
-            // https://github.com/request/request/issues/2091#issuecomment-328715113
-            // https://github.com/nodejs/node/issues/6517#issuecomment-216263771
-            if (currentContentLengthValue !== this.body_bytes) {
-              throw parseErrorCode('HPE_UNEXPECTED_CONTENT_LENGTH');
-            }
-          } else {
-            hasContentLength = true;
-            this.body_bytes = currentContentLengthValue;
-          }
-          break;
-        case 'connection':
-          this.connection += headers[i + 1].toLowerCase();
-          break;
-        case 'upgrade':
-          hasUpgradeHeader = true;
-          break;
-      }
-    }
-
-    // if both isChunked and hasContentLength, isChunked wins
-    // This is required so the body is parsed using the chunked method, and matches
-    // Chrome's behavior.  We could, maybe, ignore them both (would get chunked
-    // encoding into the body), and/or disable shouldKeepAlive to be more
-    // resilient.
-    if (this.isChunked && hasContentLength) {
-      hasContentLength = false;
-      this.body_bytes = null;
-    }
-
-    // Logic from https://github.com/nodejs/http-parser/blob/921d5585515a153fa00e411cf144280c59b41f90/http_parser.c#L1727-L1737
-    // "For responses, "Upgrade: foo" and "Connection: upgrade" are
-    //   mandatory only when it is a 101 Switching Protocols response,
-    //   otherwise it is purely informational, to announce support.
-    if (hasUpgradeHeader && this.connection.indexOf('upgrade') != -1) {
-      info.upgrade = this.type === HTTPParser.REQUEST || info.statusCode === 101;
-    } else {
-      info.upgrade = info.method === method_connect;
-    }
-
-    if (this.isChunked && info.upgrade) {
-      this.isChunked = false;
-    }
-
-    info.shouldKeepAlive = this.shouldKeepAlive();
-    //problem which also exists in original node: we should know skipBody before calling onHeadersComplete
-    var skipBody;
-    if (compatMode0_12) {
-      skipBody = this.userCall()(this[kOnHeadersComplete](info));
-    } else {
-      skipBody = this.userCall()(this[kOnHeadersComplete](info.versionMajor,
-          info.versionMinor, info.headers, info.method, info.url, info.statusCode,
-          info.statusMessage, info.upgrade, info.shouldKeepAlive));
-    }
-    if (skipBody === 2) {
-      this.nextRequest();
-      return true;
-    } else if (this.isChunked && !skipBody) {
-      this.state = 'BODY_CHUNKHEAD';
-    } else if (skipBody || this.body_bytes === 0) {
-      this.nextRequest();
-      // For older versions of node (v6.x and older?), that return skipBody=1 or skipBody=true,
-      //   need this "return true;" if it's an upgrade request.
-      return info.upgrade;
-    } else if (this.body_bytes === null) {
-      this.state = 'BODY_RAW';
-    } else {
-      this.state = 'BODY_SIZED';
-    }
-  }
-};
-
-HTTPParser.prototype.BODY_CHUNKHEAD = function () {
-  var line = this.consumeLine();
-  if (line === undefined) {
-    return;
-  }
-  this.body_bytes = parseInt(line, 16);
-  if (!this.body_bytes) {
-    this.state = 'BODY_CHUNKTRAILERS';
-  } else {
-    this.state = 'BODY_CHUNK';
-  }
-};
-
-HTTPParser.prototype.BODY_CHUNK = function () {
-  var length = Math.min(this.end - this.offset, this.body_bytes);
-  this.userCall()(this[kOnBody](this.chunk, this.offset, length));
-  this.offset += length;
-  this.body_bytes -= length;
-  if (!this.body_bytes) {
-    this.state = 'BODY_CHUNKEMPTYLINE';
-  }
-};
-
-HTTPParser.prototype.BODY_CHUNKEMPTYLINE = function () {
-  var line = this.consumeLine();
-  if (line === undefined) {
-    return;
-  }
-  assert.equal(line, '');
-  this.state = 'BODY_CHUNKHEAD';
-};
-
-HTTPParser.prototype.BODY_CHUNKTRAILERS = function () {
-  var line = this.consumeLine();
-  if (line === undefined) {
-    return;
-  }
-  if (line) {
-    this.parseHeader(line, this.trailers);
-  } else {
-    if (this.trailers.length) {
-      this.userCall()(this[kOnHeaders](this.trailers, ''));
-    }
-    this.nextRequest();
-  }
-};
-
-HTTPParser.prototype.BODY_RAW = function () {
-  var length = this.end - this.offset;
-  this.userCall()(this[kOnBody](this.chunk, this.offset, length));
-  this.offset = this.end;
-};
-
-HTTPParser.prototype.BODY_SIZED = function () {
-  var length = Math.min(this.end - this.offset, this.body_bytes);
-  this.userCall()(this[kOnBody](this.chunk, this.offset, length));
-  this.offset += length;
-  this.body_bytes -= length;
-  if (!this.body_bytes) {
-    this.nextRequest();
-  }
-};
-
-// backward compat to node < 0.11.6
-['Headers', 'HeadersComplete', 'Body', 'MessageComplete'].forEach(function (name) {
-  var k = HTTPParser['kOn' + name];
-  Object.defineProperty(HTTPParser.prototype, 'on' + name, {
-    get: function () {
-      return this[k];
-    },
-    set: function (to) {
-      // hack for backward compatibility
-      this._compatMode0_11 = true;
-      method_connect = 'CONNECT';
-      return (this[k] = to);
-    }
-  });
-});
-
-function parseErrorCode(code) {
-  var err = new Error('Parse Error');
-  err.code = code;
-  return err;
-}

+ 0 - 72
node_modules.bak/http-parser-js/package.json

@@ -1,72 +0,0 @@
-{
-  "_from": "http-parser-js@>=0.5.1",
-  "_id": "http-parser-js@0.5.3",
-  "_inBundle": false,
-  "_integrity": "sha1-AdJwnHnUFpi7AdTezF6dpOSgM9k=",
-  "_location": "/http-parser-js",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "http-parser-js@>=0.5.1",
-    "name": "http-parser-js",
-    "escapedName": "http-parser-js",
-    "rawSpec": ">=0.5.1",
-    "saveSpec": null,
-    "fetchSpec": ">=0.5.1"
-  },
-  "_requiredBy": [
-    "/websocket-driver"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/http-parser-js/download/http-parser-js-0.5.3.tgz?cache=0&sync_timestamp=1609542336109&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhttp-parser-js%2Fdownload%2Fhttp-parser-js-0.5.3.tgz",
-  "_shasum": "01d2709c79d41698bb01d4decc5e9da4e4a033d9",
-  "_spec": "http-parser-js@>=0.5.1",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\websocket-driver",
-  "author": {
-    "name": "Tim Caswell",
-    "url": "https://github.com/creationix"
-  },
-  "bugs": {
-    "url": "https://github.com/creationix/http-parser-js/issues"
-  },
-  "bundleDependencies": false,
-  "contributors": [
-    {
-      "name": "Jimb Esser",
-      "url": "https://github.com/Jimbly"
-    },
-    {
-      "name": "Lawrence Rowe",
-      "url": "https://github.com/lrowe"
-    },
-    {
-      "name": "Jan Schär",
-      "url": "https://github.com/jscissr"
-    },
-    {
-      "name": "Paul Rütter",
-      "url": "https://github.com/paulrutter"
-    }
-  ],
-  "deprecated": false,
-  "description": "A pure JS HTTP parser for node.",
-  "files": [
-    "http-parser.js"
-  ],
-  "homepage": "https://github.com/creationix/http-parser-js#readme",
-  "keywords": [
-    "http"
-  ],
-  "license": "MIT",
-  "main": "http-parser.js",
-  "name": "http-parser-js",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/creationix/http-parser-js.git"
-  },
-  "scripts": {
-    "test": "python tests/test.py && node tests/iojs/test-http-parser-durability.js",
-    "testv12": "python tests/test.py --node-args=\"--http-parser=legacy\" && node --http-parser=legacy tests/iojs/test-http-parser-durability.js"
-  },
-  "version": "0.5.3"
-}

+ 0 - 0
node_modules.bak/http-proxy-middleware/CHANGELOG.md


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff