Browse Source

分批删除node_modules.bak数据2

wangsy 11 months atrás
parent
commit
88b22f3537
100 changed files with 0 additions and 13938 deletions
  1. 0 8
      node_modules.bak/browserify-des/.travis.yml
  2. 0 50
      node_modules.bak/browserify-des/index.js
  3. 0 21
      node_modules.bak/browserify-des/license
  4. 0 24
      node_modules.bak/browserify-des/modes.js
  5. 0 58
      node_modules.bak/browserify-des/package.json
  6. 0 6
      node_modules.bak/browserify-des/readme.md
  7. 0 81
      node_modules.bak/browserify-des/test.js
  8. 0 21
      node_modules.bak/browserify-rsa/LICENSE
  9. 0 17
      node_modules.bak/browserify-rsa/README.md
  10. 0 35
      node_modules.bak/browserify-rsa/index.js
  11. 0 58
      node_modules.bak/browserify-rsa/package.json
  12. 0 13
      node_modules.bak/browserify-sign/LICENSE
  13. 0 13
      node_modules.bak/browserify-sign/README.md
  14. 0 1
      node_modules.bak/browserify-sign/algos.js
  15. 0 152
      node_modules.bak/browserify-sign/browser/algorithms.json
  16. 0 8
      node_modules.bak/browserify-sign/browser/curves.json
  17. 0 92
      node_modules.bak/browserify-sign/browser/index.js
  18. 0 143
      node_modules.bak/browserify-sign/browser/sign.js
  19. 0 84
      node_modules.bak/browserify-sign/browser/verify.js
  20. 0 7
      node_modules.bak/browserify-sign/index.js
  21. 0 72
      node_modules.bak/browserify-sign/package.json
  22. 0 7
      node_modules.bak/browserify-zlib/.npmignore
  23. 0 16
      node_modules.bak/browserify-zlib/.travis.yml
  24. 0 70
      node_modules.bak/browserify-zlib/LICENSE
  25. 0 24
      node_modules.bak/browserify-zlib/README.md
  26. 0 11
      node_modules.bak/browserify-zlib/karma.conf.js
  27. 0 409
      node_modules.bak/browserify-zlib/lib/binding.js
  28. 0 609
      node_modules.bak/browserify-zlib/lib/index.js
  29. 0 92
      node_modules.bak/browserify-zlib/package.json
  30. 0 432
      node_modules.bak/browserify-zlib/src/binding.js
  31. 0 650
      node_modules.bak/browserify-zlib/src/index.js
  32. 0 20
      node_modules.bak/browserslist/LICENSE
  33. 0 701
      node_modules.bak/browserslist/README.md
  34. 0 46
      node_modules.bak/browserslist/browser.js
  35. 0 145
      node_modules.bak/browserslist/cli.js
  36. 0 7
      node_modules.bak/browserslist/error.d.ts
  37. 0 12
      node_modules.bak/browserslist/error.js
  38. 0 172
      node_modules.bak/browserslist/index.d.ts
  39. 0 1215
      node_modules.bak/browserslist/index.js
  40. 0 386
      node_modules.bak/browserslist/node.js
  41. 0 71
      node_modules.bak/browserslist/package.json
  42. 0 296
      node_modules.bak/browserslist/update-db.js
  43. 0 21
      node_modules.bak/buffer-from/LICENSE
  44. 0 69
      node_modules.bak/buffer-from/index.js
  45. 0 53
      node_modules.bak/buffer-from/package.json
  46. 0 69
      node_modules.bak/buffer-from/readme.md
  47. 0 6
      node_modules.bak/buffer-indexof/.travis.yml
  48. 0 20
      node_modules.bak/buffer-indexof/LICENSE
  49. 0 37
      node_modules.bak/buffer-indexof/README.md
  50. 0 58
      node_modules.bak/buffer-indexof/bm.js
  51. 0 73
      node_modules.bak/buffer-indexof/index.js
  52. 0 50
      node_modules.bak/buffer-indexof/package.json
  53. 0 15
      node_modules.bak/buffer-indexof/test/bm.js
  54. 0 15
      node_modules.bak/buffer-indexof/test/multibyteneedle.js
  55. 0 8
      node_modules.bak/buffer-indexof/test/partial-match.js
  56. 0 400
      node_modules.bak/buffer-indexof/test/test-buffer-indexof.js
  57. 0 37
      node_modules.bak/buffer-indexof/test/test.js
  58. 0 1
      node_modules.bak/buffer-xor/.npmignore
  59. 0 9
      node_modules.bak/buffer-xor/.travis.yml
  60. 0 21
      node_modules.bak/buffer-xor/LICENSE
  61. 0 41
      node_modules.bak/buffer-xor/README.md
  62. 0 10
      node_modules.bak/buffer-xor/index.js
  63. 0 1
      node_modules.bak/buffer-xor/inline.js
  64. 0 9
      node_modules.bak/buffer-xor/inplace.js
  65. 0 64
      node_modules.bak/buffer-xor/package.json
  66. 0 23
      node_modules.bak/buffer-xor/test/fixtures.json
  67. 0 38
      node_modules.bak/buffer-xor/test/index.js
  68. 0 8
      node_modules.bak/buffer/.travis.yml
  69. 0 44
      node_modules.bak/buffer/AUTHORS.md
  70. 0 21
      node_modules.bak/buffer/LICENSE
  71. 0 378
      node_modules.bak/buffer/README.md
  72. 0 106
      node_modules.bak/buffer/bin/download-node-tests.js
  73. 0 41
      node_modules.bak/buffer/bin/test.js
  74. 0 21
      node_modules.bak/buffer/bin/update-authors.sh
  75. 0 14
      node_modules.bak/buffer/bin/zuul-es5.yml
  76. 0 6
      node_modules.bak/buffer/bin/zuul-es6.yml
  77. 0 1789
      node_modules.bak/buffer/index.js
  78. 0 108
      node_modules.bak/buffer/package.json
  79. 0 150
      node_modules.bak/buffer/test/_polyfill.js
  80. 0 47
      node_modules.bak/buffer/test/base64.js
  81. 0 85
      node_modules.bak/buffer/test/basic.js
  82. 0 59
      node_modules.bak/buffer/test/compare.js
  83. 0 193
      node_modules.bak/buffer/test/constructor.js
  84. 0 132
      node_modules.bak/buffer/test/from-string.js
  85. 0 22
      node_modules.bak/buffer/test/is-buffer.js
  86. 0 127
      node_modules.bak/buffer/test/methods.js
  87. 0 1501
      node_modules.bak/buffer/test/node/test-buffer-alloc.js
  88. 0 112
      node_modules.bak/buffer/test/node/test-buffer-arraybuffer.js
  89. 0 28
      node_modules.bak/buffer/test/node/test-buffer-ascii.js
  90. 0 18
      node_modules.bak/buffer/test/node/test-buffer-bad-overload.js
  91. 0 46
      node_modules.bak/buffer/test/node/test-buffer-badhex.js
  92. 0 90
      node_modules.bak/buffer/test/node/test-buffer-bytelength.js
  93. 0 66
      node_modules.bak/buffer/test/node/test-buffer-compare-offset.js
  94. 0 40
      node_modules.bak/buffer/test/node/test-buffer-concat.js
  95. 0 272
      node_modules.bak/buffer/test/node/test-buffer-fill.js
  96. 0 305
      node_modules.bak/buffer/test/node/test-buffer-includes.js
  97. 0 523
      node_modules.bak/buffer/test/node/test-buffer-indexof.js
  98. 0 42
      node_modules.bak/buffer/test/node/test-buffer-inheritance.js
  99. 0 41
      node_modules.bak/buffer/test/node/test-buffer-inspect.js
  100. 0 0
      node_modules.bak/buffer/test/node/test-buffer-iterator.js

+ 0 - 8
node_modules.bak/browserify-des/.travis.yml

@@ -1,8 +0,0 @@
-language: node_js
-node_js:
-  - "0.11"
-  - "0.10"
-  - "0.12"
-  - "4"
-  - "6"
-  - "10"

+ 0 - 50
node_modules.bak/browserify-des/index.js

@@ -1,50 +0,0 @@
-var CipherBase = require('cipher-base')
-var des = require('des.js')
-var inherits = require('inherits')
-var Buffer = require('safe-buffer').Buffer
-
-var modes = {
-  'des-ede3-cbc': des.CBC.instantiate(des.EDE),
-  'des-ede3': des.EDE,
-  'des-ede-cbc': des.CBC.instantiate(des.EDE),
-  'des-ede': des.EDE,
-  'des-cbc': des.CBC.instantiate(des.DES),
-  'des-ecb': des.DES
-}
-modes.des = modes['des-cbc']
-modes.des3 = modes['des-ede3-cbc']
-module.exports = DES
-inherits(DES, CipherBase)
-function DES (opts) {
-  CipherBase.call(this)
-  var modeName = opts.mode.toLowerCase()
-  var mode = modes[modeName]
-  var type
-  if (opts.decrypt) {
-    type = 'decrypt'
-  } else {
-    type = 'encrypt'
-  }
-  var key = opts.key
-  if (!Buffer.isBuffer(key)) {
-    key = Buffer.from(key)
-  }
-  if (modeName === 'des-ede' || modeName === 'des-ede-cbc') {
-    key = Buffer.concat([key, key.slice(0, 8)])
-  }
-  var iv = opts.iv
-  if (!Buffer.isBuffer(iv)) {
-    iv = Buffer.from(iv)
-  }
-  this._des = mode.create({
-    key: key,
-    iv: iv,
-    type: type
-  })
-}
-DES.prototype._update = function (data) {
-  return Buffer.from(this._des.update(data))
-}
-DES.prototype._final = function () {
-  return Buffer.from(this._des.final())
-}

+ 0 - 21
node_modules.bak/browserify-des/license

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014-2017 Calvin Metcalf, Fedor Indutny & 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 - 24
node_modules.bak/browserify-des/modes.js

@@ -1,24 +0,0 @@
-exports['des-ecb'] = {
-  key: 8,
-  iv: 0
-}
-exports['des-cbc'] = exports.des = {
-  key: 8,
-  iv: 8
-}
-exports['des-ede3-cbc'] = exports.des3 = {
-  key: 24,
-  iv: 8
-}
-exports['des-ede3'] = {
-  key: 24,
-  iv: 0
-}
-exports['des-ede-cbc'] = {
-  key: 16,
-  iv: 8
-}
-exports['des-ede'] = {
-  key: 16,
-  iv: 0
-}

+ 0 - 58
node_modules.bak/browserify-des/package.json

@@ -1,58 +0,0 @@
-{
-  "_from": "browserify-des@^1.0.0",
-  "_id": "browserify-des@1.0.2",
-  "_inBundle": false,
-  "_integrity": "sha1-OvTx9Zg5QDVy8cZiBDdfen9wPpw=",
-  "_location": "/browserify-des",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "browserify-des@^1.0.0",
-    "name": "browserify-des",
-    "escapedName": "browserify-des",
-    "rawSpec": "^1.0.0",
-    "saveSpec": null,
-    "fetchSpec": "^1.0.0"
-  },
-  "_requiredBy": [
-    "/browserify-cipher"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/browserify-des/download/browserify-des-1.0.2.tgz",
-  "_shasum": "3af4f1f59839403572f1c66204375f7a7f703e9c",
-  "_spec": "browserify-des@^1.0.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\browserify-cipher",
-  "author": {
-    "name": "Calvin Metcalf",
-    "email": "calvin.metcalf@gmail.com"
-  },
-  "bugs": {
-    "url": "https://github.com/crypto-browserify/browserify-des/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "cipher-base": "^1.0.1",
-    "des.js": "^1.0.0",
-    "inherits": "^2.0.1",
-    "safe-buffer": "^5.1.2"
-  },
-  "deprecated": false,
-  "description": "browserify-des ===",
-  "devDependencies": {
-    "standard": "^5.3.1",
-    "tap-spec": "^4.1.0",
-    "tape": "^4.2.0"
-  },
-  "homepage": "https://github.com/crypto-browserify/browserify-des#readme",
-  "license": "MIT",
-  "main": "index.js",
-  "name": "browserify-des",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/crypto-browserify/browserify-des.git"
-  },
-  "scripts": {
-    "test": "standard && node test.js | tspec"
-  },
-  "version": "1.0.2"
-}

+ 0 - 6
node_modules.bak/browserify-des/readme.md

@@ -1,6 +0,0 @@
-browserify-des
-===
-
-[![Build Status](https://travis-ci.org/crypto-browserify/browserify-des.svg)](https://travis-ci.org/crypto-browserify/browserify-des)
-
-DES for browserify

+ 0 - 81
node_modules.bak/browserify-des/test.js

@@ -1,81 +0,0 @@
-var test = require('tape')
-var DES = require('./')
-var modes = require('./modes')
-var crypto = require('crypto')
-
-Object.keys(modes).forEach(function (mode) {
-  test(mode, function (t) {
-    var i = 0
-    while (++i < 10) {
-      runOnce(i)
-    }
-    function runOnce (i) {
-      t.test('run: ' + i, function (t) {
-        t.plan(2)
-        var key = crypto.randomBytes(modes[mode].key)
-        var iv = crypto.randomBytes(modes[mode].iv)
-        var text = crypto.randomBytes(200)
-        var ourEncrypt
-        try {
-          ourEncrypt = new DES({
-            mode: mode,
-            key: key,
-            iv: iv
-          })
-        } catch (e) {
-          t.notOk(e, e.stack)
-        }
-        var nodeEncrypt
-        try {
-          nodeEncrypt = crypto.createCipheriv(mode, key, iv)
-        } catch (e) {
-          t.notOk(e, e.stack)
-        }
-        var ourCipherText = Buffer.concat([ourEncrypt.update(text), ourEncrypt.final()])
-        var nodeCipherText = Buffer.concat([nodeEncrypt.update(text), nodeEncrypt.final()])
-        t.equals(nodeCipherText.toString('hex'), ourCipherText.toString('hex'))
-        var ourDecrypt = new DES({
-          mode: mode,
-          key: key,
-          iv: iv,
-          decrypt: true
-        })
-        var plainText = Buffer.concat([ourDecrypt.update(ourCipherText), ourDecrypt.final()])
-        t.equals(text.toString('hex'), plainText.toString('hex'))
-      })
-      t.test('run text: ' + i, function (t) {
-        t.plan(2)
-        var key = crypto.randomBytes(32).toString('base64').slice(0, modes[mode].key)
-        var iv = crypto.randomBytes(32).toString('base64').slice(0, modes[mode].iv)
-        var text = crypto.randomBytes(200)
-        var ourEncrypt
-        try {
-          ourEncrypt = new DES({
-            mode: mode,
-            key: key,
-            iv: iv
-          })
-        } catch (e) {
-          t.notOk(e, e.stack)
-        }
-        var nodeEncrypt
-        try {
-          nodeEncrypt = crypto.createCipheriv(mode, key, iv)
-        } catch (e) {
-          t.notOk(e, e.stack)
-        }
-        var ourCipherText = Buffer.concat([ourEncrypt.update(text), ourEncrypt.final()])
-        var nodeCipherText = Buffer.concat([nodeEncrypt.update(text), nodeEncrypt.final()])
-        t.equals(nodeCipherText.toString('hex'), ourCipherText.toString('hex'))
-        var ourDecrypt = new DES({
-          mode: mode,
-          key: key,
-          iv: iv,
-          decrypt: true
-        })
-        var plainText = Buffer.concat([ourDecrypt.update(ourCipherText), ourDecrypt.final()])
-        t.equals(text.toString('hex'), plainText.toString('hex'))
-      })
-    }
-  })
-})

+ 0 - 21
node_modules.bak/browserify-rsa/LICENSE

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014-2016 Calvin Metcalf & 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 - 17
node_modules.bak/browserify-rsa/README.md

@@ -1,17 +0,0 @@
-# browserify-rsa
-
-[![NPM Package](https://img.shields.io/npm/v/browserify-rsa.svg?style=flat-square)](https://www.npmjs.org/package/browserify-rsa)
-[![Build Status](https://img.shields.io/travis/crypto-browserify/browserify-rsa.svg?branch=master&style=flat-square)](https://travis-ci.org/crypto-browserify/browserify-rsa)
-[![Dependency status](https://img.shields.io/david/crypto-browserify/browserify-rsa.svg?style=flat-square)](https://david-dm.org/crypto-browserify/browserify-rsa#info=dependencies)
-
-[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
-
-RSA private decryption/signing using chinese remainder and blinding.
-
-## API
-
-Give it a message as a Buffer and a private key (as decoded by `ASN.1`) and it returns encrypted data as a Buffer.
-
-## LICENSE
-
-MIT

+ 0 - 35
node_modules.bak/browserify-rsa/index.js

@@ -1,35 +0,0 @@
-var BN = require('bn.js')
-var randomBytes = require('randombytes')
-
-function blind (priv) {
-  var r = getr(priv)
-  var blinder = r.toRed(BN.mont(priv.modulus)).redPow(new BN(priv.publicExponent)).fromRed()
-  return { blinder: blinder, unblinder: r.invm(priv.modulus) }
-}
-
-function getr (priv) {
-  var len = priv.modulus.byteLength()
-  var r
-  do {
-    r = new BN(randomBytes(len))
-  } while (r.cmp(priv.modulus) >= 0 || !r.umod(priv.prime1) || !r.umod(priv.prime2))
-  return r
-}
-
-function crt (msg, priv) {
-  var blinds = blind(priv)
-  var len = priv.modulus.byteLength()
-  var blinded = new BN(msg).mul(blinds.blinder).umod(priv.modulus)
-  var c1 = blinded.toRed(BN.mont(priv.prime1))
-  var c2 = blinded.toRed(BN.mont(priv.prime2))
-  var qinv = priv.coefficient
-  var p = priv.prime1
-  var q = priv.prime2
-  var m1 = c1.redPow(priv.exponent1).fromRed()
-  var m2 = c2.redPow(priv.exponent2).fromRed()
-  var h = m1.isub(m2).imul(qinv).umod(p).imul(q)
-  return m2.iadd(h).imul(blinds.unblinder).umod(priv.modulus).toArrayLike(Buffer, 'be', len)
-}
-crt.getr = getr
-
-module.exports = crt

+ 0 - 58
node_modules.bak/browserify-rsa/package.json

@@ -1,58 +0,0 @@
-{
-  "_from": "browserify-rsa@^4.0.1",
-  "_id": "browserify-rsa@4.1.0",
-  "_inBundle": false,
-  "_integrity": "sha1-sv0Gtbda4pf3zi3GUfkY9b4VjI0=",
-  "_location": "/browserify-rsa",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "browserify-rsa@^4.0.1",
-    "name": "browserify-rsa",
-    "escapedName": "browserify-rsa",
-    "rawSpec": "^4.0.1",
-    "saveSpec": null,
-    "fetchSpec": "^4.0.1"
-  },
-  "_requiredBy": [
-    "/browserify-sign",
-    "/public-encrypt"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/browserify-rsa/download/browserify-rsa-4.1.0.tgz",
-  "_shasum": "b2fd06b5b75ae297f7ce2dc651f918f5be158c8d",
-  "_spec": "browserify-rsa@^4.0.1",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\browserify-sign",
-  "bugs": {
-    "url": "https://github.com/crypto-browserify/browserify-rsa/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "bn.js": "^5.0.0",
-    "randombytes": "^2.0.1"
-  },
-  "deprecated": false,
-  "description": "RSA for browserify",
-  "devDependencies": {
-    "parse-asn1": "^5.0.0",
-    "standard": "^6.0.8",
-    "tape": "^4.5.1"
-  },
-  "files": [
-    "index.js"
-  ],
-  "homepage": "https://github.com/crypto-browserify/browserify-rsa#readme",
-  "license": "MIT",
-  "main": "index.js",
-  "name": "browserify-rsa",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/crypto-browserify/browserify-rsa.git"
-  },
-  "scripts": {
-    "lint": "standard",
-    "test": "npm run lint && npm run unit",
-    "unit": "tape test/*.js"
-  },
-  "version": "4.1.0"
-}

+ 0 - 13
node_modules.bak/browserify-sign/LICENSE

@@ -1,13 +0,0 @@
-Copyright (c) 2014-2015 Calvin Metcalf and browserify-sign contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

+ 0 - 13
node_modules.bak/browserify-sign/README.md

@@ -1,13 +0,0 @@
-# browserify-sign
-
-[![NPM Package](https://img.shields.io/npm/v/browserify-sign.svg?style=flat-square)](https://www.npmjs.org/package/browserify-sign)
-[![Build Status](https://img.shields.io/travis/crypto-browserify/browserify-sign.svg?branch=master&style=flat-square)](https://travis-ci.org/crypto-browserify/browserify-sign)
-[![Dependency status](https://img.shields.io/david/crypto-browserify/browserify-sign.svg?style=flat-square)](https://david-dm.org/crypto-browserify/browserify-sign#info=dependencies)
-
-[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
-
-A package to duplicate the functionality of node's crypto public key functions, much of this is based on [Fedor Indutny's](https://github.com/indutny) work on [indutny/tls.js](https://github.com/indutny/tls.js).
-
-## LICENSE
-
-ISC

+ 0 - 1
node_modules.bak/browserify-sign/algos.js

@@ -1 +0,0 @@
-module.exports = require('./browser/algorithms.json')

+ 0 - 152
node_modules.bak/browserify-sign/browser/algorithms.json

@@ -1,152 +0,0 @@
-{
-  "sha224WithRSAEncryption": {
-    "sign": "rsa",
-    "hash": "sha224",
-    "id": "302d300d06096086480165030402040500041c"
-  },
-  "RSA-SHA224": {
-    "sign": "ecdsa/rsa",
-    "hash": "sha224",
-    "id": "302d300d06096086480165030402040500041c"
-  },
-  "sha256WithRSAEncryption": {
-    "sign": "rsa",
-    "hash": "sha256",
-    "id": "3031300d060960864801650304020105000420"
-  },
-  "RSA-SHA256": {
-    "sign": "ecdsa/rsa",
-    "hash": "sha256",
-    "id": "3031300d060960864801650304020105000420"
-  },
-  "sha384WithRSAEncryption": {
-    "sign": "rsa",
-    "hash": "sha384",
-    "id": "3041300d060960864801650304020205000430"
-  },
-  "RSA-SHA384": {
-    "sign": "ecdsa/rsa",
-    "hash": "sha384",
-    "id": "3041300d060960864801650304020205000430"
-  },
-  "sha512WithRSAEncryption": {
-    "sign": "rsa",
-    "hash": "sha512",
-    "id": "3051300d060960864801650304020305000440"
-  },
-  "RSA-SHA512": {
-    "sign": "ecdsa/rsa",
-    "hash": "sha512",
-    "id": "3051300d060960864801650304020305000440"
-  },
-  "RSA-SHA1": {
-    "sign": "rsa",
-    "hash": "sha1",
-    "id": "3021300906052b0e03021a05000414"
-  },
-  "ecdsa-with-SHA1": {
-    "sign": "ecdsa",
-    "hash": "sha1",
-    "id": ""
-  },
-  "sha256": {
-    "sign": "ecdsa",
-    "hash": "sha256",
-    "id": ""
-  },
-  "sha224": {
-    "sign": "ecdsa",
-    "hash": "sha224",
-    "id": ""
-  },
-  "sha384": {
-    "sign": "ecdsa",
-    "hash": "sha384",
-    "id": ""
-  },
-  "sha512": {
-    "sign": "ecdsa",
-    "hash": "sha512",
-    "id": ""
-  },
-  "DSA-SHA": {
-    "sign": "dsa",
-    "hash": "sha1",
-    "id": ""
-  },
-  "DSA-SHA1": {
-    "sign": "dsa",
-    "hash": "sha1",
-    "id": ""
-  },
-  "DSA": {
-    "sign": "dsa",
-    "hash": "sha1",
-    "id": ""
-  },
-  "DSA-WITH-SHA224": {
-    "sign": "dsa",
-    "hash": "sha224",
-    "id": ""
-  },
-  "DSA-SHA224": {
-    "sign": "dsa",
-    "hash": "sha224",
-    "id": ""
-  },
-  "DSA-WITH-SHA256": {
-    "sign": "dsa",
-    "hash": "sha256",
-    "id": ""
-  },
-  "DSA-SHA256": {
-    "sign": "dsa",
-    "hash": "sha256",
-    "id": ""
-  },
-  "DSA-WITH-SHA384": {
-    "sign": "dsa",
-    "hash": "sha384",
-    "id": ""
-  },
-  "DSA-SHA384": {
-    "sign": "dsa",
-    "hash": "sha384",
-    "id": ""
-  },
-  "DSA-WITH-SHA512": {
-    "sign": "dsa",
-    "hash": "sha512",
-    "id": ""
-  },
-  "DSA-SHA512": {
-    "sign": "dsa",
-    "hash": "sha512",
-    "id": ""
-  },
-  "DSA-RIPEMD160": {
-    "sign": "dsa",
-    "hash": "rmd160",
-    "id": ""
-  },
-  "ripemd160WithRSA": {
-    "sign": "rsa",
-    "hash": "rmd160",
-    "id": "3021300906052b2403020105000414"
-  },
-  "RSA-RIPEMD160": {
-    "sign": "rsa",
-    "hash": "rmd160",
-    "id": "3021300906052b2403020105000414"
-  },
-  "md5WithRSAEncryption": {
-    "sign": "rsa",
-    "hash": "md5",
-    "id": "3020300c06082a864886f70d020505000410"
-  },
-  "RSA-MD5": {
-    "sign": "rsa",
-    "hash": "md5",
-    "id": "3020300c06082a864886f70d020505000410"
-  }
-}

+ 0 - 8
node_modules.bak/browserify-sign/browser/curves.json

@@ -1,8 +0,0 @@
-{
-  "1.3.132.0.10": "secp256k1",
-  "1.3.132.0.33": "p224",
-  "1.2.840.10045.3.1.1": "p192",
-  "1.2.840.10045.3.1.7": "p256",
-  "1.3.132.0.34": "p384",
-  "1.3.132.0.35": "p521"
-}

+ 0 - 92
node_modules.bak/browserify-sign/browser/index.js

@@ -1,92 +0,0 @@
-var Buffer = require('safe-buffer').Buffer
-var createHash = require('create-hash')
-var stream = require('readable-stream')
-var inherits = require('inherits')
-var sign = require('./sign')
-var verify = require('./verify')
-
-var algorithms = require('./algorithms.json')
-Object.keys(algorithms).forEach(function (key) {
-  algorithms[key].id = Buffer.from(algorithms[key].id, 'hex')
-  algorithms[key.toLowerCase()] = algorithms[key]
-})
-
-function Sign (algorithm) {
-  stream.Writable.call(this)
-
-  var data = algorithms[algorithm]
-  if (!data) throw new Error('Unknown message digest')
-
-  this._hashType = data.hash
-  this._hash = createHash(data.hash)
-  this._tag = data.id
-  this._signType = data.sign
-}
-inherits(Sign, stream.Writable)
-
-Sign.prototype._write = function _write (data, _, done) {
-  this._hash.update(data)
-  done()
-}
-
-Sign.prototype.update = function update (data, enc) {
-  if (typeof data === 'string') data = Buffer.from(data, enc)
-
-  this._hash.update(data)
-  return this
-}
-
-Sign.prototype.sign = function signMethod (key, enc) {
-  this.end()
-  var hash = this._hash.digest()
-  var sig = sign(hash, key, this._hashType, this._signType, this._tag)
-
-  return enc ? sig.toString(enc) : sig
-}
-
-function Verify (algorithm) {
-  stream.Writable.call(this)
-
-  var data = algorithms[algorithm]
-  if (!data) throw new Error('Unknown message digest')
-
-  this._hash = createHash(data.hash)
-  this._tag = data.id
-  this._signType = data.sign
-}
-inherits(Verify, stream.Writable)
-
-Verify.prototype._write = function _write (data, _, done) {
-  this._hash.update(data)
-  done()
-}
-
-Verify.prototype.update = function update (data, enc) {
-  if (typeof data === 'string') data = Buffer.from(data, enc)
-
-  this._hash.update(data)
-  return this
-}
-
-Verify.prototype.verify = function verifyMethod (key, sig, enc) {
-  if (typeof sig === 'string') sig = Buffer.from(sig, enc)
-
-  this.end()
-  var hash = this._hash.digest()
-  return verify(sig, hash, key, this._signType, this._tag)
-}
-
-function createSign (algorithm) {
-  return new Sign(algorithm)
-}
-
-function createVerify (algorithm) {
-  return new Verify(algorithm)
-}
-
-module.exports = {
-  Sign: createSign,
-  Verify: createVerify,
-  createSign: createSign,
-  createVerify: createVerify
-}

+ 0 - 143
node_modules.bak/browserify-sign/browser/sign.js

@@ -1,143 +0,0 @@
-// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
-var Buffer = require('safe-buffer').Buffer
-var createHmac = require('create-hmac')
-var crt = require('browserify-rsa')
-var EC = require('elliptic').ec
-var BN = require('bn.js')
-var parseKeys = require('parse-asn1')
-var curves = require('./curves.json')
-
-function sign (hash, key, hashType, signType, tag) {
-  var priv = parseKeys(key)
-  if (priv.curve) {
-    // rsa keys can be interpreted as ecdsa ones in openssl
-    if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type')
-    return ecSign(hash, priv)
-  } else if (priv.type === 'dsa') {
-    if (signType !== 'dsa') throw new Error('wrong private key type')
-    return dsaSign(hash, priv, hashType)
-  } else {
-    if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type')
-  }
-  hash = Buffer.concat([tag, hash])
-  var len = priv.modulus.byteLength()
-  var pad = [0, 1]
-  while (hash.length + pad.length + 1 < len) pad.push(0xff)
-  pad.push(0x00)
-  var i = -1
-  while (++i < hash.length) pad.push(hash[i])
-
-  var out = crt(pad, priv)
-  return out
-}
-
-function ecSign (hash, priv) {
-  var curveId = curves[priv.curve.join('.')]
-  if (!curveId) throw new Error('unknown curve ' + priv.curve.join('.'))
-
-  var curve = new EC(curveId)
-  var key = curve.keyFromPrivate(priv.privateKey)
-  var out = key.sign(hash)
-
-  return Buffer.from(out.toDER())
-}
-
-function dsaSign (hash, priv, algo) {
-  var x = priv.params.priv_key
-  var p = priv.params.p
-  var q = priv.params.q
-  var g = priv.params.g
-  var r = new BN(0)
-  var k
-  var H = bits2int(hash, q).mod(q)
-  var s = false
-  var kv = getKey(x, q, hash, algo)
-  while (s === false) {
-    k = makeKey(q, kv, algo)
-    r = makeR(g, k, p, q)
-    s = k.invm(q).imul(H.add(x.mul(r))).mod(q)
-    if (s.cmpn(0) === 0) {
-      s = false
-      r = new BN(0)
-    }
-  }
-  return toDER(r, s)
-}
-
-function toDER (r, s) {
-  r = r.toArray()
-  s = s.toArray()
-
-  // Pad values
-  if (r[0] & 0x80) r = [0].concat(r)
-  if (s[0] & 0x80) s = [0].concat(s)
-
-  var total = r.length + s.length + 4
-  var res = [0x30, total, 0x02, r.length]
-  res = res.concat(r, [0x02, s.length], s)
-  return Buffer.from(res)
-}
-
-function getKey (x, q, hash, algo) {
-  x = Buffer.from(x.toArray())
-  if (x.length < q.byteLength()) {
-    var zeros = Buffer.alloc(q.byteLength() - x.length)
-    x = Buffer.concat([zeros, x])
-  }
-  var hlen = hash.length
-  var hbits = bits2octets(hash, q)
-  var v = Buffer.alloc(hlen)
-  v.fill(1)
-  var k = Buffer.alloc(hlen)
-  k = createHmac(algo, k).update(v).update(Buffer.from([0])).update(x).update(hbits).digest()
-  v = createHmac(algo, k).update(v).digest()
-  k = createHmac(algo, k).update(v).update(Buffer.from([1])).update(x).update(hbits).digest()
-  v = createHmac(algo, k).update(v).digest()
-  return { k: k, v: v }
-}
-
-function bits2int (obits, q) {
-  var bits = new BN(obits)
-  var shift = (obits.length << 3) - q.bitLength()
-  if (shift > 0) bits.ishrn(shift)
-  return bits
-}
-
-function bits2octets (bits, q) {
-  bits = bits2int(bits, q)
-  bits = bits.mod(q)
-  var out = Buffer.from(bits.toArray())
-  if (out.length < q.byteLength()) {
-    var zeros = Buffer.alloc(q.byteLength() - out.length)
-    out = Buffer.concat([zeros, out])
-  }
-  return out
-}
-
-function makeKey (q, kv, algo) {
-  var t
-  var k
-
-  do {
-    t = Buffer.alloc(0)
-
-    while (t.length * 8 < q.bitLength()) {
-      kv.v = createHmac(algo, kv.k).update(kv.v).digest()
-      t = Buffer.concat([t, kv.v])
-    }
-
-    k = bits2int(t, q)
-    kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer.from([0])).digest()
-    kv.v = createHmac(algo, kv.k).update(kv.v).digest()
-  } while (k.cmp(q) !== -1)
-
-  return k
-}
-
-function makeR (g, k, p, q) {
-  return g.toRed(BN.mont(p)).redPow(k).fromRed().mod(q)
-}
-
-module.exports = sign
-module.exports.getKey = getKey
-module.exports.makeKey = makeKey

+ 0 - 84
node_modules.bak/browserify-sign/browser/verify.js

@@ -1,84 +0,0 @@
-// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
-var Buffer = require('safe-buffer').Buffer
-var BN = require('bn.js')
-var EC = require('elliptic').ec
-var parseKeys = require('parse-asn1')
-var curves = require('./curves.json')
-
-function verify (sig, hash, key, signType, tag) {
-  var pub = parseKeys(key)
-  if (pub.type === 'ec') {
-    // rsa keys can be interpreted as ecdsa ones in openssl
-    if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type')
-    return ecVerify(sig, hash, pub)
-  } else if (pub.type === 'dsa') {
-    if (signType !== 'dsa') throw new Error('wrong public key type')
-    return dsaVerify(sig, hash, pub)
-  } else {
-    if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type')
-  }
-  hash = Buffer.concat([tag, hash])
-  var len = pub.modulus.byteLength()
-  var pad = [1]
-  var padNum = 0
-  while (hash.length + pad.length + 2 < len) {
-    pad.push(0xff)
-    padNum++
-  }
-  pad.push(0x00)
-  var i = -1
-  while (++i < hash.length) {
-    pad.push(hash[i])
-  }
-  pad = Buffer.from(pad)
-  var red = BN.mont(pub.modulus)
-  sig = new BN(sig).toRed(red)
-
-  sig = sig.redPow(new BN(pub.publicExponent))
-  sig = Buffer.from(sig.fromRed().toArray())
-  var out = padNum < 8 ? 1 : 0
-  len = Math.min(sig.length, pad.length)
-  if (sig.length !== pad.length) out = 1
-
-  i = -1
-  while (++i < len) out |= sig[i] ^ pad[i]
-  return out === 0
-}
-
-function ecVerify (sig, hash, pub) {
-  var curveId = curves[pub.data.algorithm.curve.join('.')]
-  if (!curveId) throw new Error('unknown curve ' + pub.data.algorithm.curve.join('.'))
-
-  var curve = new EC(curveId)
-  var pubkey = pub.data.subjectPrivateKey.data
-
-  return curve.verify(hash, sig, pubkey)
-}
-
-function dsaVerify (sig, hash, pub) {
-  var p = pub.data.p
-  var q = pub.data.q
-  var g = pub.data.g
-  var y = pub.data.pub_key
-  var unpacked = parseKeys.signature.decode(sig, 'der')
-  var s = unpacked.s
-  var r = unpacked.r
-  checkValue(s, q)
-  checkValue(r, q)
-  var montp = BN.mont(p)
-  var w = s.invm(q)
-  var v = g.toRed(montp)
-    .redPow(new BN(hash).mul(w).mod(q))
-    .fromRed()
-    .mul(y.toRed(montp).redPow(r.mul(w).mod(q)).fromRed())
-    .mod(p)
-    .mod(q)
-  return v.cmp(r) === 0
-}
-
-function checkValue (b, q) {
-  if (b.cmpn(0) <= 0) throw new Error('invalid sig')
-  if (b.cmp(q) >= q) throw new Error('invalid sig')
-}
-
-module.exports = verify

+ 0 - 7
node_modules.bak/browserify-sign/index.js

@@ -1,7 +0,0 @@
-var crypto = require('crypto')
-
-exports.createSign = crypto.createSign
-exports.Sign = crypto.Sign
-
-exports.createVerify = crypto.createVerify
-exports.Verify = crypto.Verify

+ 0 - 72
node_modules.bak/browserify-sign/package.json

@@ -1,72 +0,0 @@
-{
-  "_from": "browserify-sign@^4.0.0",
-  "_id": "browserify-sign@4.2.1",
-  "_inBundle": false,
-  "_integrity": "sha1-6vSt1G3VS+O7OzbAzxWrvrp5VsM=",
-  "_location": "/browserify-sign",
-  "_phantomChildren": {
-    "inherits": "2.0.4",
-    "string_decoder": "1.1.1",
-    "util-deprecate": "1.0.2"
-  },
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "browserify-sign@^4.0.0",
-    "name": "browserify-sign",
-    "escapedName": "browserify-sign",
-    "rawSpec": "^4.0.0",
-    "saveSpec": null,
-    "fetchSpec": "^4.0.0"
-  },
-  "_requiredBy": [
-    "/crypto-browserify"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/browserify-sign/download/browserify-sign-4.2.1.tgz?cache=0&sync_timestamp=1596557839950&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbrowserify-sign%2Fdownload%2Fbrowserify-sign-4.2.1.tgz",
-  "_shasum": "eaf4add46dd54be3bb3b36c0cf15abbeba7956c3",
-  "_spec": "browserify-sign@^4.0.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\crypto-browserify",
-  "browser": "browser/index.js",
-  "bugs": {
-    "url": "https://github.com/crypto-browserify/browserify-sign/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "bn.js": "^5.1.1",
-    "browserify-rsa": "^4.0.1",
-    "create-hash": "^1.2.0",
-    "create-hmac": "^1.1.7",
-    "elliptic": "^6.5.3",
-    "inherits": "^2.0.4",
-    "parse-asn1": "^5.1.5",
-    "readable-stream": "^3.6.0",
-    "safe-buffer": "^5.2.0"
-  },
-  "deprecated": false,
-  "description": "adds node crypto signing for browsers",
-  "devDependencies": {
-    "nyc": "^15.0.1",
-    "standard": "^14.3.3",
-    "tape": "^5.0.0"
-  },
-  "files": [
-    "browser",
-    "index.js",
-    "algos.js"
-  ],
-  "homepage": "https://github.com/crypto-browserify/browserify-sign#readme",
-  "license": "ISC",
-  "main": "index.js",
-  "name": "browserify-sign",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/crypto-browserify/browserify-sign.git"
-  },
-  "scripts": {
-    "coverage": "nyc npm run unit",
-    "lint": "standard",
-    "test": "npm run lint && npm run unit",
-    "unit": "tape test/*.js"
-  },
-  "version": "4.2.1"
-}

+ 0 - 7
node_modules.bak/browserify-zlib/.npmignore

@@ -1,7 +0,0 @@
-node_modules
-.DS_Store
-
-*.log
-
-test/tmp
-test

+ 0 - 16
node_modules.bak/browserify-zlib/.travis.yml

@@ -1,16 +0,0 @@
-sudo: false
-language: node_js
-node_js:
-  - 6
-  - 8
-
-before_install:
-  - "export DISPLAY=:99.0"
-  - "sh -e /etc/init.d/xvfb start"
-
-addons:
-  firefox: "latest"
-
-script:
-  - npm run lint
-  - npm test

+ 0 - 70
node_modules.bak/browserify-zlib/LICENSE

@@ -1,70 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014-2015 Devon Govett <devongovett@gmail.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.
-
-This project contains parts of Node.js.
-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 - 24
node_modules.bak/browserify-zlib/README.md

@@ -1,24 +0,0 @@
-# browserify-zlib
-
-[![Travis CI](https://travis-ci.org/devongovett/browserify-zlib.svg?branch=master)](https://travis-ci.org/devongovett/browserify-zlib)
-[![Dependency Status](https://david-dm.org/devongovett/browserify-zlib.svg?style=flat-square)](https://david-dm.org/devongovett/browserify-zlib) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
-
-## Description
-
-Emulates Node's [zlib](https://nodejs.org/api/zlib.html) module for the browser. Can be used as a drop in replacement with [Browserify](http://browserify.org) and [webpack](http://webpack.github.io/).
-
-The heavy lifting is done using [pako](https://github.com/nodeca/pako). The code in this module is modeled closely after the code in the source of Node core to get as much compatability as possible.
-
-## API
-
-https://nodejs.org/api/zlib.html
-
-## Not implemented
-
-The following options/methods are not supported because pako does not support them yet.
-
-* The `params` method
-
-## License
-
-MIT

+ 0 - 11
node_modules.bak/browserify-zlib/karma.conf.js

@@ -1,11 +0,0 @@
-module.exports = function (karma) {
-  karma.set({
-    frameworks: ['mocha'],
-    files: ['test/tmp/browserified.js'],
-    reporters: ['mocha-own'],
-    mochaOwnReporter: {
-      reporter: 'spec'
-    },
-    browsers: process.env.TRAVIS ? ['Firefox', 'PhantomJS'] : ['Chrome', 'PhantomJS']
-  })
-}

+ 0 - 409
node_modules.bak/browserify-zlib/lib/binding.js

@@ -1,409 +0,0 @@
-'use strict';
-/* eslint camelcase: "off" */
-
-var assert = require('assert');
-
-var Zstream = require('pako/lib/zlib/zstream');
-var zlib_deflate = require('pako/lib/zlib/deflate.js');
-var zlib_inflate = require('pako/lib/zlib/inflate.js');
-var constants = require('pako/lib/zlib/constants');
-
-for (var key in constants) {
-  exports[key] = constants[key];
-}
-
-// zlib modes
-exports.NONE = 0;
-exports.DEFLATE = 1;
-exports.INFLATE = 2;
-exports.GZIP = 3;
-exports.GUNZIP = 4;
-exports.DEFLATERAW = 5;
-exports.INFLATERAW = 6;
-exports.UNZIP = 7;
-
-var GZIP_HEADER_ID1 = 0x1f;
-var GZIP_HEADER_ID2 = 0x8b;
-
-/**
- * Emulate Node's zlib C++ layer for use by the JS layer in index.js
- */
-function Zlib(mode) {
-  if (typeof mode !== 'number' || mode < exports.DEFLATE || mode > exports.UNZIP) {
-    throw new TypeError('Bad argument');
-  }
-
-  this.dictionary = null;
-  this.err = 0;
-  this.flush = 0;
-  this.init_done = false;
-  this.level = 0;
-  this.memLevel = 0;
-  this.mode = mode;
-  this.strategy = 0;
-  this.windowBits = 0;
-  this.write_in_progress = false;
-  this.pending_close = false;
-  this.gzip_id_bytes_read = 0;
-}
-
-Zlib.prototype.close = function () {
-  if (this.write_in_progress) {
-    this.pending_close = true;
-    return;
-  }
-
-  this.pending_close = false;
-
-  assert(this.init_done, 'close before init');
-  assert(this.mode <= exports.UNZIP);
-
-  if (this.mode === exports.DEFLATE || this.mode === exports.GZIP || this.mode === exports.DEFLATERAW) {
-    zlib_deflate.deflateEnd(this.strm);
-  } else if (this.mode === exports.INFLATE || this.mode === exports.GUNZIP || this.mode === exports.INFLATERAW || this.mode === exports.UNZIP) {
-    zlib_inflate.inflateEnd(this.strm);
-  }
-
-  this.mode = exports.NONE;
-
-  this.dictionary = null;
-};
-
-Zlib.prototype.write = function (flush, input, in_off, in_len, out, out_off, out_len) {
-  return this._write(true, flush, input, in_off, in_len, out, out_off, out_len);
-};
-
-Zlib.prototype.writeSync = function (flush, input, in_off, in_len, out, out_off, out_len) {
-  return this._write(false, flush, input, in_off, in_len, out, out_off, out_len);
-};
-
-Zlib.prototype._write = function (async, flush, input, in_off, in_len, out, out_off, out_len) {
-  assert.equal(arguments.length, 8);
-
-  assert(this.init_done, 'write before init');
-  assert(this.mode !== exports.NONE, 'already finalized');
-  assert.equal(false, this.write_in_progress, 'write already in progress');
-  assert.equal(false, this.pending_close, 'close is pending');
-
-  this.write_in_progress = true;
-
-  assert.equal(false, flush === undefined, 'must provide flush value');
-
-  this.write_in_progress = true;
-
-  if (flush !== exports.Z_NO_FLUSH && flush !== exports.Z_PARTIAL_FLUSH && flush !== exports.Z_SYNC_FLUSH && flush !== exports.Z_FULL_FLUSH && flush !== exports.Z_FINISH && flush !== exports.Z_BLOCK) {
-    throw new Error('Invalid flush value');
-  }
-
-  if (input == null) {
-    input = Buffer.alloc(0);
-    in_len = 0;
-    in_off = 0;
-  }
-
-  this.strm.avail_in = in_len;
-  this.strm.input = input;
-  this.strm.next_in = in_off;
-  this.strm.avail_out = out_len;
-  this.strm.output = out;
-  this.strm.next_out = out_off;
-  this.flush = flush;
-
-  if (!async) {
-    // sync version
-    this._process();
-
-    if (this._checkError()) {
-      return this._afterSync();
-    }
-    return;
-  }
-
-  // async version
-  var self = this;
-  process.nextTick(function () {
-    self._process();
-    self._after();
-  });
-
-  return this;
-};
-
-Zlib.prototype._afterSync = function () {
-  var avail_out = this.strm.avail_out;
-  var avail_in = this.strm.avail_in;
-
-  this.write_in_progress = false;
-
-  return [avail_in, avail_out];
-};
-
-Zlib.prototype._process = function () {
-  var next_expected_header_byte = null;
-
-  // If the avail_out is left at 0, then it means that it ran out
-  // of room.  If there was avail_out left over, then it means
-  // that all of the input was consumed.
-  switch (this.mode) {
-    case exports.DEFLATE:
-    case exports.GZIP:
-    case exports.DEFLATERAW:
-      this.err = zlib_deflate.deflate(this.strm, this.flush);
-      break;
-    case exports.UNZIP:
-      if (this.strm.avail_in > 0) {
-        next_expected_header_byte = this.strm.next_in;
-      }
-
-      switch (this.gzip_id_bytes_read) {
-        case 0:
-          if (next_expected_header_byte === null) {
-            break;
-          }
-
-          if (this.strm.input[next_expected_header_byte] === GZIP_HEADER_ID1) {
-            this.gzip_id_bytes_read = 1;
-            next_expected_header_byte++;
-
-            if (this.strm.avail_in === 1) {
-              // The only available byte was already read.
-              break;
-            }
-          } else {
-            this.mode = exports.INFLATE;
-            break;
-          }
-
-        // fallthrough
-        case 1:
-          if (next_expected_header_byte === null) {
-            break;
-          }
-
-          if (this.strm.input[next_expected_header_byte] === GZIP_HEADER_ID2) {
-            this.gzip_id_bytes_read = 2;
-            this.mode = exports.GUNZIP;
-          } else {
-            // There is no actual difference between INFLATE and INFLATERAW
-            // (after initialization).
-            this.mode = exports.INFLATE;
-          }
-
-          break;
-        default:
-          throw new Error('invalid number of gzip magic number bytes read');
-      }
-
-    // fallthrough
-    case exports.INFLATE:
-    case exports.GUNZIP:
-    case exports.INFLATERAW:
-      this.err = zlib_inflate.inflate(this.strm, this.flush
-
-      // If data was encoded with dictionary
-      );if (this.err === exports.Z_NEED_DICT && this.dictionary) {
-        // Load it
-        this.err = zlib_inflate.inflateSetDictionary(this.strm, this.dictionary);
-        if (this.err === exports.Z_OK) {
-          // And try to decode again
-          this.err = zlib_inflate.inflate(this.strm, this.flush);
-        } else if (this.err === exports.Z_DATA_ERROR) {
-          // Both inflateSetDictionary() and inflate() return Z_DATA_ERROR.
-          // Make it possible for After() to tell a bad dictionary from bad
-          // input.
-          this.err = exports.Z_NEED_DICT;
-        }
-      }
-      while (this.strm.avail_in > 0 && this.mode === exports.GUNZIP && this.err === exports.Z_STREAM_END && this.strm.next_in[0] !== 0x00) {
-        // Bytes remain in input buffer. Perhaps this is another compressed
-        // member in the same archive, or just trailing garbage.
-        // Trailing zero bytes are okay, though, since they are frequently
-        // used for padding.
-
-        this.reset();
-        this.err = zlib_inflate.inflate(this.strm, this.flush);
-      }
-      break;
-    default:
-      throw new Error('Unknown mode ' + this.mode);
-  }
-};
-
-Zlib.prototype._checkError = function () {
-  // Acceptable error states depend on the type of zlib stream.
-  switch (this.err) {
-    case exports.Z_OK:
-    case exports.Z_BUF_ERROR:
-      if (this.strm.avail_out !== 0 && this.flush === exports.Z_FINISH) {
-        this._error('unexpected end of file');
-        return false;
-      }
-      break;
-    case exports.Z_STREAM_END:
-      // normal statuses, not fatal
-      break;
-    case exports.Z_NEED_DICT:
-      if (this.dictionary == null) {
-        this._error('Missing dictionary');
-      } else {
-        this._error('Bad dictionary');
-      }
-      return false;
-    default:
-      // something else.
-      this._error('Zlib error');
-      return false;
-  }
-
-  return true;
-};
-
-Zlib.prototype._after = function () {
-  if (!this._checkError()) {
-    return;
-  }
-
-  var avail_out = this.strm.avail_out;
-  var avail_in = this.strm.avail_in;
-
-  this.write_in_progress = false;
-
-  // call the write() cb
-  this.callback(avail_in, avail_out);
-
-  if (this.pending_close) {
-    this.close();
-  }
-};
-
-Zlib.prototype._error = function (message) {
-  if (this.strm.msg) {
-    message = this.strm.msg;
-  }
-  this.onerror(message, this.err
-
-  // no hope of rescue.
-  );this.write_in_progress = false;
-  if (this.pending_close) {
-    this.close();
-  }
-};
-
-Zlib.prototype.init = function (windowBits, level, memLevel, strategy, dictionary) {
-  assert(arguments.length === 4 || arguments.length === 5, 'init(windowBits, level, memLevel, strategy, [dictionary])');
-
-  assert(windowBits >= 8 && windowBits <= 15, 'invalid windowBits');
-  assert(level >= -1 && level <= 9, 'invalid compression level');
-
-  assert(memLevel >= 1 && memLevel <= 9, 'invalid memlevel');
-
-  assert(strategy === exports.Z_FILTERED || strategy === exports.Z_HUFFMAN_ONLY || strategy === exports.Z_RLE || strategy === exports.Z_FIXED || strategy === exports.Z_DEFAULT_STRATEGY, 'invalid strategy');
-
-  this._init(level, windowBits, memLevel, strategy, dictionary);
-  this._setDictionary();
-};
-
-Zlib.prototype.params = function () {
-  throw new Error('deflateParams Not supported');
-};
-
-Zlib.prototype.reset = function () {
-  this._reset();
-  this._setDictionary();
-};
-
-Zlib.prototype._init = function (level, windowBits, memLevel, strategy, dictionary) {
-  this.level = level;
-  this.windowBits = windowBits;
-  this.memLevel = memLevel;
-  this.strategy = strategy;
-
-  this.flush = exports.Z_NO_FLUSH;
-
-  this.err = exports.Z_OK;
-
-  if (this.mode === exports.GZIP || this.mode === exports.GUNZIP) {
-    this.windowBits += 16;
-  }
-
-  if (this.mode === exports.UNZIP) {
-    this.windowBits += 32;
-  }
-
-  if (this.mode === exports.DEFLATERAW || this.mode === exports.INFLATERAW) {
-    this.windowBits = -1 * this.windowBits;
-  }
-
-  this.strm = new Zstream();
-
-  switch (this.mode) {
-    case exports.DEFLATE:
-    case exports.GZIP:
-    case exports.DEFLATERAW:
-      this.err = zlib_deflate.deflateInit2(this.strm, this.level, exports.Z_DEFLATED, this.windowBits, this.memLevel, this.strategy);
-      break;
-    case exports.INFLATE:
-    case exports.GUNZIP:
-    case exports.INFLATERAW:
-    case exports.UNZIP:
-      this.err = zlib_inflate.inflateInit2(this.strm, this.windowBits);
-      break;
-    default:
-      throw new Error('Unknown mode ' + this.mode);
-  }
-
-  if (this.err !== exports.Z_OK) {
-    this._error('Init error');
-  }
-
-  this.dictionary = dictionary;
-
-  this.write_in_progress = false;
-  this.init_done = true;
-};
-
-Zlib.prototype._setDictionary = function () {
-  if (this.dictionary == null) {
-    return;
-  }
-
-  this.err = exports.Z_OK;
-
-  switch (this.mode) {
-    case exports.DEFLATE:
-    case exports.DEFLATERAW:
-      this.err = zlib_deflate.deflateSetDictionary(this.strm, this.dictionary);
-      break;
-    default:
-      break;
-  }
-
-  if (this.err !== exports.Z_OK) {
-    this._error('Failed to set dictionary');
-  }
-};
-
-Zlib.prototype._reset = function () {
-  this.err = exports.Z_OK;
-
-  switch (this.mode) {
-    case exports.DEFLATE:
-    case exports.DEFLATERAW:
-    case exports.GZIP:
-      this.err = zlib_deflate.deflateReset(this.strm);
-      break;
-    case exports.INFLATE:
-    case exports.INFLATERAW:
-    case exports.GUNZIP:
-      this.err = zlib_inflate.inflateReset(this.strm);
-      break;
-    default:
-      break;
-  }
-
-  if (this.err !== exports.Z_OK) {
-    this._error('Failed to reset stream');
-  }
-};
-
-exports.Zlib = Zlib;

+ 0 - 609
node_modules.bak/browserify-zlib/lib/index.js

@@ -1,609 +0,0 @@
-'use strict';
-
-var Buffer = require('buffer').Buffer;
-var Transform = require('stream').Transform;
-var binding = require('./binding');
-var util = require('util');
-var assert = require('assert').ok;
-var kMaxLength = require('buffer').kMaxLength;
-var kRangeErrorMessage = 'Cannot create final Buffer. It would be larger ' + 'than 0x' + kMaxLength.toString(16) + ' bytes';
-
-// zlib doesn't provide these, so kludge them in following the same
-// const naming scheme zlib uses.
-binding.Z_MIN_WINDOWBITS = 8;
-binding.Z_MAX_WINDOWBITS = 15;
-binding.Z_DEFAULT_WINDOWBITS = 15;
-
-// fewer than 64 bytes per chunk is stupid.
-// technically it could work with as few as 8, but even 64 bytes
-// is absurdly low.  Usually a MB or more is best.
-binding.Z_MIN_CHUNK = 64;
-binding.Z_MAX_CHUNK = Infinity;
-binding.Z_DEFAULT_CHUNK = 16 * 1024;
-
-binding.Z_MIN_MEMLEVEL = 1;
-binding.Z_MAX_MEMLEVEL = 9;
-binding.Z_DEFAULT_MEMLEVEL = 8;
-
-binding.Z_MIN_LEVEL = -1;
-binding.Z_MAX_LEVEL = 9;
-binding.Z_DEFAULT_LEVEL = binding.Z_DEFAULT_COMPRESSION;
-
-// expose all the zlib constants
-var bkeys = Object.keys(binding);
-for (var bk = 0; bk < bkeys.length; bk++) {
-  var bkey = bkeys[bk];
-  if (bkey.match(/^Z/)) {
-    Object.defineProperty(exports, bkey, {
-      enumerable: true, value: binding[bkey], writable: false
-    });
-  }
-}
-
-// translation table for return codes.
-var codes = {
-  Z_OK: binding.Z_OK,
-  Z_STREAM_END: binding.Z_STREAM_END,
-  Z_NEED_DICT: binding.Z_NEED_DICT,
-  Z_ERRNO: binding.Z_ERRNO,
-  Z_STREAM_ERROR: binding.Z_STREAM_ERROR,
-  Z_DATA_ERROR: binding.Z_DATA_ERROR,
-  Z_MEM_ERROR: binding.Z_MEM_ERROR,
-  Z_BUF_ERROR: binding.Z_BUF_ERROR,
-  Z_VERSION_ERROR: binding.Z_VERSION_ERROR
-};
-
-var ckeys = Object.keys(codes);
-for (var ck = 0; ck < ckeys.length; ck++) {
-  var ckey = ckeys[ck];
-  codes[codes[ckey]] = ckey;
-}
-
-Object.defineProperty(exports, 'codes', {
-  enumerable: true, value: Object.freeze(codes), writable: false
-});
-
-exports.Deflate = Deflate;
-exports.Inflate = Inflate;
-exports.Gzip = Gzip;
-exports.Gunzip = Gunzip;
-exports.DeflateRaw = DeflateRaw;
-exports.InflateRaw = InflateRaw;
-exports.Unzip = Unzip;
-
-exports.createDeflate = function (o) {
-  return new Deflate(o);
-};
-
-exports.createInflate = function (o) {
-  return new Inflate(o);
-};
-
-exports.createDeflateRaw = function (o) {
-  return new DeflateRaw(o);
-};
-
-exports.createInflateRaw = function (o) {
-  return new InflateRaw(o);
-};
-
-exports.createGzip = function (o) {
-  return new Gzip(o);
-};
-
-exports.createGunzip = function (o) {
-  return new Gunzip(o);
-};
-
-exports.createUnzip = function (o) {
-  return new Unzip(o);
-};
-
-// Convenience methods.
-// compress/decompress a string or buffer in one step.
-exports.deflate = function (buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Deflate(opts), buffer, callback);
-};
-
-exports.deflateSync = function (buffer, opts) {
-  return zlibBufferSync(new Deflate(opts), buffer);
-};
-
-exports.gzip = function (buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Gzip(opts), buffer, callback);
-};
-
-exports.gzipSync = function (buffer, opts) {
-  return zlibBufferSync(new Gzip(opts), buffer);
-};
-
-exports.deflateRaw = function (buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new DeflateRaw(opts), buffer, callback);
-};
-
-exports.deflateRawSync = function (buffer, opts) {
-  return zlibBufferSync(new DeflateRaw(opts), buffer);
-};
-
-exports.unzip = function (buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Unzip(opts), buffer, callback);
-};
-
-exports.unzipSync = function (buffer, opts) {
-  return zlibBufferSync(new Unzip(opts), buffer);
-};
-
-exports.inflate = function (buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Inflate(opts), buffer, callback);
-};
-
-exports.inflateSync = function (buffer, opts) {
-  return zlibBufferSync(new Inflate(opts), buffer);
-};
-
-exports.gunzip = function (buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Gunzip(opts), buffer, callback);
-};
-
-exports.gunzipSync = function (buffer, opts) {
-  return zlibBufferSync(new Gunzip(opts), buffer);
-};
-
-exports.inflateRaw = function (buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new InflateRaw(opts), buffer, callback);
-};
-
-exports.inflateRawSync = function (buffer, opts) {
-  return zlibBufferSync(new InflateRaw(opts), buffer);
-};
-
-function zlibBuffer(engine, buffer, callback) {
-  var buffers = [];
-  var nread = 0;
-
-  engine.on('error', onError);
-  engine.on('end', onEnd);
-
-  engine.end(buffer);
-  flow();
-
-  function flow() {
-    var chunk;
-    while (null !== (chunk = engine.read())) {
-      buffers.push(chunk);
-      nread += chunk.length;
-    }
-    engine.once('readable', flow);
-  }
-
-  function onError(err) {
-    engine.removeListener('end', onEnd);
-    engine.removeListener('readable', flow);
-    callback(err);
-  }
-
-  function onEnd() {
-    var buf;
-    var err = null;
-
-    if (nread >= kMaxLength) {
-      err = new RangeError(kRangeErrorMessage);
-    } else {
-      buf = Buffer.concat(buffers, nread);
-    }
-
-    buffers = [];
-    engine.close();
-    callback(err, buf);
-  }
-}
-
-function zlibBufferSync(engine, buffer) {
-  if (typeof buffer === 'string') buffer = Buffer.from(buffer);
-
-  if (!Buffer.isBuffer(buffer)) throw new TypeError('Not a string or buffer');
-
-  var flushFlag = engine._finishFlushFlag;
-
-  return engine._processChunk(buffer, flushFlag);
-}
-
-// generic zlib
-// minimal 2-byte header
-function Deflate(opts) {
-  if (!(this instanceof Deflate)) return new Deflate(opts);
-  Zlib.call(this, opts, binding.DEFLATE);
-}
-
-function Inflate(opts) {
-  if (!(this instanceof Inflate)) return new Inflate(opts);
-  Zlib.call(this, opts, binding.INFLATE);
-}
-
-// gzip - bigger header, same deflate compression
-function Gzip(opts) {
-  if (!(this instanceof Gzip)) return new Gzip(opts);
-  Zlib.call(this, opts, binding.GZIP);
-}
-
-function Gunzip(opts) {
-  if (!(this instanceof Gunzip)) return new Gunzip(opts);
-  Zlib.call(this, opts, binding.GUNZIP);
-}
-
-// raw - no header
-function DeflateRaw(opts) {
-  if (!(this instanceof DeflateRaw)) return new DeflateRaw(opts);
-  Zlib.call(this, opts, binding.DEFLATERAW);
-}
-
-function InflateRaw(opts) {
-  if (!(this instanceof InflateRaw)) return new InflateRaw(opts);
-  Zlib.call(this, opts, binding.INFLATERAW);
-}
-
-// auto-detect header.
-function Unzip(opts) {
-  if (!(this instanceof Unzip)) return new Unzip(opts);
-  Zlib.call(this, opts, binding.UNZIP);
-}
-
-function isValidFlushFlag(flag) {
-  return flag === binding.Z_NO_FLUSH || flag === binding.Z_PARTIAL_FLUSH || flag === binding.Z_SYNC_FLUSH || flag === binding.Z_FULL_FLUSH || flag === binding.Z_FINISH || flag === binding.Z_BLOCK;
-}
-
-// the Zlib class they all inherit from
-// This thing manages the queue of requests, and returns
-// true or false if there is anything in the queue when
-// you call the .write() method.
-
-function Zlib(opts, mode) {
-  var _this = this;
-
-  this._opts = opts = opts || {};
-  this._chunkSize = opts.chunkSize || exports.Z_DEFAULT_CHUNK;
-
-  Transform.call(this, opts);
-
-  if (opts.flush && !isValidFlushFlag(opts.flush)) {
-    throw new Error('Invalid flush flag: ' + opts.flush);
-  }
-  if (opts.finishFlush && !isValidFlushFlag(opts.finishFlush)) {
-    throw new Error('Invalid flush flag: ' + opts.finishFlush);
-  }
-
-  this._flushFlag = opts.flush || binding.Z_NO_FLUSH;
-  this._finishFlushFlag = typeof opts.finishFlush !== 'undefined' ? opts.finishFlush : binding.Z_FINISH;
-
-  if (opts.chunkSize) {
-    if (opts.chunkSize < exports.Z_MIN_CHUNK || opts.chunkSize > exports.Z_MAX_CHUNK) {
-      throw new Error('Invalid chunk size: ' + opts.chunkSize);
-    }
-  }
-
-  if (opts.windowBits) {
-    if (opts.windowBits < exports.Z_MIN_WINDOWBITS || opts.windowBits > exports.Z_MAX_WINDOWBITS) {
-      throw new Error('Invalid windowBits: ' + opts.windowBits);
-    }
-  }
-
-  if (opts.level) {
-    if (opts.level < exports.Z_MIN_LEVEL || opts.level > exports.Z_MAX_LEVEL) {
-      throw new Error('Invalid compression level: ' + opts.level);
-    }
-  }
-
-  if (opts.memLevel) {
-    if (opts.memLevel < exports.Z_MIN_MEMLEVEL || opts.memLevel > exports.Z_MAX_MEMLEVEL) {
-      throw new Error('Invalid memLevel: ' + opts.memLevel);
-    }
-  }
-
-  if (opts.strategy) {
-    if (opts.strategy != exports.Z_FILTERED && opts.strategy != exports.Z_HUFFMAN_ONLY && opts.strategy != exports.Z_RLE && opts.strategy != exports.Z_FIXED && opts.strategy != exports.Z_DEFAULT_STRATEGY) {
-      throw new Error('Invalid strategy: ' + opts.strategy);
-    }
-  }
-
-  if (opts.dictionary) {
-    if (!Buffer.isBuffer(opts.dictionary)) {
-      throw new Error('Invalid dictionary: it should be a Buffer instance');
-    }
-  }
-
-  this._handle = new binding.Zlib(mode);
-
-  var self = this;
-  this._hadError = false;
-  this._handle.onerror = function (message, errno) {
-    // there is no way to cleanly recover.
-    // continuing only obscures problems.
-    _close(self);
-    self._hadError = true;
-
-    var error = new Error(message);
-    error.errno = errno;
-    error.code = exports.codes[errno];
-    self.emit('error', error);
-  };
-
-  var level = exports.Z_DEFAULT_COMPRESSION;
-  if (typeof opts.level === 'number') level = opts.level;
-
-  var strategy = exports.Z_DEFAULT_STRATEGY;
-  if (typeof opts.strategy === 'number') strategy = opts.strategy;
-
-  this._handle.init(opts.windowBits || exports.Z_DEFAULT_WINDOWBITS, level, opts.memLevel || exports.Z_DEFAULT_MEMLEVEL, strategy, opts.dictionary);
-
-  this._buffer = Buffer.allocUnsafe(this._chunkSize);
-  this._offset = 0;
-  this._level = level;
-  this._strategy = strategy;
-
-  this.once('end', this.close);
-
-  Object.defineProperty(this, '_closed', {
-    get: function () {
-      return !_this._handle;
-    },
-    configurable: true,
-    enumerable: true
-  });
-}
-
-util.inherits(Zlib, Transform);
-
-Zlib.prototype.params = function (level, strategy, callback) {
-  if (level < exports.Z_MIN_LEVEL || level > exports.Z_MAX_LEVEL) {
-    throw new RangeError('Invalid compression level: ' + level);
-  }
-  if (strategy != exports.Z_FILTERED && strategy != exports.Z_HUFFMAN_ONLY && strategy != exports.Z_RLE && strategy != exports.Z_FIXED && strategy != exports.Z_DEFAULT_STRATEGY) {
-    throw new TypeError('Invalid strategy: ' + strategy);
-  }
-
-  if (this._level !== level || this._strategy !== strategy) {
-    var self = this;
-    this.flush(binding.Z_SYNC_FLUSH, function () {
-      assert(self._handle, 'zlib binding closed');
-      self._handle.params(level, strategy);
-      if (!self._hadError) {
-        self._level = level;
-        self._strategy = strategy;
-        if (callback) callback();
-      }
-    });
-  } else {
-    process.nextTick(callback);
-  }
-};
-
-Zlib.prototype.reset = function () {
-  assert(this._handle, 'zlib binding closed');
-  return this._handle.reset();
-};
-
-// This is the _flush function called by the transform class,
-// internally, when the last chunk has been written.
-Zlib.prototype._flush = function (callback) {
-  this._transform(Buffer.alloc(0), '', callback);
-};
-
-Zlib.prototype.flush = function (kind, callback) {
-  var _this2 = this;
-
-  var ws = this._writableState;
-
-  if (typeof kind === 'function' || kind === undefined && !callback) {
-    callback = kind;
-    kind = binding.Z_FULL_FLUSH;
-  }
-
-  if (ws.ended) {
-    if (callback) process.nextTick(callback);
-  } else if (ws.ending) {
-    if (callback) this.once('end', callback);
-  } else if (ws.needDrain) {
-    if (callback) {
-      this.once('drain', function () {
-        return _this2.flush(kind, callback);
-      });
-    }
-  } else {
-    this._flushFlag = kind;
-    this.write(Buffer.alloc(0), '', callback);
-  }
-};
-
-Zlib.prototype.close = function (callback) {
-  _close(this, callback);
-  process.nextTick(emitCloseNT, this);
-};
-
-function _close(engine, callback) {
-  if (callback) process.nextTick(callback);
-
-  // Caller may invoke .close after a zlib error (which will null _handle).
-  if (!engine._handle) return;
-
-  engine._handle.close();
-  engine._handle = null;
-}
-
-function emitCloseNT(self) {
-  self.emit('close');
-}
-
-Zlib.prototype._transform = function (chunk, encoding, cb) {
-  var flushFlag;
-  var ws = this._writableState;
-  var ending = ws.ending || ws.ended;
-  var last = ending && (!chunk || ws.length === chunk.length);
-
-  if (chunk !== null && !Buffer.isBuffer(chunk)) return cb(new Error('invalid input'));
-
-  if (!this._handle) return cb(new Error('zlib binding closed'));
-
-  // If it's the last chunk, or a final flush, we use the Z_FINISH flush flag
-  // (or whatever flag was provided using opts.finishFlush).
-  // If it's explicitly flushing at some other time, then we use
-  // Z_FULL_FLUSH. Otherwise, use Z_NO_FLUSH for maximum compression
-  // goodness.
-  if (last) flushFlag = this._finishFlushFlag;else {
-    flushFlag = this._flushFlag;
-    // once we've flushed the last of the queue, stop flushing and
-    // go back to the normal behavior.
-    if (chunk.length >= ws.length) {
-      this._flushFlag = this._opts.flush || binding.Z_NO_FLUSH;
-    }
-  }
-
-  this._processChunk(chunk, flushFlag, cb);
-};
-
-Zlib.prototype._processChunk = function (chunk, flushFlag, cb) {
-  var availInBefore = chunk && chunk.length;
-  var availOutBefore = this._chunkSize - this._offset;
-  var inOff = 0;
-
-  var self = this;
-
-  var async = typeof cb === 'function';
-
-  if (!async) {
-    var buffers = [];
-    var nread = 0;
-
-    var error;
-    this.on('error', function (er) {
-      error = er;
-    });
-
-    assert(this._handle, 'zlib binding closed');
-    do {
-      var res = this._handle.writeSync(flushFlag, chunk, // in
-      inOff, // in_off
-      availInBefore, // in_len
-      this._buffer, // out
-      this._offset, //out_off
-      availOutBefore); // out_len
-    } while (!this._hadError && callback(res[0], res[1]));
-
-    if (this._hadError) {
-      throw error;
-    }
-
-    if (nread >= kMaxLength) {
-      _close(this);
-      throw new RangeError(kRangeErrorMessage);
-    }
-
-    var buf = Buffer.concat(buffers, nread);
-    _close(this);
-
-    return buf;
-  }
-
-  assert(this._handle, 'zlib binding closed');
-  var req = this._handle.write(flushFlag, chunk, // in
-  inOff, // in_off
-  availInBefore, // in_len
-  this._buffer, // out
-  this._offset, //out_off
-  availOutBefore); // out_len
-
-  req.buffer = chunk;
-  req.callback = callback;
-
-  function callback(availInAfter, availOutAfter) {
-    // When the callback is used in an async write, the callback's
-    // context is the `req` object that was created. The req object
-    // is === this._handle, and that's why it's important to null
-    // out the values after they are done being used. `this._handle`
-    // can stay in memory longer than the callback and buffer are needed.
-    if (this) {
-      this.buffer = null;
-      this.callback = null;
-    }
-
-    if (self._hadError) return;
-
-    var have = availOutBefore - availOutAfter;
-    assert(have >= 0, 'have should not go down');
-
-    if (have > 0) {
-      var out = self._buffer.slice(self._offset, self._offset + have);
-      self._offset += have;
-      // serve some output to the consumer.
-      if (async) {
-        self.push(out);
-      } else {
-        buffers.push(out);
-        nread += out.length;
-      }
-    }
-
-    // exhausted the output buffer, or used all the input create a new one.
-    if (availOutAfter === 0 || self._offset >= self._chunkSize) {
-      availOutBefore = self._chunkSize;
-      self._offset = 0;
-      self._buffer = Buffer.allocUnsafe(self._chunkSize);
-    }
-
-    if (availOutAfter === 0) {
-      // Not actually done.  Need to reprocess.
-      // Also, update the availInBefore to the availInAfter value,
-      // so that if we have to hit it a third (fourth, etc.) time,
-      // it'll have the correct byte counts.
-      inOff += availInBefore - availInAfter;
-      availInBefore = availInAfter;
-
-      if (!async) return true;
-
-      var newReq = self._handle.write(flushFlag, chunk, inOff, availInBefore, self._buffer, self._offset, self._chunkSize);
-      newReq.callback = callback; // this same function
-      newReq.buffer = chunk;
-      return;
-    }
-
-    if (!async) return false;
-
-    // finished with the chunk.
-    cb();
-  }
-};
-
-util.inherits(Deflate, Zlib);
-util.inherits(Inflate, Zlib);
-util.inherits(Gzip, Zlib);
-util.inherits(Gunzip, Zlib);
-util.inherits(DeflateRaw, Zlib);
-util.inherits(InflateRaw, Zlib);
-util.inherits(Unzip, Zlib);

+ 0 - 92
node_modules.bak/browserify-zlib/package.json

@@ -1,92 +0,0 @@
-{
-  "_from": "browserify-zlib@^0.2.0",
-  "_id": "browserify-zlib@0.2.0",
-  "_inBundle": false,
-  "_integrity": "sha1-KGlFnZqjviRf6P4sofRuLn9U1z8=",
-  "_location": "/browserify-zlib",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "browserify-zlib@^0.2.0",
-    "name": "browserify-zlib",
-    "escapedName": "browserify-zlib",
-    "rawSpec": "^0.2.0",
-    "saveSpec": null,
-    "fetchSpec": "^0.2.0"
-  },
-  "_requiredBy": [
-    "/node-libs-browser"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/browserify-zlib/download/browserify-zlib-0.2.0.tgz",
-  "_shasum": "2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f",
-  "_spec": "browserify-zlib@^0.2.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\node-libs-browser",
-  "author": {
-    "name": "Devon Govett",
-    "email": "devongovett@gmail.com"
-  },
-  "babel": {
-    "plugins": [
-      "transform-es2015-arrow-functions",
-      "transform-es2015-block-scoping",
-      "transform-es2015-template-literals"
-    ]
-  },
-  "bugs": {
-    "url": "https://github.com/devongovett/browserify-zlib/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "pako": "~1.0.5"
-  },
-  "deprecated": false,
-  "description": "Full zlib module for the browser",
-  "devDependencies": {
-    "assert": "^1.4.1",
-    "babel-cli": "^6.24.1",
-    "babel-plugin-transform-es2015-arrow-functions": "^6.22.0",
-    "babel-plugin-transform-es2015-block-scoping": "^6.24.1",
-    "babel-plugin-transform-es2015-template-literals": "^6.22.0",
-    "babelify": "^7.3.0",
-    "brfs": "^1.4.3",
-    "browserify": "^14.4.0",
-    "exec-glob": "^1.2.2",
-    "glob": "^7.1.2",
-    "karma": "^1.7.0",
-    "karma-chrome-launcher": "^2.1.1",
-    "karma-firefox-launcher": "^1.0.1",
-    "karma-mocha": "^1.3.0",
-    "karma-mocha-own-reporter": "^1.1.2",
-    "karma-phantomjs-launcher": "^1.0.4",
-    "mocha": "^3.4.2",
-    "phantomjs-prebuilt": "^2.1.14",
-    "standard": "^10.0.2",
-    "watchify": "^3.9.0"
-  },
-  "directories": {
-    "test": "test"
-  },
-  "homepage": "https://github.com/devongovett/browserify-zlib",
-  "keywords": [
-    "zlib",
-    "browserify"
-  ],
-  "license": "MIT",
-  "main": "lib/index.js",
-  "name": "browserify-zlib",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/devongovett/browserify-zlib.git"
-  },
-  "scripts": {
-    "build": "babel src --out-dir lib",
-    "lint": "standard \"*.js\" \"!(node_modules|lib)/!(*test-zlib*|index).js\"",
-    "pretest": "npm run build",
-    "pretest:browser": "node test/build",
-    "test": "npm run test:node && npm run test:browser",
-    "test:browser": "karma start --single-run=true karma.conf.js",
-    "test:node": "node node_modules/exec-glob node \"test/test-*\""
-  },
-  "version": "0.2.0"
-}

+ 0 - 432
node_modules.bak/browserify-zlib/src/binding.js

@@ -1,432 +0,0 @@
-'use strict'
-/* eslint camelcase: "off" */
-
-var assert = require('assert')
-
-var Zstream = require('pako/lib/zlib/zstream')
-var zlib_deflate = require('pako/lib/zlib/deflate.js')
-var zlib_inflate = require('pako/lib/zlib/inflate.js')
-var constants = require('pako/lib/zlib/constants')
-
-for (var key in constants) {
-  exports[key] = constants[key]
-}
-
-// zlib modes
-exports.NONE = 0
-exports.DEFLATE = 1
-exports.INFLATE = 2
-exports.GZIP = 3
-exports.GUNZIP = 4
-exports.DEFLATERAW = 5
-exports.INFLATERAW = 6
-exports.UNZIP = 7
-
-var GZIP_HEADER_ID1 = 0x1f
-var GZIP_HEADER_ID2 = 0x8b
-
-/**
- * Emulate Node's zlib C++ layer for use by the JS layer in index.js
- */
-function Zlib (mode) {
-  if (typeof mode !== 'number' || mode < exports.DEFLATE || mode > exports.UNZIP) {
-    throw new TypeError('Bad argument')
-  }
-
-  this.dictionary = null
-  this.err = 0
-  this.flush = 0
-  this.init_done = false
-  this.level = 0
-  this.memLevel = 0
-  this.mode = mode
-  this.strategy = 0
-  this.windowBits = 0
-  this.write_in_progress = false
-  this.pending_close = false
-  this.gzip_id_bytes_read = 0
-}
-
-Zlib.prototype.close = function () {
-  if (this.write_in_progress) {
-    this.pending_close = true
-    return
-  }
-
-  this.pending_close = false
-
-  assert(this.init_done, 'close before init')
-  assert(this.mode <= exports.UNZIP)
-
-  if (this.mode === exports.DEFLATE || this.mode === exports.GZIP || this.mode === exports.DEFLATERAW) {
-    zlib_deflate.deflateEnd(this.strm)
-  } else if (this.mode === exports.INFLATE || this.mode === exports.GUNZIP ||
-      this.mode === exports.INFLATERAW || this.mode === exports.UNZIP) {
-    zlib_inflate.inflateEnd(this.strm)
-  }
-
-  this.mode = exports.NONE
-
-  this.dictionary = null
-}
-
-Zlib.prototype.write = function (flush, input, in_off, in_len, out, out_off, out_len) {
-  return this._write(true, flush, input, in_off, in_len, out, out_off, out_len)
-}
-
-Zlib.prototype.writeSync = function (flush, input, in_off, in_len, out, out_off, out_len) {
-  return this._write(false, flush, input, in_off, in_len, out, out_off, out_len)
-}
-
-Zlib.prototype._write = function (async, flush, input, in_off, in_len, out, out_off, out_len) {
-  assert.equal(arguments.length, 8)
-
-  assert(this.init_done, 'write before init')
-  assert(this.mode !== exports.NONE, 'already finalized')
-  assert.equal(false, this.write_in_progress, 'write already in progress')
-  assert.equal(false, this.pending_close, 'close is pending')
-
-  this.write_in_progress = true
-
-  assert.equal(false, flush === undefined, 'must provide flush value')
-
-  this.write_in_progress = true
-
-  if (flush !== exports.Z_NO_FLUSH &&
-    flush !== exports.Z_PARTIAL_FLUSH &&
-    flush !== exports.Z_SYNC_FLUSH &&
-    flush !== exports.Z_FULL_FLUSH &&
-    flush !== exports.Z_FINISH &&
-    flush !== exports.Z_BLOCK) {
-    throw new Error('Invalid flush value')
-  }
-
-  if (input == null) {
-    input = Buffer.alloc(0)
-    in_len = 0
-    in_off = 0
-  }
-
-  this.strm.avail_in = in_len
-  this.strm.input = input
-  this.strm.next_in = in_off
-  this.strm.avail_out = out_len
-  this.strm.output = out
-  this.strm.next_out = out_off
-  this.flush = flush
-
-  if (!async) {
-    // sync version
-    this._process()
-
-    if (this._checkError()) {
-      return this._afterSync()
-    }
-    return
-  }
-
-  // async version
-  var self = this
-  process.nextTick(function () {
-    self._process()
-    self._after()
-  })
-
-  return this
-}
-
-Zlib.prototype._afterSync = function () {
-  var avail_out = this.strm.avail_out
-  var avail_in = this.strm.avail_in
-
-  this.write_in_progress = false
-
-  return [avail_in, avail_out]
-}
-
-Zlib.prototype._process = function () {
-  var next_expected_header_byte = null
-
-  // If the avail_out is left at 0, then it means that it ran out
-  // of room.  If there was avail_out left over, then it means
-  // that all of the input was consumed.
-  switch (this.mode) {
-    case exports.DEFLATE:
-    case exports.GZIP:
-    case exports.DEFLATERAW:
-      this.err = zlib_deflate.deflate(this.strm, this.flush)
-      break
-    case exports.UNZIP:
-      if (this.strm.avail_in > 0) {
-        next_expected_header_byte = this.strm.next_in
-      }
-
-      switch (this.gzip_id_bytes_read) {
-        case 0:
-          if (next_expected_header_byte === null) {
-            break
-          }
-
-          if (this.strm.input[next_expected_header_byte] === GZIP_HEADER_ID1) {
-            this.gzip_id_bytes_read = 1
-            next_expected_header_byte++
-
-            if (this.strm.avail_in === 1) {
-              // The only available byte was already read.
-              break
-            }
-          } else {
-            this.mode = exports.INFLATE
-            break
-          }
-
-          // fallthrough
-        case 1:
-          if (next_expected_header_byte === null) {
-            break
-          }
-
-          if (this.strm.input[next_expected_header_byte] === GZIP_HEADER_ID2) {
-            this.gzip_id_bytes_read = 2
-            this.mode = exports.GUNZIP
-          } else {
-            // There is no actual difference between INFLATE and INFLATERAW
-            // (after initialization).
-            this.mode = exports.INFLATE
-          }
-
-          break
-        default:
-          throw new Error('invalid number of gzip magic number bytes read')
-      }
-
-      // fallthrough
-    case exports.INFLATE:
-    case exports.GUNZIP:
-    case exports.INFLATERAW:
-      this.err = zlib_inflate.inflate(this.strm, this.flush)
-
-      // If data was encoded with dictionary
-      if (this.err === exports.Z_NEED_DICT && this.dictionary) {
-        // Load it
-        this.err = zlib_inflate.inflateSetDictionary(this.strm, this.dictionary)
-        if (this.err === exports.Z_OK) {
-          // And try to decode again
-          this.err = zlib_inflate.inflate(this.strm, this.flush)
-        } else if (this.err === exports.Z_DATA_ERROR) {
-          // Both inflateSetDictionary() and inflate() return Z_DATA_ERROR.
-          // Make it possible for After() to tell a bad dictionary from bad
-          // input.
-          this.err = exports.Z_NEED_DICT
-        }
-      }
-      while (this.strm.avail_in > 0 &&
-             this.mode === exports.GUNZIP &&
-             this.err === exports.Z_STREAM_END &&
-             this.strm.next_in[0] !== 0x00) {
-        // Bytes remain in input buffer. Perhaps this is another compressed
-        // member in the same archive, or just trailing garbage.
-        // Trailing zero bytes are okay, though, since they are frequently
-        // used for padding.
-
-        this.reset()
-        this.err = zlib_inflate.inflate(this.strm, this.flush)
-      }
-      break
-    default:
-      throw new Error('Unknown mode ' + this.mode)
-  }
-}
-
-Zlib.prototype._checkError = function () {
-  // Acceptable error states depend on the type of zlib stream.
-  switch (this.err) {
-    case exports.Z_OK:
-    case exports.Z_BUF_ERROR:
-      if (this.strm.avail_out !== 0 && this.flush === exports.Z_FINISH) {
-        this._error('unexpected end of file')
-        return false
-      }
-      break
-    case exports.Z_STREAM_END:
-      // normal statuses, not fatal
-      break
-    case exports.Z_NEED_DICT:
-      if (this.dictionary == null) {
-        this._error('Missing dictionary')
-      } else {
-        this._error('Bad dictionary')
-      }
-      return false
-    default:
-      // something else.
-      this._error('Zlib error')
-      return false
-  }
-
-  return true
-}
-
-Zlib.prototype._after = function () {
-  if (!this._checkError()) {
-    return
-  }
-
-  var avail_out = this.strm.avail_out
-  var avail_in = this.strm.avail_in
-
-  this.write_in_progress = false
-
-  // call the write() cb
-  this.callback(avail_in, avail_out)
-
-  if (this.pending_close) {
-    this.close()
-  }
-}
-
-Zlib.prototype._error = function (message) {
-  if (this.strm.msg) {
-    message = this.strm.msg
-  }
-  this.onerror(message, this.err)
-
-  // no hope of rescue.
-  this.write_in_progress = false
-  if (this.pending_close) {
-    this.close()
-  }
-}
-
-Zlib.prototype.init = function (windowBits, level, memLevel, strategy, dictionary) {
-  assert(arguments.length === 4 || arguments.length === 5, 'init(windowBits, level, memLevel, strategy, [dictionary])')
-
-  assert(windowBits >= 8 && windowBits <= 15, 'invalid windowBits')
-  assert(level >= -1 && level <= 9, 'invalid compression level')
-
-  assert(memLevel >= 1 && memLevel <= 9, 'invalid memlevel')
-
-  assert(strategy === exports.Z_FILTERED ||
-         strategy === exports.Z_HUFFMAN_ONLY ||
-         strategy === exports.Z_RLE ||
-         strategy === exports.Z_FIXED ||
-         strategy === exports.Z_DEFAULT_STRATEGY, 'invalid strategy')
-
-  this._init(level, windowBits, memLevel, strategy, dictionary)
-  this._setDictionary()
-}
-
-Zlib.prototype.params = function () {
-  throw new Error('deflateParams Not supported')
-}
-
-Zlib.prototype.reset = function () {
-  this._reset()
-  this._setDictionary()
-}
-
-Zlib.prototype._init = function (level, windowBits, memLevel, strategy, dictionary) {
-  this.level = level
-  this.windowBits = windowBits
-  this.memLevel = memLevel
-  this.strategy = strategy
-
-  this.flush = exports.Z_NO_FLUSH
-
-  this.err = exports.Z_OK
-
-  if (this.mode === exports.GZIP || this.mode === exports.GUNZIP) {
-    this.windowBits += 16
-  }
-
-  if (this.mode === exports.UNZIP) {
-    this.windowBits += 32
-  }
-
-  if (this.mode === exports.DEFLATERAW || this.mode === exports.INFLATERAW) {
-    this.windowBits = -1 * this.windowBits
-  }
-
-  this.strm = new Zstream()
-
-  switch (this.mode) {
-    case exports.DEFLATE:
-    case exports.GZIP:
-    case exports.DEFLATERAW:
-      this.err = zlib_deflate.deflateInit2(
-        this.strm,
-        this.level,
-        exports.Z_DEFLATED,
-        this.windowBits,
-        this.memLevel,
-        this.strategy
-      )
-      break
-    case exports.INFLATE:
-    case exports.GUNZIP:
-    case exports.INFLATERAW:
-    case exports.UNZIP:
-      this.err = zlib_inflate.inflateInit2(
-        this.strm,
-        this.windowBits
-      )
-      break
-    default:
-      throw new Error('Unknown mode ' + this.mode)
-  }
-
-  if (this.err !== exports.Z_OK) {
-    this._error('Init error')
-  }
-
-  this.dictionary = dictionary
-
-  this.write_in_progress = false
-  this.init_done = true
-}
-
-Zlib.prototype._setDictionary = function () {
-  if (this.dictionary == null) {
-    return
-  }
-
-  this.err = exports.Z_OK
-
-  switch (this.mode) {
-    case exports.DEFLATE:
-    case exports.DEFLATERAW:
-      this.err = zlib_deflate.deflateSetDictionary(this.strm, this.dictionary)
-      break
-    default:
-      break
-  }
-
-  if (this.err !== exports.Z_OK) {
-    this._error('Failed to set dictionary')
-  }
-}
-
-Zlib.prototype._reset = function () {
-  this.err = exports.Z_OK
-
-  switch (this.mode) {
-    case exports.DEFLATE:
-    case exports.DEFLATERAW:
-    case exports.GZIP:
-      this.err = zlib_deflate.deflateReset(this.strm)
-      break
-    case exports.INFLATE:
-    case exports.INFLATERAW:
-    case exports.GUNZIP:
-      this.err = zlib_inflate.inflateReset(this.strm)
-      break
-    default:
-      break
-  }
-
-  if (this.err !== exports.Z_OK) {
-    this._error('Failed to reset stream')
-  }
-}
-
-exports.Zlib = Zlib

+ 0 - 650
node_modules.bak/browserify-zlib/src/index.js

@@ -1,650 +0,0 @@
-'use strict';
-
-const Buffer = require('buffer').Buffer;
-const Transform = require('stream').Transform;
-const binding = require('./binding');
-const util = require('util');
-const assert = require('assert').ok;
-const kMaxLength = require('buffer').kMaxLength;
-const kRangeErrorMessage = 'Cannot create final Buffer. It would be larger ' +
-                           'than 0x' + kMaxLength.toString(16) + ' bytes';
-
-// zlib doesn't provide these, so kludge them in following the same
-// const naming scheme zlib uses.
-binding.Z_MIN_WINDOWBITS = 8;
-binding.Z_MAX_WINDOWBITS = 15;
-binding.Z_DEFAULT_WINDOWBITS = 15;
-
-// fewer than 64 bytes per chunk is stupid.
-// technically it could work with as few as 8, but even 64 bytes
-// is absurdly low.  Usually a MB or more is best.
-binding.Z_MIN_CHUNK = 64;
-binding.Z_MAX_CHUNK = Infinity;
-binding.Z_DEFAULT_CHUNK = (16 * 1024);
-
-binding.Z_MIN_MEMLEVEL = 1;
-binding.Z_MAX_MEMLEVEL = 9;
-binding.Z_DEFAULT_MEMLEVEL = 8;
-
-binding.Z_MIN_LEVEL = -1;
-binding.Z_MAX_LEVEL = 9;
-binding.Z_DEFAULT_LEVEL = binding.Z_DEFAULT_COMPRESSION;
-
-// expose all the zlib constants
-const bkeys = Object.keys(binding);
-for (var bk = 0; bk < bkeys.length; bk++) {
-  var bkey = bkeys[bk];
-  if (bkey.match(/^Z/)) {
-    Object.defineProperty(exports, bkey, {
-      enumerable: true, value: binding[bkey], writable: false
-    });
-  }
-}
-
-// translation table for return codes.
-const codes = {
-  Z_OK: binding.Z_OK,
-  Z_STREAM_END: binding.Z_STREAM_END,
-  Z_NEED_DICT: binding.Z_NEED_DICT,
-  Z_ERRNO: binding.Z_ERRNO,
-  Z_STREAM_ERROR: binding.Z_STREAM_ERROR,
-  Z_DATA_ERROR: binding.Z_DATA_ERROR,
-  Z_MEM_ERROR: binding.Z_MEM_ERROR,
-  Z_BUF_ERROR: binding.Z_BUF_ERROR,
-  Z_VERSION_ERROR: binding.Z_VERSION_ERROR
-};
-
-const ckeys = Object.keys(codes);
-for (var ck = 0; ck < ckeys.length; ck++) {
-  var ckey = ckeys[ck];
-  codes[codes[ckey]] = ckey;
-}
-
-Object.defineProperty(exports, 'codes', {
-  enumerable: true, value: Object.freeze(codes), writable: false
-});
-
-exports.Deflate = Deflate;
-exports.Inflate = Inflate;
-exports.Gzip = Gzip;
-exports.Gunzip = Gunzip;
-exports.DeflateRaw = DeflateRaw;
-exports.InflateRaw = InflateRaw;
-exports.Unzip = Unzip;
-
-exports.createDeflate = function(o) {
-  return new Deflate(o);
-};
-
-exports.createInflate = function(o) {
-  return new Inflate(o);
-};
-
-exports.createDeflateRaw = function(o) {
-  return new DeflateRaw(o);
-};
-
-exports.createInflateRaw = function(o) {
-  return new InflateRaw(o);
-};
-
-exports.createGzip = function(o) {
-  return new Gzip(o);
-};
-
-exports.createGunzip = function(o) {
-  return new Gunzip(o);
-};
-
-exports.createUnzip = function(o) {
-  return new Unzip(o);
-};
-
-
-// Convenience methods.
-// compress/decompress a string or buffer in one step.
-exports.deflate = function(buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Deflate(opts), buffer, callback);
-};
-
-exports.deflateSync = function(buffer, opts) {
-  return zlibBufferSync(new Deflate(opts), buffer);
-};
-
-exports.gzip = function(buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Gzip(opts), buffer, callback);
-};
-
-exports.gzipSync = function(buffer, opts) {
-  return zlibBufferSync(new Gzip(opts), buffer);
-};
-
-exports.deflateRaw = function(buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new DeflateRaw(opts), buffer, callback);
-};
-
-exports.deflateRawSync = function(buffer, opts) {
-  return zlibBufferSync(new DeflateRaw(opts), buffer);
-};
-
-exports.unzip = function(buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Unzip(opts), buffer, callback);
-};
-
-exports.unzipSync = function(buffer, opts) {
-  return zlibBufferSync(new Unzip(opts), buffer);
-};
-
-exports.inflate = function(buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Inflate(opts), buffer, callback);
-};
-
-exports.inflateSync = function(buffer, opts) {
-  return zlibBufferSync(new Inflate(opts), buffer);
-};
-
-exports.gunzip = function(buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new Gunzip(opts), buffer, callback);
-};
-
-exports.gunzipSync = function(buffer, opts) {
-  return zlibBufferSync(new Gunzip(opts), buffer);
-};
-
-exports.inflateRaw = function(buffer, opts, callback) {
-  if (typeof opts === 'function') {
-    callback = opts;
-    opts = {};
-  }
-  return zlibBuffer(new InflateRaw(opts), buffer, callback);
-};
-
-exports.inflateRawSync = function(buffer, opts) {
-  return zlibBufferSync(new InflateRaw(opts), buffer);
-};
-
-function zlibBuffer(engine, buffer, callback) {
-  var buffers = [];
-  var nread = 0;
-
-  engine.on('error', onError);
-  engine.on('end', onEnd);
-
-  engine.end(buffer);
-  flow();
-
-  function flow() {
-    var chunk;
-    while (null !== (chunk = engine.read())) {
-      buffers.push(chunk);
-      nread += chunk.length;
-    }
-    engine.once('readable', flow);
-  }
-
-  function onError(err) {
-    engine.removeListener('end', onEnd);
-    engine.removeListener('readable', flow);
-    callback(err);
-  }
-
-  function onEnd() {
-    var buf;
-    var err = null;
-
-    if (nread >= kMaxLength) {
-      err = new RangeError(kRangeErrorMessage);
-    } else {
-      buf = Buffer.concat(buffers, nread);
-    }
-
-    buffers = [];
-    engine.close();
-    callback(err, buf);
-  }
-}
-
-function zlibBufferSync(engine, buffer) {
-  if (typeof buffer === 'string')
-    buffer = Buffer.from(buffer);
-
-  if (!Buffer.isBuffer(buffer))
-    throw new TypeError('Not a string or buffer');
-
-  var flushFlag = engine._finishFlushFlag;
-
-  return engine._processChunk(buffer, flushFlag);
-}
-
-// generic zlib
-// minimal 2-byte header
-function Deflate(opts) {
-  if (!(this instanceof Deflate)) return new Deflate(opts);
-  Zlib.call(this, opts, binding.DEFLATE);
-}
-
-function Inflate(opts) {
-  if (!(this instanceof Inflate)) return new Inflate(opts);
-  Zlib.call(this, opts, binding.INFLATE);
-}
-
-
-// gzip - bigger header, same deflate compression
-function Gzip(opts) {
-  if (!(this instanceof Gzip)) return new Gzip(opts);
-  Zlib.call(this, opts, binding.GZIP);
-}
-
-function Gunzip(opts) {
-  if (!(this instanceof Gunzip)) return new Gunzip(opts);
-  Zlib.call(this, opts, binding.GUNZIP);
-}
-
-
-// raw - no header
-function DeflateRaw(opts) {
-  if (!(this instanceof DeflateRaw)) return new DeflateRaw(opts);
-  Zlib.call(this, opts, binding.DEFLATERAW);
-}
-
-function InflateRaw(opts) {
-  if (!(this instanceof InflateRaw)) return new InflateRaw(opts);
-  Zlib.call(this, opts, binding.INFLATERAW);
-}
-
-
-// auto-detect header.
-function Unzip(opts) {
-  if (!(this instanceof Unzip)) return new Unzip(opts);
-  Zlib.call(this, opts, binding.UNZIP);
-}
-
-function isValidFlushFlag(flag) {
-  return flag === binding.Z_NO_FLUSH ||
-         flag === binding.Z_PARTIAL_FLUSH ||
-         flag === binding.Z_SYNC_FLUSH ||
-         flag === binding.Z_FULL_FLUSH ||
-         flag === binding.Z_FINISH ||
-         flag === binding.Z_BLOCK;
-}
-
-// the Zlib class they all inherit from
-// This thing manages the queue of requests, and returns
-// true or false if there is anything in the queue when
-// you call the .write() method.
-
-function Zlib(opts, mode) {
-  this._opts = opts = opts || {};
-  this._chunkSize = opts.chunkSize || exports.Z_DEFAULT_CHUNK;
-
-  Transform.call(this, opts);
-
-  if (opts.flush && !isValidFlushFlag(opts.flush)) {
-    throw new Error('Invalid flush flag: ' + opts.flush);
-  }
-  if (opts.finishFlush && !isValidFlushFlag(opts.finishFlush)) {
-    throw new Error('Invalid flush flag: ' + opts.finishFlush);
-  }
-
-  this._flushFlag = opts.flush || binding.Z_NO_FLUSH;
-  this._finishFlushFlag = typeof opts.finishFlush !== 'undefined' ?
-    opts.finishFlush : binding.Z_FINISH;
-
-  if (opts.chunkSize) {
-    if (opts.chunkSize < exports.Z_MIN_CHUNK ||
-        opts.chunkSize > exports.Z_MAX_CHUNK) {
-      throw new Error('Invalid chunk size: ' + opts.chunkSize);
-    }
-  }
-
-  if (opts.windowBits) {
-    if (opts.windowBits < exports.Z_MIN_WINDOWBITS ||
-        opts.windowBits > exports.Z_MAX_WINDOWBITS) {
-      throw new Error('Invalid windowBits: ' + opts.windowBits);
-    }
-  }
-
-  if (opts.level) {
-    if (opts.level < exports.Z_MIN_LEVEL ||
-        opts.level > exports.Z_MAX_LEVEL) {
-      throw new Error('Invalid compression level: ' + opts.level);
-    }
-  }
-
-  if (opts.memLevel) {
-    if (opts.memLevel < exports.Z_MIN_MEMLEVEL ||
-        opts.memLevel > exports.Z_MAX_MEMLEVEL) {
-      throw new Error('Invalid memLevel: ' + opts.memLevel);
-    }
-  }
-
-  if (opts.strategy) {
-    if (opts.strategy != exports.Z_FILTERED &&
-        opts.strategy != exports.Z_HUFFMAN_ONLY &&
-        opts.strategy != exports.Z_RLE &&
-        opts.strategy != exports.Z_FIXED &&
-        opts.strategy != exports.Z_DEFAULT_STRATEGY) {
-      throw new Error('Invalid strategy: ' + opts.strategy);
-    }
-  }
-
-  if (opts.dictionary) {
-    if (!Buffer.isBuffer(opts.dictionary)) {
-      throw new Error('Invalid dictionary: it should be a Buffer instance');
-    }
-  }
-
-  this._handle = new binding.Zlib(mode);
-
-  var self = this;
-  this._hadError = false;
-  this._handle.onerror = function(message, errno) {
-    // there is no way to cleanly recover.
-    // continuing only obscures problems.
-    _close(self);
-    self._hadError = true;
-
-    var error = new Error(message);
-    error.errno = errno;
-    error.code = exports.codes[errno];
-    self.emit('error', error);
-  };
-
-  var level = exports.Z_DEFAULT_COMPRESSION;
-  if (typeof opts.level === 'number') level = opts.level;
-
-  var strategy = exports.Z_DEFAULT_STRATEGY;
-  if (typeof opts.strategy === 'number') strategy = opts.strategy;
-
-  this._handle.init(opts.windowBits || exports.Z_DEFAULT_WINDOWBITS,
-                    level,
-                    opts.memLevel || exports.Z_DEFAULT_MEMLEVEL,
-                    strategy,
-                    opts.dictionary);
-
-  this._buffer = Buffer.allocUnsafe(this._chunkSize);
-  this._offset = 0;
-  this._level = level;
-  this._strategy = strategy;
-
-  this.once('end', this.close);
-
-  Object.defineProperty(this, '_closed', {
-    get: () => { return !this._handle; },
-    configurable: true,
-    enumerable: true
-  });
-}
-
-util.inherits(Zlib, Transform);
-
-Zlib.prototype.params = function(level, strategy, callback) {
-  if (level < exports.Z_MIN_LEVEL ||
-      level > exports.Z_MAX_LEVEL) {
-    throw new RangeError('Invalid compression level: ' + level);
-  }
-  if (strategy != exports.Z_FILTERED &&
-      strategy != exports.Z_HUFFMAN_ONLY &&
-      strategy != exports.Z_RLE &&
-      strategy != exports.Z_FIXED &&
-      strategy != exports.Z_DEFAULT_STRATEGY) {
-    throw new TypeError('Invalid strategy: ' + strategy);
-  }
-
-  if (this._level !== level || this._strategy !== strategy) {
-    var self = this;
-    this.flush(binding.Z_SYNC_FLUSH, function() {
-      assert(self._handle, 'zlib binding closed');
-      self._handle.params(level, strategy);
-      if (!self._hadError) {
-        self._level = level;
-        self._strategy = strategy;
-        if (callback) callback();
-      }
-    });
-  } else {
-    process.nextTick(callback);
-  }
-};
-
-Zlib.prototype.reset = function() {
-  assert(this._handle, 'zlib binding closed');
-  return this._handle.reset();
-};
-
-// This is the _flush function called by the transform class,
-// internally, when the last chunk has been written.
-Zlib.prototype._flush = function(callback) {
-  this._transform(Buffer.alloc(0), '', callback);
-};
-
-Zlib.prototype.flush = function(kind, callback) {
-  var ws = this._writableState;
-
-  if (typeof kind === 'function' || (kind === undefined && !callback)) {
-    callback = kind;
-    kind = binding.Z_FULL_FLUSH;
-  }
-
-  if (ws.ended) {
-    if (callback)
-      process.nextTick(callback);
-  } else if (ws.ending) {
-    if (callback)
-      this.once('end', callback);
-  } else if (ws.needDrain) {
-    if (callback) {
-      this.once('drain', () => this.flush(kind, callback));
-    }
-  } else {
-    this._flushFlag = kind;
-    this.write(Buffer.alloc(0), '', callback);
-  }
-};
-
-Zlib.prototype.close = function(callback) {
-  _close(this, callback);
-  process.nextTick(emitCloseNT, this);
-};
-
-function _close(engine, callback) {
-  if (callback)
-    process.nextTick(callback);
-
-  // Caller may invoke .close after a zlib error (which will null _handle).
-  if (!engine._handle)
-    return;
-
-  engine._handle.close();
-  engine._handle = null;
-}
-
-function emitCloseNT(self) {
-  self.emit('close');
-}
-
-Zlib.prototype._transform = function(chunk, encoding, cb) {
-  var flushFlag;
-  var ws = this._writableState;
-  var ending = ws.ending || ws.ended;
-  var last = ending && (!chunk || ws.length === chunk.length);
-
-  if (chunk !== null && !Buffer.isBuffer(chunk))
-    return cb(new Error('invalid input'));
-
-  if (!this._handle)
-    return cb(new Error('zlib binding closed'));
-
-  // If it's the last chunk, or a final flush, we use the Z_FINISH flush flag
-  // (or whatever flag was provided using opts.finishFlush).
-  // If it's explicitly flushing at some other time, then we use
-  // Z_FULL_FLUSH. Otherwise, use Z_NO_FLUSH for maximum compression
-  // goodness.
-  if (last)
-    flushFlag = this._finishFlushFlag;
-  else {
-    flushFlag = this._flushFlag;
-    // once we've flushed the last of the queue, stop flushing and
-    // go back to the normal behavior.
-    if (chunk.length >= ws.length) {
-      this._flushFlag = this._opts.flush || binding.Z_NO_FLUSH;
-    }
-  }
-
-  this._processChunk(chunk, flushFlag, cb);
-};
-
-Zlib.prototype._processChunk = function(chunk, flushFlag, cb) {
-  var availInBefore = chunk && chunk.length;
-  var availOutBefore = this._chunkSize - this._offset;
-  var inOff = 0;
-
-  var self = this;
-
-  var async = typeof cb === 'function';
-
-  if (!async) {
-    var buffers = [];
-    var nread = 0;
-
-    var error;
-    this.on('error', function(er) {
-      error = er;
-    });
-
-    assert(this._handle, 'zlib binding closed');
-    do {
-      var res = this._handle.writeSync(flushFlag,
-                                       chunk, // in
-                                       inOff, // in_off
-                                       availInBefore, // in_len
-                                       this._buffer, // out
-                                       this._offset, //out_off
-                                       availOutBefore); // out_len
-    } while (!this._hadError && callback(res[0], res[1]));
-
-    if (this._hadError) {
-      throw error;
-    }
-
-    if (nread >= kMaxLength) {
-      _close(this);
-      throw new RangeError(kRangeErrorMessage);
-    }
-
-    var buf = Buffer.concat(buffers, nread);
-    _close(this);
-
-    return buf;
-  }
-
-  assert(this._handle, 'zlib binding closed');
-  var req = this._handle.write(flushFlag,
-                               chunk, // in
-                               inOff, // in_off
-                               availInBefore, // in_len
-                               this._buffer, // out
-                               this._offset, //out_off
-                               availOutBefore); // out_len
-
-  req.buffer = chunk;
-  req.callback = callback;
-
-  function callback(availInAfter, availOutAfter) {
-    // When the callback is used in an async write, the callback's
-    // context is the `req` object that was created. The req object
-    // is === this._handle, and that's why it's important to null
-    // out the values after they are done being used. `this._handle`
-    // can stay in memory longer than the callback and buffer are needed.
-    if (this) {
-      this.buffer = null;
-      this.callback = null;
-    }
-
-    if (self._hadError)
-      return;
-
-    var have = availOutBefore - availOutAfter;
-    assert(have >= 0, 'have should not go down');
-
-    if (have > 0) {
-      var out = self._buffer.slice(self._offset, self._offset + have);
-      self._offset += have;
-      // serve some output to the consumer.
-      if (async) {
-        self.push(out);
-      } else {
-        buffers.push(out);
-        nread += out.length;
-      }
-    }
-
-    // exhausted the output buffer, or used all the input create a new one.
-    if (availOutAfter === 0 || self._offset >= self._chunkSize) {
-      availOutBefore = self._chunkSize;
-      self._offset = 0;
-      self._buffer = Buffer.allocUnsafe(self._chunkSize);
-    }
-
-    if (availOutAfter === 0) {
-      // Not actually done.  Need to reprocess.
-      // Also, update the availInBefore to the availInAfter value,
-      // so that if we have to hit it a third (fourth, etc.) time,
-      // it'll have the correct byte counts.
-      inOff += (availInBefore - availInAfter);
-      availInBefore = availInAfter;
-
-      if (!async)
-        return true;
-
-      var newReq = self._handle.write(flushFlag,
-                                      chunk,
-                                      inOff,
-                                      availInBefore,
-                                      self._buffer,
-                                      self._offset,
-                                      self._chunkSize);
-      newReq.callback = callback; // this same function
-      newReq.buffer = chunk;
-      return;
-    }
-
-    if (!async)
-      return false;
-
-    // finished with the chunk.
-    cb();
-  }
-};
-
-util.inherits(Deflate, Zlib);
-util.inherits(Inflate, Zlib);
-util.inherits(Gzip, Zlib);
-util.inherits(Gunzip, Zlib);
-util.inherits(DeflateRaw, Zlib);
-util.inherits(InflateRaw, Zlib);
-util.inherits(Unzip, Zlib);

+ 0 - 20
node_modules.bak/browserslist/LICENSE

@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright 2014 Andrey Sitnik <andrey@sitnik.ru> 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 - 701
node_modules.bak/browserslist/README.md

@@ -1,701 +0,0 @@
-# Browserslist [![Cult Of Martians][cult-img]][cult]
-
-<img width="120" height="120" alt="Browserslist logo by Anton Lovchikov"
-     src="https://browserslist.github.io/browserslist/logo.svg" align="right">
-
-The config to share target browsers and Node.js versions between different
-front-end tools. It is used in:
-
-* [Autoprefixer]
-* [Babel]
-* [postcss-preset-env]
-* [eslint-plugin-compat]
-* [stylelint-no-unsupported-browser-features]
-* [postcss-normalize]
-* [obsolete-webpack-plugin]
-
-All tools will find target browsers automatically,
-when you add the following to `package.json`:
-
-```json
-  "browserslist": [
-    "defaults",
-    "not IE 11",
-    "maintained node versions"
-  ]
-```
-
-Or in `.browserslistrc` config:
-
-```yaml
-# Browsers that we support
-
-defaults
-not IE 11
-maintained node versions
-```
-
-Developers set their version lists using queries like `last 2 versions`
-to be free from updating versions manually.
-Browserslist will use [`caniuse-lite`] with [Can I Use] data for this queries.
-
-Browserslist will take queries from tool option,
-`browserslist` config, `.browserslistrc` config,
-`browserslist` section in `package.json` or environment variables.
-
-[cult-img]: https://cultofmartians.com/assets/badges/badge.svg
-[cult]: https://cultofmartians.com/done.html
-
-<a href="https://evilmartians.com/?utm_source=browserslist">
-  <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
-       alt="Sponsored by Evil Martians" width="236" height="54">
-</a>
-
-[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features
-[eslint-plugin-compat]:                      https://github.com/amilajack/eslint-plugin-compat
-[Browserslist Example]:                      https://github.com/browserslist/browserslist-example
-[postcss-preset-env]:                        https://github.com/jonathantneal/postcss-preset-env
-[postcss-normalize]:                         https://github.com/jonathantneal/postcss-normalize
-[`caniuse-lite`]:                            https://github.com/ben-eb/caniuse-lite
-[Autoprefixer]:                              https://github.com/postcss/autoprefixer
-[Can I Use]:                                 https://caniuse.com/
-[Babel]:                                     https://github.com/babel/babel/tree/master/packages/babel-preset-env
-[obsolete-webpack-plugin]:                   https://github.com/ElemeFE/obsolete-webpack-plugin
-
-## Table of Contents
-
-* [Tools](#tools)
-  * [Text Editors](#text-editors)
-* [Best Practices](#best-practices)
-* [Browsers Data Updating](#browsers-data-updating)
-* [Queries](#queries)
-  * [Query Composition](#query-composition)
-  * [Full List](#full-list)
-  * [Debug](#debug)
-  * [Browsers](#browsers)
-* [Config File](#config-file)
-  * [`package.json`](#packagejson)
-  * [`.browserslistrc`](#browserslistrc)
-* [Shareable Configs](#shareable-configs)
-* [Configuring for Different Environments](#configuring-for-different-environments)
-* [Custom Usage Data](#custom-usage-data)
-* [JS API](#js-api)
-* [Environment Variables](#environment-variables)
-* [Cache](#cache)
-* [Security Contact](#security-contact)
-* [For Enterprise](#for-enterprise)
-
-## Tools
-
-* [`browserl.ist`](https://browserl.ist/) is an online tool to check
-  what browsers will be selected by some query.
-* [`browserslist-ga`] and [`browserslist-ga-export`] download your website
-  browsers statistics to use it in `> 0.5% in my stats` query.
-* [`browserslist-useragent-regexp`] compiles Browserslist query to a RegExp
-  to test browser useragent.
-* [`browserslist-useragent-ruby`] is a Ruby library to checks browser
-  by user agent string to match Browserslist.
-* [`browserslist-browserstack`] runs BrowserStack tests for all browsers
-  in Browserslist config.
-* [`browserslist-adobe-analytics`] use Adobe Analytics data to target browsers.
-* [`caniuse-api`] returns browsers which support some specific feature.
-* Run `npx browserslist` in your project directory to see project’s
-  target browsers. This CLI tool is built-in and available in any project
-  with Autoprefixer.
-
-[`browserslist-useragent-regexp`]: https://github.com/browserslist/browserslist-useragent-regexp
-[`browserslist-adobe-analytics`]:  https://github.com/xeroxinteractive/browserslist-adobe-analytics
-[`browserslist-useragent-ruby`]:   https://github.com/browserslist/browserslist-useragent-ruby
-[`browserslist-browserstack`]:     https://github.com/xeroxinteractive/browserslist-browserstack
-[`browserslist-ga-export`]:        https://github.com/browserslist/browserslist-ga-export
-[`browserslist-useragent`]:        https://github.com/pastelsky/browserslist-useragent
-[`browserslist-ga`]:               https://github.com/browserslist/browserslist-ga
-[`caniuse-api`]:                   https://github.com/Nyalab/caniuse-api
-
-
-### Text Editors
-
-These extensions will add syntax highlighting for `.browserslistrc` files.
-
-* [VS Code](https://marketplace.visualstudio.com/items?itemName=webben.browserslist)
-* [Vim](https://github.com/browserslist/vim-browserslist)
-
-## Best Practices
-
-* There is a `defaults` query, which gives a reasonable configuration
-  for most users:
-
-  ```json
-    "browserslist": [
-      "defaults"
-    ]
-  ```
-
-* If you want to change the default set of browsers, we recommend combining
-  `last 2 versions`, `not dead` with a usage number like `> 0.2%`. This is
-  because `last n versions` on its own does not add popular old versions, while
-  only using a percentage above `0.2%` will in the long run make popular
-  browsers even more popular. We might run into a monopoly and stagnation
-  situation, as we had with Internet Explorer 6. Please use this setting
-  with caution.
-* Select browsers directly (`last 2 Chrome versions`) only if you are making
-  a web app for a kiosk with one browser. There are a lot of browsers
-  on the market. If you are making general web app you should respect
-  browsers diversity.
-* Don’t remove browsers just because you don’t know them. Opera Mini has
-  100 million users in Africa and it is more popular in the global market
-  than Microsoft Edge. Chinese QQ Browsers has more market share than Firefox
-  and desktop Safari combined.
-
-
-## Browsers Data Updating
-
-`npx browserslist@latest --update-db` updates `caniuse-lite` version
-in your npm, yarn or pnpm lock file.
-
-You need to do it regularly for two reasons:
-
-1. To use the latest browser’s versions and statistics in queries like
-   `last 2 versions` or `>1%`. For example, if you created your project
-   2 years ago and did not update your dependencies, `last 1 version`
-   will return 2 year old browsers.
-2. `caniuse-lite` deduplication: to synchronize version in different tools.
-
-> What is deduplication?
-
-Due to how npm architecture is setup, you may have a situation
-where you have multiple versions of a single dependency required.
-
-Imagine you begin a project, and you add `autoprefixer` as a dependency.
-npm looks for the latest `caniuse-lite` version (1.0.30000700) and adds it to
-`package-lock.json` under `autoprefixer` dependencies.
-
-A year later, you decide to add Babel. At this moment, we have a
-new version of `canuse-lite` (1.0.30000900). npm took the latest version
-and added it to your lock file under `@babel/preset-env` dependencies.
-
-Now your lock file looks like this:
-
-```ocaml
-autoprefixer 7.1.4
-  browserslist 3.1.1
-    caniuse-lite 1.0.30000700
-@babel/preset-env 7.10.0
-  browserslist 4.13.0
-    caniuse-lite 1.0.30000900
-```
-
-As you can see, we now have two versions of `caniuse-lite` installed.
-
-
-## Queries
-
-Browserslist will use browsers and Node.js versions query
-from one of these sources:
-
-1. `browserslist` key in `package.json` file in current or parent directories.
-   **We recommend this way.**
-2. `.browserslistrc` config file in current or parent directories.
-3. `browserslist` config file in current or parent directories.
-4. `BROWSERSLIST` environment variable.
-5. If the above methods did not produce a valid result
-   Browserslist will use defaults:
-   `> 0.5%, last 2 versions, Firefox ESR, not dead`.
-
-
-### Query Composition
-
-An `or` combiner can use the keyword `or` as well as `,`.
-`last 1 version or > 1%` is equal to `last 1 version, > 1%`.
-
-`and` query combinations are also supported to perform an
-intersection of all the previous queries:
-`last 1 version or chrome > 75 and > 1%` will select
-(`browser last version` or `Chrome since 76`) and `more than 1% marketshare`.
-
-There is 3 different ways to combine queries as depicted below. First you start
-with a single query and then we combine the queries to get our final list.
-
-Obviously you can *not* start with a `not` combiner, since there is no left-hand
-side query to combine it with. The left-hand is always resolved as `and`
-combiner even if `or` is used (this is an API implementation specificity).
-
-| Query combiner type | Illustration | Example |
-| ------------------- | :----------: | ------- |
-|`or`/`,` combiner <br> (union) | ![Union of queries](img/union.svg)  | `> .5% or last 2 versions` <br> `> .5%, last 2 versions` |
-| `and` combiner <br> (intersection) | ![intersection of queries](img/intersection.svg) | `> .5% and last 2 versions` |
-| `not` combiner <br> (relative complement) | ![Relative complement of queries](img/complement.svg) | All those three are equivalent to the first one <br> `> .5% and not last 2 versions` <br> `> .5% or not last 2 versions` <br> `> .5%, not last 2 versions` |
-
-_A quick way to test your query is to do `npx browserslist '> 0.5%, not IE 11'`
-in your terminal._
-
-### Full List
-
-You can specify the browser and Node.js versions by queries (case insensitive):
-
-* `defaults`: Browserslist’s default browsers
-  (`> 0.5%, last 2 versions, Firefox ESR, not dead`).
-* `> 5%`: browsers versions selected by global usage statistics.
-  `>=`, `<` and `<=` work too.
-  * `> 5% in US`: uses USA usage statistics.
-    It accepts [two-letter country code].
-  * `> 5% in alt-AS`: uses Asia region usage statistics.
-    List of all region codes can be found at [`caniuse-lite/data/regions`].
-  * `> 5% in my stats`: uses [custom usage data].
-  * `> 5% in browserslist-config-mycompany stats`: uses [custom usage data]
-    from `browserslist-config-mycompany/browserslist-stats.json`.
-  * `cover 99.5%`: most popular browsers that provide coverage.
-  * `cover 99.5% in US`: same as above, with [two-letter country code].
-  * `cover 99.5% in my stats`: uses [custom usage data].
-* `dead`: browsers without official support or updates for 24 months.
-  Right now it is `IE 10`, `IE_Mob 11`, `BlackBerry 10`, `BlackBerry 7`,
-  `Samsung 4` and `OperaMobile 12.1`.
-* `last 2 versions`: the last 2 versions for *each* browser.
-  * `last 2 Chrome versions`: the last 2 versions of Chrome browser.
-  * `last 2 major versions` or `last 2 iOS major versions`:
-    all minor/patch releases of last 2 major versions.
-* `node 10` and `node 10.4`: selects latest Node.js `10.x.x`
-  or `10.4.x` release.
-  * `current node`: Node.js version used by Browserslist right now.
-  * `maintained node versions`: all Node.js versions, which are [still maintained]
-    by Node.js Foundation.
-* `iOS 7`: the iOS browser version 7 directly.
-  * `Firefox > 20`: versions of Firefox newer than 20.
-    `>=`, `<` and `<=` work too. It also works with Node.js.
-  * `ie 6-8`: selects an inclusive range of versions.
-  * `Firefox ESR`: the latest [Firefox Extended Support Release].
-  * `PhantomJS 2.1` and `PhantomJS 1.9`: selects Safari versions similar
-    to PhantomJS runtime.
-* `extends browserslist-config-mycompany`: take queries from
-  `browserslist-config-mycompany` npm package.
-* `supports es6-module`: browsers with support for specific features.
-  `es6-module` here is the `feat` parameter at the URL of the [Can I Use]
-  page. A list of all available features can be found at
-  [`caniuse-lite/data/features`].
-* `browserslist config`: the browsers defined in Browserslist config. Useful
-  in Differential Serving to modify user’s config like
-  `browserslist config and supports es6-module`.
-* `since 2015` or `last 2 years`: all versions released since year 2015
-  (also `since 2015-03` and `since 2015-03-10`).
-* `unreleased versions` or `unreleased Chrome versions`:
-  alpha and beta versions.
-* `not ie <= 8`: exclude IE 8 and lower from previous queries.
-
-You can add `not ` to any query.
-
-[`caniuse-lite/data/regions`]: https://github.com/ben-eb/caniuse-lite/tree/master/data/regions
-[`caniuse-lite/data/features`]: https://github.com/ben-eb/caniuse-lite/tree/master/data/features
-[two-letter country code]:     https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
-[custom usage data]:           #custom-usage-data
-[still maintained]:            https://github.com/nodejs/Release
-[Can I Use]:                   https://caniuse.com/
-[Firefox Extended Support Release]: https://support.mozilla.org/en-US/kb/choosing-firefox-update-channel
-
-
-### Debug
-
-Run `npx browserslist` in project directory to see what browsers was selected
-by your queries.
-
-```sh
-$ npx browserslist
-and_chr 61
-and_ff 56
-and_qq 1.2
-and_uc 11.4
-android 56
-baidu 7.12
-bb 10
-chrome 62
-edge 16
-firefox 56
-ios_saf 11
-opera 48
-safari 11
-samsung 5
-```
-
-
-### Browsers
-
-Names are case insensitive:
-
-* `Android` for Android WebView.
-* `Baidu` for Baidu Browser.
-* `BlackBerry` or `bb` for Blackberry browser.
-* `Chrome` for Google Chrome.
-* `ChromeAndroid` or `and_chr` for Chrome for Android
-* `Edge` for Microsoft Edge.
-* `Electron` for Electron framework. It will be converted to Chrome version.
-* `Explorer` or `ie` for Internet Explorer.
-* `ExplorerMobile` or `ie_mob` for Internet Explorer Mobile.
-* `Firefox` or `ff` for Mozilla Firefox.
-* `FirefoxAndroid` or `and_ff` for Firefox for Android.
-* `iOS` or `ios_saf` for iOS Safari.
-* `Node` for Node.js.
-* `Opera` for Opera.
-* `OperaMini` or `op_mini` for Opera Mini.
-* `OperaMobile` or `op_mob` for Opera Mobile.
-* `QQAndroid` or `and_qq` for QQ Browser for Android.
-* `Safari` for desktop Safari.
-* `Samsung` for Samsung Internet.
-* `UCAndroid` or `and_uc` for UC Browser for Android.
-* `kaios` for KaiOS Browser.
-
-
-## Config File
-
-### `package.json`
-
-If you want to reduce config files in project root, you can specify
-browsers in `package.json` with `browserslist` key:
-
-```json
-{
-  "private": true,
-  "dependencies": {
-    "autoprefixer": "^6.5.4"
-  },
-  "browserslist": [
-    "last 1 version",
-    "> 1%",
-    "IE 10"
-  ]
-}
-```
-
-
-### `.browserslistrc`
-
-Separated Browserslist config should be named `.browserslistrc`
-and have browsers queries split by a new line.
-Each line is combined with the `or` combiner. Comments starts with `#` symbol:
-
-```yaml
-# Browsers that we support
-
-last 1 version
-> 1%
-IE 10 # sorry
-```
-
-Browserslist will check config in every directory in `path`.
-So, if tool process `app/styles/main.css`, you can put config to root,
-`app/` or `app/styles`.
-
-You can specify direct path in `BROWSERSLIST_CONFIG` environment variables.
-
-
-## Shareable Configs
-
-You can use the following query to reference an exported Browserslist config
-from another package:
-
-```json
-  "browserslist": [
-    "extends browserslist-config-mycompany"
-  ]
-```
-
-For security reasons, external configuration only supports packages that have
-the `browserslist-config-` prefix. npm scoped packages are also supported, by
-naming or prefixing the module with `@scope/browserslist-config`, such as
-`@scope/browserslist-config` or `@scope/browserslist-config-mycompany`.
-
-If you don’t accept Browserslist queries from users, you can disable the
-validation by using the or `BROWSERSLIST_DANGEROUS_EXTEND` environment variable.
-
-```sh
-BROWSERSLIST_DANGEROUS_EXTEND=1 npx webpack
-```
-
-Because this uses `npm`'s resolution, you can also reference specific files
-in a package:
-
-```json
-  "browserslist": [
-    "extends browserslist-config-mycompany/desktop",
-    "extends browserslist-config-mycompany/mobile"
-  ]
-```
-
-When writing a shared Browserslist package, just export an array.
-`browserslist-config-mycompany/index.js`:
-
-```js
-module.exports = [
-  'last 1 version',
-  '> 1%',
-  'ie 10'
-]
-```
-
-You can also include a `browserslist-stats.json` file as part of your shareable
-config at the root and query it using
-`> 5% in browserslist-config-mycompany stats`. It uses the same format
-as `extends` and the `dangerousExtend` property as above.
-
-You can export configs for different environments and select environment
-by `BROWSERSLIST_ENV` or `env` option in your tool:
-
-```js
-module.exports = {
-  development: [
-    'last 1 version'
-  ],
-  production: [
-    'last 1 version',
-    '> 1%',
-    'ie 10'
-  ]
-}
-```
-
-
-## Configuring for Different Environments
-
-You can also specify different browser queries for various environments.
-Browserslist will choose query according to `BROWSERSLIST_ENV` or `NODE_ENV`
-variables. If none of them is declared, Browserslist will firstly look
-for `production` queries and then use defaults.
-
-In `package.json`:
-
-```js
-  "browserslist": {
-    "production": [
-      "> 1%",
-      "ie 10"
-    ],
-    "modern": [
-      "last 1 chrome version",
-      "last 1 firefox version"
-    ],
-    "ssr": [
-      "node 12"
-    ]
-  }
-```
-
-In `.browserslistrc` config:
-
-```ini
-[production]
-> 1%
-ie 10
-
-[modern]
-last 1 chrome version
-last 1 firefox version
-
-[ssr]
-node 12
-```
-
-
-## Custom Usage Data
-
-If you have a website, you can query against the usage statistics of your site.
-[`browserslist-ga`] will ask access to Google Analytics and then generate
-`browserslist-stats.json`:
-
-```
-npx browserslist-ga
-```
-
-Or you can use [`browserslist-ga-export`] to convert Google Analytics data without giving a password for Google account.
-
-You can generate usage statistics file by any other method. File format should
-be like:
-
-```js
-{
-  "ie": {
-    "6": 0.01,
-    "7": 0.4,
-    "8": 1.5
-  },
-  "chrome": {
-    …
-  },
-  …
-}
-```
-
-Note that you can query against your custom usage data while also querying
-against global or regional data. For example, the query
-`> 1% in my stats, > 5% in US, 10%` is permitted.
-
-[`browserslist-ga-export`]: https://github.com/browserslist/browserslist-ga-export
-[`browserslist-ga`]:        https://github.com/browserslist/browserslist-ga
-[Can I Use]:                https://caniuse.com/
-
-
-## JS API
-
-```js
-const browserslist = require('browserslist')
-
-// Your CSS/JS build tool code
-function process (source, opts) {
-  const browsers = browserslist(opts.overrideBrowserslist, {
-    stats: opts.stats,
-    path:  opts.file,
-    env:   opts.env
-  })
-  // Your code to add features for selected browsers
-}
-```
-
-Queries can be a string `"> 1%, IE 10"`
-or an array `['> 1%', 'IE 10']`.
-
-If a query is missing, Browserslist will look for a config file.
-You can provide a `path` option (that can be a file) to find the config file
-relatively to it.
-
-Options:
-
-* `path`: file or a directory path to look for config file. Default is `.`.
-* `env`: what environment section use from config. Default is `production`.
-* `stats`: custom usage statistics data.
-* `config`: path to config if you want to set it manually.
-* `ignoreUnknownVersions`: do not throw on direct query (like `ie 12`).
-  Default is `false`.
-* `dangerousExtend`: Disable security checks for `extend` query.
-  Default is `false`.
-* `mobileToDesktop`: Use desktop browsers if Can I Use doesn’t have data
-  about this mobile version. For instance, Browserslist will return
-  `chrome 20` on `and_chr 20` query (Can I Use has only data only about
-  latest versions of mobile browsers). Default is `false`.
-
-For non-JS environment and debug purpose you can use CLI tool:
-
-```sh
-browserslist "> 1%, IE 10"
-```
-
-You can get total users coverage for selected browsers by JS API:
-
-```js
-browserslist.coverage(browserslist('> 1%'))
-//=> 81.4
-```
-
-```js
-browserslist.coverage(browserslist('> 1% in US'), 'US')
-//=> 83.1
-```
-
-```js
-browserslist.coverage(browserslist('> 1% in my stats'), 'my stats')
-//=> 83.1
-```
-
-```js
-browserslist.coverage(browserslist('> 1% in my stats', { stats }), stats)
-//=> 82.2
-```
-
-Or by CLI:
-
-```sh
-$ browserslist --coverage "> 1%"
-These browsers account for 81.4% of all users globally
-```
-
-```sh
-$ browserslist --coverage=US "> 1% in US"
-These browsers account for 83.1% of all users in the US
-```
-
-```sh
-$ browserslist --coverage "> 1% in my stats"
-These browsers account for 83.1% of all users in custom statistics
-```
-
-```sh
-$ browserslist --coverage "> 1% in my stats" --stats=./stats.json
-These browsers account for 83.1% of all users in custom statistics
-```
-
-
-## Environment Variables
-
-If a tool uses Browserslist inside, you can change the Browserslist settings
-with [environment variables]:
-
-* `BROWSERSLIST` with browsers queries.
-
-   ```sh
-  BROWSERSLIST="> 5%" npx webpack
-   ```
-
-* `BROWSERSLIST_CONFIG` with path to config file.
-
-   ```sh
-  BROWSERSLIST_CONFIG=./config/browserslist npx webpack
-   ```
-
-* `BROWSERSLIST_ENV` with environments string.
-
-   ```sh
-  BROWSERSLIST_ENV="development" npx webpack
-   ```
-
-* `BROWSERSLIST_STATS` with path to the custom usage data
-  for `> 1% in my stats` query.
-
-   ```sh
-  BROWSERSLIST_STATS=./config/usage_data.json npx webpack
-   ```
-
-* `BROWSERSLIST_DISABLE_CACHE` if you want to disable config reading cache.
-
-   ```sh
-  BROWSERSLIST_DISABLE_CACHE=1 npx webpack
-   ```
-
-* `BROWSERSLIST_DANGEROUS_EXTEND` to disable security shareable config
-  name check.
-
-   ```sh
-  BROWSERSLIST_DANGEROUS_EXTEND=1 npx webpack
-   ```
-
-[environment variables]: https://en.wikipedia.org/wiki/Environment_variable
-
-
-## Cache
-
-Browserslist caches the configuration it reads from `package.json` and
-`browserslist` files, as well as knowledge about the existence of files,
-for the duration of the hosting process.
-
-To clear these caches, use:
-
-```js
-browserslist.clearCaches()
-```
-
-To disable the caching altogether, set the `BROWSERSLIST_DISABLE_CACHE`
-environment variable.
-
-
-## Security Contact
-
-To report a security vulnerability, please use the [Tidelift security contact].
-Tidelift will coordinate the fix and disclosure.
-
-[Tidelift security contact]: https://tidelift.com/security
-
-
-## For Enterprise
-
-Available as part of the Tidelift Subscription.
-
-The maintainers of `browserslist` and thousands of other packages are working
-with Tidelift to deliver commercial support and maintenance for the open source
-dependencies you use to build your applications. Save time, reduce risk,
-and improve code health, while paying the maintainers of the exact dependencies
-you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-browserslist?utm_source=npm-browserslist&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

+ 0 - 46
node_modules.bak/browserslist/browser.js

@@ -1,46 +0,0 @@
-var BrowserslistError = require('./error')
-
-function noop () { }
-
-module.exports = {
-  loadQueries: function loadQueries () {
-    throw new BrowserslistError(
-      'Sharable configs are not supported in client-side build of Browserslist')
-  },
-
-  getStat: function getStat (opts) {
-    return opts.stats
-  },
-
-  loadConfig: function loadConfig (opts) {
-    if (opts.config) {
-      throw new BrowserslistError(
-        'Browserslist config are not supported in client-side build')
-    }
-  },
-
-  loadCountry: function loadCountry () {
-    throw new BrowserslistError(
-      'Country statistics are not supported ' +
-      'in client-side build of Browserslist')
-  },
-
-  loadFeature: function loadFeature () {
-    throw new BrowserslistError(
-      'Supports queries are not available in client-side build of Browserslist')
-  },
-
-  currentNode: function currentNode (resolve, context) {
-    return resolve(['maintained node versions'], context)[0]
-  },
-
-  parseConfig: noop,
-
-  readConfig: noop,
-
-  findConfig: noop,
-
-  clearCaches: noop,
-
-  oldDataWarning: noop
-}

+ 0 - 145
node_modules.bak/browserslist/cli.js

@@ -1,145 +0,0 @@
-#!/usr/bin/env node
-
-var fs = require('fs')
-
-var browserslist = require('./')
-var updateDb = require('./update-db')
-var pkg = require('./package.json')
-
-var args = process.argv.slice(2)
-
-var USAGE = 'Usage:\n' +
-            '  npx browserslist\n' +
-            '  npx browserslist "QUERIES"\n' +
-            '  npx browserslist --json "QUERIES"\n' +
-            '  npx browserslist --config="path/to/browserlist/file"\n' +
-            '  npx browserslist --coverage "QUERIES"\n' +
-            '  npx browserslist --coverage=US "QUERIES"\n' +
-            '  npx browserslist --coverage=US,RU,global "QUERIES"\n' +
-            '  npx browserslist --env="environment name defined in config"\n' +
-            '  npx browserslist --stats="path/to/browserlist/stats/file"\n' +
-            '  npx browserslist --mobile-to-desktop\n' +
-            '  npx browserslist --update-db'
-
-function isArg (arg) {
-  return args.some(function (str) {
-    return str === arg || str.indexOf(arg + '=') === 0
-  })
-}
-
-function error (msg) {
-  process.stderr.write('browserslist: ' + msg + '\n')
-  process.exit(1)
-}
-
-if (isArg('--help') || isArg('-h')) {
-  process.stdout.write(pkg.description + '.\n\n' + USAGE + '\n')
-} else if (isArg('--version') || isArg('-v')) {
-  process.stdout.write('browserslist ' + pkg.version + '\n')
-} else if (isArg('--update-db')) {
-  updateDb(function (str) {
-    process.stdout.write(str)
-  })
-} else {
-  var mode = 'browsers'
-  var opts = { }
-  var queries
-  var areas
-
-  for (var i = 0; i < args.length; i++) {
-    if (args[i][0] !== '-') {
-      queries = args[i].replace(/^["']|["']$/g, '')
-      continue
-    }
-
-    var arg = args[i].split('=')
-    var name = arg[0]
-    var value = arg[1]
-
-    if (value) value = value.replace(/^["']|["']$/g, '')
-
-    if (name === '--config' || name === '-b') {
-      opts.config = value
-    } else if (name === '--env' || name === '-e') {
-      opts.env = value
-    } else if (name === '--stats' || name === '-s') {
-      opts.stats = value
-    } else if (name === '--coverage' || name === '-c') {
-      if (mode !== 'json') mode = 'coverage'
-      if (value) {
-        areas = value.split(',')
-      } else {
-        areas = ['global']
-      }
-    } else if (name === '--json') {
-      mode = 'json'
-    } else if (name === '--mobile-to-desktop') {
-      opts.mobileToDesktop = true
-    } else {
-      error('Unknown arguments ' + args[i] + '.\n\n' + USAGE)
-    }
-  }
-
-  var browsers
-  try {
-    browsers = browserslist(queries, opts)
-  } catch (e) {
-    if (e.name === 'BrowserslistError') {
-      error(e.message)
-    } else {
-      throw e
-    }
-  }
-
-  var coverage
-  if (mode === 'browsers') {
-    browsers.forEach(function (browser) {
-      process.stdout.write(browser + '\n')
-    })
-  } else if (areas) {
-    coverage = areas.map(function (area) {
-      var stats
-      if (area !== 'global') {
-        stats = area
-      } else if (opts.stats) {
-        stats = JSON.parse(fs.readFileSync(opts.stats))
-      }
-      var result = browserslist.coverage(browsers, stats)
-      var round = Math.round(result * 100) / 100.0
-
-      return [area, round]
-    })
-
-    if (mode === 'coverage') {
-      var prefix = 'These browsers account for '
-      process.stdout.write(prefix)
-      coverage.forEach(function (data, index) {
-        var area = data[0]
-        var round = data[1]
-        var end = 'globally'
-        if (area && area !== 'global') {
-          end = 'in the ' + area.toUpperCase()
-        } else if (opts.stats) {
-          end = 'in custom statistics'
-        }
-
-        if (index !== 0) {
-          process.stdout.write(prefix.replace(/./g, ' '))
-        }
-
-        process.stdout.write(round + '% of all users ' + end + '\n')
-      })
-    }
-  }
-
-  if (mode === 'json') {
-    var data = { browsers: browsers }
-    if (coverage) {
-      data.coverage = coverage.reduce(function (object, j) {
-        object[j[0]] = j[1]
-        return object
-      }, { })
-    }
-    process.stdout.write(JSON.stringify(data, null, '  ') + '\n')
-  }
-}

+ 0 - 7
node_modules.bak/browserslist/error.d.ts

@@ -1,7 +0,0 @@
-declare class BrowserslistError extends Error {
-  constructor(message: any);
-  name: 'BrowserslistError';
-  browserslist: true;
-}
-
-export = BrowserslistError;

+ 0 - 12
node_modules.bak/browserslist/error.js

@@ -1,12 +0,0 @@
-function BrowserslistError (message) {
-  this.name = 'BrowserslistError'
-  this.message = message
-  this.browserslist = true
-  if (Error.captureStackTrace) {
-    Error.captureStackTrace(this, BrowserslistError)
-  }
-}
-
-BrowserslistError.prototype = Error.prototype
-
-module.exports = BrowserslistError

+ 0 - 172
node_modules.bak/browserslist/index.d.ts

@@ -1,172 +0,0 @@
-/**
- * Return array of browsers by selection queries.
- *
- * ```js
- * browserslist('IE >= 10, IE 8') //=> ['ie 11', 'ie 10', 'ie 8']
- * ```
- *
- * @param queries Browser queries.
- * @returns Array with browser names in Can I Use.
- */
-declare function browserslist (
-  queries?: string | readonly string[] | null,
-  opts?: browserslist.Options
-): string[]
-
-declare namespace browserslist {
-  interface Options {
-    /**
-     * Path to processed file. It will be used to find config files.
-     */
-    path?: string | false
-    /**
-     * Processing environment. It will be used to take right queries
-     * from config file.
-     */
-    env?: string
-    /**
-     * Custom browser usage statistics for "> 1% in my stats" query.
-     */
-    stats?: Stats | string
-    /**
-     * Path to config file with queries.
-     */
-    config?: string
-    /**
-     * Do not throw on unknown version in direct query.
-     */
-    ignoreUnknownVersions?: boolean
-    /**
-     * Disable security checks for extend query.
-     */
-    dangerousExtend?: boolean
-    /**
-     * Alias mobile browsers to the desktop version when Can I Use
-     * doesn’t have data about the specified version.
-     */
-    mobileToDesktop?: boolean
-  }
-
-  type Config = {
-    defaults: string[]
-    [section: string]: string[] | undefined
-  }
-
-  interface Stats {
-    [browser: string]: {
-      [version: string]: number
-    }
-  }
-
-  /**
-   * Browser names aliases.
-   */
-  let aliases: {
-    [alias: string]: string | undefined
-  }
-
-  /**
-   * Aliases to work with joined versions like `ios_saf 7.0-7.1`.
-   */
-  let versionAliases: {
-    [browser: string]:
-      | {
-          [version: string]: string | undefined
-        }
-      | undefined
-  }
-
-  /**
-   * Can I Use only provides a few versions for some browsers (e.g. `and_chr`).
-   *
-   * Fallback to a similar browser for unknown versions.
-   */
-  let desktopNames: {
-    [browser: string]: string | undefined
-  }
-
-  let data: {
-    [browser: string]:
-      | {
-          name: string
-          versions: string[]
-          released: string[]
-          releaseDate: {
-            [version: string]: number | undefined | null
-          }
-        }
-      | undefined
-  }
-
-  interface Usage {
-    [version: string]: number
-  }
-
-  let usage: {
-    global?: Usage
-    custom?: Usage | null
-    [country: string]: Usage | undefined | null
-  }
-
-  let cache: {
-    [feature: string]: {
-      [name: string]: 'y' | 'n'
-    }
-  }
-
-  /**
-   * Default browsers query
-   */
-  let defaults: readonly string[]
-
-  /**
-   * Which statistics should be used. Country code or custom statistics.
-   * Pass `"my stats"` to load statistics from `Browserslist` files.
-   */
-  type StatsOptions = string | 'my stats' | Stats | { dataByBrowser: Stats }
-
-  /**
-   * Return browsers market coverage.
-   *
-   * ```js
-   * browserslist.coverage(browserslist('> 1% in US'), 'US') //=> 83.1
-   * ```
-   *
-   * @param browsers Browsers names in Can I Use.
-   * @param stats Which statistics should be used.
-   * @returns Total market coverage for all selected browsers.
-   */
-  function coverage (browsers: readonly string[], stats?: StatsOptions): number
-
-  function clearCaches (): void
-
-  function parseConfig (string: string): Config
-
-  function readConfig (file: string): Config
-
-  function findConfig (...pathSegments: string[]): Config | undefined
-
-  interface LoadConfigOptions {
-    config?: string
-    path?: string
-    env?: string
-  }
-
-  function loadConfig (options: LoadConfigOptions): string[] | undefined
-}
-
-declare global {
-  namespace NodeJS {
-    interface ProcessEnv {
-      BROWSERSLIST?: string
-      BROWSERSLIST_CONFIG?: string
-      BROWSERSLIST_DANGEROUS_EXTEND?: string
-      BROWSERSLIST_DISABLE_CACHE?: string
-      BROWSERSLIST_ENV?: string
-      BROWSERSLIST_IGNORE_OLD_DATA?: string
-      BROWSERSLIST_STATS?: string
-    }
-  }
-}
-
-export = browserslist

File diff suppressed because it is too large
+ 0 - 1215
node_modules.bak/browserslist/index.js


+ 0 - 386
node_modules.bak/browserslist/node.js

@@ -1,386 +0,0 @@
-var feature = require('caniuse-lite/dist/unpacker/feature').default
-var region = require('caniuse-lite/dist/unpacker/region').default
-var path = require('path')
-var fs = require('fs')
-
-var BrowserslistError = require('./error')
-
-var IS_SECTION = /^\s*\[(.+)]\s*$/
-var CONFIG_PATTERN = /^browserslist-config-/
-var SCOPED_CONFIG__PATTERN = /@[^/]+\/browserslist-config(-|$|\/)/
-var TIME_TO_UPDATE_CANIUSE = 6 * 30 * 24 * 60 * 60 * 1000
-var FORMAT = 'Browserslist config should be a string or an array ' +
-             'of strings with browser queries'
-
-var dataTimeChecked = false
-var filenessCache = { }
-var configCache = { }
-function checkExtend (name) {
-  var use = ' Use `dangerousExtend` option to disable.'
-  if (!CONFIG_PATTERN.test(name) && !SCOPED_CONFIG__PATTERN.test(name)) {
-    throw new BrowserslistError(
-      'Browserslist config needs `browserslist-config-` prefix. ' + use)
-  }
-  if (name.replace(/^@[^/]+\//, '').indexOf('.') !== -1) {
-    throw new BrowserslistError(
-      '`.` not allowed in Browserslist config name. ' + use)
-  }
-  if (name.indexOf('node_modules') !== -1) {
-    throw new BrowserslistError(
-      '`node_modules` not allowed in Browserslist config.' + use)
-  }
-}
-
-function isFile (file) {
-  if (file in filenessCache) {
-    return filenessCache[file]
-  }
-  var result = fs.existsSync(file) && fs.statSync(file).isFile()
-  if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
-    filenessCache[file] = result
-  }
-  return result
-}
-
-function eachParent (file, callback) {
-  var dir = isFile(file) ? path.dirname(file) : file
-  var loc = path.resolve(dir)
-  do {
-    var result = callback(loc)
-    if (typeof result !== 'undefined') return result
-  } while (loc !== (loc = path.dirname(loc)))
-  return undefined
-}
-
-function check (section) {
-  if (Array.isArray(section)) {
-    for (var i = 0; i < section.length; i++) {
-      if (typeof section[i] !== 'string') {
-        throw new BrowserslistError(FORMAT)
-      }
-    }
-  } else if (typeof section !== 'string') {
-    throw new BrowserslistError(FORMAT)
-  }
-}
-
-function pickEnv (config, opts) {
-  if (typeof config !== 'object') return config
-
-  var name
-  if (typeof opts.env === 'string') {
-    name = opts.env
-  } else if (process.env.BROWSERSLIST_ENV) {
-    name = process.env.BROWSERSLIST_ENV
-  } else if (process.env.NODE_ENV) {
-    name = process.env.NODE_ENV
-  } else {
-    name = 'production'
-  }
-
-  return config[name] || config.defaults
-}
-
-function parsePackage (file) {
-  var config = JSON.parse(fs.readFileSync(file))
-  if (config.browserlist && !config.browserslist) {
-    throw new BrowserslistError(
-      '`browserlist` key instead of `browserslist` in ' + file
-    )
-  }
-  var list = config.browserslist
-  if (Array.isArray(list) || typeof list === 'string') {
-    list = { defaults: list }
-  }
-  for (var i in list) {
-    check(list[i])
-  }
-
-  return list
-}
-
-function latestReleaseTime (agents) {
-  var latest = 0
-  for (var name in agents) {
-    var dates = agents[name].releaseDate || { }
-    for (var key in dates) {
-      if (latest < dates[key]) {
-        latest = dates[key]
-      }
-    }
-  }
-  return latest * 1000
-}
-
-function normalizeStats (data, stats) {
-  if (stats && 'dataByBrowser' in stats) {
-    stats = stats.dataByBrowser
-  }
-
-  if (typeof stats !== 'object') return undefined
-
-  var normalized = { }
-  for (var i in stats) {
-    var versions = Object.keys(stats[i])
-    if (
-      versions.length === 1 &&
-      data[i] &&
-      data[i].versions.length === 1
-    ) {
-      var normal = data[i].versions[0]
-      normalized[i] = { }
-      normalized[i][normal] = stats[i][versions[0]]
-    } else {
-      normalized[i] = stats[i]
-    }
-  }
-
-  return normalized
-}
-
-function normalizeUsageData (usageData, data) {
-  for (var browser in usageData) {
-    var browserUsage = usageData[browser]
-    // eslint-disable-next-line max-len
-    // https://github.com/browserslist/browserslist/issues/431#issuecomment-565230615
-    // caniuse-db returns { 0: "percentage" } for `and_*` regional stats
-    if ('0' in browserUsage) {
-      var versions = data[browser].versions
-      browserUsage[versions[versions.length - 1]] = browserUsage[0]
-      delete browserUsage[0]
-    }
-  }
-}
-
-module.exports = {
-  loadQueries: function loadQueries (ctx, name) {
-    if (!ctx.dangerousExtend && !process.env.BROWSERSLIST_DANGEROUS_EXTEND) {
-      checkExtend(name)
-    }
-    // eslint-disable-next-line security/detect-non-literal-require
-    var queries = require(require.resolve(name, { paths: ['.'] }))
-    if (queries) {
-      if (Array.isArray(queries)) {
-        return queries
-      } else if (typeof queries === 'object') {
-        if (!queries.defaults) queries.defaults = []
-        return pickEnv(queries, ctx, name)
-      }
-    }
-    throw new BrowserslistError(
-      '`' + name + '` config exports not an array of queries' +
-      ' or an object of envs'
-    )
-  },
-
-  loadStat: function loadStat (ctx, name, data) {
-    if (!ctx.dangerousExtend && !process.env.BROWSERSLIST_DANGEROUS_EXTEND) {
-      checkExtend(name)
-    }
-    // eslint-disable-next-line security/detect-non-literal-require
-    var stats = require(
-      require.resolve(
-        path.join(name, 'browserslist-stats.json'),
-        { paths: ['.'] }
-      )
-    )
-    return normalizeStats(data, stats)
-  },
-
-  getStat: function getStat (opts, data) {
-    var stats
-    if (opts.stats) {
-      stats = opts.stats
-    } else if (process.env.BROWSERSLIST_STATS) {
-      stats = process.env.BROWSERSLIST_STATS
-    } else if (opts.path && path.resolve && fs.existsSync) {
-      stats = eachParent(opts.path, function (dir) {
-        var file = path.join(dir, 'browserslist-stats.json')
-        return isFile(file) ? file : undefined
-      })
-    }
-    if (typeof stats === 'string') {
-      try {
-        stats = JSON.parse(fs.readFileSync(stats))
-      } catch (e) {
-        throw new BrowserslistError('Can\'t read ' + stats)
-      }
-    }
-    return normalizeStats(data, stats)
-  },
-
-  loadConfig: function loadConfig (opts) {
-    if (process.env.BROWSERSLIST) {
-      return process.env.BROWSERSLIST
-    } else if (opts.config || process.env.BROWSERSLIST_CONFIG) {
-      var file = opts.config || process.env.BROWSERSLIST_CONFIG
-      if (path.basename(file) === 'package.json') {
-        return pickEnv(parsePackage(file), opts)
-      } else {
-        return pickEnv(module.exports.readConfig(file), opts)
-      }
-    } else if (opts.path) {
-      return pickEnv(module.exports.findConfig(opts.path), opts)
-    } else {
-      return undefined
-    }
-  },
-
-  loadCountry: function loadCountry (usage, country, data) {
-    var code = country.replace(/[^\w-]/g, '')
-    if (!usage[code]) {
-      // eslint-disable-next-line security/detect-non-literal-require
-      var compressed = require('caniuse-lite/data/regions/' + code + '.js')
-      var usageData = region(compressed)
-      normalizeUsageData(usageData, data)
-      usage[country] = { }
-      for (var i in usageData) {
-        for (var j in usageData[i]) {
-          usage[country][i + ' ' + j] = usageData[i][j]
-        }
-      }
-    }
-  },
-
-  loadFeature: function loadFeature (features, name) {
-    name = name.replace(/[^\w-]/g, '')
-    if (features[name]) return
-
-    // eslint-disable-next-line security/detect-non-literal-require
-    var compressed = require('caniuse-lite/data/features/' + name + '.js')
-    var stats = feature(compressed).stats
-    features[name] = { }
-    for (var i in stats) {
-      for (var j in stats[i]) {
-        features[name][i + ' ' + j] = stats[i][j]
-      }
-    }
-  },
-
-  parseConfig: function parseConfig (string) {
-    var result = { defaults: [] }
-    var sections = ['defaults']
-
-    string.toString()
-      .replace(/#[^\n]*/g, '')
-      .split(/\n|,/)
-      .map(function (line) {
-        return line.trim()
-      })
-      .filter(function (line) {
-        return line !== ''
-      })
-      .forEach(function (line) {
-        if (IS_SECTION.test(line)) {
-          sections = line.match(IS_SECTION)[1].trim().split(' ')
-          sections.forEach(function (section) {
-            if (result[section]) {
-              throw new BrowserslistError(
-                'Duplicate section ' + section + ' in Browserslist config'
-              )
-            }
-            result[section] = []
-          })
-        } else {
-          sections.forEach(function (section) {
-            result[section].push(line)
-          })
-        }
-      })
-
-    return result
-  },
-
-  readConfig: function readConfig (file) {
-    if (!isFile(file)) {
-      throw new BrowserslistError('Can\'t read ' + file + ' config')
-    }
-    return module.exports.parseConfig(fs.readFileSync(file))
-  },
-
-  findConfig: function findConfig (from) {
-    from = path.resolve(from)
-
-    var passed = []
-    var resolved = eachParent(from, function (dir) {
-      if (dir in configCache) {
-        return configCache[dir]
-      }
-
-      passed.push(dir)
-
-      var config = path.join(dir, 'browserslist')
-      var pkg = path.join(dir, 'package.json')
-      var rc = path.join(dir, '.browserslistrc')
-
-      var pkgBrowserslist
-      if (isFile(pkg)) {
-        try {
-          pkgBrowserslist = parsePackage(pkg)
-        } catch (e) {
-          if (e.name === 'BrowserslistError') throw e
-          console.warn(
-            '[Browserslist] Could not parse ' + pkg + '. Ignoring it.'
-          )
-        }
-      }
-
-      if (isFile(config) && pkgBrowserslist) {
-        throw new BrowserslistError(
-          dir + ' contains both browserslist and package.json with browsers'
-        )
-      } else if (isFile(rc) && pkgBrowserslist) {
-        throw new BrowserslistError(
-          dir + ' contains both .browserslistrc and package.json with browsers'
-        )
-      } else if (isFile(config) && isFile(rc)) {
-        throw new BrowserslistError(
-          dir + ' contains both .browserslistrc and browserslist'
-        )
-      } else if (isFile(config)) {
-        return module.exports.readConfig(config)
-      } else if (isFile(rc)) {
-        return module.exports.readConfig(rc)
-      } else {
-        return pkgBrowserslist
-      }
-    })
-    if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
-      passed.forEach(function (dir) {
-        configCache[dir] = resolved
-      })
-    }
-    return resolved
-  },
-
-  clearCaches: function clearCaches () {
-    dataTimeChecked = false
-    filenessCache = { }
-    configCache = { }
-
-    this.cache = { }
-  },
-
-  oldDataWarning: function oldDataWarning (agentsObj) {
-    if (dataTimeChecked) return
-    dataTimeChecked = true
-    if (process.env.BROWSERSLIST_IGNORE_OLD_DATA) return
-
-    var latest = latestReleaseTime(agentsObj)
-    var halfYearAgo = Date.now() - TIME_TO_UPDATE_CANIUSE
-
-    if (latest !== 0 && latest < halfYearAgo) {
-      console.warn(
-        'Browserslist: caniuse-lite is outdated. Please run:\n' +
-        'npx browserslist@latest --update-db\n' +
-        '\n' +
-        'Why you should do it regularly:\n' +
-        'https://github.com/browserslist/browserslist#browsers-data-updating'
-      )
-    }
-  },
-
-  currentNode: function currentNode () {
-    return 'node ' + process.versions.node
-  }
-}

+ 0 - 71
node_modules.bak/browserslist/package.json

@@ -1,71 +0,0 @@
-{
-  "_from": "browserslist@^4.14.5",
-  "_id": "browserslist@4.16.6",
-  "_inBundle": false,
-  "_integrity": "sha1-15ASd6WojlVO0wWxg+ybDAj2b6I=",
-  "_location": "/browserslist",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "browserslist@^4.14.5",
-    "name": "browserslist",
-    "escapedName": "browserslist",
-    "rawSpec": "^4.14.5",
-    "saveSpec": null,
-    "fetchSpec": "^4.14.5"
-  },
-  "_requiredBy": [
-    "/@babel/helper-compilation-targets",
-    "/core-js-compat"
-  ],
-  "_resolved": "https://registry.nlark.com/browserslist/download/browserslist-4.16.6.tgz?cache=0&sync_timestamp=1619789101558&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fbrowserslist%2Fdownload%2Fbrowserslist-4.16.6.tgz",
-  "_shasum": "d7901277a5a88e554ed305b183ec9b0c08f66fa2",
-  "_spec": "browserslist@^4.14.5",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\@babel\\helper-compilation-targets",
-  "author": {
-    "name": "Andrey Sitnik",
-    "email": "andrey@sitnik.ru"
-  },
-  "bin": {
-    "browserslist": "cli.js"
-  },
-  "browser": {
-    "./node.js": "./browser.js",
-    "path": false
-  },
-  "bugs": {
-    "url": "https://github.com/browserslist/browserslist/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {
-    "caniuse-lite": "^1.0.30001219",
-    "colorette": "^1.2.2",
-    "electron-to-chromium": "^1.3.723",
-    "escalade": "^3.1.1",
-    "node-releases": "^1.1.71"
-  },
-  "deprecated": false,
-  "description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",
-  "engines": {
-    "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
-  },
-  "funding": {
-    "type": "opencollective",
-    "url": "https://opencollective.com/browserslist"
-  },
-  "homepage": "https://github.com/browserslist/browserslist#readme",
-  "keywords": [
-    "caniuse",
-    "browsers",
-    "target"
-  ],
-  "license": "MIT",
-  "name": "browserslist",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/browserslist/browserslist.git"
-  },
-  "types": "./index.d.ts",
-  "version": "4.16.6"
-}

+ 0 - 296
node_modules.bak/browserslist/update-db.js

@@ -1,296 +0,0 @@
-var childProcess = require('child_process')
-var colorette = require('colorette')
-var escalade = require('escalade/sync')
-var path = require('path')
-var fs = require('fs')
-
-var BrowserslistError = require('./error')
-
-var red = colorette.red
-var bold = colorette.bold
-var green = colorette.green
-var yellow = colorette.yellow
-
-function detectLockfile () {
-  var packageDir = escalade('.', function (dir, names) {
-    return names.indexOf('package.json') !== -1 ? dir : ''
-  })
-
-  if (!packageDir) {
-    throw new BrowserslistError(
-      'Cannot find package.json. ' +
-      'Is this the right directory to run `npx browserslist --update-db` in?'
-    )
-  }
-
-  var lockfileNpm = path.join(packageDir, 'package-lock.json')
-  var lockfileShrinkwrap = path.join(packageDir, 'npm-shrinkwrap.json')
-  var lockfileYarn = path.join(packageDir, 'yarn.lock')
-  var lockfilePnpm = path.join(packageDir, 'pnpm-lock.yaml')
-
-  if (fs.existsSync(lockfilePnpm)) {
-    return { mode: 'pnpm', file: lockfilePnpm }
-  } else if (fs.existsSync(lockfileNpm)) {
-    return { mode: 'npm', file: lockfileNpm }
-  } else if (fs.existsSync(lockfileYarn)) {
-    return { mode: 'yarn', file: lockfileYarn }
-  } else if (fs.existsSync(lockfileShrinkwrap)) {
-    return { mode: 'npm', file: lockfileShrinkwrap }
-  }
-  throw new BrowserslistError(
-    'No lockfile found. Run "npm install", "yarn install" or "pnpm install"'
-  )
-}
-
-function getLatestInfo (lock) {
-  if (lock.mode === 'yarn') {
-    return JSON.parse(
-      childProcess.execSync('yarn info caniuse-lite --json').toString()
-    ).data
-  }
-  return JSON.parse(
-    childProcess.execSync('npm show caniuse-lite --json').toString()
-  )
-}
-
-function getBrowsersList () {
-  return childProcess.execSync('npx browserslist').toString()
-    .trim()
-    .split('\n')
-    .map(function (line) {
-      return line.trim().split(' ')
-    })
-    .reduce(function (result, entry) {
-      if (!result[entry[0]]) {
-        result[entry[0]] = []
-      }
-      result[entry[0]].push(entry[1])
-      return result
-    }, {})
-}
-
-function diffBrowsersLists (old, current) {
-  var browsers = Object.keys(old).concat(
-    Object.keys(current).filter(function (browser) {
-      return old[browser] === undefined
-    })
-  )
-  return browsers.map(function (browser) {
-    var oldVersions = old[browser] || []
-    var currentVersions = current[browser] || []
-    var intersection = oldVersions.filter(function (version) {
-      return currentVersions.indexOf(version) !== -1
-    })
-    var addedVersions = currentVersions.filter(function (version) {
-      return intersection.indexOf(version) === -1
-    })
-    var removedVersions = oldVersions.filter(function (version) {
-      return intersection.indexOf(version) === -1
-    })
-    return removedVersions.map(function (version) {
-      return red('- ' + browser + ' ' + version)
-    }).concat(addedVersions.map(function (version) {
-      return green('+ ' + browser + ' ' + version)
-    }))
-  })
-    .reduce(function (result, array) {
-      return result.concat(array)
-    }, [])
-    .join('\n')
-}
-
-function updateNpmLockfile (lock, latest) {
-  var metadata = { latest: latest, versions: [] }
-  var content = deletePackage(JSON.parse(lock.content), metadata)
-  metadata.content = JSON.stringify(content, null, '  ')
-  return metadata
-}
-
-function deletePackage (node, metadata) {
-  if (node.dependencies) {
-    if (node.dependencies['caniuse-lite']) {
-      var version = node.dependencies['caniuse-lite'].version
-      metadata.versions[version] = true
-      delete node.dependencies['caniuse-lite']
-    }
-    for (var i in node.dependencies) {
-      node.dependencies[i] = deletePackage(node.dependencies[i], metadata)
-    }
-  }
-  return node
-}
-
-var yarnVersionRe = new RegExp('version "(.*?)"')
-
-function updateYarnLockfile (lock, latest) {
-  var blocks = lock.content.split(/(\n{2,})/).map(function (block) {
-    return block.split('\n')
-  })
-  var versions = {}
-  blocks.forEach(function (lines) {
-    if (lines[0].indexOf('caniuse-lite@') !== -1) {
-      var match = yarnVersionRe.exec(lines[1])
-      versions[match[1]] = true
-      if (match[1] !== latest.version) {
-        lines[1] = lines[1].replace(
-          /version "[^"]+"/, 'version "' + latest.version + '"'
-        )
-        lines[2] = lines[2].replace(
-          /resolved "[^"]+"/, 'resolved "' + latest.dist.tarball + '"'
-        )
-        lines[3] = latest.dist.integrity ? lines[3].replace(
-          /integrity .+/, 'integrity ' + latest.dist.integrity
-        ) : ''
-      }
-    }
-  })
-  var content = blocks.map(function (lines) {
-    return lines.join('\n')
-  }).join('')
-  return { content: content, versions: versions }
-}
-
-function updatePnpmLockfile (lock, latest) {
-  var versions = {}
-  var lines = lock.content.split('\n')
-  var i
-  var j
-  var lineParts
-
-  for (i = 0; i < lines.length; i++) {
-    if (lines[i].indexOf('caniuse-lite:') >= 0) {
-      lineParts = lines[i].split(/:\s?/, 2)
-      versions[lineParts[1]] = true
-      lines[i] = lineParts[0] + ': ' + latest.version
-    } else if (lines[i].indexOf('/caniuse-lite') >= 0) {
-      lineParts = lines[i].split(/([/:])/)
-      for (j = 0; j < lineParts.length; j++) {
-        if (lineParts[j].indexOf('caniuse-lite') >= 0) {
-          versions[lineParts[j + 2]] = true
-          lineParts[j + 2] = latest.version
-          break
-        }
-      }
-      lines[i] = lineParts.join('')
-      for (i = i + 1; i < lines.length; i++) {
-        if (lines[i].indexOf('integrity: ') !== -1) {
-          lines[i] = lines[i].replace(
-            /integrity: .+/, 'integrity: ' + latest.dist.integrity
-          )
-        } else if (lines[i].indexOf(' /') !== -1) {
-          break
-        }
-      }
-    }
-  }
-  return { content: lines.join('\n'), versions: versions }
-}
-
-function updateLockfile (lock, latest) {
-  lock.content = fs.readFileSync(lock.file).toString()
-
-  if (lock.mode === 'npm') {
-    return updateNpmLockfile(lock, latest)
-  } else if (lock.mode === 'yarn') {
-    return updateYarnLockfile(lock, latest)
-  }
-  return updatePnpmLockfile(lock, latest)
-}
-
-module.exports = function updateDB (print) {
-  var lock = detectLockfile()
-  var latest = getLatestInfo(lock)
-  var browsersListRetrievalError
-  var oldBrowsersList
-  try {
-    oldBrowsersList = getBrowsersList()
-  } catch (e) {
-    browsersListRetrievalError = e
-  }
-
-  print(
-    'Latest version:     ' + bold(green(latest.version)) + '\n'
-  )
-
-  var lockfileData = updateLockfile(lock, latest)
-  var caniuseVersions = Object.keys(lockfileData.versions).sort()
-  if (caniuseVersions.length === 1 &&
-    caniuseVersions[0] === latest.version) {
-    print(
-      'Installed version:  ' + bold(green(latest.version)) + '\n' +
-      bold(green('caniuse-lite is up to date')) + '\n'
-    )
-    return
-  }
-
-  if (caniuseVersions.length === 0) {
-    caniuseVersions[0] = 'none'
-  }
-  print(
-    'Installed version' +
-    (caniuseVersions.length === 1 ? ':  ' : 's: ') +
-    bold(red(caniuseVersions.join(', '))) +
-    '\n' +
-    'Removing old caniuse-lite from lock file\n'
-  )
-  fs.writeFileSync(lock.file, lockfileData.content)
-
-  var install = lock.mode === 'yarn' ? 'yarn add -W' : lock.mode + ' install'
-  print(
-    'Installing new caniuse-lite version\n' +
-    yellow('$ ' + install + ' caniuse-lite') + '\n'
-  )
-  try {
-    childProcess.execSync(install + ' caniuse-lite')
-  } catch (e) /* istanbul ignore next */ {
-    print(
-      red(
-        '\n' +
-        e.stack + '\n\n' +
-        'Problem with `' + install + ' caniuse-lite` call. ' +
-        'Run it manually.\n'
-      )
-    )
-    process.exit(1)
-  }
-
-  var del = lock.mode === 'yarn' ? 'yarn remove -W' : lock.mode + ' uninstall'
-  print(
-    'Cleaning package.json dependencies from caniuse-lite\n' +
-    yellow('$ ' + del + ' caniuse-lite') + '\n'
-  )
-  childProcess.execSync(del + ' caniuse-lite')
-
-  print('caniuse-lite has been successfully updated\n')
-
-  var currentBrowsersList
-  if (!browsersListRetrievalError) {
-    try {
-      currentBrowsersList = getBrowsersList()
-    } catch (e) /* istanbul ignore next */ {
-      browsersListRetrievalError = e
-    }
-  }
-
-  if (browsersListRetrievalError) {
-    print(
-      red(
-        '\n' +
-        browsersListRetrievalError.stack + '\n\n' +
-        'Problem with browser list retrieval.\n' +
-        'Target browser changes won’t be shown.\n'
-      )
-    )
-  } else {
-    var targetBrowserChanges = diffBrowsersLists(
-      oldBrowsersList,
-      currentBrowsersList
-    )
-    if (targetBrowserChanges) {
-      print('\nTarget browser changes:\n')
-      print(targetBrowserChanges + '\n')
-    } else {
-      print('\n' + green('No target browser changes') + '\n')
-    }
-  }
-}

+ 0 - 21
node_modules.bak/buffer-from/LICENSE

@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2016, 2018 Linus Unnebäck
-
-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 - 69
node_modules.bak/buffer-from/index.js

@@ -1,69 +0,0 @@
-var toString = Object.prototype.toString
-
-var isModern = (
-  typeof Buffer.alloc === 'function' &&
-  typeof Buffer.allocUnsafe === 'function' &&
-  typeof Buffer.from === 'function'
-)
-
-function isArrayBuffer (input) {
-  return toString.call(input).slice(8, -1) === 'ArrayBuffer'
-}
-
-function fromArrayBuffer (obj, byteOffset, length) {
-  byteOffset >>>= 0
-
-  var maxLength = obj.byteLength - byteOffset
-
-  if (maxLength < 0) {
-    throw new RangeError("'offset' is out of bounds")
-  }
-
-  if (length === undefined) {
-    length = maxLength
-  } else {
-    length >>>= 0
-
-    if (length > maxLength) {
-      throw new RangeError("'length' is out of bounds")
-    }
-  }
-
-  return isModern
-    ? Buffer.from(obj.slice(byteOffset, byteOffset + length))
-    : new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length)))
-}
-
-function fromString (string, encoding) {
-  if (typeof encoding !== 'string' || encoding === '') {
-    encoding = 'utf8'
-  }
-
-  if (!Buffer.isEncoding(encoding)) {
-    throw new TypeError('"encoding" must be a valid string encoding')
-  }
-
-  return isModern
-    ? Buffer.from(string, encoding)
-    : new Buffer(string, encoding)
-}
-
-function bufferFrom (value, encodingOrOffset, length) {
-  if (typeof value === 'number') {
-    throw new TypeError('"value" argument must not be a number')
-  }
-
-  if (isArrayBuffer(value)) {
-    return fromArrayBuffer(value, encodingOrOffset, length)
-  }
-
-  if (typeof value === 'string') {
-    return fromString(value, encodingOrOffset)
-  }
-
-  return isModern
-    ? Buffer.from(value)
-    : new Buffer(value)
-}
-
-module.exports = bufferFrom

+ 0 - 53
node_modules.bak/buffer-from/package.json

@@ -1,53 +0,0 @@
-{
-  "_from": "buffer-from@^1.0.0",
-  "_id": "buffer-from@1.1.1",
-  "_inBundle": false,
-  "_integrity": "sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8=",
-  "_location": "/buffer-from",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "buffer-from@^1.0.0",
-    "name": "buffer-from",
-    "escapedName": "buffer-from",
-    "rawSpec": "^1.0.0",
-    "saveSpec": null,
-    "fetchSpec": "^1.0.0"
-  },
-  "_requiredBy": [
-    "/concat-stream",
-    "/source-map-support"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/buffer-from/download/buffer-from-1.1.1.tgz",
-  "_shasum": "32713bc028f75c02fdb710d7c7bcec1f2c6070ef",
-  "_spec": "buffer-from@^1.0.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\concat-stream",
-  "bugs": {
-    "url": "https://github.com/LinusU/buffer-from/issues"
-  },
-  "bundleDependencies": false,
-  "deprecated": false,
-  "description": "A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.",
-  "devDependencies": {
-    "standard": "^7.1.2"
-  },
-  "files": [
-    "index.js"
-  ],
-  "homepage": "https://github.com/LinusU/buffer-from#readme",
-  "keywords": [
-    "buffer",
-    "buffer from"
-  ],
-  "license": "MIT",
-  "name": "buffer-from",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/LinusU/buffer-from.git"
-  },
-  "scripts": {
-    "test": "standard && node test"
-  },
-  "version": "1.1.1"
-}

+ 0 - 69
node_modules.bak/buffer-from/readme.md

@@ -1,69 +0,0 @@
-# Buffer From
-
-A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.
-
-## Installation
-
-```sh
-npm install --save buffer-from
-```
-
-## Usage
-
-```js
-const bufferFrom = require('buffer-from')
-
-console.log(bufferFrom([1, 2, 3, 4]))
-//=> <Buffer 01 02 03 04>
-
-const arr = new Uint8Array([1, 2, 3, 4])
-console.log(bufferFrom(arr.buffer, 1, 2))
-//=> <Buffer 02 03>
-
-console.log(bufferFrom('test', 'utf8'))
-//=> <Buffer 74 65 73 74>
-
-const buf = bufferFrom('test')
-console.log(bufferFrom(buf))
-//=> <Buffer 74 65 73 74>
-```
-
-## API
-
-### bufferFrom(array)
-
-- `array` &lt;Array&gt;
-
-Allocates a new `Buffer` using an `array` of octets.
-
-### bufferFrom(arrayBuffer[, byteOffset[, length]])
-
-- `arrayBuffer` &lt;ArrayBuffer&gt; The `.buffer` property of a TypedArray or ArrayBuffer
-- `byteOffset` &lt;Integer&gt; Where to start copying from `arrayBuffer`. **Default:** `0`
-- `length` &lt;Integer&gt; How many bytes to copy from `arrayBuffer`. **Default:** `arrayBuffer.length - byteOffset`
-
-When passed a reference to the `.buffer` property of a TypedArray instance, the
-newly created `Buffer` will share the same allocated memory as the TypedArray.
-
-The optional `byteOffset` and `length` arguments specify a memory range within
-the `arrayBuffer` that will be shared by the `Buffer`.
-
-### bufferFrom(buffer)
-
-- `buffer` &lt;Buffer&gt; An existing `Buffer` to copy data from
-
-Copies the passed `buffer` data onto a new `Buffer` instance.
-
-### bufferFrom(string[, encoding])
-
-- `string` &lt;String&gt; A string to encode.
-- `encoding` &lt;String&gt; The encoding of `string`. **Default:** `'utf8'`
-
-Creates a new `Buffer` containing the given JavaScript string `string`. If
-provided, the `encoding` parameter identifies the character encoding of
-`string`.
-
-## See also
-
-- [buffer-alloc](https://github.com/LinusU/buffer-alloc) A ponyfill for `Buffer.alloc`
-- [buffer-alloc-unsafe](https://github.com/LinusU/buffer-alloc-unsafe) A ponyfill for `Buffer.allocUnsafe`

+ 0 - 6
node_modules.bak/buffer-indexof/.travis.yml

@@ -1,6 +0,0 @@
-language: node_js
-node_js:
-  - "0.10"
-  - "0.12"
-  - 4
-  - 6

+ 0 - 20
node_modules.bak/buffer-indexof/LICENSE

@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2013 Ryan Day
-
-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 - 37
node_modules.bak/buffer-indexof/README.md

@@ -1,37 +0,0 @@
-[![Build Status](https://secure.travis-ci.org/soldair/node-buffer-indexof.png)](http://travis-ci.org/soldair/node-buffer-indexof)
- 
-
-buffer-indexof
-===================
-
-find the index of a buffer in a buffer. should behave like String.indexOf etc.
-
-```js
-
-var bindexOf = require('buffer-indexof');
-
-var newLineBuffer = new Buffer("\n");
-
-var b = new Buffer("hi\nho\nsilver");
-
-
-bindexOf(b,newLineBuffer) === 2
-
-// you can also start from index
-
-bindexOf(b,newLineBuffer,3) === 5
-
-// no match === -1
-
-bindexOf(b,newLineBuffer,6) === -1
-
-
-```
-
-CHANGELOG
-----------
-
-- 1.0.0
-  - fixed issue finding multibyte needles in haystack.  thanks @imulus
-- 1.0.1
-  - fixed failing to find partial matches as pointed out by @bahaa-aidi in #2

+ 0 - 58
node_modules.bak/buffer-indexof/bm.js

@@ -1,58 +0,0 @@
-//boyer-moore?
-module.exports = function bm(buf,search,offset){
-  var m  = 0, j = 0
-  var table = []
-
-  var ret = -1;
-  for(var i=offset||0;i<buf.length;++i){
-    console.log('i',i)
-
-    table[i] = [[i,0]]
-    if(buf[i] === search[0]) {
-      for(j = search.length-1;j>0;--j){
-        table[i].push([i+j,j])
-        console.log('j',j)
-        if(buf[i+j] !== search[j]) {
-
-          //i += j
-          j = -1
-          break
-        }
-      }
-      if(j === 0) {
-        ret = i
-        break
-      }
-    }
-  }
-
-  console.log(table)
-  renderTable(table,buf,search)
-  return ret
-}
-
-
-var chalk = require('chalk')
-function renderTable(table,buf,search){
-  var s = ''
-
-  console.log('-----')
-  console.log('search:',search)
-  console.log('-----')
-  console.log(buf+'')
-
-  table.forEach(function(a){
-    if(!a) return;// console.log('')
-    a.forEach(function(v){
-      if(!v) return;
-      var pad = ''
-      while(pad.length < v[0]){
-        pad += ' '
-      }
-      if(search[v[1]] === buf[v[0]]) console.log(pad+chalk.green(search[v[1]]))
-      else console.log(pad+chalk.red(search[v[1]]))
-
-    })
-  })
-  console.log('-----')
-}

+ 0 - 73
node_modules.bak/buffer-indexof/index.js

@@ -1,73 +0,0 @@
-module.exports = function bufferIndexOf(buff, search, offset, encoding){
-  if (!Buffer.isBuffer(buff)) {
-    throw TypeError('buffer is not a buffer');
-  }
-
-  // allow optional offset when providing an encoding
-  if (encoding === undefined && typeof offset === 'string') {
-    encoding = offset;
-    offset = undefined;
-  }
-
-  if (typeof search === 'string') {
-    search = new Buffer(search, encoding || 'utf8');
-  } else if (typeof search === 'number' && !isNaN(search)) {
-    search = new Buffer([search])
-  } else if (!Buffer.isBuffer(search)) {
-    throw TypeError('search is not a bufferable object');
-  }
-
-  if (search.length === 0) {
-    return -1;
-  }
-
-  if (offset === undefined || (typeof offset === 'number' && isNaN(offset))) {
-    offset = 0;
-  } else if (typeof offset !== 'number') {
-    throw TypeError('offset is not a number');
-  }
-
-  if (offset < 0) {
-    offset = buff.length + offset
-  }
-
-  if (offset < 0) {
-    offset = 0;
-  }
-
-  var m = 0;
-  var s = -1;
-
-  for (var i = offset; i < buff.length ; ++i) {
-    if(buff[i] != search[m]){
-      s = -1;
-      // <-- go back
-      // match abc to aabc
-      // 'aabc'
-      // 'aab'
-      //    ^ no match
-      // a'abc'
-      //   ^ set index here now and look at these again.
-      //   'abc' yay!
-      i -= m-1
-      m = 0;
-    }
-
-    if(buff[i] == search[m]) {
-      if(s == -1) {
-        s = i;
-      }
-      ++m;
-      if(m == search.length) {
-        break;
-      }
-    }
-  }
-
-  if (s > -1 && buff.length - s < search.length) {
-    return -1;
-  }
-  return s;
-}
-
-

+ 0 - 50
node_modules.bak/buffer-indexof/package.json

@@ -1,50 +0,0 @@
-{
-  "_from": "buffer-indexof@^1.0.0",
-  "_id": "buffer-indexof@1.1.1",
-  "_inBundle": false,
-  "_integrity": "sha1-Uvq8xqYG0aADAoAmSO9o9jnaJow=",
-  "_location": "/buffer-indexof",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "buffer-indexof@^1.0.0",
-    "name": "buffer-indexof",
-    "escapedName": "buffer-indexof",
-    "rawSpec": "^1.0.0",
-    "saveSpec": null,
-    "fetchSpec": "^1.0.0"
-  },
-  "_requiredBy": [
-    "/dns-txt"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/buffer-indexof/download/buffer-indexof-1.1.1.tgz",
-  "_shasum": "52fabcc6a606d1a00302802648ef68f639da268c",
-  "_spec": "buffer-indexof@^1.0.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\dns-txt",
-  "author": {
-    "name": "Ryan Day"
-  },
-  "bugs": {
-    "url": "https://github.com/soldair/node-buffer-indexof/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {},
-  "deprecated": false,
-  "description": "find the index of a buffer in a buffer",
-  "devDependencies": {
-    "chalk": "^1.1.3",
-    "tape": "~1.1.0"
-  },
-  "homepage": "https://github.com/soldair/node-buffer-indexof#readme",
-  "license": "MIT",
-  "main": "index.js",
-  "name": "buffer-indexof",
-  "repository": {
-    "url": "git://github.com/soldair/node-buffer-indexof.git"
-  },
-  "scripts": {
-    "test": "tape test/*.js"
-  },
-  "version": "1.1.1"
-}

+ 0 - 15
node_modules.bak/buffer-indexof/test/bm.js

@@ -1,15 +0,0 @@
-var test = require('tape')
-var bm = require('../bm')
-test("omg",function(t){
-
-  t.equals(bm('abc','bc'),1)
-  t.equals(bm('ababc','bc'),3)
-  t.equals(bm('abc','de'),-1)
-
-  t.equals(bm('123123412345','345'),9)
-
-  t.equals(bm('aaaba','aaba'),1,'partial matches should not be skipped')
-  t.end()
-  
-
-})

+ 0 - 15
node_modules.bak/buffer-indexof/test/multibyteneedle.js

@@ -1,15 +0,0 @@
-var test = require('tape')
-var bindexof = require('../')
-
-test("can find mutibyte needles",function(t){
-
-  t.equals(bindexof(new Buffer("hi"),new Buffer("hi")),0,'should find multibyte needle when its the whole buffer')
-
-  // https://github.com/soldair/node-buffer-indexof/issues/2
-  t.equals(bindexof(new Buffer("aaba"), new Buffer("ab")),1,'should find multibyte needle in haystack')
-
-
-  t.end();
-
-
-})

+ 0 - 8
node_modules.bak/buffer-indexof/test/partial-match.js

@@ -1,8 +0,0 @@
-var test = require('tape')
-var bufferIndexOf = require('../')
-
-test("doesnt skip partial matches",function(t){
-  //'aaaba'.indexOf('aaba') // --> 1
-  t.equals(bufferIndexOf(new Buffer('aaaba'), new Buffer('aaba')),1,'partial matches should not be skipped')
-  t.end()
-})

+ 0 - 400
node_modules.bak/buffer-indexof/test/test-buffer-indexof.js

@@ -1,400 +0,0 @@
-'use strict';
-var test = require('tape')
-var bindexOf = require('../')
-
-var b = new Buffer('abcdef');
-var buf_a = new Buffer('a');
-var buf_bc = new Buffer('bc');
-var buf_f = new Buffer('f');
-var buf_z = new Buffer('z');
-var buf_empty = new Buffer('');
-
-test('node 6 buffer indexOf tests', function(t) {
-  t.equal(bindexOf(b, 'a'), 0);
-  t.equal(bindexOf(b, 'a', 1), -1);
-  t.equal(bindexOf(b, 'a', -1), -1);
-  t.equal(bindexOf(b, 'a', -4), -1);
-  t.equal(bindexOf(b, 'a', -b.length), 0);
-  t.equal(bindexOf(b, 'a', NaN), 0);
-  t.equal(bindexOf(b, 'a', -Infinity), 0);
-  t.equal(bindexOf(b, 'a', Infinity), -1);
-  t.equal(bindexOf(b, 'bc'), 1);
-  t.equal(bindexOf(b, 'bc', 2), -1);
-  t.equal(bindexOf(b, 'bc', -1), -1);
-  t.equal(bindexOf(b, 'bc', -3), -1);
-  t.equal(bindexOf(b, 'bc', -5), 1);
-  t.equal(bindexOf(b, 'bc', NaN), 1);
-  t.equal(bindexOf(b, 'bc', -Infinity), 1);
-  t.equal(bindexOf(b, 'bc', Infinity), -1);
-  t.equal(bindexOf(b, 'f'), b.length - 1);
-  t.equal(bindexOf(b, 'z'), -1);
-  t.equal(bindexOf(b, ''), -1);
-  t.equal(bindexOf(b, '', 1), -1);
-  t.equal(bindexOf(b, '', b.length + 1), -1);
-  t.equal(bindexOf(b, '', Infinity), -1);
-  t.equal(bindexOf(b, buf_a), 0);
-  t.equal(bindexOf(b, buf_a, 1), -1);
-  t.equal(bindexOf(b, buf_a, -1), -1);
-  t.equal(bindexOf(b, buf_a, -4), -1);
-  t.equal(bindexOf(b, buf_a, -b.length), 0);
-  t.equal(bindexOf(b, buf_a, NaN), 0);
-  t.equal(bindexOf(b, buf_a, -Infinity), 0);
-  t.equal(bindexOf(b, buf_a, Infinity), -1);
-  t.equal(bindexOf(b, buf_bc), 1);
-  t.equal(bindexOf(b, buf_bc, 2), -1);
-  t.equal(bindexOf(b, buf_bc, -1), -1);
-  t.equal(bindexOf(b, buf_bc, -3), -1);
-  t.equal(bindexOf(b, buf_bc, -5), 1);
-  t.equal(bindexOf(b, buf_bc, NaN), 1);
-  t.equal(bindexOf(b, buf_bc, -Infinity), 1);
-  t.equal(bindexOf(b, buf_bc, Infinity), -1);
-  t.equal(bindexOf(b, buf_f), b.length - 1);
-  t.equal(bindexOf(b, buf_z), -1);
-  t.equal(bindexOf(b, buf_empty), -1);
-  t.equal(bindexOf(b, buf_empty, 1), -1);
-  t.equal(bindexOf(b, buf_empty, b.length + 1), -1);
-  t.equal(bindexOf(b, buf_empty, Infinity), -1);
-  t.equal(bindexOf(b, 0x61), 0);
-  t.equal(bindexOf(b, 0x61, 1), -1);
-  t.equal(bindexOf(b, 0x61, -1), -1);
-  t.equal(bindexOf(b, 0x61, -4), -1);
-  t.equal(bindexOf(b, 0x61, -b.length), 0);
-  t.equal(bindexOf(b, 0x61, NaN), 0);
-  t.equal(bindexOf(b, 0x61, -Infinity), 0);
-  t.equal(bindexOf(b, 0x61, Infinity), -1);
-  t.equal(bindexOf(b, 0x0), -1);
-
-  // test offsets
-  t.equal(bindexOf(b, 'd', 2), 3);
-  t.equal(bindexOf(b, 'f', 5), 5);
-  t.equal(bindexOf(b, 'f', -1), 5);
-  t.equal(bindexOf(b, 'f', 6), -1);
-
-  t.equal(bindexOf(b, new Buffer('d'), 2), 3);
-  t.equal(bindexOf(b, new Buffer('f'), 5), 5);
-  t.equal(bindexOf(b, new Buffer('f'), -1), 5);
-  t.equal(bindexOf(b, new Buffer('f'), 6), -1);
-
-  // This one doesn't make any sense
-  // t.equal(bindexOf(new Buffer('ff'), new Buffer('f'), 1, 'ucs2'), -1);
-
-  // test hex encoding
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('hex'), 'hex'),
-      '64',
-      0,
-      'hex'
-    ),
-    3
-  );
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('hex'), 'hex'),
-      new Buffer('64', 'hex'), 0, 'hex'
-    ),
-    3
-  );
-
-  // test base64 encoding
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('base64'), 'base64'),
-      'ZA==', 0, 'base64'
-    ),
-    3
-  );
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('base64'), 'base64'),
-      new Buffer('ZA==', 'base64'), 0, 'base64'
-    ),
-    3
-  );
-
-  // test ascii encoding
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('ascii'), 'ascii'),
-      'd', 0, 'ascii'
-    ),
-    3
-  );
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('ascii'), 'ascii'),
-      new Buffer('d', 'ascii'), 0, 'ascii'
-    ),
-    3
-  );
-
-  // test latin1 encoding
-  // does not work in LTS
-  /*
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('latin1'), 'latin1'),
-      'd',
-      0,
-      'latin1'
-    ),
-    3
-  );
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('latin1'), 'latin1'),
-      new Buffer('d', 'latin1'),
-      0,
-      'latin1'
-    ),
-    3
-  );
-  t.equal(
-    bindexOf(
-      new Buffer('aa\u00e8aa', 'latin1'),
-      '\u00e8',
-      'latin1'
-    ),
-    2
-  );
-  t.equal(
-    bindexOf(
-      new Buffer('\u00e8', 'latin1'),
-      '\u00e8',
-      'latin1'
-    ),
-    0
-  );
-  t.equal(
-    bindexOf(
-      new Buffer('\u00e8', 'latin1'),
-      new Buffer('\u00e8', 'latin1'),
-      0,
-      'latin1'
-    ),
-    0
-  );
-  */
-  // test binary encoding
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('binary'), 'binary'),
-      'd',
-      0,
-      'binary'
-    ),
-    3
-  );
-  t.equal(
-    bindexOf(
-      new Buffer(b.toString('binary'), 'binary'),
-      new Buffer('d', 'binary'),
-      0,
-      'binary'
-    ),
-    3
-  );
-  t.equal(
-    bindexOf(
-      new Buffer('aa\u00e8aa', 'binary'),
-      '\u00e8',
-      0,
-      'binary'
-    ),
-    2
-  );
-  t.equal(
-    bindexOf(
-      new Buffer('\u00e8', 'binary'),
-      '\u00e8',
-      0,
-      'binary'
-    ),
-    0
-  );
-  t.equal(
-    bindexOf(
-      new Buffer('\u00e8', 'binary'),
-      new Buffer('\u00e8', 'binary'),
-      0,
-      'binary'
-    ),
-    0
-  );
-
-
-  // test optional offset with passed encoding
-  t.equal(new Buffer('aaaa0').indexOf('30', 'hex'), 4);
-  t.equal(new Buffer('aaaa00a').indexOf('3030', 'hex'), 4);
-
-  {
-    // test usc2 encoding
-    var twoByteString = new Buffer('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
-
-    t.equal(8, twoByteString.indexOf('\u0395', 4, 'ucs2'));
-    t.equal(6, twoByteString.indexOf('\u03a3', -4, 'ucs2'));
-    t.equal(4, twoByteString.indexOf('\u03a3', -6, 'ucs2'));
-    t.equal(4, twoByteString.indexOf(
-      new Buffer('\u03a3', 'ucs2'), -6, 'ucs2'));
-    t.equal(-1, twoByteString.indexOf('\u03a3', -2, 'ucs2'));
-  }
-
-  var mixedByteStringUcs2 =
-      new Buffer('\u039a\u0391abc\u03a3\u03a3\u0395', 'ucs2');
-  t.equal(6, mixedByteStringUcs2.indexOf('bc', 0, 'ucs2'));
-  t.equal(10, mixedByteStringUcs2.indexOf('\u03a3', 0, 'ucs2'));
-  t.equal(-1, mixedByteStringUcs2.indexOf('\u0396', 0, 'ucs2'));
-
-  t.equal(
-      6, mixedByteStringUcs2.indexOf(new Buffer('bc', 'ucs2'), 0, 'ucs2'));
-  t.equal(
-      10, mixedByteStringUcs2.indexOf(new Buffer('\u03a3', 'ucs2'), 0, 'ucs2'));
-  t.equal(
-      -1, mixedByteStringUcs2.indexOf(new Buffer('\u0396', 'ucs2'), 0, 'ucs2'));
-
-  {
-    var twoByteString = new Buffer('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
-
-    // Test single char pattern
-    t.equal(0, twoByteString.indexOf('\u039a', 0, 'ucs2'));
-    t.equal(2, twoByteString.indexOf('\u0391', 0, 'ucs2'), 'Alpha');
-    t.equal(4, twoByteString.indexOf('\u03a3', 0, 'ucs2'), 'First Sigma');
-    t.equal(6, twoByteString.indexOf('\u03a3', 6, 'ucs2'), 'Second Sigma');
-    t.equal(8, twoByteString.indexOf('\u0395', 0, 'ucs2'), 'Epsilon');
-    t.equal(-1, twoByteString.indexOf('\u0392', 0, 'ucs2'), 'Not beta');
-
-    // Test multi-char pattern
-    t.equal(
-        0, twoByteString.indexOf('\u039a\u0391', 0, 'ucs2'), 'Lambda Alpha');
-    t.equal(
-        2, twoByteString.indexOf('\u0391\u03a3', 0, 'ucs2'), 'Alpha Sigma');
-    t.equal(
-        4, twoByteString.indexOf('\u03a3\u03a3', 0, 'ucs2'), 'Sigma Sigma');
-    t.equal(
-        6, twoByteString.indexOf('\u03a3\u0395', 0, 'ucs2'), 'Sigma Epsilon');
-  }
-
-  var mixedByteStringUtf8 = new Buffer('\u039a\u0391abc\u03a3\u03a3\u0395');
-  t.equal(5, mixedByteStringUtf8.indexOf('bc'));
-  t.equal(5, mixedByteStringUtf8.indexOf('bc', 5));
-  t.equal(5, mixedByteStringUtf8.indexOf('bc', -8));
-  t.equal(7, mixedByteStringUtf8.indexOf('\u03a3'));
-  t.equal(-1, mixedByteStringUtf8.indexOf('\u0396'));
-
-
-  // Test complex string indexOf algorithms. Only trigger for long strings.
-  // Long string that isn't a simple repeat of a shorter string.
-  var longString = 'A';
-  for (var i = 66; i < 76; i++) {  // from 'B' to 'K'
-    longString = longString + String.fromCharCode(i) + longString;
-  }
-
-  var longBufferString = new Buffer(longString);
-
-  // pattern of 15 chars, repeated every 16 chars in long
-  var pattern = 'ABACABADABACABA';
-  for (var i = 0; i < longBufferString.length - pattern.length; i += 7) {
-    var index = longBufferString.indexOf(pattern, i);
-    t.equal((i + 15) & ~0xf, index, 'Long ABACABA...-string at index ' + i);
-  }
-  t.equal(510, longBufferString.indexOf('AJABACA'), 'Long AJABACA, First J');
-  t.equal(
-      1534, longBufferString.indexOf('AJABACA', 511), 'Long AJABACA, Second J');
-
-  pattern = 'JABACABADABACABA';
-  t.equal(
-      511, longBufferString.indexOf(pattern), 'Long JABACABA..., First J');
-  t.equal(
-      1535, longBufferString.indexOf(pattern, 512), 'Long JABACABA..., Second J');
-
-  // Search for a non-ASCII string in a pure ASCII string.
-  var asciiString = new Buffer(
-      'arglebargleglopglyfarglebargleglopglyfarglebargleglopglyf');
-  t.equal(-1, asciiString.indexOf('\x2061'));
-  t.equal(3, asciiString.indexOf('leb', 0));
-
-  // Search in string containing many non-ASCII chars.
-  var allCodePoints = [];
-  for (var i = 0; i < 65536; i++) allCodePoints[i] = i;
-  var allCharsString = String.fromCharCode.apply(String, allCodePoints);
-  var allCharsBufferUtf8 = new Buffer(allCharsString);
-  var allCharsBufferUcs2 = new Buffer(allCharsString, 'ucs2');
-
-  // Search for string long enough to trigger complex search with ASCII pattern
-  // and UC16 subject.
-  t.equal(-1, allCharsBufferUtf8.indexOf('notfound'));
-  t.equal(-1, allCharsBufferUcs2.indexOf('notfound'));
-
-  // Needle is longer than haystack, but only because it's encoded as UTF-16
-  t.equal(new Buffer('aaaa').indexOf('a'.repeat(4), 'ucs2'), -1);
-
-  t.equal(new Buffer('aaaa').indexOf('a'.repeat(4), 'utf8'), 0);
-  t.equal(new Buffer('aaaa').indexOf('你好', 'ucs2'), -1);
-
-  // Haystack has odd length, but the needle is UCS2.
-  t.equal(new Buffer('aaaaa').indexOf('b', 'ucs2'), -1);
-
-  {
-    // Find substrings in Utf8.
-    var lengths = [1, 3, 15];  // Single char, simple and complex.
-    var indices = [0x5, 0x60, 0x400, 0x680, 0x7ee, 0xFF02, 0x16610, 0x2f77b];
-    for (var lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
-      for (var i = 0; i < indices.length; i++) {
-        var index = indices[i];
-        var length = lengths[lengthIndex];
-
-        if (index + length > 0x7F) {
-          length = 2 * length;
-        }
-
-        if (index + length > 0x7FF) {
-          length = 3 * length;
-        }
-
-        if (index + length > 0xFFFF) {
-          length = 4 * length;
-        }
-
-        var patternBufferUtf8 = allCharsBufferUtf8.slice(index, index + length);
-        t.equal(index, allCharsBufferUtf8.indexOf(patternBufferUtf8));
-
-        var patternStringUtf8 = patternBufferUtf8.toString();
-        t.equal(index, allCharsBufferUtf8.indexOf(patternStringUtf8));
-      }
-    }
-  }
-
-  {
-    // Find substrings in Usc2.
-    var lengths = [2, 4, 16];  // Single char, simple and complex.
-    var indices = [0x5, 0x65, 0x105, 0x205, 0x285, 0x2005, 0x2085, 0xfff0];
-    for (var lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
-      for (var i = 0; i < indices.length; i++) {
-        var index = indices[i] * 2;
-        var length = lengths[lengthIndex];
-
-        var patternBufferUcs2 =
-            allCharsBufferUcs2.slice(index, index + length);
-        t.equal(
-            index, allCharsBufferUcs2.indexOf(patternBufferUcs2, 0, 'ucs2'));
-
-        var patternStringUcs2 = patternBufferUcs2.toString('ucs2');
-        t.equal(
-            index, allCharsBufferUcs2.indexOf(patternStringUcs2, 0, 'ucs2'));
-      }
-    }
-  }
-
-  t.throws(function() {
-    bindexOf(b, function() { });
-  });
-  t.throws(function() {
-    bindexOf(b, {});
-  });
-  t.throws(function() {
-    bindexOf(b, []);
-  });
-
-
-  t.end();
-});

+ 0 - 37
node_modules.bak/buffer-indexof/test/test.js

@@ -1,37 +0,0 @@
-var test = require('tape');
-var bindexOf = require('../');
-
-test("can haz working",function(t){
-
-
-  var newLineBuffer = new Buffer("\n");
-
-  var b = new Buffer("hi\nho\nsilver");
-
-  t.equals(bindexOf(new Buffer('a'), new Buffer('abc')), -1, 'should not match')
-
-
-  t.equals(bindexOf(new Buffer('aaa'), new Buffer('aa'), 2), -1, 'should not match with 2 offset')
-  t.equals(bindexOf(new Buffer('aaa'), new Buffer('aa')), 0, 'should match')
-
-  t.equals(bindexOf(b,newLineBuffer),2,'should find newlines');
-
-  // you can also start from index
-
-  t.equals(bindexOf(b,newLineBuffer,3),5,"should find newlines after offset");
-
-  // no match === -1
-
-  t.equals(bindexOf(b,newLineBuffer,6),-1,"should not find newlines where none are.");
-
-
-  t.end();
-})
-
-
-test("can handle overlapping matches",function(t){
-  console.log(1,'aaaba'.indexOf('aaba'))
-  console.log(2,bindexOf(new Buffer('aaaba'), new Buffer('aaba')))
-  console.log(3,(new Buffer('aaaba')).indexOf(new Buffer('aaba')))
-  t.end()
-})

+ 0 - 1
node_modules.bak/buffer-xor/.npmignore

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

+ 0 - 9
node_modules.bak/buffer-xor/.travis.yml

@@ -1,9 +0,0 @@
-language: node_js
-before_install:
-  - "npm install npm -g"
-node_js:
-  - "0.12"
-env:
-  - TEST_SUITE=standard
-  - TEST_SUITE=unit
-script: "npm run-script $TEST_SUITE"

+ 0 - 21
node_modules.bak/buffer-xor/LICENSE

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 Daniel Cousens
-
-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 - 41
node_modules.bak/buffer-xor/README.md

@@ -1,41 +0,0 @@
-# buffer-xor
-
-[![TRAVIS](https://secure.travis-ci.org/crypto-browserify/buffer-xor.png)](http://travis-ci.org/crypto-browserify/buffer-xor)
-[![NPM](http://img.shields.io/npm/v/buffer-xor.svg)](https://www.npmjs.org/package/buffer-xor)
-
-[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
-
-A simple module for bitwise-xor on buffers.
-
-
-## Examples
-
-``` javascript
-var xor = require("buffer-xor")
-var a = new Buffer('00ff0f', 'hex')
-var b = new Buffer('f0f0', 'hex')
-
-console.log(xor(a, b))
-// => <Buffer f0 0f>
-```
-
-
-Or for those seeking those few extra cycles, perform the operation in place:
-
-``` javascript
-var xorInplace = require("buffer-xor/inplace")
-var a = new Buffer('00ff0f', 'hex')
-var b = new Buffer('f0f0', 'hex')
-
-console.log(xorInplace(a, b))
-// => <Buffer f0 0f>
-// NOTE: xorInplace will return the shorter slice of its parameters
-
-// See that a has been mutated
-console.log(a)
-// => <Buffer f0 0f 0f>
-```
-
-
-## License [MIT](LICENSE)
-

+ 0 - 10
node_modules.bak/buffer-xor/index.js

@@ -1,10 +0,0 @@
-module.exports = function xor (a, b) {
-  var length = Math.min(a.length, b.length)
-  var buffer = new Buffer(length)
-
-  for (var i = 0; i < length; ++i) {
-    buffer[i] = a[i] ^ b[i]
-  }
-
-  return buffer
-}

+ 0 - 1
node_modules.bak/buffer-xor/inline.js

@@ -1 +0,0 @@
-module.exports = require('./inplace')

+ 0 - 9
node_modules.bak/buffer-xor/inplace.js

@@ -1,9 +0,0 @@
-module.exports = function xorInplace (a, b) {
-  var length = Math.min(a.length, b.length)
-
-  for (var i = 0; i < length; ++i) {
-    a[i] = a[i] ^ b[i]
-  }
-
-  return a.slice(0, length)
-}

+ 0 - 64
node_modules.bak/buffer-xor/package.json

@@ -1,64 +0,0 @@
-{
-  "_from": "buffer-xor@^1.0.3",
-  "_id": "buffer-xor@1.0.3",
-  "_inBundle": false,
-  "_integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=",
-  "_location": "/buffer-xor",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "buffer-xor@^1.0.3",
-    "name": "buffer-xor",
-    "escapedName": "buffer-xor",
-    "rawSpec": "^1.0.3",
-    "saveSpec": null,
-    "fetchSpec": "^1.0.3"
-  },
-  "_requiredBy": [
-    "/browserify-aes"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/buffer-xor/download/buffer-xor-1.0.3.tgz",
-  "_shasum": "26e61ed1422fb70dd42e6e36729ed51d855fe8d9",
-  "_spec": "buffer-xor@^1.0.3",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\browserify-aes",
-  "author": {
-    "name": "Daniel Cousens"
-  },
-  "bugs": {
-    "url": "https://github.com/crypto-browserify/buffer-xor/issues"
-  },
-  "bundleDependencies": false,
-  "deprecated": false,
-  "description": "A simple module for bitwise-xor on buffers",
-  "devDependencies": {
-    "mocha": "*",
-    "standard": "*"
-  },
-  "homepage": "https://github.com/crypto-browserify/buffer-xor",
-  "keywords": [
-    "bits",
-    "bitwise",
-    "buffer",
-    "buffer-xor",
-    "crypto",
-    "inline",
-    "math",
-    "memory",
-    "performance",
-    "xor"
-  ],
-  "license": "MIT",
-  "main": "index.js",
-  "name": "buffer-xor",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/crypto-browserify/buffer-xor.git"
-  },
-  "scripts": {
-    "standard": "standard",
-    "test": "npm run-script unit",
-    "unit": "mocha"
-  },
-  "version": "1.0.3"
-}

+ 0 - 23
node_modules.bak/buffer-xor/test/fixtures.json

@@ -1,23 +0,0 @@
-[
-  {
-    "a": "000f",
-    "b": "f0ff",
-    "expected": "f0f0"
-  },
-  {
-    "a": "000f0f",
-    "b": "f0ff",
-    "mutated": "f0f00f",
-    "expected": "f0f0"
-  },
-  {
-    "a": "000f",
-    "b": "f0ffff",
-    "expected": "f0f0"
-  },
-  {
-    "a": "000000",
-    "b": "000000",
-    "expected": "000000"
-  }
-]

+ 0 - 38
node_modules.bak/buffer-xor/test/index.js

@@ -1,38 +0,0 @@
-/* global describe, it */
-
-var assert = require('assert')
-var xor = require('../')
-var xorInplace = require('../inplace')
-var fixtures = require('./fixtures')
-
-describe('xor', function () {
-  fixtures.forEach(function (f) {
-    it('returns ' + f.expected + ' for ' + f.a + '/' + f.b, function () {
-      var a = new Buffer(f.a, 'hex')
-      var b = new Buffer(f.b, 'hex')
-      var actual = xor(a, b)
-
-      assert.equal(actual.toString('hex'), f.expected)
-
-      // a/b unchanged
-      assert.equal(a.toString('hex'), f.a)
-      assert.equal(b.toString('hex'), f.b)
-    })
-  })
-})
-
-describe('xor/inplace', function () {
-  fixtures.forEach(function (f) {
-    it('returns ' + f.expected + ' for ' + f.a + '/' + f.b, function () {
-      var a = new Buffer(f.a, 'hex')
-      var b = new Buffer(f.b, 'hex')
-      var actual = xorInplace(a, b)
-
-      assert.equal(actual.toString('hex'), f.expected)
-
-      // a mutated, b unchanged
-      assert.equal(a.toString('hex'), f.mutated || f.expected)
-      assert.equal(b.toString('hex'), f.b)
-    })
-  })
-})

+ 0 - 8
node_modules.bak/buffer/.travis.yml

@@ -1,8 +0,0 @@
-language: node_js
-node_js:
-- 'node'
-sudo: false
-env:
-  global:
-  - secure: AUsK+8fYSpwIMHcVt8Mu9SpG9RPHp4XDAwCQfpU3d5U65q8OVVC6C+XjvnNmEd2PoEJRHem8ZXEyRVfGM1sttKZLZP70TEKZOpOiRQnZiTQCAJ92TfGsDj/F4LoWSjUZUpfeg9b3iSp8G5dVw3+q9QZPIu6eykASK6bfcg//Cyg=
-  - secure: eQBKJWu7XbhAN4ZvOOhMenC0IPpoYj+wZVVzzsLwUppfJqlrHV0CUW8rJdvZNiaGhYhoyHTnAcynpTE5kZfg3XjevOvF8PGY5wUYCki9BI+rp+pvVPZE/DNUAQpFR2gd2nxMJ4kYv7GVb6i/DfuqJa0h8IuY4zcMuKWwbQd3Az8=

+ 0 - 44
node_modules.bak/buffer/AUTHORS.md

@@ -1,44 +0,0 @@
-# Authors
-
-#### Ordered by first contribution.
-
-- Romain Beauxis (toots@rastageeks.org)
-- Tobias Koppers (tobias.koppers@googlemail.com)
-- Janus (ysangkok@gmail.com)
-- Rainer Dreyer (rdrey1@gmail.com)
-- Tõnis Tiigi (tonistiigi@gmail.com)
-- James Halliday (mail@substack.net)
-- Michael Williamson (mike@zwobble.org)
-- elliottcable (github@elliottcable.name)
-- rafael (rvalle@livelens.net)
-- Andrew Kelley (superjoe30@gmail.com)
-- Andreas Madsen (amwebdk@gmail.com)
-- Mike Brevoort (mike.brevoort@pearson.com)
-- Brian White (mscdex@mscdex.net)
-- Feross Aboukhadijeh (feross@feross.org)
-- Ruben Verborgh (ruben@verborgh.org)
-- eliang (eliang.cs@gmail.com)
-- Jesse Tane (jesse.tane@gmail.com)
-- Alfonso Boza (alfonso@cloud.com)
-- Mathias Buus (mathiasbuus@gmail.com)
-- Devon Govett (devongovett@gmail.com)
-- Daniel Cousens (github@dcousens.com)
-- Joseph Dykstra (josephdykstra@gmail.com)
-- Parsha Pourkhomami (parshap+git@gmail.com)
-- Damjan Košir (damjan.kosir@gmail.com)
-- daverayment (dave.rayment@gmail.com)
-- kawanet (u-suke@kawa.net)
-- Linus Unnebäck (linus@folkdatorn.se)
-- Nolan Lawson (nolan.lawson@gmail.com)
-- Calvin Metcalf (calvin.metcalf@gmail.com)
-- Koki Takahashi (hakatasiloving@gmail.com)
-- Guy Bedford (guybedford@gmail.com)
-- Jan Schär (jscissr@gmail.com)
-- RaulTsc (tomescu.raul@gmail.com)
-- Matthieu Monsch (monsch@alum.mit.edu)
-- Dan Ehrenberg (littledan@chromium.org)
-- Kirill Fomichev (fanatid@ya.ru)
-- Yusuke Kawasaki (u-suke@kawa.net)
-- DC (dcposch@dcpos.ch)
-
-#### Generated by bin/update-authors.sh.

+ 0 - 21
node_modules.bak/buffer/LICENSE

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Feross Aboukhadijeh, 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 - 378
node_modules.bak/buffer/README.md

@@ -1,378 +0,0 @@
-# buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][npm-url]
-
-#### The buffer module from [node.js](https://nodejs.org/), for the browser.
-
-[![saucelabs][saucelabs-image]][saucelabs-url]
-
-[travis-image]: https://img.shields.io/travis/feross/buffer/master.svg
-[travis-url]: https://travis-ci.org/feross/buffer
-[npm-image]: https://img.shields.io/npm/v/buffer.svg
-[npm-url]: https://npmjs.org/package/buffer
-[downloads-image]: https://img.shields.io/npm/dm/buffer.svg
-[saucelabs-image]: https://saucelabs.com/browser-matrix/buffer.svg
-[saucelabs-url]: https://saucelabs.com/u/buffer
-
-With [browserify](http://browserify.org), simply `require('buffer')` or use the `Buffer` global and you will get this module.
-
-The goal is to provide an API that is 100% identical to
-[node's Buffer API](https://nodejs.org/api/buffer.html). Read the
-[official docs](https://nodejs.org/api/buffer.html) for the full list of properties,
-instance methods, and class methods that are supported.
-
-## features
-
-- Manipulate binary data like a boss, in all browsers -- even IE6!
-- Super fast. Backed by Typed Arrays (`Uint8Array`/`ArrayBuffer`, not `Object`)
-- Extremely small bundle size (**5.04KB minified + gzipped**, 35.5KB with comments)
-- Excellent browser support (IE 6+, Chrome 4+, Firefox 3+, Safari 5.1+, Opera 11+, iOS, etc.)
-- Preserves Node API exactly, with one minor difference (see below)
-- Square-bracket `buf[4]` notation works, even in old browsers like IE6!
-- Does not modify any browser prototypes or put anything on `window`
-- Comprehensive test suite (including all buffer tests from node.js core)
-
-
-## install
-
-To use this module directly (without browserify), install it:
-
-```bash
-npm install buffer
-```
-
-This module was previously called **native-buffer-browserify**, but please use **buffer**
-from now on.
-
-A standalone bundle is available [here](https://wzrd.in/standalone/buffer), for non-browserify users.
-
-
-## usage
-
-The module's API is identical to node's `Buffer` API. Read the
-[official docs](https://nodejs.org/api/buffer.html) for the full list of properties,
-instance methods, and class methods that are supported.
-
-As mentioned above, `require('buffer')` or use the `Buffer` global with
-[browserify](http://browserify.org) and this module will automatically be included
-in your bundle. Almost any npm module will work in the browser, even if it assumes that
-the node `Buffer` API will be available.
-
-To depend on this module explicitly (without browserify), require it like this:
-
-```js
-var Buffer = require('buffer/').Buffer  // note: the trailing slash is important!
-```
-
-To require this module explicitly, use `require('buffer/')` which tells the node.js module
-lookup algorithm (also used by browserify) to use the **npm module** named `buffer`
-instead of the **node.js core** module named `buffer`!
-
-
-## how does it work?
-
-The Buffer constructor returns instances of `Uint8Array` that have their prototype
-changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of `Uint8Array`,
-so the returned instances will have all the node `Buffer` methods and the
-`Uint8Array` methods. Square bracket notation works as expected -- it returns a
-single octet.
-
-The `Uint8Array` prototype remains unmodified.
-
-
-## one minor difference
-
-#### In old browsers, `buf.slice()` does not modify parent buffer's memory
-
-If you only support modern browsers (specifically, those with typed array support),
-then this issue does not affect you. If you support super old browsers, then read on.
-
-In node, the `slice()` method returns a new `Buffer` that shares underlying memory
-with the original Buffer. When you modify one buffer, you modify the other.
-[Read more.](https://nodejs.org/api/buffer.html#buffer_buf_slice_start_end)
-
-In browsers with typed array support, this `Buffer` implementation supports this
-behavior. In browsers without typed arrays, an alternate buffer implementation is
-used that is based on `Object` which has no mechanism to point separate
-`Buffer`s to the same underlying slab of memory.
-
-You can see which browser versions lack typed array support
-[here](https://github.com/feross/buffer/blob/master/index.js#L22-L48).
-
-
-## tracking the latest node api
-
-This module tracks the Buffer API in the latest (unstable) version of node.js. The Buffer
-API is considered **stable** in the
-[node stability index](https://nodejs.org/docs/latest/api/documentation.html#documentation_stability_index),
-so it is unlikely that there will ever be breaking changes.
-Nonetheless, when/if the Buffer API changes in node, this module's API will change
-accordingly.
-
-## related packages
-
-- [`buffer-equals`](https://www.npmjs.com/package/buffer-equals) - Node.js 0.12 buffer.equals() ponyfill
-- [`buffer-reverse`](https://www.npmjs.com/package/buffer-reverse) - A lite module for reverse-operations on buffers
-- [`buffer-xor`](https://www.npmjs.com/package/buffer-xor) - A simple module for bitwise-xor on buffers
-- [`is-buffer`](https://www.npmjs.com/package/is-buffer) - Determine if an object is a Buffer without including the whole `Buffer` package
-- [`typedarray-to-buffer`](https://www.npmjs.com/package/typedarray-to-buffer) - Convert a typed array to a Buffer without a copy
-
-## performance
-
-See perf tests in `/perf`.
-
-`BrowserBuffer` is the browser `buffer` module (this repo). `Uint8Array` is included as a
-sanity check (since `BrowserBuffer` uses `Uint8Array` under the hood, `Uint8Array` will
-always be at least a bit faster). Finally, `NodeBuffer` is the node.js buffer module,
-which is included to compare against.
-
-NOTE: Performance has improved since these benchmarks were taken. PR welcoem to update the README.
-
-### Chrome 38
-
-| Method | Operations | Accuracy | Sampled | Fastest |
-|:-------|:-----------|:---------|:--------|:-------:|
-| BrowserBuffer#bracket-notation | 11,457,464 ops/sec | ±0.86% | 66 | ✓ |
-| Uint8Array#bracket-notation | 10,824,332 ops/sec | ±0.74% | 65 | |
-| | | | |
-| BrowserBuffer#concat | 450,532 ops/sec | ±0.76% | 68 | |
-| Uint8Array#concat | 1,368,911 ops/sec | ±1.50% | 62 | ✓ |
-| | | | |
-| BrowserBuffer#copy(16000) | 903,001 ops/sec | ±0.96% | 67 | |
-| Uint8Array#copy(16000) | 1,422,441 ops/sec | ±1.04% | 66 | ✓ |
-| | | | |
-| BrowserBuffer#copy(16) | 11,431,358 ops/sec | ±0.46% | 69 | |
-| Uint8Array#copy(16) | 13,944,163 ops/sec | ±1.12% | 68 | ✓ |
-| | | | |
-| BrowserBuffer#new(16000) | 106,329 ops/sec | ±6.70% | 44 | |
-| Uint8Array#new(16000) | 131,001 ops/sec | ±2.85% | 31 | ✓ |
-| | | | |
-| BrowserBuffer#new(16) | 1,554,491 ops/sec | ±1.60% | 65 | |
-| Uint8Array#new(16) | 6,623,930 ops/sec | ±1.66% | 65 | ✓ |
-| | | | |
-| BrowserBuffer#readDoubleBE | 112,830 ops/sec | ±0.51% | 69 | ✓ |
-| DataView#getFloat64 | 93,500 ops/sec | ±0.57% | 68 | |
-| | | | |
-| BrowserBuffer#readFloatBE | 146,678 ops/sec | ±0.95% | 68 | ✓ |
-| DataView#getFloat32 | 99,311 ops/sec | ±0.41% | 67 | |
-| | | | |
-| BrowserBuffer#readUInt32LE | 843,214 ops/sec | ±0.70% | 69 | ✓ |
-| DataView#getUint32 | 103,024 ops/sec | ±0.64% | 67 | |
-| | | | |
-| BrowserBuffer#slice | 1,013,941 ops/sec | ±0.75% | 67 | |
-| Uint8Array#subarray | 1,903,928 ops/sec | ±0.53% | 67 | ✓ |
-| | | | |
-| BrowserBuffer#writeFloatBE | 61,387 ops/sec | ±0.90% | 67 | |
-| DataView#setFloat32 | 141,249 ops/sec | ±0.40% | 66 | ✓ |
-
-
-### Firefox 33
-
-| Method | Operations | Accuracy | Sampled | Fastest |
-|:-------|:-----------|:---------|:--------|:-------:|
-| BrowserBuffer#bracket-notation | 20,800,421 ops/sec | ±1.84% | 60 | |
-| Uint8Array#bracket-notation | 20,826,235 ops/sec | ±2.02% | 61 | ✓ |
-| | | | |
-| BrowserBuffer#concat | 153,076 ops/sec | ±2.32% | 61 | |
-| Uint8Array#concat | 1,255,674 ops/sec | ±8.65% | 52 | ✓ |
-| | | | |
-| BrowserBuffer#copy(16000) | 1,105,312 ops/sec | ±1.16% | 63 | |
-| Uint8Array#copy(16000) | 1,615,911 ops/sec | ±0.55% | 66 | ✓ |
-| | | | |
-| BrowserBuffer#copy(16) | 16,357,599 ops/sec | ±0.73% | 68 | |
-| Uint8Array#copy(16) | 31,436,281 ops/sec | ±1.05% | 68 | ✓ |
-| | | | |
-| BrowserBuffer#new(16000) | 52,995 ops/sec | ±6.01% | 35 | |
-| Uint8Array#new(16000) | 87,686 ops/sec | ±5.68% | 45 | ✓ |
-| | | | |
-| BrowserBuffer#new(16) | 252,031 ops/sec | ±1.61% | 66 | |
-| Uint8Array#new(16) | 8,477,026 ops/sec | ±0.49% | 68 | ✓ |
-| | | | |
-| BrowserBuffer#readDoubleBE | 99,871 ops/sec | ±0.41% | 69 | |
-| DataView#getFloat64 | 285,663 ops/sec | ±0.70% | 68 | ✓ |
-| | | | |
-| BrowserBuffer#readFloatBE | 115,540 ops/sec | ±0.42% | 69 | |
-| DataView#getFloat32 | 288,722 ops/sec | ±0.82% | 68 | ✓ |
-| | | | |
-| BrowserBuffer#readUInt32LE | 633,926 ops/sec | ±1.08% | 67 | ✓ |
-| DataView#getUint32 | 294,808 ops/sec | ±0.79% | 64 | |
-| | | | |
-| BrowserBuffer#slice | 349,425 ops/sec | ±0.46% | 69 | |
-| Uint8Array#subarray | 5,965,819 ops/sec | ±0.60% | 65 | ✓ |
-| | | | |
-| BrowserBuffer#writeFloatBE | 59,980 ops/sec | ±0.41% | 67 | |
-| DataView#setFloat32 | 317,634 ops/sec | ±0.63% | 68 | ✓ |
-
-### Safari 8
-
-| Method | Operations | Accuracy | Sampled | Fastest |
-|:-------|:-----------|:---------|:--------|:-------:|
-| BrowserBuffer#bracket-notation | 10,279,729 ops/sec | ±2.25% | 56 | ✓ |
-| Uint8Array#bracket-notation | 10,030,767 ops/sec | ±2.23% | 59 | |
-| | | | |
-| BrowserBuffer#concat | 144,138 ops/sec | ±1.38% | 65 | |
-| Uint8Array#concat | 4,950,764 ops/sec | ±1.70% | 63 | ✓ |
-| | | | |
-| BrowserBuffer#copy(16000) | 1,058,548 ops/sec | ±1.51% | 64 | |
-| Uint8Array#copy(16000) | 1,409,666 ops/sec | ±1.17% | 65 | ✓ |
-| | | | |
-| BrowserBuffer#copy(16) | 6,282,529 ops/sec | ±1.88% | 58 | |
-| Uint8Array#copy(16) | 11,907,128 ops/sec | ±2.87% | 58 | ✓ |
-| | | | |
-| BrowserBuffer#new(16000) | 101,663 ops/sec | ±3.89% | 57 | |
-| Uint8Array#new(16000) | 22,050,818 ops/sec | ±6.51% | 46 | ✓ |
-| | | | |
-| BrowserBuffer#new(16) | 176,072 ops/sec | ±2.13% | 64 | |
-| Uint8Array#new(16) | 24,385,731 ops/sec | ±5.01% | 51 | ✓ |
-| | | | |
-| BrowserBuffer#readDoubleBE | 41,341 ops/sec | ±1.06% | 67 | |
-| DataView#getFloat64 | 322,280 ops/sec | ±0.84% | 68 | ✓ |
-| | | | |
-| BrowserBuffer#readFloatBE | 46,141 ops/sec | ±1.06% | 65 | |
-| DataView#getFloat32 | 337,025 ops/sec | ±0.43% | 69 | ✓ |
-| | | | |
-| BrowserBuffer#readUInt32LE | 151,551 ops/sec | ±1.02% | 66 | |
-| DataView#getUint32 | 308,278 ops/sec | ±0.94% | 67 | ✓ |
-| | | | |
-| BrowserBuffer#slice | 197,365 ops/sec | ±0.95% | 66 | |
-| Uint8Array#subarray | 9,558,024 ops/sec | ±3.08% | 58 | ✓ |
-| | | | |
-| BrowserBuffer#writeFloatBE | 17,518 ops/sec | ±1.03% | 63 | |
-| DataView#setFloat32 | 319,751 ops/sec | ±0.48% | 68 | ✓ |
-
-
-### Node 0.11.14
-
-| Method | Operations | Accuracy | Sampled | Fastest |
-|:-------|:-----------|:---------|:--------|:-------:|
-| BrowserBuffer#bracket-notation | 10,489,828 ops/sec | ±3.25% | 90 | |
-| Uint8Array#bracket-notation | 10,534,884 ops/sec | ±0.81% | 92 | ✓ |
-| NodeBuffer#bracket-notation | 10,389,910 ops/sec | ±0.97% | 87 | |
-| | | | |
-| BrowserBuffer#concat | 487,830 ops/sec | ±2.58% | 88 | |
-| Uint8Array#concat | 1,814,327 ops/sec | ±1.28% | 88 | ✓ |
-| NodeBuffer#concat | 1,636,523 ops/sec | ±1.88% | 73 | |
-| | | | |
-| BrowserBuffer#copy(16000) | 1,073,665 ops/sec | ±0.77% | 90 | |
-| Uint8Array#copy(16000) | 1,348,517 ops/sec | ±0.84% | 89 | ✓ |
-| NodeBuffer#copy(16000) | 1,289,533 ops/sec | ±0.82% | 93 | |
-| | | | |
-| BrowserBuffer#copy(16) | 12,782,706 ops/sec | ±0.74% | 85 | |
-| Uint8Array#copy(16) | 14,180,427 ops/sec | ±0.93% | 92 | ✓ |
-| NodeBuffer#copy(16) | 11,083,134 ops/sec | ±1.06% | 89 | |
-| | | | |
-| BrowserBuffer#new(16000) | 141,678 ops/sec | ±3.30% | 67 | |
-| Uint8Array#new(16000) | 161,491 ops/sec | ±2.96% | 60 | |
-| NodeBuffer#new(16000) | 292,699 ops/sec | ±3.20% | 55 | ✓ |
-| | | | |
-| BrowserBuffer#new(16) | 1,655,466 ops/sec | ±2.41% | 82 | |
-| Uint8Array#new(16) | 14,399,926 ops/sec | ±0.91% | 94 | ✓ |
-| NodeBuffer#new(16) | 3,894,696 ops/sec | ±0.88% | 92 | |
-| | | | |
-| BrowserBuffer#readDoubleBE | 109,582 ops/sec | ±0.75% | 93 | ✓ |
-| DataView#getFloat64 | 91,235 ops/sec | ±0.81% | 90 | |
-| NodeBuffer#readDoubleBE | 88,593 ops/sec | ±0.96% | 81 | |
-| | | | |
-| BrowserBuffer#readFloatBE | 139,854 ops/sec | ±1.03% | 85 | ✓ |
-| DataView#getFloat32 | 98,744 ops/sec | ±0.80% | 89 | |
-| NodeBuffer#readFloatBE | 92,769 ops/sec | ±0.94% | 93 | |
-| | | | |
-| BrowserBuffer#readUInt32LE | 710,861 ops/sec | ±0.82% | 92 | |
-| DataView#getUint32 | 117,893 ops/sec | ±0.84% | 91 | |
-| NodeBuffer#readUInt32LE | 851,412 ops/sec | ±0.72% | 93 | ✓ |
-| | | | |
-| BrowserBuffer#slice | 1,673,877 ops/sec | ±0.73% | 94 | |
-| Uint8Array#subarray | 6,919,243 ops/sec | ±0.67% | 90 | ✓ |
-| NodeBuffer#slice | 4,617,604 ops/sec | ±0.79% | 93 | |
-| | | | |
-| BrowserBuffer#writeFloatBE | 66,011 ops/sec | ±0.75% | 93 | |
-| DataView#setFloat32 | 127,760 ops/sec | ±0.72% | 93 | ✓ |
-| NodeBuffer#writeFloatBE | 103,352 ops/sec | ±0.83% | 93 | |
-
-### iojs 1.8.1
-
-| Method | Operations | Accuracy | Sampled | Fastest |
-|:-------|:-----------|:---------|:--------|:-------:|
-| BrowserBuffer#bracket-notation | 10,990,488 ops/sec | ±1.11% | 91 | |
-| Uint8Array#bracket-notation | 11,268,757 ops/sec | ±0.65% | 97 | |
-| NodeBuffer#bracket-notation | 11,353,260 ops/sec | ±0.83% | 94 | ✓ |
-| | | | |
-| BrowserBuffer#concat | 378,954 ops/sec | ±0.74% | 94 | |
-| Uint8Array#concat | 1,358,288 ops/sec | ±0.97% | 87 | |
-| NodeBuffer#concat | 1,934,050 ops/sec | ±1.11% | 78 | ✓ |
-| | | | |
-| BrowserBuffer#copy(16000) | 894,538 ops/sec | ±0.56% | 84 | |
-| Uint8Array#copy(16000) | 1,442,656 ops/sec | ±0.71% | 96 | |
-| NodeBuffer#copy(16000) | 1,457,898 ops/sec | ±0.53% | 92 | ✓ |
-| | | | |
-| BrowserBuffer#copy(16) | 12,870,457 ops/sec | ±0.67% | 95 | |
-| Uint8Array#copy(16) | 16,643,989 ops/sec | ±0.61% | 93 | ✓ |
-| NodeBuffer#copy(16) | 14,885,848 ops/sec | ±0.74% | 94 | |
-| | | | |
-| BrowserBuffer#new(16000) | 109,264 ops/sec | ±4.21% | 63 | |
-| Uint8Array#new(16000) | 138,916 ops/sec | ±1.87% | 61 | |
-| NodeBuffer#new(16000) | 281,449 ops/sec | ±3.58% | 51 | ✓ |
-| | | | |
-| BrowserBuffer#new(16) | 1,362,935 ops/sec | ±0.56% | 99 | |
-| Uint8Array#new(16) | 6,193,090 ops/sec | ±0.64% | 95 | ✓ |
-| NodeBuffer#new(16) | 4,745,425 ops/sec | ±1.56% | 90 | |
-| | | | |
-| BrowserBuffer#readDoubleBE | 118,127 ops/sec | ±0.59% | 93 | ✓ |
-| DataView#getFloat64 | 107,332 ops/sec | ±0.65% | 91 | |
-| NodeBuffer#readDoubleBE | 116,274 ops/sec | ±0.94% | 95 | |
-| | | | |
-| BrowserBuffer#readFloatBE | 150,326 ops/sec | ±0.58% | 95 | ✓ |
-| DataView#getFloat32 | 110,541 ops/sec | ±0.57% | 98 | |
-| NodeBuffer#readFloatBE | 121,599 ops/sec | ±0.60% | 87 | |
-| | | | |
-| BrowserBuffer#readUInt32LE | 814,147 ops/sec | ±0.62% | 93 | |
-| DataView#getUint32 | 137,592 ops/sec | ±0.64% | 90 | |
-| NodeBuffer#readUInt32LE | 931,650 ops/sec | ±0.71% | 96 | ✓ |
-| | | | |
-| BrowserBuffer#slice | 878,590 ops/sec | ±0.68% | 93 | |
-| Uint8Array#subarray | 2,843,308 ops/sec | ±1.02% | 90 | |
-| NodeBuffer#slice | 4,998,316 ops/sec | ±0.68% | 90 | ✓ |
-| | | | |
-| BrowserBuffer#writeFloatBE | 65,927 ops/sec | ±0.74% | 93 | |
-| DataView#setFloat32 | 139,823 ops/sec | ±0.97% | 89 | ✓ |
-| NodeBuffer#writeFloatBE | 135,763 ops/sec | ±0.65% | 96 | |
-| | | | |
-
-## Testing the project
-
-First, install the project:
-
-    npm install
-
-Then, to run tests in Node.js, run:
-
-    npm run test-node
-
-To test locally in a browser, you can run:
-
-    npm run test-browser-local
-
-This will print out a URL that you can then open in a browser to run the tests, using [Zuul](https://github.com/defunctzombie/zuul).
-
-To run automated browser tests using Saucelabs, ensure that your `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY` environment variables are set, then run:
-
-    npm test
-
-This is what's run in Travis, to check against various browsers. The list of browsers is kept in the `.zuul.yml` file.
-
-## JavaScript Standard Style
-
-This module uses [JavaScript Standard Style](https://github.com/feross/standard).
-
-[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
-
-To test that the code conforms to the style, `npm install` and run:
-
-    ./node_modules/.bin/standard
-
-## credit
-
-This was originally forked from [buffer-browserify](https://github.com/toots/buffer-browserify).
-
-
-## license
-
-MIT. Copyright (C) [Feross Aboukhadijeh](http://feross.org), and other contributors. Originally forked from an MIT-licensed module by Romain Beauxis.

+ 0 - 106
node_modules.bak/buffer/bin/download-node-tests.js

@@ -1,106 +0,0 @@
-#!/usr/bin/env node
-
-var concat = require('concat-stream')
-var cp = require('child_process')
-var fs = require('fs')
-var hyperquest = require('hyperquest')
-var path = require('path')
-var split = require('split')
-var through = require('through2')
-
-var url = 'https://api.github.com/repos/nodejs/node/contents'
-var dirs = [
-  '/test/parallel',
-  '/test/pummel'
-]
-
-cp.execSync('rm -rf node/*.js', { cwd: path.join(__dirname, '../test') })
-
-var httpOpts = {
-  headers: {
-    'User-Agent': null
-    // auth if github rate-limits you...
-    // 'Authorization': 'Basic ' + Buffer('username:password').toString('base64'),
-  }
-}
-
-dirs.forEach(function (dir) {
-  var req = hyperquest(url + dir, httpOpts)
-  req.pipe(concat(function (data) {
-    if (req.response.statusCode !== 200) {
-      throw new Error(url + dir + ': ' + data.toString())
-    }
-    downloadBufferTests(dir, JSON.parse(data))
-  }))
-})
-
-function downloadBufferTests (dir, files) {
-  files.forEach(function (file) {
-    if (!/test-buffer.*/.test(file.name)) return
-
-    if (file.name === 'test-buffer-fakes.js') {
-      // These teses only apply to node, where they're calling into C++ and need to
-      // ensure the prototype can't be faked, or else there will be a segfault.
-      return
-    }
-
-    console.log(file.download_url)
-
-    var out = path.join(__dirname, '../test/node', file.name)
-    hyperquest(file.download_url, httpOpts)
-      .pipe(split())
-      .pipe(testfixer(file.name))
-      .pipe(fs.createWriteStream(out))
-      .on('finish', function () {
-        console.log('wrote ' + file.name)
-      })
-  })
-}
-
-function testfixer (filename) {
-  var firstline = true
-
-  return through(function (line, enc, cb) {
-    line = line.toString()
-
-    if (firstline) {
-      // require buffer explicitly
-      var preamble = 'var Buffer = require(\'../../\').Buffer;\n'
-      if (/use strict/.test(line)) line += '\n' + preamble
-      else line + preamble + '\n' + line
-      firstline = false
-    }
-
-    // use `var` instead of `const`/`let`
-    line = line.replace(/(const|let) /g, 'var ')
-
-    // make `var common = require('common')` work
-    line = line.replace(/(var common = require.*)/g, 'var common = { skip: function () {} };')
-
-    // make `require('../common')` work
-    line = line.replace(/require\('\.\.\/common'\);/g, '')
-
-    // require browser buffer
-    line = line.replace(/(.*)require\('buffer'\)(.*)/g, '$1require(\'../../\')$2')
-
-    // comment out console logs
-    line = line.replace(/(.*console\..*)/g, '// $1')
-
-    // we can't reliably test typed array max-sizes in the browser
-    if (filename === 'test-buffer-big.js') {
-      line = line.replace(/(.*new Int8Array.*RangeError.*)/, '// $1')
-      line = line.replace(/(.*new ArrayBuffer.*RangeError.*)/, '// $1')
-      line = line.replace(/(.*new Float64Array.*RangeError.*)/, '// $1')
-    }
-
-    // https://github.com/nodejs/node/blob/v0.12/test/parallel/test-buffer.js#L1138
-    // unfortunately we can't run this because crypto-browserify doesn't work in old
-    // versions of ie
-    if (filename === 'test-buffer.js') {
-      line = line.replace(/^(\s*)(var crypto = require.*)/, '$1// $2')
-      line = line.replace(/(crypto.createHash.*\))/, '1 /*$1*/')
-    }
-
-    cb(null, line + '\n')
-  })
-}

+ 0 - 41
node_modules.bak/buffer/bin/test.js

@@ -1,41 +0,0 @@
-#!/usr/bin/env node
-
-var cp = require('child_process')
-var fs = require('fs')
-var path = require('path')
-
-var shouldRunBrowserTests = !process.env.TRAVIS_PULL_REQUEST ||
-  process.env.TRAVIS_PULL_REQUEST === 'false'
-
-var node = cp.spawn('npm', ['run', 'test-node'], { stdio: 'inherit' })
-node.on('close', function (code) {
-  if (code === 0 && shouldRunBrowserTests) {
-    runBrowserTests()
-  } else {
-    process.exit(code)
-  }
-})
-
-function runBrowserTests () {
-  var zuulYmlPath = path.join(__dirname, '..', '.zuul.yml')
-
-  writeES5ZuulYml()
-  cp.spawn('npm', ['run', 'test-browser-es5'], { stdio: 'inherit' })
-    .on('close', function (code) {
-      if (code !== 0) process.exit(code)
-      writeES6ZuulYml()
-      cp.spawn('npm', ['run', 'test-browser-es6'], { stdio: 'inherit' })
-        .on('close', function (code) {
-          process.exit(code)
-        })
-    })
-
-  function writeES5ZuulYml () {
-    fs.writeFileSync(zuulYmlPath, fs.readFileSync(path.join(__dirname, 'zuul-es5.yml')))
-  }
-
-  function writeES6ZuulYml () {
-    fs.writeFileSync(zuulYmlPath, fs.readFileSync(path.join(__dirname, 'zuul-es6.yml')))
-  }
-}
-

+ 0 - 21
node_modules.bak/buffer/bin/update-authors.sh

@@ -1,21 +0,0 @@
-#!/bin/sh
-# Update AUTHORS.md based on git history.
-
-git log --reverse --format='%aN (%aE)' | perl -we '
-BEGIN {
-  %seen = (), @authors = ();
-}
-while (<>) {
-  next if $seen{$_};
-  next if /(support\@greenkeeper.io)/;
-  next if /(dcousens\@users.noreply.github.com)/;
-  next if /(cmetcalf\@appgeo.com)/;
-  $seen{$_} = push @authors, "- ", $_;
-}
-END {
-  print "# Authors\n\n";
-  print "#### Ordered by first contribution.\n\n";
-  print @authors, "\n";
-  print "#### Generated by bin/update-authors.sh.\n";
-}
-' > AUTHORS.md

+ 0 - 14
node_modules.bak/buffer/bin/zuul-es5.yml

@@ -1,14 +0,0 @@
-ui: tape
-scripts:
-  - ./test/_polyfill.js
-browsers:
-  - name: safari
-    version: latest
-  - name: ie
-    version: 8..latest
-  - name: microsoftedge
-    version: 13..latest
-  - name: android
-    version: 4.4..latest
-  - name: iphone
-    version: latest

+ 0 - 6
node_modules.bak/buffer/bin/zuul-es6.yml

@@ -1,6 +0,0 @@
-ui: tape
-browsers:
-  - name: chrome
-    version: '-1..latest'
-  - name: firefox
-    version: '-1..latest'

File diff suppressed because it is too large
+ 0 - 1789
node_modules.bak/buffer/index.js


+ 0 - 108
node_modules.bak/buffer/package.json

@@ -1,108 +0,0 @@
-{
-  "_from": "buffer@^4.3.0",
-  "_id": "buffer@4.9.2",
-  "_inBundle": false,
-  "_integrity": "sha1-Iw6tNEACmIZEhBqwJEr4xEu+Pvg=",
-  "_location": "/buffer",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "buffer@^4.3.0",
-    "name": "buffer",
-    "escapedName": "buffer",
-    "rawSpec": "^4.3.0",
-    "saveSpec": null,
-    "fetchSpec": "^4.3.0"
-  },
-  "_requiredBy": [
-    "/node-libs-browser"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/buffer/download/buffer-4.9.2.tgz?cache=0&sync_timestamp=1606098066706&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbuffer%2Fdownload%2Fbuffer-4.9.2.tgz",
-  "_shasum": "230ead344002988644841ab0244af8c44bbe3ef8",
-  "_spec": "buffer@^4.3.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\node-libs-browser",
-  "author": {
-    "name": "Feross Aboukhadijeh",
-    "email": "feross@feross.org",
-    "url": "http://feross.org"
-  },
-  "bugs": {
-    "url": "https://github.com/feross/buffer/issues"
-  },
-  "bundleDependencies": false,
-  "contributors": [
-    {
-      "name": "Romain Beauxis",
-      "email": "toots@rastageeks.org"
-    },
-    {
-      "name": "James Halliday",
-      "email": "mail@substack.net"
-    }
-  ],
-  "dependencies": {
-    "base64-js": "^1.0.2",
-    "ieee754": "^1.1.4",
-    "isarray": "^1.0.0"
-  },
-  "deprecated": false,
-  "description": "Node.js Buffer API, for the browser",
-  "devDependencies": {
-    "benchmark": "^2.0.0",
-    "browserify": "^13.0.0",
-    "concat-stream": "^1.4.7",
-    "hyperquest": "^2.0.0",
-    "is-buffer": "^1.1.1",
-    "is-nan": "^1.0.1",
-    "split": "^1.0.0",
-    "standard": "^7.0.0",
-    "tape": "^4.0.0",
-    "through2": "^2.0.0",
-    "zuul": "^3.0.0"
-  },
-  "homepage": "https://github.com/feross/buffer",
-  "jspm": {
-    "map": {
-      "./index.js": {
-        "node": "@node/buffer"
-      }
-    }
-  },
-  "keywords": [
-    "arraybuffer",
-    "browser",
-    "browserify",
-    "buffer",
-    "compatible",
-    "dataview",
-    "uint8array"
-  ],
-  "license": "MIT",
-  "main": "index.js",
-  "name": "buffer",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/feross/buffer.git"
-  },
-  "scripts": {
-    "perf": "browserify --debug perf/bracket-notation.js > perf/bundle.js && open perf/index.html",
-    "perf-node": "node perf/bracket-notation.js && node perf/concat.js && node perf/copy-big.js && node perf/copy.js && node perf/new-big.js && node perf/new.js && node perf/readDoubleBE.js && node perf/readFloatBE.js && node perf/readUInt32LE.js && node perf/slice.js && node perf/writeFloatBE.js",
-    "size": "browserify -r ./ | uglifyjs -c -m | gzip | wc -c",
-    "test": "standard && node ./bin/test.js",
-    "test-browser-es5": "zuul --ui tape -- test/*.js",
-    "test-browser-es5-local": "zuul --ui tape --local -- test/*.js",
-    "test-browser-es6": "zuul --ui tape -- test/*.js test/node/*.js",
-    "test-browser-es6-local": "zuul --ui tape --local -- test/*.js test/node/*.js",
-    "test-node": "tape test/*.js test/node/*.js && OBJECT_IMPL=true tape test/*.js",
-    "update-authors": "./bin/update-authors.sh"
-  },
-  "standard": {
-    "ignore": [
-      "test/node/*.js",
-      "test/_polyfill.js",
-      "perf/*.js"
-    ]
-  },
-  "version": "4.9.2"
-}

+ 0 - 150
node_modules.bak/buffer/test/_polyfill.js

@@ -1,150 +0,0 @@
-if (!Array.prototype.forEach) {
-
-  Array.prototype.forEach = function(callback, thisArg) {
-
-    var T, k;
-
-    if (this == null) {
-      throw new TypeError(' this is null or not defined');
-    }
-
-    // 1. Let O be the result of calling ToObject passing the |this| value as the argument.
-    var O = Object(this);
-
-    // 2. Let lenValue be the result of calling the Get internal method of O with the argument "length".
-    // 3. Let len be ToUint32(lenValue).
-    var len = O.length >>> 0;
-
-    // 4. If IsCallable(callback) is false, throw a TypeError exception.
-    // See: http://es5.github.com/#x9.11
-    if (typeof callback !== "function") {
-      throw new TypeError(callback + ' is not a function');
-    }
-
-    // 5. If thisArg was supplied, let T be thisArg; else let T be undefined.
-    if (arguments.length > 1) {
-      T = thisArg;
-    }
-
-    // 6. Let k be 0
-    k = 0;
-
-    // 7. Repeat, while k < len
-    while (k < len) {
-
-      var kValue;
-
-      // a. Let Pk be ToString(k).
-      //   This is implicit for LHS operands of the in operator
-      // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk.
-      //   This step can be combined with c
-      // c. If kPresent is true, then
-      if (k in O) {
-
-        // i. Let kValue be the result of calling the Get internal method of O with argument Pk.
-        kValue = O[k];
-
-        // ii. Call the Call internal method of callback with T as the this value and
-        // argument list containing kValue, k, and O.
-        callback.call(T, kValue, k, O);
-      }
-      // d. Increase k by 1.
-      k++;
-    }
-    // 8. return undefined
-  };
-}
-
-if (!Array.isArray) {
-  Array.isArray = function(arg) {
-    return Object.prototype.toString.call(arg) === '[object Array]';
-  };
-}
-
-if (!Array.prototype.map) {
-
-  Array.prototype.map = function(callback, thisArg) {
-
-    var T, A, k;
-
-    if (this == null) {
-      throw new TypeError(' this is null or not defined');
-    }
-
-    // 1. Let O be the result of calling ToObject passing the |this|
-    //    value as the argument.
-    var O = Object(this);
-
-    // 2. Let lenValue be the result of calling the Get internal
-    //    method of O with the argument "length".
-    // 3. Let len be ToUint32(lenValue).
-    var len = O.length >>> 0;
-
-    // 4. If IsCallable(callback) is false, throw a TypeError exception.
-    // See: http://es5.github.com/#x9.11
-    if (typeof callback !== 'function') {
-      throw new TypeError(callback + ' is not a function');
-    }
-
-    // 5. If thisArg was supplied, let T be thisArg; else let T be undefined.
-    if (arguments.length > 1) {
-      T = thisArg;
-    }
-
-    // 6. Let A be a new array created as if by the expression new Array(len)
-    //    where Array is the standard built-in constructor with that name and
-    //    len is the value of len.
-    A = new Array(len);
-
-    // 7. Let k be 0
-    k = 0;
-
-    // 8. Repeat, while k < len
-    while (k < len) {
-
-      var kValue, mappedValue;
-
-      // a. Let Pk be ToString(k).
-      //   This is implicit for LHS operands of the in operator
-      // b. Let kPresent be the result of calling the HasProperty internal
-      //    method of O with argument Pk.
-      //   This step can be combined with c
-      // c. If kPresent is true, then
-      if (k in O) {
-
-        // i. Let kValue be the result of calling the Get internal
-        //    method of O with argument Pk.
-        kValue = O[k];
-
-        // ii. Let mappedValue be the result of calling the Call internal
-        //     method of callback with T as the this value and argument
-        //     list containing kValue, k, and O.
-        mappedValue = callback.call(T, kValue, k, O);
-
-        // iii. Call the DefineOwnProperty internal method of A with arguments
-        // Pk, Property Descriptor
-        // { Value: mappedValue,
-        //   Writable: true,
-        //   Enumerable: true,
-        //   Configurable: true },
-        // and false.
-
-        // In browsers that support Object.defineProperty, use the following:
-        // Object.defineProperty(A, k, {
-        //   value: mappedValue,
-        //   writable: true,
-        //   enumerable: true,
-        //   configurable: true
-        // });
-
-        // For best browser support, use the following:
-        A[k] = mappedValue;
-      }
-      // d. Increase k by 1.
-      k++;
-    }
-
-    // 9. return A
-    return A;
-  };
-}

+ 0 - 47
node_modules.bak/buffer/test/base64.js

@@ -1,47 +0,0 @@
-if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false
-var B = require('../').Buffer
-var test = require('tape')
-
-test('base64: ignore whitespace', function (t) {
-  var text = '\n   YW9ldQ==  '
-  var buf = new B(text, 'base64')
-  t.equal(buf.toString(), 'aoeu')
-  t.end()
-})
-
-test('base64: strings without padding', function (t) {
-  t.equal((new B('YW9ldQ', 'base64').toString()), 'aoeu')
-  t.end()
-})
-
-test('base64: newline in utf8 -- should not be an issue', function (t) {
-  t.equal(
-    new B('LS0tCnRpdGxlOiBUaHJlZSBkYXNoZXMgbWFya3MgdGhlIHNwb3QKdGFnczoK', 'base64').toString('utf8'),
-    '---\ntitle: Three dashes marks the spot\ntags:\n'
-  )
-  t.end()
-})
-
-test('base64: newline in base64 -- should get stripped', function (t) {
-  t.equal(
-    new B('LS0tCnRpdGxlOiBUaHJlZSBkYXNoZXMgbWFya3MgdGhlIHNwb3QKdGFnczoK\nICAtIHlhbWwKICAtIGZyb250LW1hdHRlcgogIC0gZGFzaGVzCmV4cGFuZWQt', 'base64').toString('utf8'),
-    '---\ntitle: Three dashes marks the spot\ntags:\n  - yaml\n  - front-matter\n  - dashes\nexpaned-'
-  )
-  t.end()
-})
-
-test('base64: tab characters in base64 - should get stripped', function (t) {
-  t.equal(
-    new B('LS0tCnRpdGxlOiBUaHJlZSBkYXNoZXMgbWFya3MgdGhlIHNwb3QKdGFnczoK\t\t\t\tICAtIHlhbWwKICAtIGZyb250LW1hdHRlcgogIC0gZGFzaGVzCmV4cGFuZWQt', 'base64').toString('utf8'),
-    '---\ntitle: Three dashes marks the spot\ntags:\n  - yaml\n  - front-matter\n  - dashes\nexpaned-'
-  )
-  t.end()
-})
-
-test('base64: invalid non-alphanumeric characters -- should be stripped', function (t) {
-  t.equal(
-    new B('!"#$%&\'()*,.:;<=>?@[\\]^`{|}~', 'base64').toString('utf8'),
-    ''
-  )
-  t.end()
-})

+ 0 - 85
node_modules.bak/buffer/test/basic.js

@@ -1,85 +0,0 @@
-if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false
-var B = require('../').Buffer
-var test = require('tape')
-
-test('instanceof Buffer', function (t) {
-  var buf = new B([1, 2])
-  t.ok(buf instanceof B)
-  t.end()
-})
-
-test('convert to Uint8Array in modern browsers', function (t) {
-  if (B.TYPED_ARRAY_SUPPORT) {
-    var buf = new B([1, 2])
-    var uint8array = new Uint8Array(buf.buffer)
-    t.ok(uint8array instanceof Uint8Array)
-    t.equal(uint8array[0], 1)
-    t.equal(uint8array[1], 2)
-  } else {
-    t.pass('object impl: skipping test')
-  }
-  t.end()
-})
-
-test('indexes from a string', function (t) {
-  var buf = new B('abc')
-  t.equal(buf[0], 97)
-  t.equal(buf[1], 98)
-  t.equal(buf[2], 99)
-  t.end()
-})
-
-test('indexes from an array', function (t) {
-  var buf = new B([ 97, 98, 99 ])
-  t.equal(buf[0], 97)
-  t.equal(buf[1], 98)
-  t.equal(buf[2], 99)
-  t.end()
-})
-
-test('setting index value should modify buffer contents', function (t) {
-  var buf = new B([ 97, 98, 99 ])
-  t.equal(buf[2], 99)
-  t.equal(buf.toString(), 'abc')
-
-  buf[2] += 10
-  t.equal(buf[2], 109)
-  t.equal(buf.toString(), 'abm')
-  t.end()
-})
-
-test('storing negative number should cast to unsigned', function (t) {
-  var buf = new B(1)
-
-  if (B.TYPED_ARRAY_SUPPORT) {
-    // This does not work with the object implementation -- nothing we can do!
-    buf[0] = -3
-    t.equal(buf[0], 253)
-  }
-
-  buf = new B(1)
-  buf.writeInt8(-3, 0)
-  t.equal(buf[0], 253)
-
-  t.end()
-})
-
-test('test that memory is copied from array-like', function (t) {
-  if (B.TYPED_ARRAY_SUPPORT) {
-    var u = new Uint8Array(4)
-    var b = new B(u)
-    b[0] = 1
-    b[1] = 2
-    b[2] = 3
-    b[3] = 4
-
-    t.equal(u[0], 0)
-    t.equal(u[1], 0)
-    t.equal(u[2], 0)
-    t.equal(u[3], 0)
-  } else {
-    t.pass('object impl: skipping test')
-  }
-
-  t.end()
-})

+ 0 - 59
node_modules.bak/buffer/test/compare.js

@@ -1,59 +0,0 @@
-if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false
-var B = require('../').Buffer
-var test = require('tape')
-
-test('buffer.compare', function (t) {
-  var b = new B(1).fill('a')
-  var c = new B(1).fill('c')
-  var d = new B(2).fill('aa')
-
-  t.equal(b.compare(c), -1)
-  t.equal(c.compare(d), 1)
-  t.equal(d.compare(b), 1)
-  t.equal(b.compare(d), -1)
-
-  // static method
-  t.equal(B.compare(b, c), -1)
-  t.equal(B.compare(c, d), 1)
-  t.equal(B.compare(d, b), 1)
-  t.equal(B.compare(b, d), -1)
-  t.end()
-})
-
-test('buffer.compare argument validation', function (t) {
-  t.throws(function () {
-    var b = new B(1)
-    B.compare(b, 'abc')
-  })
-
-  t.throws(function () {
-    var b = new B(1)
-    B.compare('abc', b)
-  })
-
-  t.throws(function () {
-    var b = new B(1)
-    b.compare('abc')
-  })
-  t.end()
-})
-
-test('buffer.equals', function (t) {
-  var b = new B(5).fill('abcdf')
-  var c = new B(5).fill('abcdf')
-  var d = new B(5).fill('abcde')
-  var e = new B(6).fill('abcdef')
-
-  t.ok(b.equals(c))
-  t.ok(!c.equals(d))
-  t.ok(!d.equals(e))
-  t.end()
-})
-
-test('buffer.equals argument validation', function (t) {
-  t.throws(function () {
-    var b = new B(1)
-    b.equals('abc')
-  })
-  t.end()
-})

+ 0 - 193
node_modules.bak/buffer/test/constructor.js

@@ -1,193 +0,0 @@
-if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false
-var B = require('../').Buffer
-var test = require('tape')
-
-test('new buffer from array', function (t) {
-  t.equal(
-    new B([1, 2, 3]).toString(),
-    '\u0001\u0002\u0003'
-  )
-  t.end()
-})
-
-test('new buffer from array w/ negatives', function (t) {
-  t.equal(
-    new B([-1, -2, -3]).toString('hex'),
-    'fffefd'
-  )
-  t.end()
-})
-
-test('new buffer from array with mixed signed input', function (t) {
-  t.equal(
-    new B([-255, 255, -128, 128, 512, -512, 511, -511]).toString('hex'),
-    '01ff80800000ff01'
-  )
-  t.end()
-})
-
-test('new buffer from string', function (t) {
-  t.equal(
-    new B('hey', 'utf8').toString(),
-    'hey'
-  )
-  t.end()
-})
-
-test('new buffer from buffer', function (t) {
-  var b1 = new B('asdf')
-  var b2 = new B(b1)
-  t.equal(b1.toString('hex'), b2.toString('hex'))
-  t.end()
-})
-
-test('new buffer from ArrayBuffer', function (t) {
-  if (typeof ArrayBuffer !== 'undefined') {
-    var arraybuffer = new Uint8Array([0, 1, 2, 3]).buffer
-    var b = new B(arraybuffer)
-    t.equal(b.length, 4)
-    t.equal(b[0], 0)
-    t.equal(b[1], 1)
-    t.equal(b[2], 2)
-    t.equal(b[3], 3)
-    t.equal(b[4], undefined)
-  }
-  t.end()
-})
-
-test('new buffer from ArrayBuffer, shares memory', function (t) {
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    var u = new Uint8Array([0, 1, 2, 3])
-    var arraybuffer = u.buffer
-    var b = new B(arraybuffer)
-    t.equal(b.length, 4)
-    t.equal(b[0], 0)
-    t.equal(b[1], 1)
-    t.equal(b[2], 2)
-    t.equal(b[3], 3)
-    t.equal(b[4], undefined)
-
-    // changing the Uint8Array (and thus the ArrayBuffer), changes the Buffer
-    u[0] = 10
-    t.equal(b[0], 10)
-    u[1] = 11
-    t.equal(b[1], 11)
-    u[2] = 12
-    t.equal(b[2], 12)
-    u[3] = 13
-    t.equal(b[3], 13)
-  }
-  t.end()
-})
-
-test('new buffer from Uint8Array', function (t) {
-  if (typeof Uint8Array !== 'undefined') {
-    var b1 = new Uint8Array([0, 1, 2, 3])
-    var b2 = new B(b1)
-    t.equal(b1.length, b2.length)
-    t.equal(b1[0], 0)
-    t.equal(b1[1], 1)
-    t.equal(b1[2], 2)
-    t.equal(b1[3], 3)
-    t.equal(b1[4], undefined)
-  }
-  t.end()
-})
-
-test('new buffer from Uint16Array', function (t) {
-  if (typeof Uint16Array !== 'undefined') {
-    var b1 = new Uint16Array([0, 1, 2, 3])
-    var b2 = new B(b1)
-    t.equal(b1.length, b2.length)
-    t.equal(b1[0], 0)
-    t.equal(b1[1], 1)
-    t.equal(b1[2], 2)
-    t.equal(b1[3], 3)
-    t.equal(b1[4], undefined)
-  }
-  t.end()
-})
-
-test('new buffer from Uint32Array', function (t) {
-  if (typeof Uint32Array !== 'undefined') {
-    var b1 = new Uint32Array([0, 1, 2, 3])
-    var b2 = new B(b1)
-    t.equal(b1.length, b2.length)
-    t.equal(b1[0], 0)
-    t.equal(b1[1], 1)
-    t.equal(b1[2], 2)
-    t.equal(b1[3], 3)
-    t.equal(b1[4], undefined)
-  }
-  t.end()
-})
-
-test('new buffer from Int16Array', function (t) {
-  if (typeof Int16Array !== 'undefined') {
-    var b1 = new Int16Array([0, 1, 2, 3])
-    var b2 = new B(b1)
-    t.equal(b1.length, b2.length)
-    t.equal(b1[0], 0)
-    t.equal(b1[1], 1)
-    t.equal(b1[2], 2)
-    t.equal(b1[3], 3)
-    t.equal(b1[4], undefined)
-  }
-  t.end()
-})
-
-test('new buffer from Int32Array', function (t) {
-  if (typeof Int32Array !== 'undefined') {
-    var b1 = new Int32Array([0, 1, 2, 3])
-    var b2 = new B(b1)
-    t.equal(b1.length, b2.length)
-    t.equal(b1[0], 0)
-    t.equal(b1[1], 1)
-    t.equal(b1[2], 2)
-    t.equal(b1[3], 3)
-    t.equal(b1[4], undefined)
-  }
-  t.end()
-})
-
-test('new buffer from Float32Array', function (t) {
-  if (typeof Float32Array !== 'undefined') {
-    var b1 = new Float32Array([0, 1, 2, 3])
-    var b2 = new B(b1)
-    t.equal(b1.length, b2.length)
-    t.equal(b1[0], 0)
-    t.equal(b1[1], 1)
-    t.equal(b1[2], 2)
-    t.equal(b1[3], 3)
-    t.equal(b1[4], undefined)
-  }
-  t.end()
-})
-
-test('new buffer from Float64Array', function (t) {
-  if (typeof Float64Array !== 'undefined') {
-    var b1 = new Float64Array([0, 1, 2, 3])
-    var b2 = new B(b1)
-    t.equal(b1.length, b2.length)
-    t.equal(b1[0], 0)
-    t.equal(b1[1], 1)
-    t.equal(b1[2], 2)
-    t.equal(b1[3], 3)
-    t.equal(b1[4], undefined)
-  }
-  t.end()
-})
-
-test('new buffer from buffer.toJSON() output', function (t) {
-  if (typeof JSON === 'undefined') {
-    // ie6, ie7 lack support
-    t.end()
-    return
-  }
-  var buf = new B('test')
-  var json = JSON.stringify(buf)
-  var obj = JSON.parse(json)
-  var copy = new B(obj)
-  t.ok(buf.equals(copy))
-  t.end()
-})

+ 0 - 132
node_modules.bak/buffer/test/from-string.js

@@ -1,132 +0,0 @@
-if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false
-var B = require('../').Buffer
-var test = require('tape')
-
-test('detect utf16 surrogate pairs', function (t) {
-  var text = '\uD83D\uDE38' + '\uD83D\uDCAD' + '\uD83D\uDC4D'
-  var buf = new B(text)
-  t.equal(text, buf.toString())
-  t.end()
-})
-
-test('detect utf16 surrogate pairs over U+20000 until U+10FFFF', function (t) {
-  var text = '\uD842\uDFB7' + '\uD93D\uDCAD' + '\uDBFF\uDFFF'
-  var buf = new B(text)
-  t.equal(text, buf.toString())
-  t.end()
-})
-
-test('replace orphaned utf16 surrogate lead code point', function (t) {
-  var text = '\uD83D\uDE38' + '\uD83D' + '\uD83D\uDC4D'
-  var buf = new B(text)
-  t.deepEqual(buf, new B([ 0xf0, 0x9f, 0x98, 0xb8, 0xef, 0xbf, 0xbd, 0xf0, 0x9f, 0x91, 0x8d ]))
-  t.end()
-})
-
-test('replace orphaned utf16 surrogate trail code point', function (t) {
-  var text = '\uD83D\uDE38' + '\uDCAD' + '\uD83D\uDC4D'
-  var buf = new B(text)
-  t.deepEqual(buf, new B([ 0xf0, 0x9f, 0x98, 0xb8, 0xef, 0xbf, 0xbd, 0xf0, 0x9f, 0x91, 0x8d ]))
-  t.end()
-})
-
-test('do not write partial utf16 code units', function (t) {
-  var f = new B([0, 0, 0, 0, 0])
-  t.equal(f.length, 5)
-  var size = f.write('あいうえお', 'utf16le')
-  t.equal(size, 4)
-  t.deepEqual(f, new B([0x42, 0x30, 0x44, 0x30, 0x00]))
-  t.end()
-})
-
-test('handle partial utf16 code points when encoding to utf8 the way node does', function (t) {
-  var text = '\uD83D\uDE38' + '\uD83D\uDC4D'
-
-  var buf = new B(8)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0xf0, 0x9f, 0x98, 0xb8, 0xf0, 0x9f, 0x91, 0x8d ]))
-
-  buf = new B(7)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0xf0, 0x9f, 0x98, 0xb8, 0x00, 0x00, 0x00 ]))
-
-  buf = new B(6)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0xf0, 0x9f, 0x98, 0xb8, 0x00, 0x00 ]))
-
-  buf = new B(5)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0xf0, 0x9f, 0x98, 0xb8, 0x00 ]))
-
-  buf = new B(4)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0xf0, 0x9f, 0x98, 0xb8 ]))
-
-  buf = new B(3)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x00, 0x00, 0x00 ]))
-
-  buf = new B(2)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x00, 0x00 ]))
-
-  buf = new B(1)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x00 ]))
-
-  t.end()
-})
-
-test('handle invalid utf16 code points when encoding to utf8 the way node does', function (t) {
-  var text = 'a' + '\uDE38\uD83D' + 'b'
-
-  var buf = new B(8)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x61, 0xef, 0xbf, 0xbd, 0xef, 0xbf, 0xbd, 0x62 ]))
-
-  buf = new B(7)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x61, 0xef, 0xbf, 0xbd, 0xef, 0xbf, 0xbd ]))
-
-  buf = new B(6)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x61, 0xef, 0xbf, 0xbd, 0x00, 0x00 ]))
-
-  buf = new B(5)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x61, 0xef, 0xbf, 0xbd, 0x00 ]))
-
-  buf = new B(4)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x61, 0xef, 0xbf, 0xbd ]))
-
-  buf = new B(3)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x61, 0x00, 0x00 ]))
-
-  buf = new B(2)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x61, 0x00 ]))
-
-  buf = new B(1)
-  buf.fill(0)
-  buf.write(text)
-  t.deepEqual(buf, new B([ 0x61 ]))
-
-  t.end()
-})

+ 0 - 22
node_modules.bak/buffer/test/is-buffer.js

@@ -1,22 +0,0 @@
-if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false
-var B = require('../').Buffer
-var isBuffer = require('is-buffer')
-var test = require('tape')
-
-test('is-buffer tests', function (t) {
-  t.ok(isBuffer(new B(4)), 'new Buffer(4)')
-
-  t.notOk(isBuffer(undefined), 'undefined')
-  t.notOk(isBuffer(null), 'null')
-  t.notOk(isBuffer(''), 'empty string')
-  t.notOk(isBuffer(true), 'true')
-  t.notOk(isBuffer(false), 'false')
-  t.notOk(isBuffer(0), '0')
-  t.notOk(isBuffer(1), '1')
-  t.notOk(isBuffer(1.0), '1.0')
-  t.notOk(isBuffer('string'), 'string')
-  t.notOk(isBuffer({}), '{}')
-  t.notOk(isBuffer(function foo () {}), 'function foo () {}')
-
-  t.end()
-})

+ 0 - 127
node_modules.bak/buffer/test/methods.js

@@ -1,127 +0,0 @@
-if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false
-var B = require('../').Buffer
-var test = require('tape')
-
-test('buffer.toJSON', function (t) {
-  var data = [1, 2, 3, 4]
-  t.deepEqual(
-    new B(data).toJSON(),
-    { type: 'Buffer', data: [ 1, 2, 3, 4 ] }
-  )
-  t.end()
-})
-
-test('buffer.copy', function (t) {
-  // copied from nodejs.org example
-  var buf1 = new B(26)
-  var buf2 = new B(26)
-
-  for (var i = 0; i < 26; i++) {
-    buf1[i] = i + 97 // 97 is ASCII a
-    buf2[i] = 33 // ASCII !
-  }
-
-  buf1.copy(buf2, 8, 16, 20)
-
-  t.equal(
-    buf2.toString('ascii', 0, 25),
-    '!!!!!!!!qrst!!!!!!!!!!!!!'
-  )
-  t.end()
-})
-
-test('test offset returns are correct', function (t) {
-  var b = new B(16)
-  t.equal(4, b.writeUInt32LE(0, 0))
-  t.equal(6, b.writeUInt16LE(0, 4))
-  t.equal(7, b.writeUInt8(0, 6))
-  t.equal(8, b.writeInt8(0, 7))
-  t.equal(16, b.writeDoubleLE(0, 8))
-  t.end()
-})
-
-test('concat() a varying number of buffers', function (t) {
-  var zero = []
-  var one = [ new B('asdf') ]
-  var long = []
-  for (var i = 0; i < 10; i++) {
-    long.push(new B('asdf'))
-  }
-
-  var flatZero = B.concat(zero)
-  var flatOne = B.concat(one)
-  var flatLong = B.concat(long)
-  var flatLongLen = B.concat(long, 40)
-
-  t.equal(flatZero.length, 0)
-  t.equal(flatOne.toString(), 'asdf')
-  t.deepEqual(flatOne, one[0])
-  t.equal(flatLong.toString(), (new Array(10 + 1).join('asdf')))
-  t.equal(flatLongLen.toString(), (new Array(10 + 1).join('asdf')))
-  t.end()
-})
-
-test('fill', function (t) {
-  var b = new B(10)
-  b.fill(2)
-  t.equal(b.toString('hex'), '02020202020202020202')
-  t.end()
-})
-
-test('fill (string)', function (t) {
-  var b = new B(10)
-  b.fill('abc')
-  t.equal(b.toString(), 'abcabcabca')
-  b.fill('է')
-  t.equal(b.toString(), 'էէէէէ')
-  t.end()
-})
-
-test('copy() empty buffer with sourceEnd=0', function (t) {
-  var source = new B([42])
-  var destination = new B([43])
-  source.copy(destination, 0, 0, 0)
-  t.equal(destination.readUInt8(0), 43)
-  t.end()
-})
-
-test('copy() after slice()', function (t) {
-  var source = new B(200)
-  var dest = new B(200)
-  var expected = new B(200)
-  for (var i = 0; i < 200; i++) {
-    source[i] = i
-    dest[i] = 0
-  }
-
-  source.slice(2).copy(dest)
-  source.copy(expected, 0, 2)
-  t.deepEqual(dest, expected)
-  t.end()
-})
-
-test('copy() ascending', function (t) {
-  var b = new B('abcdefghij')
-  b.copy(b, 0, 3, 10)
-  t.equal(b.toString(), 'defghijhij')
-  t.end()
-})
-
-test('copy() descending', function (t) {
-  var b = new B('abcdefghij')
-  b.copy(b, 3, 0, 7)
-  t.equal(b.toString(), 'abcabcdefg')
-  t.end()
-})
-
-test('buffer.slice sets indexes', function (t) {
-  t.equal((new B('hallo')).slice(0, 5).toString(), 'hallo')
-  t.end()
-})
-
-test('buffer.slice out of range', function (t) {
-  t.plan(2)
-  t.equal((new B('hallo')).slice(0, 10).toString(), 'hallo')
-  t.equal((new B('hallo')).slice(10, 2).toString(), '')
-  t.end()
-})

File diff suppressed because it is too large
+ 0 - 1501
node_modules.bak/buffer/test/node/test-buffer-alloc.js


+ 0 - 112
node_modules.bak/buffer/test/node/test-buffer-arraybuffer.js

@@ -1,112 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-
-var assert = require('assert');
-
-var Buffer = require('../../').Buffer;
-var LENGTH = 16;
-
-var ab = new ArrayBuffer(LENGTH);
-var dv = new DataView(ab);
-var ui = new Uint8Array(ab);
-var buf = Buffer.from(ab);
-
-
-assert.ok(buf instanceof Buffer);
-// For backwards compatibility of old .parent property test that if buf is not
-// a slice then .parent should be undefined.
-assert.equal(buf.parent, undefined);
-assert.equal(buf.buffer, ab);
-assert.equal(buf.length, ab.byteLength);
-
-
-buf.fill(0xC);
-for (var i = 0; i < LENGTH; i++) {
-  assert.equal(ui[i], 0xC);
-  ui[i] = 0xF;
-  assert.equal(buf[i], 0xF);
-}
-
-buf.writeUInt32LE(0xF00, 0);
-buf.writeUInt32BE(0xB47, 4);
-buf.writeDoubleLE(3.1415, 8);
-
-assert.equal(dv.getUint32(0, true), 0xF00);
-assert.equal(dv.getUint32(4), 0xB47);
-assert.equal(dv.getFloat64(8, true), 3.1415);
-
-
-// Now test protecting users from doing stupid things
-
-assert.throws(function() {
-  function AB() { }
-  Object.setPrototypeOf(AB, ArrayBuffer);
-  Object.setPrototypeOf(AB.prototype, ArrayBuffer.prototype);
-  Buffer.from(new AB());
-}, TypeError);
-
-// write{Double,Float}{LE,BE} with noAssert should not crash, cf. #3766
-var b = Buffer.allocUnsafe(1);
-b.writeFloatLE(11.11, 0, true);
-b.writeFloatBE(11.11, 0, true);
-b.writeDoubleLE(11.11, 0, true);
-b.writeDoubleBE(11.11, 0, true);
-
-// Test the byteOffset and length arguments
-{
-  var ab = new Uint8Array(5);
-  ab[0] = 1;
-  ab[1] = 2;
-  ab[2] = 3;
-  ab[3] = 4;
-  ab[4] = 5;
-  var buf = Buffer.from(ab.buffer, 1, 3);
-  assert.equal(buf.length, 3);
-  assert.equal(buf[0], 2);
-  assert.equal(buf[1], 3);
-  assert.equal(buf[2], 4);
-  buf[0] = 9;
-  assert.equal(ab[1], 9);
-
-  assert.throws(() => Buffer.from(ab.buffer, 6), (err) => {
-    assert(err instanceof RangeError);
-    assert(/'offset' is out of bounds/.test(err.message));
-    return true;
-  });
-  assert.throws(() => Buffer.from(ab.buffer, 3, 6), (err) => {
-    assert(err instanceof RangeError);
-    assert(/'length' is out of bounds/.test(err.message));
-    return true;
-  });
-}
-
-// Test the deprecated Buffer() version also
-{
-  var ab = new Uint8Array(5);
-  ab[0] = 1;
-  ab[1] = 2;
-  ab[2] = 3;
-  ab[3] = 4;
-  ab[4] = 5;
-  var buf = Buffer(ab.buffer, 1, 3);
-  assert.equal(buf.length, 3);
-  assert.equal(buf[0], 2);
-  assert.equal(buf[1], 3);
-  assert.equal(buf[2], 4);
-  buf[0] = 9;
-  assert.equal(ab[1], 9);
-
-  assert.throws(() => Buffer(ab.buffer, 6), (err) => {
-    assert(err instanceof RangeError);
-    assert(/'offset' is out of bounds/.test(err.message));
-    return true;
-  });
-  assert.throws(() => Buffer(ab.buffer, 3, 6), (err) => {
-    assert(err instanceof RangeError);
-    assert(/'length' is out of bounds/.test(err.message));
-    return true;
-  });
-}
-

+ 0 - 28
node_modules.bak/buffer/test/node/test-buffer-ascii.js

@@ -1,28 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-var assert = require('assert');
-
-// ASCII conversion in node.js simply masks off the high bits,
-// it doesn't do transliteration.
-assert.equal(Buffer.from('hérité').toString('ascii'), 'hC)ritC)');
-
-// 71 characters, 78 bytes. The ’ character is a triple-byte sequence.
-var input = 'C’est, graphiquement, la réunion d’un accent aigu ' +
-            'et d’un accent grave.';
-
-var expected = 'Cb\u0000\u0019est, graphiquement, la rC)union ' +
-               'db\u0000\u0019un accent aigu et db\u0000\u0019un ' +
-               'accent grave.';
-
-var buf = Buffer.from(input);
-
-for (var i = 0; i < expected.length; ++i) {
-  assert.equal(buf.slice(i).toString('ascii'), expected.slice(i));
-
-  // Skip remainder of multi-byte sequence.
-  if (input.charCodeAt(i) > 65535) ++i;
-  if (input.charCodeAt(i) > 127) ++i;
-}
-

+ 0 - 18
node_modules.bak/buffer/test/node/test-buffer-bad-overload.js

@@ -1,18 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-var assert = require('assert');
-
-assert.doesNotThrow(function() {
-  Buffer.allocUnsafe(10);
-});
-
-assert.throws(function() {
-  Buffer.from(10, 'hex');
-});
-
-assert.doesNotThrow(function() {
-  Buffer.from('deadbeaf', 'hex');
-});
-

+ 0 - 46
node_modules.bak/buffer/test/node/test-buffer-badhex.js

@@ -1,46 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-var assert = require('assert');
-var Buffer = require('../../').Buffer;
-
-// Test hex strings and bad hex strings
-{
-  var buf1 = Buffer.alloc(4);
-  assert.strictEqual(buf1.length, 4);
-  assert.deepStrictEqual(buf1, new Buffer([0, 0, 0, 0]));
-  assert.strictEqual(buf1.write('abcdxx', 0, 'hex'), 2);
-  assert.deepStrictEqual(buf1, new Buffer([0xab, 0xcd, 0x00, 0x00]));
-  assert.strictEqual(buf1.toString('hex'), 'abcd0000');
-  assert.strictEqual(buf1.write('abcdef01', 0, 'hex'), 4);
-  assert.deepStrictEqual(buf1, new Buffer([0xab, 0xcd, 0xef, 0x01]));
-  assert.strictEqual(buf1.toString('hex'), 'abcdef01');
-
-  var buf2 = Buffer.from(buf1.toString('hex'), 'hex');
-  assert.strictEqual(buf1.toString('hex'), buf2.toString('hex'));
-
-  var buf3 = Buffer.alloc(5);
-  assert.strictEqual(buf3.write('abcdxx', 1, 'hex'), 2);
-  assert.strictEqual(buf3.toString('hex'), '00abcd0000');
-
-  var buf4 = Buffer.alloc(4);
-  assert.deepStrictEqual(buf4, new Buffer([0, 0, 0, 0]));
-  assert.strictEqual(buf4.write('xxabcd', 0, 'hex'), 0);
-  assert.deepStrictEqual(buf4, new Buffer([0, 0, 0, 0]));
-  assert.strictEqual(buf4.write('xxab', 1, 'hex'), 0);
-  assert.deepStrictEqual(buf4, new Buffer([0, 0, 0, 0]));
-  assert.strictEqual(buf4.write('cdxxab', 0, 'hex'), 1);
-  assert.deepStrictEqual(buf4, new Buffer([0xcd, 0, 0, 0]));
-
-  var buf5 = Buffer.alloc(256);
-  for (var i = 0; i < 256; i++)
-    buf5[i] = i;
-
-  var hex = buf5.toString('hex');
-  assert.deepStrictEqual(Buffer.from(hex, 'hex'), buf5);
-
-  var badHex = hex.slice(0, 256) + 'xx' + hex.slice(256, 510);
-  assert.deepStrictEqual(Buffer.from(badHex, 'hex'), buf5.slice(0, 128));
-}
-

+ 0 - 90
node_modules.bak/buffer/test/node/test-buffer-bytelength.js

@@ -1,90 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-
-var assert = require('assert');
-var Buffer = require('../../').Buffer;
-var SlowBuffer = require('../../').SlowBuffer;
-
-// coerce values to string
-assert.equal(Buffer.byteLength(32, 'latin1'), 2);
-assert.equal(Buffer.byteLength(NaN, 'utf8'), 3);
-assert.equal(Buffer.byteLength({}, 'latin1'), 15);
-assert.equal(Buffer.byteLength(), 9);
-
-var buff = new Buffer(10);
-assert(ArrayBuffer.isView(buff));
-var slowbuff = new SlowBuffer(10);
-assert(ArrayBuffer.isView(slowbuff));
-
-// buffer
-var incomplete = Buffer.from([0xe4, 0xb8, 0xad, 0xe6, 0x96]);
-assert.equal(Buffer.byteLength(incomplete), 5);
-var ascii = Buffer.from('abc');
-assert.equal(Buffer.byteLength(ascii), 3);
-
-// ArrayBuffer
-var buffer = new ArrayBuffer(8);
-assert.equal(Buffer.byteLength(buffer), 8);
-
-// TypedArray
-var int8 = new Int8Array(8);
-assert.equal(Buffer.byteLength(int8), 8);
-var uint8 = new Uint8Array(8);
-assert.equal(Buffer.byteLength(uint8), 8);
-var uintc8 = new Uint8ClampedArray(2);
-assert.equal(Buffer.byteLength(uintc8), 2);
-var int16 = new Int16Array(8);
-assert.equal(Buffer.byteLength(int16), 16);
-var uint16 = new Uint16Array(8);
-assert.equal(Buffer.byteLength(uint16), 16);
-var int32 = new Int32Array(8);
-assert.equal(Buffer.byteLength(int32), 32);
-var uint32 = new Uint32Array(8);
-assert.equal(Buffer.byteLength(uint32), 32);
-var float32 = new Float32Array(8);
-assert.equal(Buffer.byteLength(float32), 32);
-var float64 = new Float64Array(8);
-assert.equal(Buffer.byteLength(float64), 64);
-
-// DataView
-var dv = new DataView(new ArrayBuffer(2));
-assert.equal(Buffer.byteLength(dv), 2);
-
-// special case: zero length string
-assert.equal(Buffer.byteLength('', 'ascii'), 0);
-assert.equal(Buffer.byteLength('', 'HeX'), 0);
-
-// utf8
-assert.equal(Buffer.byteLength('∑éllö wørl∂!', 'utf-8'), 19);
-assert.equal(Buffer.byteLength('κλμνξο', 'utf8'), 12);
-assert.equal(Buffer.byteLength('挵挶挷挸挹', 'utf-8'), 15);
-assert.equal(Buffer.byteLength('𠝹𠱓𠱸', 'UTF8'), 12);
-// without an encoding, utf8 should be assumed
-assert.equal(Buffer.byteLength('hey there'), 9);
-assert.equal(Buffer.byteLength('𠱸挶νξ#xx :)'), 17);
-assert.equal(Buffer.byteLength('hello world', ''), 11);
-// it should also be assumed with unrecognized encoding
-assert.equal(Buffer.byteLength('hello world', 'abc'), 11);
-assert.equal(Buffer.byteLength('ßœ∑≈', 'unkn0wn enc0ding'), 10);
-
-// base64
-assert.equal(Buffer.byteLength('aGVsbG8gd29ybGQ=', 'base64'), 11);
-assert.equal(Buffer.byteLength('bm9kZS5qcyByb2NrcyE=', 'base64'), 14);
-assert.equal(Buffer.byteLength('aGkk', 'base64'), 3);
-assert.equal(Buffer.byteLength('bHNrZGZsa3NqZmtsc2xrZmFqc2RsZmtqcw==',
-    'base64'), 25);
-// special padding
-assert.equal(Buffer.byteLength('aaa=', 'base64'), 2);
-assert.equal(Buffer.byteLength('aaaa==', 'base64'), 3);
-
-assert.equal(Buffer.byteLength('Il était tué'), 14);
-assert.equal(Buffer.byteLength('Il était tué', 'utf8'), 14);
-assert.equal(Buffer.byteLength('Il était tué', 'ascii'), 12);
-assert.equal(Buffer.byteLength('Il était tué', 'latin1'), 12);
-assert.equal(Buffer.byteLength('Il était tué', 'binary'), 12);
-['ucs2', 'ucs-2', 'utf16le', 'utf-16le'].forEach(function(encoding) {
-  assert.equal(24, Buffer.byteLength('Il était tué', encoding));
-});
-

+ 0 - 66
node_modules.bak/buffer/test/node/test-buffer-compare-offset.js

@@ -1,66 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-
-var assert = require('assert');
-
-var a = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
-var b = Buffer.from([5, 6, 7, 8, 9, 0, 1, 2, 3, 4]);
-
-assert.equal(-1, a.compare(b));
-
-// Equivalent to a.compare(b).
-assert.equal(-1, a.compare(b, 0));
-assert.equal(-1, a.compare(b, '0'));
-
-// Equivalent to a.compare(b).
-assert.equal(-1, a.compare(b, 0, undefined, 0));
-
-// Zero-length targer, return 1
-assert.equal(1, a.compare(b, 0, 0, 0));
-assert.equal(1, a.compare(b, '0', '0', '0'));
-
-// Equivalent to Buffer.compare(a, b.slice(6, 10))
-assert.equal(1, a.compare(b, 6, 10));
-
-// Zero-length source, return -1
-assert.equal(-1, a.compare(b, 6, 10, 0, 0));
-
-// Equivalent to Buffer.compare(a.slice(4), b.slice(0, 5))
-assert.equal(1, a.compare(b, 0, 5, 4));
-
-// Equivalent to Buffer.compare(a.slice(1), b.slice(5))
-assert.equal(1, a.compare(b, 5, undefined, 1));
-
-// Equivalent to Buffer.compare(a.slice(2), b.slice(2, 4))
-assert.equal(-1, a.compare(b, 2, 4, 2));
-
-// Equivalent to Buffer.compare(a.slice(4), b.slice(0, 7))
-assert.equal(-1, a.compare(b, 0, 7, 4));
-
-// Equivalent to Buffer.compare(a.slice(4, 6), b.slice(0, 7));
-assert.equal(-1, a.compare(b, 0, 7, 4, 6));
-
-// zero length target
-assert.equal(1, a.compare(b, 0, null));
-
-// coerces to targetEnd == 5
-assert.equal(-1, a.compare(b, 0, {valueOf: () => 5}));
-
-// zero length target
-assert.equal(1, a.compare(b, Infinity, -Infinity));
-
-// zero length target because default for targetEnd <= targetSource
-assert.equal(1, a.compare(b, '0xff'));
-
-var oor = /out of range index/;
-
-assert.throws(() => a.compare(b, 0, 100, 0), oor);
-assert.throws(() => a.compare(b, 0, 1, 0, 100), oor);
-assert.throws(() => a.compare(b, -1), oor);
-assert.throws(() => a.compare(b, 0, '0xff'), oor);
-assert.throws(() => a.compare(b, 0, Infinity), oor);
-assert.throws(() => a.compare(b, -Infinity, Infinity), oor);
-assert.throws(() => a.compare(), /Argument must be a Buffer/);
-

+ 0 - 40
node_modules.bak/buffer/test/node/test-buffer-concat.js

@@ -1,40 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-var assert = require('assert');
-
-var zero = [];
-var one = [ Buffer.from('asdf') ];
-var long = [];
-for (var i = 0; i < 10; i++) long.push(Buffer.from('asdf'));
-
-var flatZero = Buffer.concat(zero);
-var flatOne = Buffer.concat(one);
-var flatLong = Buffer.concat(long);
-var flatLongLen = Buffer.concat(long, 40);
-
-assert(flatZero.length === 0);
-assert(flatOne.toString() === 'asdf');
-// A special case where concat used to return the first item,
-// if the length is one. This check is to make sure that we don't do that.
-assert(flatOne !== one[0]);
-assert(flatLong.toString() === (new Array(10 + 1).join('asdf')));
-assert(flatLongLen.toString() === (new Array(10 + 1).join('asdf')));
-
-assertWrongList();
-assertWrongList(null);
-assertWrongList(Buffer.from('hello'));
-assertWrongList([42]);
-assertWrongList(['hello', 'world']);
-assertWrongList(['hello', Buffer.from('world')]);
-
-function assertWrongList(value) {
-  assert.throws(function() {
-    Buffer.concat(value);
-  }, function(err) {
-    return err instanceof TypeError &&
-           err.message === '"list" argument must be an Array of Buffers';
-  });
-}
-

+ 0 - 272
node_modules.bak/buffer/test/node/test-buffer-fill.js

@@ -1,272 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-
-var assert = require('assert');
-var os = require('os');
-var SIZE = 28;
-
-var buf1 = Buffer.allocUnsafe(SIZE);
-var buf2 = Buffer.allocUnsafe(SIZE);
-
-
-// Default encoding
-testBufs('abc');
-testBufs('\u0222aa');
-testBufs('a\u0234b\u0235c\u0236');
-testBufs('abc', 4);
-testBufs('abc', 5);
-testBufs('abc', SIZE);
-testBufs('\u0222aa', 2);
-testBufs('\u0222aa', 8);
-testBufs('a\u0234b\u0235c\u0236', 4);
-testBufs('a\u0234b\u0235c\u0236', 12);
-testBufs('abc', 4, -1);
-testBufs('abc', 4, 1);
-testBufs('abc', 5, 1);
-testBufs('\u0222aa', 2, -1);
-testBufs('\u0222aa', 8, 1);
-testBufs('a\u0234b\u0235c\u0236', 4, -1);
-testBufs('a\u0234b\u0235c\u0236', 4, 1);
-testBufs('a\u0234b\u0235c\u0236', 12, 1);
-
-
-// UTF8
-testBufs('abc', 'utf8');
-testBufs('\u0222aa', 'utf8');
-testBufs('a\u0234b\u0235c\u0236', 'utf8');
-testBufs('abc', 4, 'utf8');
-testBufs('abc', 5, 'utf8');
-testBufs('abc', SIZE, 'utf8');
-testBufs('\u0222aa', 2, 'utf8');
-testBufs('\u0222aa', 8, 'utf8');
-testBufs('a\u0234b\u0235c\u0236', 4, 'utf8');
-testBufs('a\u0234b\u0235c\u0236', 12, 'utf8');
-testBufs('abc', 4, -1, 'utf8');
-testBufs('abc', 4, 1, 'utf8');
-testBufs('abc', 5, 1, 'utf8');
-testBufs('\u0222aa', 2, -1, 'utf8');
-testBufs('\u0222aa', 8, 1, 'utf8');
-testBufs('a\u0234b\u0235c\u0236', 4, -1, 'utf8');
-testBufs('a\u0234b\u0235c\u0236', 4, 1, 'utf8');
-testBufs('a\u0234b\u0235c\u0236', 12, 1, 'utf8');
-assert.equal(Buffer.allocUnsafe(1).fill(0).fill('\u0222')[0], 0xc8);
-
-
-// BINARY
-testBufs('abc', 'binary');
-testBufs('\u0222aa', 'binary');
-testBufs('a\u0234b\u0235c\u0236', 'binary');
-testBufs('abc', 4, 'binary');
-testBufs('abc', 5, 'binary');
-testBufs('abc', SIZE, 'binary');
-testBufs('\u0222aa', 2, 'binary');
-testBufs('\u0222aa', 8, 'binary');
-testBufs('a\u0234b\u0235c\u0236', 4, 'binary');
-testBufs('a\u0234b\u0235c\u0236', 12, 'binary');
-testBufs('abc', 4, -1, 'binary');
-testBufs('abc', 4, 1, 'binary');
-testBufs('abc', 5, 1, 'binary');
-testBufs('\u0222aa', 2, -1, 'binary');
-testBufs('\u0222aa', 8, 1, 'binary');
-testBufs('a\u0234b\u0235c\u0236', 4, -1, 'binary');
-testBufs('a\u0234b\u0235c\u0236', 4, 1, 'binary');
-testBufs('a\u0234b\u0235c\u0236', 12, 1, 'binary');
-
-
-// LATIN1
-testBufs('abc', 'latin1');
-testBufs('\u0222aa', 'latin1');
-testBufs('a\u0234b\u0235c\u0236', 'latin1');
-testBufs('abc', 4, 'latin1');
-testBufs('abc', 5, 'latin1');
-testBufs('abc', SIZE, 'latin1');
-testBufs('\u0222aa', 2, 'latin1');
-testBufs('\u0222aa', 8, 'latin1');
-testBufs('a\u0234b\u0235c\u0236', 4, 'latin1');
-testBufs('a\u0234b\u0235c\u0236', 12, 'latin1');
-testBufs('abc', 4, -1, 'latin1');
-testBufs('abc', 4, 1, 'latin1');
-testBufs('abc', 5, 1, 'latin1');
-testBufs('\u0222aa', 2, -1, 'latin1');
-testBufs('\u0222aa', 8, 1, 'latin1');
-testBufs('a\u0234b\u0235c\u0236', 4, -1, 'latin1');
-testBufs('a\u0234b\u0235c\u0236', 4, 1, 'latin1');
-testBufs('a\u0234b\u0235c\u0236', 12, 1, 'latin1');
-
-
-// UCS2
-testBufs('abc', 'ucs2');
-testBufs('\u0222aa', 'ucs2');
-testBufs('a\u0234b\u0235c\u0236', 'ucs2');
-testBufs('abc', 4, 'ucs2');
-testBufs('abc', SIZE, 'ucs2');
-testBufs('\u0222aa', 2, 'ucs2');
-testBufs('\u0222aa', 8, 'ucs2');
-testBufs('a\u0234b\u0235c\u0236', 4, 'ucs2');
-testBufs('a\u0234b\u0235c\u0236', 12, 'ucs2');
-testBufs('abc', 4, -1, 'ucs2');
-testBufs('abc', 4, 1, 'ucs2');
-testBufs('abc', 5, 1, 'ucs2');
-testBufs('\u0222aa', 2, -1, 'ucs2');
-testBufs('\u0222aa', 8, 1, 'ucs2');
-testBufs('a\u0234b\u0235c\u0236', 4, -1, 'ucs2');
-testBufs('a\u0234b\u0235c\u0236', 4, 1, 'ucs2');
-testBufs('a\u0234b\u0235c\u0236', 12, 1, 'ucs2');
-assert.equal(Buffer.allocUnsafe(1).fill('\u0222', 'ucs2')[0],
-             os.endianness() === 'LE' ? 0x22 : 0x02);
-
-
-// HEX
-testBufs('616263', 'hex');
-testBufs('c8a26161', 'hex');
-testBufs('61c8b462c8b563c8b6', 'hex');
-testBufs('616263', 4, 'hex');
-testBufs('616263', 5, 'hex');
-testBufs('616263', SIZE, 'hex');
-testBufs('c8a26161', 2, 'hex');
-testBufs('c8a26161', 8, 'hex');
-testBufs('61c8b462c8b563c8b6', 4, 'hex');
-testBufs('61c8b462c8b563c8b6', 12, 'hex');
-testBufs('616263', 4, -1, 'hex');
-testBufs('616263', 4, 1, 'hex');
-testBufs('616263', 5, 1, 'hex');
-testBufs('c8a26161', 2, -1, 'hex');
-testBufs('c8a26161', 8, 1, 'hex');
-testBufs('61c8b462c8b563c8b6', 4, -1, 'hex');
-testBufs('61c8b462c8b563c8b6', 4, 1, 'hex');
-testBufs('61c8b462c8b563c8b6', 12, 1, 'hex');
-// Make sure this operation doesn't go on forever
-buf1.fill('yKJh', 'hex');
-assert.throws(() => buf1.fill('\u0222', 'hex'));
-
-
-// BASE64
-testBufs('YWJj', 'ucs2');
-testBufs('yKJhYQ==', 'ucs2');
-testBufs('Yci0Ysi1Y8i2', 'ucs2');
-testBufs('YWJj', 4, 'ucs2');
-testBufs('YWJj', SIZE, 'ucs2');
-testBufs('yKJhYQ==', 2, 'ucs2');
-testBufs('yKJhYQ==', 8, 'ucs2');
-testBufs('Yci0Ysi1Y8i2', 4, 'ucs2');
-testBufs('Yci0Ysi1Y8i2', 12, 'ucs2');
-testBufs('YWJj', 4, -1, 'ucs2');
-testBufs('YWJj', 4, 1, 'ucs2');
-testBufs('YWJj', 5, 1, 'ucs2');
-testBufs('yKJhYQ==', 2, -1, 'ucs2');
-testBufs('yKJhYQ==', 8, 1, 'ucs2');
-testBufs('Yci0Ysi1Y8i2', 4, -1, 'ucs2');
-testBufs('Yci0Ysi1Y8i2', 4, 1, 'ucs2');
-testBufs('Yci0Ysi1Y8i2', 12, 1, 'ucs2');
-
-
-// Buffer
-function deepStrictEqualValues(buf, arr) {
-  for (var [index, value] of buf.entries()) {
-    assert.deepStrictEqual(value, arr[index]);
-  }
-}
-
-
-var buf2Fill = Buffer.allocUnsafe(1).fill(2);
-deepStrictEqualValues(genBuffer(4, [buf2Fill]), [2, 2, 2, 2]);
-deepStrictEqualValues(genBuffer(4, [buf2Fill, 1]), [0, 2, 2, 2]);
-deepStrictEqualValues(genBuffer(4, [buf2Fill, 1, 3]), [0, 2, 2, 0]);
-deepStrictEqualValues(genBuffer(4, [buf2Fill, 1, 1]), [0, 0, 0, 0]);
-deepStrictEqualValues(genBuffer(4, [buf2Fill, 1, -1]), [0, 0, 0, 0]);
-var hexBufFill = Buffer.allocUnsafe(2).fill(0).fill('0102', 'hex');
-deepStrictEqualValues(genBuffer(4, [hexBufFill]), [1, 2, 1, 2]);
-deepStrictEqualValues(genBuffer(4, [hexBufFill, 1]), [0, 1, 2, 1]);
-deepStrictEqualValues(genBuffer(4, [hexBufFill, 1, 3]), [0, 1, 2, 0]);
-deepStrictEqualValues(genBuffer(4, [hexBufFill, 1, 1]), [0, 0, 0, 0]);
-deepStrictEqualValues(genBuffer(4, [hexBufFill, 1, -1]), [0, 0, 0, 0]);
-
-
-// Check exceptions
-assert.throws(() => buf1.fill(0, -1));
-assert.throws(() => buf1.fill(0, 0, buf1.length + 1));
-assert.throws(() => buf1.fill('', -1));
-assert.throws(() => buf1.fill('', 0, buf1.length + 1));
-assert.throws(() => buf1.fill('a', 0, buf1.length, 'node rocks!'));
-assert.throws(() => buf1.fill('a', 0, 0, NaN));
-assert.throws(() => buf1.fill('a', 0, 0, null));
-assert.throws(() => buf1.fill('a', 0, 0, 'foo'));
-
-
-function genBuffer(size, args) {
-  var b = Buffer.allocUnsafe(size);
-  return b.fill(0).fill.apply(b, args);
-}
-
-
-function bufReset() {
-  buf1.fill(0);
-  buf2.fill(0);
-}
-
-
-// This is mostly accurate. Except write() won't write partial bytes to the
-// string while fill() blindly copies bytes into memory. To account for that an
-// error will be thrown if not all the data can be written, and the SIZE has
-// been massaged to work with the input characters.
-function writeToFill(string, offset, end, encoding) {
-  if (typeof offset === 'string') {
-    encoding = offset;
-    offset = 0;
-    end = buf2.length;
-  } else if (typeof end === 'string') {
-    encoding = end;
-    end = buf2.length;
-  } else if (end === undefined) {
-    end = buf2.length;
-  }
-
-  if (offset < 0 || end > buf2.length)
-    throw new RangeError('Out of range index');
-
-  if (end <= offset)
-    return buf2;
-
-  offset >>>= 0;
-  end >>>= 0;
-  assert(offset <= buf2.length);
-
-  // Convert "end" to "length" (which write understands).
-  var length = end - offset < 0 ? 0 : end - offset;
-
-  var wasZero = false;
-  do {
-    var written = buf2.write(string, offset, length, encoding);
-    offset += written;
-    // Safety check in case write falls into infinite loop.
-    if (written === 0) {
-      if (wasZero)
-        throw new Error('Could not write all data to Buffer');
-      else
-        wasZero = true;
-    }
-  } while (offset < buf2.length);
-
-  // Correction for UCS2 operations.
-  if (os.endianness() === 'BE' && encoding === 'ucs2') {
-    for (var i = 0; i < buf2.length; i += 2) {
-      var tmp = buf2[i];
-      buf2[i] = buf2[i + 1];
-      buf2[i + 1] = tmp;
-    }
-  }
-
-  return buf2;
-}
-
-
-function testBufs(string, offset, length, encoding) {
-  bufReset();
-  buf1.fill.apply(buf1, arguments);
-  // Swap bytes on BE archs for ucs2 encoding.
-  assert.deepStrictEqual(buf1.fill.apply(buf1, arguments),
-                         writeToFill.apply(null, arguments));
-}
-

+ 0 - 305
node_modules.bak/buffer/test/node/test-buffer-includes.js

@@ -1,305 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-var assert = require('assert');
-
-var Buffer = require('../../').Buffer;
-
-var b = Buffer.from('abcdef');
-var buf_a = Buffer.from('a');
-var buf_bc = Buffer.from('bc');
-var buf_f = Buffer.from('f');
-var buf_z = Buffer.from('z');
-var buf_empty = Buffer.from('');
-
-assert(b.includes('a'));
-assert(!b.includes('a', 1));
-assert(!b.includes('a', -1));
-assert(!b.includes('a', -4));
-assert(b.includes('a', -b.length));
-assert(b.includes('a', NaN));
-assert(b.includes('a', -Infinity));
-assert(!b.includes('a', Infinity));
-assert(b.includes('bc'));
-assert(!b.includes('bc', 2));
-assert(!b.includes('bc', -1));
-assert(!b.includes('bc', -3));
-assert(b.includes('bc', -5));
-assert(b.includes('bc', NaN));
-assert(b.includes('bc', -Infinity));
-assert(!b.includes('bc', Infinity));
-assert(b.includes('f'), b.length - 1);
-assert(!b.includes('z'));
-assert(!b.includes(''));
-assert(!b.includes('', 1));
-assert(!b.includes('', b.length + 1));
-assert(!b.includes('', Infinity));
-assert(b.includes(buf_a));
-assert(!b.includes(buf_a, 1));
-assert(!b.includes(buf_a, -1));
-assert(!b.includes(buf_a, -4));
-assert(b.includes(buf_a, -b.length));
-assert(b.includes(buf_a, NaN));
-assert(b.includes(buf_a, -Infinity));
-assert(!b.includes(buf_a, Infinity));
-assert(b.includes(buf_bc));
-assert(!b.includes(buf_bc, 2));
-assert(!b.includes(buf_bc, -1));
-assert(!b.includes(buf_bc, -3));
-assert(b.includes(buf_bc, -5));
-assert(b.includes(buf_bc, NaN));
-assert(b.includes(buf_bc, -Infinity));
-assert(!b.includes(buf_bc, Infinity));
-assert(b.includes(buf_f), b.length - 1);
-assert(!b.includes(buf_z));
-assert(!b.includes(buf_empty));
-assert(!b.includes(buf_empty, 1));
-assert(!b.includes(buf_empty, b.length + 1));
-assert(!b.includes(buf_empty, Infinity));
-assert(b.includes(0x61));
-assert(!b.includes(0x61, 1));
-assert(!b.includes(0x61, -1));
-assert(!b.includes(0x61, -4));
-assert(b.includes(0x61, -b.length));
-assert(b.includes(0x61, NaN));
-assert(b.includes(0x61, -Infinity));
-assert(!b.includes(0x61, Infinity));
-assert(!b.includes(0x0));
-
-// test offsets
-assert(b.includes('d', 2));
-assert(b.includes('f', 5));
-assert(b.includes('f', -1));
-assert(!b.includes('f', 6));
-
-assert(b.includes(Buffer.from('d'), 2));
-assert(b.includes(Buffer.from('f'), 5));
-assert(b.includes(Buffer.from('f'), -1));
-assert(!b.includes(Buffer.from('f'), 6));
-
-assert(!Buffer.from('ff').includes(Buffer.from('f'), 1, 'ucs2'));
-
-// test hex encoding
-assert.strictEqual(
-  Buffer.from(b.toString('hex'), 'hex')
-    .includes('64', 0, 'hex'),
-  true
-);
-assert.strictEqual(
-  Buffer.from(b.toString('hex'), 'hex')
-    .includes(Buffer.from('64', 'hex'), 0, 'hex'),
-  true
-);
-
-// test base64 encoding
-assert.strictEqual(
-  Buffer.from(b.toString('base64'), 'base64')
-    .includes('ZA==', 0, 'base64'),
-  true
-);
-assert.strictEqual(
-  Buffer.from(b.toString('base64'), 'base64')
-    .includes(Buffer.from('ZA==', 'base64'), 0, 'base64'),
-  true
-);
-
-// test ascii encoding
-assert.strictEqual(
-  Buffer.from(b.toString('ascii'), 'ascii')
-    .includes('d', 0, 'ascii'),
-  true
-);
-assert.strictEqual(
-  Buffer.from(b.toString('ascii'), 'ascii')
-    .includes(Buffer.from('d', 'ascii'), 0, 'ascii'),
-  true
-);
-
-// test latin1 encoding
-assert.strictEqual(
-  Buffer.from(b.toString('latin1'), 'latin1')
-    .includes('d', 0, 'latin1'),
-  true
-);
-assert.strictEqual(
-  Buffer.from(b.toString('latin1'), 'latin1')
-    .includes(Buffer.from('d', 'latin1'), 0, 'latin1'),
-  true
-);
-
-// test binary encoding
-assert.strictEqual(
-  Buffer.from(b.toString('binary'), 'binary')
-    .includes('d', 0, 'binary'),
-  true
-);
-assert.strictEqual(
-  Buffer.from(b.toString('binary'), 'binary')
-    .includes(Buffer.from('d', 'binary'), 0, 'binary'),
-  true
-);
-
-
-// test usc2 encoding
-var twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
-
-assert(twoByteString.includes('\u0395', 4, 'ucs2'));
-assert(twoByteString.includes('\u03a3', -4, 'ucs2'));
-assert(twoByteString.includes('\u03a3', -6, 'ucs2'));
-assert(twoByteString.includes(
-  Buffer.from('\u03a3', 'ucs2'), -6, 'ucs2'));
-assert(!twoByteString.includes('\u03a3', -2, 'ucs2'));
-
-var mixedByteStringUcs2 =
-    Buffer.from('\u039a\u0391abc\u03a3\u03a3\u0395', 'ucs2');
-assert(mixedByteStringUcs2.includes('bc', 0, 'ucs2'));
-assert(mixedByteStringUcs2.includes('\u03a3', 0, 'ucs2'));
-assert(!mixedByteStringUcs2.includes('\u0396', 0, 'ucs2'));
-
-assert(
-    6, mixedByteStringUcs2.includes(Buffer.from('bc', 'ucs2'), 0, 'ucs2'));
-assert(
-    10, mixedByteStringUcs2.includes(Buffer.from('\u03a3', 'ucs2'),
-    0, 'ucs2'));
-assert(
-    -1, mixedByteStringUcs2.includes(Buffer.from('\u0396', 'ucs2'),
-    0, 'ucs2'));
-
-twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
-
-// Test single char pattern
-assert(twoByteString.includes('\u039a', 0, 'ucs2'));
-assert(twoByteString.includes('\u0391', 0, 'ucs2'), 'Alpha');
-assert(twoByteString.includes('\u03a3', 0, 'ucs2'), 'First Sigma');
-assert(twoByteString.includes('\u03a3', 6, 'ucs2'), 'Second Sigma');
-assert(twoByteString.includes('\u0395', 0, 'ucs2'), 'Epsilon');
-assert(!twoByteString.includes('\u0392', 0, 'ucs2'), 'Not beta');
-
-// Test multi-char pattern
-assert(twoByteString.includes('\u039a\u0391', 0, 'ucs2'), 'Lambda Alpha');
-assert(twoByteString.includes('\u0391\u03a3', 0, 'ucs2'), 'Alpha Sigma');
-assert(twoByteString.includes('\u03a3\u03a3', 0, 'ucs2'), 'Sigma Sigma');
-assert(twoByteString.includes('\u03a3\u0395', 0, 'ucs2'), 'Sigma Epsilon');
-
-var mixedByteStringUtf8 = Buffer.from('\u039a\u0391abc\u03a3\u03a3\u0395');
-assert(mixedByteStringUtf8.includes('bc'));
-assert(mixedByteStringUtf8.includes('bc', 5));
-assert(mixedByteStringUtf8.includes('bc', -8));
-assert(mixedByteStringUtf8.includes('\u03a3'));
-assert(!mixedByteStringUtf8.includes('\u0396'));
-
-
-// Test complex string includes algorithms. Only trigger for long strings.
-// Long string that isn't a simple repeat of a shorter string.
-var longString = 'A';
-for (var i = 66; i < 76; i++) {  // from 'B' to 'K'
-  longString = longString + String.fromCharCode(i) + longString;
-}
-
-var longBufferString = Buffer.from(longString);
-
-// pattern of 15 chars, repeated every 16 chars in long
-var pattern = 'ABACABADABACABA';
-for (var i = 0; i < longBufferString.length - pattern.length; i += 7) {
-  var includes = longBufferString.includes(pattern, i);
-  assert(includes, 'Long ABACABA...-string at index ' + i);
-}
-assert(longBufferString.includes('AJABACA'), 'Long AJABACA, First J');
-assert(longBufferString.includes('AJABACA', 511), 'Long AJABACA, Second J');
-
-pattern = 'JABACABADABACABA';
-assert(longBufferString.includes(pattern), 'Long JABACABA..., First J');
-assert(longBufferString.includes(pattern, 512), 'Long JABACABA..., Second J');
-
-// Search for a non-ASCII string in a pure ASCII string.
-var asciiString = Buffer.from(
-    'arglebargleglopglyfarglebargleglopglyfarglebargleglopglyf');
-assert(!asciiString.includes('\x2061'));
-assert(asciiString.includes('leb', 0));
-
-// Search in string containing many non-ASCII chars.
-var allCodePoints = [];
-for (var i = 0; i < 65536; i++) allCodePoints[i] = i;
-var allCharsString = String.fromCharCode.apply(String, allCodePoints);
-var allCharsBufferUtf8 = Buffer.from(allCharsString);
-var allCharsBufferUcs2 = Buffer.from(allCharsString, 'ucs2');
-
-// Search for string long enough to trigger complex search with ASCII pattern
-// and UC16 subject.
-assert(!allCharsBufferUtf8.includes('notfound'));
-assert(!allCharsBufferUcs2.includes('notfound'));
-
-// Find substrings in Utf8.
-var lengths = [1, 3, 15];  // Single char, simple and complex.
-var indices = [0x5, 0x60, 0x400, 0x680, 0x7ee, 0xFF02, 0x16610, 0x2f77b];
-for (var lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
-  for (var i = 0; i < indices.length; i++) {
-    var index = indices[i];
-    var length = lengths[lengthIndex];
-
-    if (index + length > 0x7F) {
-      length = 2 * length;
-    }
-
-    if (index + length > 0x7FF) {
-      length = 3 * length;
-    }
-
-    if (index + length > 0xFFFF) {
-      length = 4 * length;
-    }
-
-    var patternBufferUtf8 = allCharsBufferUtf8.slice(index, index + length);
-    assert(index, allCharsBufferUtf8.includes(patternBufferUtf8));
-
-    var patternStringUtf8 = patternBufferUtf8.toString();
-    assert(index, allCharsBufferUtf8.includes(patternStringUtf8));
-  }
-}
-
-// Find substrings in Usc2.
-lengths = [2, 4, 16];  // Single char, simple and complex.
-indices = [0x5, 0x65, 0x105, 0x205, 0x285, 0x2005, 0x2085, 0xfff0];
-for (var lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
-  for (var i = 0; i < indices.length; i++) {
-    var index = indices[i] * 2;
-    var length = lengths[lengthIndex];
-
-    var patternBufferUcs2 =
-        allCharsBufferUcs2.slice(index, index + length);
-    assert(
-        index, allCharsBufferUcs2.includes(patternBufferUcs2, 0, 'ucs2'));
-
-    var patternStringUcs2 = patternBufferUcs2.toString('ucs2');
-    assert(
-        index, allCharsBufferUcs2.includes(patternStringUcs2, 0, 'ucs2'));
-  }
-}
-
-assert.throws(function() {
-  b.includes(function() { });
-});
-assert.throws(function() {
-  b.includes({});
-});
-assert.throws(function() {
-  b.includes([]);
-});
-
-// test truncation of Number arguments to uint8
-{
-  var buf = Buffer.from('this is a test');
-  assert.ok(buf.includes(0x6973));
-  assert.ok(buf.includes(0x697320));
-  assert.ok(buf.includes(0x69732069));
-  assert.ok(buf.includes(0x697374657374));
-  assert.ok(buf.includes(0x69737374));
-  assert.ok(buf.includes(0x69737465));
-  assert.ok(buf.includes(0x69737465));
-  assert.ok(buf.includes(-140));
-  assert.ok(buf.includes(-152));
-  assert.ok(!buf.includes(0xff));
-  assert.ok(!buf.includes(0xffff));
-}
-

+ 0 - 523
node_modules.bak/buffer/test/node/test-buffer-indexof.js

@@ -1,523 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-var assert = require('assert');
-
-var Buffer = require('../../').Buffer;
-
-var b = Buffer.from('abcdef');
-var buf_a = Buffer.from('a');
-var buf_bc = Buffer.from('bc');
-var buf_f = Buffer.from('f');
-var buf_z = Buffer.from('z');
-var buf_empty = Buffer.from('');
-
-assert.equal(b.indexOf('a'), 0);
-assert.equal(b.indexOf('a', 1), -1);
-assert.equal(b.indexOf('a', -1), -1);
-assert.equal(b.indexOf('a', -4), -1);
-assert.equal(b.indexOf('a', -b.length), 0);
-assert.equal(b.indexOf('a', NaN), 0);
-assert.equal(b.indexOf('a', -Infinity), 0);
-assert.equal(b.indexOf('a', Infinity), -1);
-assert.equal(b.indexOf('bc'), 1);
-assert.equal(b.indexOf('bc', 2), -1);
-assert.equal(b.indexOf('bc', -1), -1);
-assert.equal(b.indexOf('bc', -3), -1);
-assert.equal(b.indexOf('bc', -5), 1);
-assert.equal(b.indexOf('bc', NaN), 1);
-assert.equal(b.indexOf('bc', -Infinity), 1);
-assert.equal(b.indexOf('bc', Infinity), -1);
-assert.equal(b.indexOf('f'), b.length - 1);
-assert.equal(b.indexOf('z'), -1);
-assert.equal(b.indexOf(''), -1);
-assert.equal(b.indexOf('', 1), -1);
-assert.equal(b.indexOf('', b.length + 1), -1);
-assert.equal(b.indexOf('', Infinity), -1);
-assert.equal(b.indexOf(buf_a), 0);
-assert.equal(b.indexOf(buf_a, 1), -1);
-assert.equal(b.indexOf(buf_a, -1), -1);
-assert.equal(b.indexOf(buf_a, -4), -1);
-assert.equal(b.indexOf(buf_a, -b.length), 0);
-assert.equal(b.indexOf(buf_a, NaN), 0);
-assert.equal(b.indexOf(buf_a, -Infinity), 0);
-assert.equal(b.indexOf(buf_a, Infinity), -1);
-assert.equal(b.indexOf(buf_bc), 1);
-assert.equal(b.indexOf(buf_bc, 2), -1);
-assert.equal(b.indexOf(buf_bc, -1), -1);
-assert.equal(b.indexOf(buf_bc, -3), -1);
-assert.equal(b.indexOf(buf_bc, -5), 1);
-assert.equal(b.indexOf(buf_bc, NaN), 1);
-assert.equal(b.indexOf(buf_bc, -Infinity), 1);
-assert.equal(b.indexOf(buf_bc, Infinity), -1);
-assert.equal(b.indexOf(buf_f), b.length - 1);
-assert.equal(b.indexOf(buf_z), -1);
-assert.equal(b.indexOf(buf_empty), -1);
-assert.equal(b.indexOf(buf_empty, 1), -1);
-assert.equal(b.indexOf(buf_empty, b.length + 1), -1);
-assert.equal(b.indexOf(buf_empty, Infinity), -1);
-assert.equal(b.indexOf(0x61), 0);
-assert.equal(b.indexOf(0x61, 1), -1);
-assert.equal(b.indexOf(0x61, -1), -1);
-assert.equal(b.indexOf(0x61, -4), -1);
-assert.equal(b.indexOf(0x61, -b.length), 0);
-assert.equal(b.indexOf(0x61, NaN), 0);
-assert.equal(b.indexOf(0x61, -Infinity), 0);
-assert.equal(b.indexOf(0x61, Infinity), -1);
-assert.equal(b.indexOf(0x0), -1);
-
-// test offsets
-assert.equal(b.indexOf('d', 2), 3);
-assert.equal(b.indexOf('f', 5), 5);
-assert.equal(b.indexOf('f', -1), 5);
-assert.equal(b.indexOf('f', 6), -1);
-
-assert.equal(b.indexOf(Buffer.from('d'), 2), 3);
-assert.equal(b.indexOf(Buffer.from('f'), 5), 5);
-assert.equal(b.indexOf(Buffer.from('f'), -1), 5);
-assert.equal(b.indexOf(Buffer.from('f'), 6), -1);
-
-assert.equal(Buffer.from('ff').indexOf(Buffer.from('f'), 1, 'ucs2'), -1);
-
-// test hex encoding
-assert.strictEqual(
-  Buffer.from(b.toString('hex'), 'hex')
-    .indexOf('64', 0, 'hex'),
-  3
-);
-assert.strictEqual(
-  Buffer.from(b.toString('hex'), 'hex')
-    .indexOf(Buffer.from('64', 'hex'), 0, 'hex'),
-  3
-);
-
-// test base64 encoding
-assert.strictEqual(
-  Buffer.from(b.toString('base64'), 'base64')
-    .indexOf('ZA==', 0, 'base64'),
-  3
-);
-assert.strictEqual(
-  Buffer.from(b.toString('base64'), 'base64')
-    .indexOf(Buffer.from('ZA==', 'base64'), 0, 'base64'),
-  3
-);
-
-// test ascii encoding
-assert.strictEqual(
-  Buffer.from(b.toString('ascii'), 'ascii')
-    .indexOf('d', 0, 'ascii'),
-  3
-);
-assert.strictEqual(
-  Buffer.from(b.toString('ascii'), 'ascii')
-    .indexOf(Buffer.from('d', 'ascii'), 0, 'ascii'),
-  3
-);
-
-// test latin1 encoding
-assert.strictEqual(
-  Buffer.from(b.toString('latin1'), 'latin1')
-    .indexOf('d', 0, 'latin1'),
-  3
-);
-assert.strictEqual(
-  Buffer.from(b.toString('latin1'), 'latin1')
-    .indexOf(Buffer.from('d', 'latin1'), 0, 'latin1'),
-  3
-);
-assert.strictEqual(
-  Buffer.from('aa\u00e8aa', 'latin1')
-    .indexOf('\u00e8', 'latin1'),
-  2
-);
-assert.strictEqual(
-  Buffer.from('\u00e8', 'latin1')
-    .indexOf('\u00e8', 'latin1'),
-  0
-);
-assert.strictEqual(
-  Buffer.from('\u00e8', 'latin1')
-    .indexOf(Buffer.from('\u00e8', 'latin1'), 'latin1'),
-  0
-);
-
-// test binary encoding
-assert.strictEqual(
-  Buffer.from(b.toString('binary'), 'binary')
-    .indexOf('d', 0, 'binary'),
-  3
-);
-assert.strictEqual(
-  Buffer.from(b.toString('binary'), 'binary')
-    .indexOf(Buffer.from('d', 'binary'), 0, 'binary'),
-  3
-);
-assert.strictEqual(
-  Buffer.from('aa\u00e8aa', 'binary')
-    .indexOf('\u00e8', 'binary'),
-  2
-);
-assert.strictEqual(
-  Buffer.from('\u00e8', 'binary')
-    .indexOf('\u00e8', 'binary'),
-  0
-);
-assert.strictEqual(
-  Buffer.from('\u00e8', 'binary')
-    .indexOf(Buffer.from('\u00e8', 'binary'), 'binary'),
-  0
-);
-
-
-// test optional offset with passed encoding
-assert.equal(Buffer.from('aaaa0').indexOf('30', 'hex'), 4);
-assert.equal(Buffer.from('aaaa00a').indexOf('3030', 'hex'), 4);
-
-{
-  // test usc2 encoding
-  var twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
-
-  assert.equal(8, twoByteString.indexOf('\u0395', 4, 'ucs2'));
-  assert.equal(6, twoByteString.indexOf('\u03a3', -4, 'ucs2'));
-  assert.equal(4, twoByteString.indexOf('\u03a3', -6, 'ucs2'));
-  assert.equal(4, twoByteString.indexOf(
-    Buffer.from('\u03a3', 'ucs2'), -6, 'ucs2'));
-  assert.equal(-1, twoByteString.indexOf('\u03a3', -2, 'ucs2'));
-}
-
-var mixedByteStringUcs2 =
-    Buffer.from('\u039a\u0391abc\u03a3\u03a3\u0395', 'ucs2');
-assert.equal(6, mixedByteStringUcs2.indexOf('bc', 0, 'ucs2'));
-assert.equal(10, mixedByteStringUcs2.indexOf('\u03a3', 0, 'ucs2'));
-assert.equal(-1, mixedByteStringUcs2.indexOf('\u0396', 0, 'ucs2'));
-
-assert.equal(
-    6, mixedByteStringUcs2.indexOf(Buffer.from('bc', 'ucs2'), 0, 'ucs2'));
-assert.equal(
-    10, mixedByteStringUcs2.indexOf(Buffer.from('\u03a3', 'ucs2'), 0, 'ucs2'));
-assert.equal(
-    -1, mixedByteStringUcs2.indexOf(Buffer.from('\u0396', 'ucs2'), 0, 'ucs2'));
-
-{
-  var twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
-
-  // Test single char pattern
-  assert.equal(0, twoByteString.indexOf('\u039a', 0, 'ucs2'));
-  assert.equal(2, twoByteString.indexOf('\u0391', 0, 'ucs2'), 'Alpha');
-  assert.equal(4, twoByteString.indexOf('\u03a3', 0, 'ucs2'), 'First Sigma');
-  assert.equal(6, twoByteString.indexOf('\u03a3', 6, 'ucs2'), 'Second Sigma');
-  assert.equal(8, twoByteString.indexOf('\u0395', 0, 'ucs2'), 'Epsilon');
-  assert.equal(-1, twoByteString.indexOf('\u0392', 0, 'ucs2'), 'Not beta');
-
-  // Test multi-char pattern
-  assert.equal(
-      0, twoByteString.indexOf('\u039a\u0391', 0, 'ucs2'), 'Lambda Alpha');
-  assert.equal(
-      2, twoByteString.indexOf('\u0391\u03a3', 0, 'ucs2'), 'Alpha Sigma');
-  assert.equal(
-      4, twoByteString.indexOf('\u03a3\u03a3', 0, 'ucs2'), 'Sigma Sigma');
-  assert.equal(
-      6, twoByteString.indexOf('\u03a3\u0395', 0, 'ucs2'), 'Sigma Epsilon');
-}
-
-var mixedByteStringUtf8 = Buffer.from('\u039a\u0391abc\u03a3\u03a3\u0395');
-assert.equal(5, mixedByteStringUtf8.indexOf('bc'));
-assert.equal(5, mixedByteStringUtf8.indexOf('bc', 5));
-assert.equal(5, mixedByteStringUtf8.indexOf('bc', -8));
-assert.equal(7, mixedByteStringUtf8.indexOf('\u03a3'));
-assert.equal(-1, mixedByteStringUtf8.indexOf('\u0396'));
-
-
-// Test complex string indexOf algorithms. Only trigger for long strings.
-// Long string that isn't a simple repeat of a shorter string.
-var longString = 'A';
-for (var i = 66; i < 76; i++) {  // from 'B' to 'K'
-  longString = longString + String.fromCharCode(i) + longString;
-}
-
-var longBufferString = Buffer.from(longString);
-
-// pattern of 15 chars, repeated every 16 chars in long
-var pattern = 'ABACABADABACABA';
-for (var i = 0; i < longBufferString.length - pattern.length; i += 7) {
-  var index = longBufferString.indexOf(pattern, i);
-  assert.equal((i + 15) & ~0xf, index, 'Long ABACABA...-string at index ' + i);
-}
-assert.equal(510, longBufferString.indexOf('AJABACA'), 'Long AJABACA, First J');
-assert.equal(
-    1534, longBufferString.indexOf('AJABACA', 511), 'Long AJABACA, Second J');
-
-pattern = 'JABACABADABACABA';
-assert.equal(
-    511, longBufferString.indexOf(pattern), 'Long JABACABA..., First J');
-assert.equal(
-    1535, longBufferString.indexOf(pattern, 512), 'Long JABACABA..., Second J');
-
-// Search for a non-ASCII string in a pure ASCII string.
-var asciiString = Buffer.from(
-    'arglebargleglopglyfarglebargleglopglyfarglebargleglopglyf');
-assert.equal(-1, asciiString.indexOf('\x2061'));
-assert.equal(3, asciiString.indexOf('leb', 0));
-
-// Search in string containing many non-ASCII chars.
-var allCodePoints = [];
-for (var i = 0; i < 65536; i++) allCodePoints[i] = i;
-var allCharsString = String.fromCharCode.apply(String, allCodePoints);
-var allCharsBufferUtf8 = Buffer.from(allCharsString);
-var allCharsBufferUcs2 = Buffer.from(allCharsString, 'ucs2');
-
-// Search for string long enough to trigger complex search with ASCII pattern
-// and UC16 subject.
-assert.equal(-1, allCharsBufferUtf8.indexOf('notfound'));
-assert.equal(-1, allCharsBufferUcs2.indexOf('notfound'));
-
-// Needle is longer than haystack, but only because it's encoded as UTF-16
-assert.strictEqual(Buffer.from('aaaa').indexOf('a'.repeat(4), 'ucs2'), -1);
-
-assert.strictEqual(Buffer.from('aaaa').indexOf('a'.repeat(4), 'utf8'), 0);
-assert.strictEqual(Buffer.from('aaaa').indexOf('你好', 'ucs2'), -1);
-
-// Haystack has odd length, but the needle is UCS2.
-// assert.strictEqual(Buffer.from('aaaaa').indexOf('b', 'ucs2'), -1);
-
-{
-  // Find substrings in Utf8.
-  var lengths = [1, 3, 15];  // Single char, simple and complex.
-  var indices = [0x5, 0x60, 0x400, 0x680, 0x7ee, 0xFF02, 0x16610, 0x2f77b];
-  for (var lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
-    for (var i = 0; i < indices.length; i++) {
-      var index = indices[i];
-      var length = lengths[lengthIndex];
-
-      if (index + length > 0x7F) {
-        length = 2 * length;
-      }
-
-      if (index + length > 0x7FF) {
-        length = 3 * length;
-      }
-
-      if (index + length > 0xFFFF) {
-        length = 4 * length;
-      }
-
-      var patternBufferUtf8 = allCharsBufferUtf8.slice(index, index + length);
-      assert.equal(index, allCharsBufferUtf8.indexOf(patternBufferUtf8));
-
-      var patternStringUtf8 = patternBufferUtf8.toString();
-      assert.equal(index, allCharsBufferUtf8.indexOf(patternStringUtf8));
-    }
-  }
-}
-
-{
-  // Find substrings in Usc2.
-  var lengths = [2, 4, 16];  // Single char, simple and complex.
-  var indices = [0x5, 0x65, 0x105, 0x205, 0x285, 0x2005, 0x2085, 0xfff0];
-  for (var lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) {
-    for (var i = 0; i < indices.length; i++) {
-      var index = indices[i] * 2;
-      var length = lengths[lengthIndex];
-
-      var patternBufferUcs2 =
-          allCharsBufferUcs2.slice(index, index + length);
-      assert.equal(
-          index, allCharsBufferUcs2.indexOf(patternBufferUcs2, 0, 'ucs2'));
-
-      var patternStringUcs2 = patternBufferUcs2.toString('ucs2');
-      assert.equal(
-          index, allCharsBufferUcs2.indexOf(patternStringUcs2, 0, 'ucs2'));
-    }
-  }
-}
-
-assert.throws(function() {
-  b.indexOf(function() { });
-});
-assert.throws(function() {
-  b.indexOf({});
-});
-assert.throws(function() {
-  b.indexOf([]);
-});
-
-// All code for handling encodings is shared between Buffer.indexOf and
-// Buffer.lastIndexOf, so only testing the separate lastIndexOf semantics.
-
-// Test lastIndexOf basic functionality; Buffer b contains 'abcdef'.
-// lastIndexOf string:
-assert.equal(b.lastIndexOf('a'), 0);
-assert.equal(b.lastIndexOf('a', 1), 0);
-assert.equal(b.lastIndexOf('b', 1), 1);
-assert.equal(b.lastIndexOf('c', 1), -1);
-assert.equal(b.lastIndexOf('a', -1), 0);
-assert.equal(b.lastIndexOf('a', -4), 0);
-assert.equal(b.lastIndexOf('a', -b.length), 0);
-assert.equal(b.lastIndexOf('a', -b.length - 1), -1);
-assert.equal(b.lastIndexOf('a', NaN), 0);
-assert.equal(b.lastIndexOf('a', -Infinity), -1);
-assert.equal(b.lastIndexOf('a', Infinity), 0);
-// lastIndexOf Buffer:
-assert.equal(b.lastIndexOf(buf_a), 0);
-assert.equal(b.lastIndexOf(buf_a, 1), 0);
-assert.equal(b.lastIndexOf(buf_a, -1), 0);
-assert.equal(b.lastIndexOf(buf_a, -4), 0);
-assert.equal(b.lastIndexOf(buf_a, -b.length), 0);
-assert.equal(b.lastIndexOf(buf_a, -b.length - 1), -1);
-assert.equal(b.lastIndexOf(buf_a, NaN), 0);
-assert.equal(b.lastIndexOf(buf_a, -Infinity), -1);
-assert.equal(b.lastIndexOf(buf_a, Infinity), 0);
-assert.equal(b.lastIndexOf(buf_bc), 1);
-assert.equal(b.lastIndexOf(buf_bc, 2), 1);
-assert.equal(b.lastIndexOf(buf_bc, -1), 1);
-assert.equal(b.lastIndexOf(buf_bc, -3), 1);
-assert.equal(b.lastIndexOf(buf_bc, -5), 1);
-assert.equal(b.lastIndexOf(buf_bc, -6), -1);
-assert.equal(b.lastIndexOf(buf_bc, NaN), 1);
-assert.equal(b.lastIndexOf(buf_bc, -Infinity), -1);
-assert.equal(b.lastIndexOf(buf_bc, Infinity), 1);
-assert.equal(b.lastIndexOf(buf_f), b.length - 1);
-assert.equal(b.lastIndexOf(buf_z), -1);
-assert.equal(b.lastIndexOf(buf_empty), -1);
-assert.equal(b.lastIndexOf(buf_empty, 1), -1);
-assert.equal(b.lastIndexOf(buf_empty, b.length + 1), -1);
-assert.equal(b.lastIndexOf(buf_empty, Infinity), -1);
-// lastIndexOf number:
-assert.equal(b.lastIndexOf(0x61), 0);
-assert.equal(b.lastIndexOf(0x61, 1), 0);
-assert.equal(b.lastIndexOf(0x61, -1), 0);
-assert.equal(b.lastIndexOf(0x61, -4), 0);
-assert.equal(b.lastIndexOf(0x61, -b.length), 0);
-assert.equal(b.lastIndexOf(0x61, -b.length - 1), -1);
-assert.equal(b.lastIndexOf(0x61, NaN), 0);
-assert.equal(b.lastIndexOf(0x61, -Infinity), -1);
-assert.equal(b.lastIndexOf(0x61, Infinity), 0);
-assert.equal(b.lastIndexOf(0x0), -1);
-
-// Test weird offset arguments.
-// Behaviour should match String.lastIndexOf:
-assert.equal(b.lastIndexOf('b', 0), -1);
-assert.equal(b.lastIndexOf('b', undefined), 1);
-assert.equal(b.lastIndexOf('b', null), -1);
-assert.equal(b.lastIndexOf('b', {}), 1);
-assert.equal(b.lastIndexOf('b', []), -1);
-assert.equal(b.lastIndexOf('b', [2]), 1);
-
-// Test needles longer than the haystack.
-assert.strictEqual(b.lastIndexOf('aaaaaaaaaaaaaaa', 'ucs2'), -1);
-assert.strictEqual(b.lastIndexOf('aaaaaaaaaaaaaaa', 'utf8'), -1);
-assert.strictEqual(b.lastIndexOf('aaaaaaaaaaaaaaa', 'latin1'), -1);
-assert.strictEqual(b.lastIndexOf('aaaaaaaaaaaaaaa', 'binary'), -1);
-assert.strictEqual(b.lastIndexOf(Buffer.from('aaaaaaaaaaaaaaa')), -1);
-assert.strictEqual(b.lastIndexOf('aaaaaaaaaaaaaaa', 2, 'ucs2'), -1);
-assert.strictEqual(b.lastIndexOf('aaaaaaaaaaaaaaa', 3, 'utf8'), -1);
-assert.strictEqual(b.lastIndexOf('aaaaaaaaaaaaaaa', 5, 'latin1'), -1);
-assert.strictEqual(b.lastIndexOf('aaaaaaaaaaaaaaa', 5, 'binary'), -1);
-assert.strictEqual(b.lastIndexOf(Buffer.from('aaaaaaaaaaaaaaa'), 7), -1);
-
-// 你好 expands to a total of 6 bytes using UTF-8 and 4 bytes using UTF-16
-assert.strictEqual(buf_bc.lastIndexOf('你好', 'ucs2'), -1);
-assert.strictEqual(buf_bc.lastIndexOf('你好', 'utf8'), -1);
-assert.strictEqual(buf_bc.lastIndexOf('你好', 'latin1'), -1);
-assert.strictEqual(buf_bc.lastIndexOf('你好', 'binary'), -1);
-assert.strictEqual(buf_bc.lastIndexOf(Buffer.from('你好')), -1);
-assert.strictEqual(buf_bc.lastIndexOf('你好', 2, 'ucs2'), -1);
-assert.strictEqual(buf_bc.lastIndexOf('你好', 3, 'utf8'), -1);
-assert.strictEqual(buf_bc.lastIndexOf('你好', 5, 'latin1'), -1);
-assert.strictEqual(buf_bc.lastIndexOf('你好', 5, 'binary'), -1);
-assert.strictEqual(buf_bc.lastIndexOf(Buffer.from('你好'), 7), -1);
-
-// Test lastIndexOf on a longer buffer:
-var bufferString = new Buffer('a man a plan a canal panama');
-assert.equal(15, bufferString.lastIndexOf('canal'));
-assert.equal(21, bufferString.lastIndexOf('panama'));
-assert.equal(0, bufferString.lastIndexOf('a man a plan a canal panama'));
-assert.equal(-1, bufferString.lastIndexOf('a man a plan a canal mexico'));
-assert.equal(-1, bufferString.lastIndexOf('a man a plan a canal mexico city'));
-assert.equal(-1, bufferString.lastIndexOf(Buffer.from('a'.repeat(1000))));
-assert.equal(0, bufferString.lastIndexOf('a man a plan', 4));
-assert.equal(13, bufferString.lastIndexOf('a '));
-assert.equal(13, bufferString.lastIndexOf('a ', 13));
-assert.equal(6, bufferString.lastIndexOf('a ', 12));
-assert.equal(0, bufferString.lastIndexOf('a ', 5));
-assert.equal(13, bufferString.lastIndexOf('a ', -1));
-assert.equal(0, bufferString.lastIndexOf('a ', -27));
-assert.equal(-1, bufferString.lastIndexOf('a ', -28));
-
-// Test lastIndexOf for the case that the first character can be found,
-// but in a part of the buffer that does not make search to search
-// due do length constraints.
-var abInUCS2 = Buffer.from('ab', 'ucs2');
-assert.strictEqual(-1, Buffer.from('µaaaa¶bbbb', 'latin1').lastIndexOf('µ'));
-assert.strictEqual(-1, Buffer.from('µaaaa¶bbbb', 'binary').lastIndexOf('µ'));
-assert.strictEqual(-1, Buffer.from('bc').lastIndexOf('ab'));
-assert.strictEqual(-1, Buffer.from('abc').lastIndexOf('qa'));
-assert.strictEqual(-1, Buffer.from('abcdef').lastIndexOf('qabc'));
-assert.strictEqual(-1, Buffer.from('bc').lastIndexOf(Buffer.from('ab')));
-assert.strictEqual(-1, Buffer.from('bc', 'ucs2').lastIndexOf('ab', 'ucs2'));
-assert.strictEqual(-1, Buffer.from('bc', 'ucs2').lastIndexOf(abInUCS2));
-
-assert.strictEqual(0, Buffer.from('abc').lastIndexOf('ab'));
-assert.strictEqual(0, Buffer.from('abc').lastIndexOf('ab', 1));
-assert.strictEqual(0, Buffer.from('abc').lastIndexOf('ab', 2));
-assert.strictEqual(0, Buffer.from('abc').lastIndexOf('ab', 3));
-
-// The above tests test the LINEAR and SINGLE-CHAR strategies.
-// Now, we test the BOYER-MOORE-HORSPOOL strategy.
-// Test lastIndexOf on a long buffer w multiple matches:
-pattern = 'JABACABADABACABA';
-assert.equal(1535, longBufferString.lastIndexOf(pattern));
-assert.equal(1535, longBufferString.lastIndexOf(pattern, 1535));
-assert.equal(511, longBufferString.lastIndexOf(pattern, 1534));
-
-// Finally, give it a really long input to trigger fallback from BMH to
-// regular BOYER-MOORE (which has better worst-case complexity).
-
-// Generate a really long Thue-Morse sequence of 'yolo' and 'swag',
-// "yolo swag swag yolo swag yolo yolo swag" ..., goes on for about 5MB.
-// This is hard to search because it all looks similar, but never repeats.
-
-// countBits returns the number of bits in the binary reprsentation of n.
-function countBits(n) {
-  for (var count = 0; n > 0; count++) {
-    n = n & (n - 1); // remove top bit
-  }
-  return count;
-}
-var parts = [];
-for (var i = 0; i < 1000000; i++) {
-  parts.push((countBits(i) % 2 === 0) ? 'yolo' : 'swag');
-}
-var reallyLong = new Buffer(parts.join(' '));
-assert.equal('yolo swag swag yolo', reallyLong.slice(0, 19).toString());
-
-// Expensive reverse searches. Stress test lastIndexOf:
-pattern = reallyLong.slice(0, 100000);  // First 1/50th of the pattern.
-assert.equal(4751360, reallyLong.lastIndexOf(pattern));
-assert.equal(3932160, reallyLong.lastIndexOf(pattern, 4000000));
-assert.equal(2949120, reallyLong.lastIndexOf(pattern, 3000000));
-pattern = reallyLong.slice(100000, 200000);  // Second 1/50th.
-assert.equal(4728480, reallyLong.lastIndexOf(pattern));
-pattern = reallyLong.slice(0, 1000000);  // First 1/5th.
-assert.equal(3932160, reallyLong.lastIndexOf(pattern));
-pattern = reallyLong.slice(0, 2000000);  // first 2/5ths.
-assert.equal(0, reallyLong.lastIndexOf(pattern));
-
-// test truncation of Number arguments to uint8
-{
-  var buf = Buffer.from('this is a test');
-  assert.strictEqual(buf.indexOf(0x6973), 3);
-  assert.strictEqual(buf.indexOf(0x697320), 4);
-  assert.strictEqual(buf.indexOf(0x69732069), 2);
-  assert.strictEqual(buf.indexOf(0x697374657374), 0);
-  assert.strictEqual(buf.indexOf(0x69737374), 0);
-  assert.strictEqual(buf.indexOf(0x69737465), 11);
-  assert.strictEqual(buf.indexOf(0x69737465), 11);
-  assert.strictEqual(buf.indexOf(-140), 0);
-  assert.strictEqual(buf.indexOf(-152), 1);
-  assert.strictEqual(buf.indexOf(0xff), -1);
-  assert.strictEqual(buf.indexOf(0xffff), -1);
-}
-

+ 0 - 42
node_modules.bak/buffer/test/node/test-buffer-inheritance.js

@@ -1,42 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-
-var assert = require('assert');
-
-
-function T(n) {
-  var ui8 = new Uint8Array(n);
-  Object.setPrototypeOf(ui8, T.prototype);
-  return ui8;
-}
-Object.setPrototypeOf(T.prototype, Buffer.prototype);
-Object.setPrototypeOf(T, Buffer);
-
-T.prototype.sum = function sum() {
-  var cntr = 0;
-  for (var i = 0; i < this.length; i++)
-    cntr += this[i];
-  return cntr;
-};
-
-
-var vals = [new T(4), T(4)];
-
-vals.forEach(function(t) {
-  assert.equal(t.constructor, T);
-  assert.equal(Object.getPrototypeOf(t), T.prototype);
-  assert.equal(Object.getPrototypeOf(Object.getPrototypeOf(t)),
-    Buffer.prototype);
-
-  t.fill(5);
-  var cntr = 0;
-  for (var i = 0; i < t.length; i++)
-    cntr += t[i];
-  assert.equal(t.length * 5, cntr);
-
-  // Check this does not throw
-  t.toString();
-});
-

+ 0 - 41
node_modules.bak/buffer/test/node/test-buffer-inspect.js

@@ -1,41 +0,0 @@
-'use strict';
-var Buffer = require('../../').Buffer;
-
-
-var assert = require('assert');
-
-var util = require('util');
-
-var buffer = require('../../');
-
-buffer.INSPECT_MAX_BYTES = 2;
-
-var b = Buffer.allocUnsafe(4);
-b.fill('1234');
-
-var s = buffer.SlowBuffer(4);
-s.fill('1234');
-
-var expected = '<Buffer 31 32 ... >';
-
-assert.strictEqual(util.inspect(b), expected);
-assert.strictEqual(util.inspect(s), expected);
-
-b = Buffer.allocUnsafe(2);
-b.fill('12');
-
-s = buffer.SlowBuffer(2);
-s.fill('12');
-
-expected = '<Buffer 31 32>';
-
-assert.strictEqual(util.inspect(b), expected);
-assert.strictEqual(util.inspect(s), expected);
-
-buffer.INSPECT_MAX_BYTES = Infinity;
-
-assert.doesNotThrow(function() {
-  assert.strictEqual(util.inspect(b), expected);
-  assert.strictEqual(util.inspect(s), expected);
-});
-

+ 0 - 0
node_modules.bak/buffer/test/node/test-buffer-iterator.js


Some files were not shown because too many files changed in this diff