Browse Source

删除无用包7

wangsy 11 months ago
parent
commit
373a5778c2
100 changed files with 0 additions and 18832 deletions
  1. 0 152
      node_modules.bak/ms/index.js
  2. 0 21
      node_modules.bak/ms/license.md
  3. 0 69
      node_modules.bak/ms/package.json
  4. 0 51
      node_modules.bak/ms/readme.md
  5. 0 1
      node_modules.bak/multicast-dns-service-types/.npmignore
  6. 0 5
      node_modules.bak/multicast-dns-service-types/.travis.yml
  7. 0 21
      node_modules.bak/multicast-dns-service-types/LICENSE
  8. 0 30
      node_modules.bak/multicast-dns-service-types/README.md
  9. 0 35
      node_modules.bak/multicast-dns-service-types/index.js
  10. 0 58
      node_modules.bak/multicast-dns-service-types/package.json
  11. 0 26
      node_modules.bak/multicast-dns-service-types/test.js
  12. 0 6
      node_modules.bak/multicast-dns/.travis.yml
  13. 0 21
      node_modules.bak/multicast-dns/LICENSE
  14. 0 210
      node_modules.bak/multicast-dns/README.md
  15. 0 64
      node_modules.bak/multicast-dns/cli.js
  16. 0 36
      node_modules.bak/multicast-dns/example.js
  17. 0 180
      node_modules.bak/multicast-dns/index.js
  18. 0 73
      node_modules.bak/multicast-dns/package.json
  19. 0 240
      node_modules.bak/multicast-dns/test.js
  20. 0 537
      node_modules.bak/nan/CHANGELOG.md
  21. 0 13
      node_modules.bak/nan/LICENSE.md
  22. 0 455
      node_modules.bak/nan/README.md
  23. 0 146
      node_modules.bak/nan/doc/asyncworker.md
  24. 0 54
      node_modules.bak/nan/doc/buffers.md
  25. 0 76
      node_modules.bak/nan/doc/callback.md
  26. 0 41
      node_modules.bak/nan/doc/converters.md
  27. 0 226
      node_modules.bak/nan/doc/errors.md
  28. 0 62
      node_modules.bak/nan/doc/json.md
  29. 0 583
      node_modules.bak/nan/doc/maybe_types.md
  30. 0 664
      node_modules.bak/nan/doc/methods.md
  31. 0 147
      node_modules.bak/nan/doc/new.md
  32. 0 123
      node_modules.bak/nan/doc/node_misc.md
  33. 0 263
      node_modules.bak/nan/doc/object_wrappers.md
  34. 0 296
      node_modules.bak/nan/doc/persistent.md
  35. 0 73
      node_modules.bak/nan/doc/scopes.md
  36. 0 38
      node_modules.bak/nan/doc/script.md
  37. 0 62
      node_modules.bak/nan/doc/string_bytes.md
  38. 0 199
      node_modules.bak/nan/doc/v8_internals.md
  39. 0 85
      node_modules.bak/nan/doc/v8_misc.md
  40. 0 1
      node_modules.bak/nan/include_dirs.js
  41. 0 2898
      node_modules.bak/nan/nan.h
  42. 0 88
      node_modules.bak/nan/nan_callbacks.h
  43. 0 514
      node_modules.bak/nan/nan_callbacks_12_inl.h
  44. 0 520
      node_modules.bak/nan/nan_callbacks_pre_12_inl.h
  45. 0 72
      node_modules.bak/nan/nan_converters.h
  46. 0 68
      node_modules.bak/nan/nan_converters_43_inl.h
  47. 0 42
      node_modules.bak/nan/nan_converters_pre_43_inl.h
  48. 0 29
      node_modules.bak/nan/nan_define_own_property_helper.h
  49. 0 430
      node_modules.bak/nan/nan_implementation_12_inl.h
  50. 0 263
      node_modules.bak/nan/nan_implementation_pre_12_inl.h
  51. 0 166
      node_modules.bak/nan/nan_json.h
  52. 0 356
      node_modules.bak/nan/nan_maybe_43_inl.h
  53. 0 268
      node_modules.bak/nan/nan_maybe_pre_43_inl.h
  54. 0 340
      node_modules.bak/nan/nan_new.h
  55. 0 156
      node_modules.bak/nan/nan_object_wrap.h
  56. 0 132
      node_modules.bak/nan/nan_persistent_12_inl.h
  57. 0 242
      node_modules.bak/nan/nan_persistent_pre_12_inl.h
  58. 0 73
      node_modules.bak/nan/nan_private.h
  59. 0 305
      node_modules.bak/nan/nan_string_bytes.h
  60. 0 96
      node_modules.bak/nan/nan_typedarray_contents.h
  61. 0 437
      node_modules.bak/nan/nan_weak.h
  62. 0 37
      node_modules.bak/nan/package.json
  63. 0 412
      node_modules.bak/nan/tools/1to2.js
  64. 0 14
      node_modules.bak/nan/tools/README.md
  65. 0 19
      node_modules.bak/nan/tools/package.json
  66. 0 57
      node_modules.bak/nanomatch/CHANGELOG.md
  67. 0 21
      node_modules.bak/nanomatch/LICENSE
  68. 0 1148
      node_modules.bak/nanomatch/README.md
  69. 0 838
      node_modules.bak/nanomatch/index.js
  70. 0 1
      node_modules.bak/nanomatch/lib/cache.js
  71. 0 339
      node_modules.bak/nanomatch/lib/compilers.js
  72. 0 386
      node_modules.bak/nanomatch/lib/parsers.js
  73. 0 379
      node_modules.bak/nanomatch/lib/utils.js
  74. 0 171
      node_modules.bak/nanomatch/package.json
  75. 0 132
      node_modules.bak/native-request/README.md
  76. 0 87
      node_modules.bak/native-request/index.js
  77. 0 68
      node_modules.bak/native-request/package.json
  78. 0 46
      node_modules.bak/native-request/test/get.js
  79. 0 53
      node_modules.bak/native-request/test/post.js
  80. 0 103
      node_modules.bak/negotiator/HISTORY.md
  81. 0 24
      node_modules.bak/negotiator/LICENSE
  82. 0 203
      node_modules.bak/negotiator/README.md
  83. 0 124
      node_modules.bak/negotiator/index.js
  84. 0 169
      node_modules.bak/negotiator/lib/charset.js
  85. 0 184
      node_modules.bak/negotiator/lib/encoding.js
  86. 0 179
      node_modules.bak/negotiator/lib/language.js
  87. 0 294
      node_modules.bak/negotiator/lib/mediaType.js
  88. 0 84
      node_modules.bak/negotiator/package.json
  89. 0 22
      node_modules.bak/neo-async/LICENSE
  90. 0 273
      node_modules.bak/neo-async/README.md
  91. 0 3
      node_modules.bak/neo-async/all.js
  92. 0 3
      node_modules.bak/neo-async/allLimit.js
  93. 0 3
      node_modules.bak/neo-async/allSeries.js
  94. 0 3
      node_modules.bak/neo-async/angelFall.js
  95. 0 3
      node_modules.bak/neo-async/any.js
  96. 0 3
      node_modules.bak/neo-async/anyLimit.js
  97. 0 3
      node_modules.bak/neo-async/anySeries.js
  98. 0 3
      node_modules.bak/neo-async/apply.js
  99. 0 3
      node_modules.bak/neo-async/applyEach.js
  100. 0 0
      node_modules.bak/neo-async/applyEachSeries.js

+ 0 - 152
node_modules.bak/ms/index.js

@@ -1,152 +0,0 @@
-/**
- * Helpers.
- */
-
-var s = 1000;
-var m = s * 60;
-var h = m * 60;
-var d = h * 24;
-var y = d * 365.25;
-
-/**
- * Parse or format the given `val`.
- *
- * Options:
- *
- *  - `long` verbose formatting [false]
- *
- * @param {String|Number} val
- * @param {Object} [options]
- * @throws {Error} throw an error if val is not a non-empty string or a number
- * @return {String|Number}
- * @api public
- */
-
-module.exports = function(val, options) {
-  options = options || {};
-  var type = typeof val;
-  if (type === 'string' && val.length > 0) {
-    return parse(val);
-  } else if (type === 'number' && isNaN(val) === false) {
-    return options.long ? fmtLong(val) : fmtShort(val);
-  }
-  throw new Error(
-    'val is not a non-empty string or a valid number. val=' +
-      JSON.stringify(val)
-  );
-};
-
-/**
- * Parse the given `str` and return milliseconds.
- *
- * @param {String} str
- * @return {Number}
- * @api private
- */
-
-function parse(str) {
-  str = String(str);
-  if (str.length > 100) {
-    return;
-  }
-  var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
-    str
-  );
-  if (!match) {
-    return;
-  }
-  var n = parseFloat(match[1]);
-  var type = (match[2] || 'ms').toLowerCase();
-  switch (type) {
-    case 'years':
-    case 'year':
-    case 'yrs':
-    case 'yr':
-    case 'y':
-      return n * y;
-    case 'days':
-    case 'day':
-    case 'd':
-      return n * d;
-    case 'hours':
-    case 'hour':
-    case 'hrs':
-    case 'hr':
-    case 'h':
-      return n * h;
-    case 'minutes':
-    case 'minute':
-    case 'mins':
-    case 'min':
-    case 'm':
-      return n * m;
-    case 'seconds':
-    case 'second':
-    case 'secs':
-    case 'sec':
-    case 's':
-      return n * s;
-    case 'milliseconds':
-    case 'millisecond':
-    case 'msecs':
-    case 'msec':
-    case 'ms':
-      return n;
-    default:
-      return undefined;
-  }
-}
-
-/**
- * Short format for `ms`.
- *
- * @param {Number} ms
- * @return {String}
- * @api private
- */
-
-function fmtShort(ms) {
-  if (ms >= d) {
-    return Math.round(ms / d) + 'd';
-  }
-  if (ms >= h) {
-    return Math.round(ms / h) + 'h';
-  }
-  if (ms >= m) {
-    return Math.round(ms / m) + 'm';
-  }
-  if (ms >= s) {
-    return Math.round(ms / s) + 's';
-  }
-  return ms + 'ms';
-}
-
-/**
- * Long format for `ms`.
- *
- * @param {Number} ms
- * @return {String}
- * @api private
- */
-
-function fmtLong(ms) {
-  return plural(ms, d, 'day') ||
-    plural(ms, h, 'hour') ||
-    plural(ms, m, 'minute') ||
-    plural(ms, s, 'second') ||
-    ms + ' ms';
-}
-
-/**
- * Pluralization helper.
- */
-
-function plural(ms, n, name) {
-  if (ms < n) {
-    return;
-  }
-  if (ms < n * 1.5) {
-    return Math.floor(ms / n) + ' ' + name;
-  }
-  return Math.ceil(ms / n) + ' ' + name + 's';
-}

+ 0 - 21
node_modules.bak/ms/license.md

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016 Zeit, Inc.
-
-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/ms/package.json

@@ -1,69 +0,0 @@
-{
-  "_from": "ms@2.0.0",
-  "_id": "ms@2.0.0",
-  "_inBundle": false,
-  "_integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
-  "_location": "/ms",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "version",
-    "registry": true,
-    "raw": "ms@2.0.0",
-    "name": "ms",
-    "escapedName": "ms",
-    "rawSpec": "2.0.0",
-    "saveSpec": null,
-    "fetchSpec": "2.0.0"
-  },
-  "_requiredBy": [
-    "/debug"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1607433872491&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz",
-  "_shasum": "5608aeadfc00be6c2901df5f9861788de0d597c8",
-  "_spec": "ms@2.0.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\debug",
-  "bugs": {
-    "url": "https://github.com/zeit/ms/issues"
-  },
-  "bundleDependencies": false,
-  "deprecated": false,
-  "description": "Tiny milisecond conversion utility",
-  "devDependencies": {
-    "eslint": "3.19.0",
-    "expect.js": "0.3.1",
-    "husky": "0.13.3",
-    "lint-staged": "3.4.1",
-    "mocha": "3.4.1"
-  },
-  "eslintConfig": {
-    "extends": "eslint:recommended",
-    "env": {
-      "node": true,
-      "es6": true
-    }
-  },
-  "files": [
-    "index.js"
-  ],
-  "homepage": "https://github.com/zeit/ms#readme",
-  "license": "MIT",
-  "lint-staged": {
-    "*.js": [
-      "npm run lint",
-      "prettier --single-quote --write",
-      "git add"
-    ]
-  },
-  "main": "./index",
-  "name": "ms",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/zeit/ms.git"
-  },
-  "scripts": {
-    "lint": "eslint lib/* bin/*",
-    "precommit": "lint-staged",
-    "test": "mocha tests.js"
-  },
-  "version": "2.0.0"
-}

+ 0 - 51
node_modules.bak/ms/readme.md

@@ -1,51 +0,0 @@
-# ms
-
-[![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms)
-[![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/)
-
-Use this package to easily convert various time formats to milliseconds.
-
-## Examples
-
-```js
-ms('2 days')  // 172800000
-ms('1d')      // 86400000
-ms('10h')     // 36000000
-ms('2.5 hrs') // 9000000
-ms('2h')      // 7200000
-ms('1m')      // 60000
-ms('5s')      // 5000
-ms('1y')      // 31557600000
-ms('100')     // 100
-```
-
-### Convert from milliseconds
-
-```js
-ms(60000)             // "1m"
-ms(2 * 60000)         // "2m"
-ms(ms('10 hours'))    // "10h"
-```
-
-### Time format written-out
-
-```js
-ms(60000, { long: true })             // "1 minute"
-ms(2 * 60000, { long: true })         // "2 minutes"
-ms(ms('10 hours'), { long: true })    // "10 hours"
-```
-
-## Features
-
-- Works both in [node](https://nodejs.org) and in the browser.
-- If a number is supplied to `ms`, a string with a unit is returned.
-- If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`).
-- If you pass a string with a number and a valid unit, the number of equivalent ms is returned.
-
-## Caught a bug?
-
-1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
-2. Link the package to the global module directory: `npm link`
-3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, node will now use your clone of ms!
-
-As always, you can run the tests using: `npm test`

+ 0 - 1
node_modules.bak/multicast-dns-service-types/.npmignore

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

+ 0 - 5
node_modules.bak/multicast-dns-service-types/.travis.yml

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

+ 0 - 21
node_modules.bak/multicast-dns-service-types/LICENSE

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 Mathias Buus
-
-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 - 30
node_modules.bak/multicast-dns-service-types/README.md

@@ -1,30 +0,0 @@
-# multicast-dns-service-types
-
-Parse and stringify mdns service types
-
-```
-npm install multicast-dns-service-types
-```
-
-[![build status](http://img.shields.io/travis/mafintosh/multicast-dns-service-types.svg?style=flat)](http://travis-ci.org/mafintosh/multicast-dns-service-types)
-
-## Usage
-
-``` js
-var types = require('multicast-dns-service-types')
-
-console.log(types.stringify({name: 'http', protocol: 'tcp', subtypes: ['sub1', 'sub2']})) // _http._tcp._sub1._sub2
-console.log(types.parse('_http._tcp._sub1._sub2')) // {name: 'http', protocol: 'tcp', subtypes: ['sub1', 'sub2']}
-```
-
-The following shorthands also exist
-
-``` js
-types.stringify(name, protocol, subtypes)
-types.tcp(name, subtypes) // set protocol to tcp
-types.udp(name, subtypes) // set protocol to udp
-```
-
-## License
-
-MIT

+ 0 - 35
node_modules.bak/multicast-dns-service-types/index.js

@@ -1,35 +0,0 @@
-var prefix = function (name) {
-  return '_' + name
-}
-
-var defined = function (name) {
-  return name
-}
-
-exports.stringify = function (data) {
-  if (typeof data === 'object' && data && data.name) return exports.stringify(data.name, data.protocol, data.subtypes)
-  return Array.prototype.concat.apply([], arguments).filter(defined).map(prefix).join('.')
-}
-
-exports.parse = function (str) {
-  var parts = str.split('.')
-
-  for (var i = 0; i < parts.length; i++) {
-    if (parts[i][0] !== '_') continue
-    parts[i] = parts[i].slice(1)
-  }
-
-  return {
-    name: parts.shift(),
-    protocol: parts.shift() || null,
-    subtypes: parts
-  }
-}
-
-exports.tcp = function (name) {
-  return exports.stringify(name, 'tcp', Array.prototype.concat.apply([], Array.prototype.slice.call(arguments, 1)))
-}
-
-exports.udp = function (name) {
-  return exports.stringify(name, 'udp', Array.prototype.concat.apply([], Array.prototype.slice.call(arguments, 1)))
-}

+ 0 - 58
node_modules.bak/multicast-dns-service-types/package.json

@@ -1,58 +0,0 @@
-{
-  "_from": "multicast-dns-service-types@^1.1.0",
-  "_id": "multicast-dns-service-types@1.1.0",
-  "_inBundle": false,
-  "_integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=",
-  "_location": "/multicast-dns-service-types",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "multicast-dns-service-types@^1.1.0",
-    "name": "multicast-dns-service-types",
-    "escapedName": "multicast-dns-service-types",
-    "rawSpec": "^1.1.0",
-    "saveSpec": null,
-    "fetchSpec": "^1.1.0"
-  },
-  "_requiredBy": [
-    "/bonjour"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/multicast-dns-service-types/download/multicast-dns-service-types-1.1.0.tgz",
-  "_shasum": "899f11d9686e5e05cb91b35d5f0e63b773cfc901",
-  "_spec": "multicast-dns-service-types@^1.1.0",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\bonjour",
-  "author": {
-    "name": "Mathias Buus",
-    "url": "@mafintosh"
-  },
-  "bugs": {
-    "url": "https://github.com/mafintosh/multicast-dns-service-types/issues"
-  },
-  "bundleDependencies": false,
-  "dependencies": {},
-  "deprecated": false,
-  "description": "Parse and stringify mdns service types",
-  "devDependencies": {
-    "standard": "^3.5.0",
-    "tape": "^4.0.0"
-  },
-  "homepage": "https://github.com/mafintosh/multicast-dns-service-types",
-  "keywords": [
-    "mdns",
-    "bonjour",
-    "zero",
-    "conf"
-  ],
-  "license": "MIT",
-  "main": "index.js",
-  "name": "multicast-dns-service-types",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/mafintosh/multicast-dns-service-types.git"
-  },
-  "scripts": {
-    "test": "standard && tape test.js"
-  },
-  "version": "1.1.0"
-}

+ 0 - 26
node_modules.bak/multicast-dns-service-types/test.js

@@ -1,26 +0,0 @@
-var tape = require('tape')
-var type = require('./')
-
-tape('stringifies', function (t) {
-  t.same(type.stringify('http', 'tcp'), '_http._tcp')
-  t.same(type.stringify('http', 'tcp', 'sub'), '_http._tcp._sub')
-  t.same(type.stringify('http', 'tcp', 'sub', 'sub2'), '_http._tcp._sub._sub2')
-  t.same(type.stringify('http', 'tcp', ['sub', 'sub2']), '_http._tcp._sub._sub2')
-  t.same(type.stringify({name: 'http', protocol: 'tcp', subtypes: ['sub', 'sub2']}), '_http._tcp._sub._sub2')
-  t.end()
-})
-
-tape('parses', function (t) {
-  t.same(type.parse('_http._tcp'), {name: 'http', protocol: 'tcp', subtypes: []})
-  t.same(type.parse('_http._tcp._sub'), {name: 'http', protocol: 'tcp', subtypes: ['sub']})
-  t.same(type.parse('_http._tcp._sub._sub2'), {name: 'http', protocol: 'tcp', subtypes: ['sub', 'sub2']})
-  t.end()
-})
-
-tape('shorthands', function (t) {
-  t.same(type.tcp('http'), '_http._tcp')
-  t.same(type.tcp('http', 'sub'), '_http._tcp._sub')
-  t.same(type.tcp('http', 'sub', 'sub2'), '_http._tcp._sub._sub2')
-  t.same(type.tcp('http', ['sub', 'sub2']), '_http._tcp._sub._sub2')
-  t.end()
-})

+ 0 - 6
node_modules.bak/multicast-dns/.travis.yml

@@ -1,6 +0,0 @@
-language: node_js
-node_js:
-  - "4"
-  - "6"
-  - "8"
-  - "9"

+ 0 - 21
node_modules.bak/multicast-dns/LICENSE

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 Mathias Buus
-
-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 - 210
node_modules.bak/multicast-dns/README.md

@@ -1,210 +0,0 @@
-# multicast-dns
-
-Low level multicast-dns implementation in pure javascript
-
-```
-npm install multicast-dns
-```
-
-[![build status](http://img.shields.io/travis/mafintosh/multicast-dns.svg?style=flat)](http://travis-ci.org/mafintosh/multicast-dns)
-
-## Usage
-
-``` js
-var mdns = require('multicast-dns')()
-
-mdns.on('response', function(response) {
-  console.log('got a response packet:', response)
-})
-
-mdns.on('query', function(query) {
-  console.log('got a query packet:', query)
-})
-
-// lets query for an A record for 'brunhilde.local'
-mdns.query({
-  questions:[{
-    name: 'brunhilde.local',
-    type: 'A'
-  }]
-})
-```
-
-Running the above (change `brunhilde.local` to `your-own-hostname.local`) will print an echo of the query packet first
-
-``` js
-got a query packet: { type: 'query',
-  questions: [ { name: 'brunhilde.local', type: 'A', class: 1 } ],
-  answers: [],
-  authorities: [],
-  additionals: [] }
-```
-
-And then a response packet
-
-``` js
-got a response packet: { type: 'response',
-  questions: [],
-  answers:
-   [ { name: 'brunhilde.local',
-       type: 'A',
-       class: 1,
-       ttl: 120,
-       flush: true,
-       data: '192.168.1.5' } ],
-  authorities: [],
-  additionals:
-   [ { name: 'brunhilde.local',
-       type: 'A',
-       class: 1,
-       ttl: 120,
-       flush: true,
-       data: '192.168.1.5' },
-     { name: 'brunhilde.local',
-       type: 'AAAA',
-       class: 1,
-       ttl: 120,
-       flush: true,
-       data: 'fe80::5ef9:38ff:fe8c:ceaa' } ] }
-```
-
-
-# CLI
-
-```
-npm install -g multicast-dns
-```
-
-```
-multicast-dns brunhilde.local
-> 192.168.1.1
-```
-
-# API
-
-A packet has the following format
-
-``` js
-{
-  questions: [{
-    name:'brunhilde.local',
-    type:'A'
-  }],
-  answers: [{
-    name:'brunhilde.local',
-    type:'A',
-    ttl:seconds,
-    data:(record type specific data)
-  }],
-  additionals: [
-    (same format as answers)
-  ],
-  authorities: [
-    (same format as answers)
-  ]
-}
-```
-
-Currently data from `SRV`, `A`, `PTR`, `TXT`, `AAAA` and `HINFO` records is passed
-
-#### `mdns = multicastdns([options])`
-
-Creates a new `mdns` instance. Options can contain the following
-
-``` js
-{
-  multicast: true // use udp multicasting
-  interface: '192.168.0.2' // explicitly specify a network interface. defaults to all
-  port: 5353, // set the udp port
-  ip: '224.0.0.251', // set the udp ip
-  ttl: 255, // set the multicast ttl
-  loopback: true, // receive your own packets
-  reuseAddr: true // set the reuseAddr option when creating the socket (requires node >=0.11.13)
-}
-```
-
-#### `mdns.on('query', (packet, rinfo))`
-
-Emitted when a query packet is received.
-
-``` js
-mdns.on('query', function(query) {
-  if (query.questions[0] && query.questions[0].name === 'brunhilde.local') {
-    mdns.respond(someResponse) // see below
-  }
-})
-```
-
-#### `mdns.on('response', (packet, rinfo))`
-
-Emitted when a response packet is received.
-
-The response might not be a response to a query you send as this
-is the result of someone multicasting a response.
-
-#### `mdns.query(packet, [cb])`
-
-Send a dns query. The callback will be called when the packet was sent.
-
-The following shorthands are equivalent
-
-``` js
-mdns.query('brunhilde.local', 'A')
-mdns.query([{name:'brunhilde.local', type:'A'}])
-mdns.query({
-  questions: [{name:'brunhilde.local', type:'A'}]
-})
-```
-
-#### `mdns.respond(packet, [cb])`
-
-Send a dns response. The callback will be called when the packet was sent.
-
-``` js
-// reply with a SRV and a A record as an answer
-mdns.respond({
-  answers: [{
-    name: 'my-service',
-    type: 'SRV',
-    data: {
-      port:9999,
-      weigth: 0,
-      priority: 10,
-      target: 'my-service.example.com'
-    }
-  }, {
-    name: 'brunhilde.local',
-    type: 'A',
-    ttl: 300,
-    data: '192.168.1.5'
-  }]
-})
-```
-
-The following shorthands are equivalent
-
-``` js
-mdns.respond([{name:'brunhilde.local', type:'A', data:'192.158.1.5'}])
-mdns.respond({
-  answers: [{name:'brunhilde.local', type:'A', data:'192.158.1.5'}]
-})
-```
-
-#### `mdns.destroy()`
-
-Destroy the mdns instance. Closes the udp socket.
-
-# Development
-
-To start hacking on this module you can use this example to get started
-
-```
-git clone git://github.com/mafintosh/multicast-dns.git
-npm install
-node example.js
-node cli.js $(hostname).local
-```
-
-## License
-
-MIT

+ 0 - 64
node_modules.bak/multicast-dns/cli.js

@@ -1,64 +0,0 @@
-#!/usr/bin/env node
-
-var mdns = require('./')()
-var path = require('path')
-var os = require('os')
-
-var announcing = process.argv.indexOf('--announce') > -1
-
-if (process.argv.length < 3) {
-  console.error('Usage: %s <hostname>', path.basename(process.argv[1]))
-  process.exit(1)
-}
-var hostname = process.argv[2]
-
-if (announcing) {
-  var ip = getIp()
-  mdns.on('query', function (query) {
-    query.questions.forEach(function (q) {
-      if (q.name === hostname) {
-        console.log('Responding %s -> %s', q.name, ip)
-        mdns.respond({
-          answers: [{
-            type: 'A',
-            name: q.name,
-            data: ip
-          }]
-        })
-      }
-    })
-  })
-} else {
-  mdns.on('response', function (response) {
-    response.answers.forEach(function (answer) {
-      if (answer.name === hostname) {
-        console.log(answer.data)
-        process.exit()
-      }
-    })
-  })
-
-  mdns.query(hostname, 'A')
-
-  // Give responses 3 seconds to respond
-  setTimeout(function () {
-    console.error('Hostname not found')
-    process.exit(1)
-  }, 3000)
-}
-
-function getIp () {
-  var networks = os.networkInterfaces()
-  var found = '127.0.0.1'
-
-  Object.keys(networks).forEach(function (k) {
-    var n = networks[k]
-    n.forEach(function (addr) {
-      if (addr.family === 'IPv4' && !addr.internal) {
-        found = addr.address
-      }
-    })
-  })
-
-  return found
-}

+ 0 - 36
node_modules.bak/multicast-dns/example.js

@@ -1,36 +0,0 @@
-var mdns = require('./')()
-
-mdns.on('warning', function (err) {
-  console.log(err.stack)
-})
-
-mdns.on('response', function (response) {
-  console.log('got a response packet:', response)
-})
-
-mdns.on('query', function (query) {
-  console.log('got a query packet:', query)
-
-  // iterate over all questions to check if we should respond
-  query.questions.forEach(function (q) {
-    if (q.type === 'A' && q.name === 'example.local') {
-      // send an A-record response for example.local
-      mdns.respond({
-        answers: [{
-          name: 'example.local',
-          type: 'A',
-          ttl: 300,
-          data: '192.168.1.5'
-        }]
-      })
-    }
-  })
-})
-
-// lets query for an A-record for example.local
-mdns.query({
-  questions: [{
-    name: 'example.local',
-    type: 'A'
-  }]
-})

+ 0 - 180
node_modules.bak/multicast-dns/index.js

@@ -1,180 +0,0 @@
-var packet = require('dns-packet')
-var dgram = require('dgram')
-var thunky = require('thunky')
-var events = require('events')
-var os = require('os')
-
-var noop = function () {}
-
-module.exports = function (opts) {
-  if (!opts) opts = {}
-
-  var that = new events.EventEmitter()
-  var port = typeof opts.port === 'number' ? opts.port : 5353
-  var type = opts.type || 'udp4'
-  var ip = opts.ip || opts.host || (type === 'udp4' ? '224.0.0.251' : null)
-  var me = {address: ip, port: port}
-  var memberships = {}
-  var destroyed = false
-  var interval = null
-
-  if (type === 'udp6' && (!ip || !opts.interface)) {
-    throw new Error('For IPv6 multicast you must specify `ip` and `interface`')
-  }
-
-  var socket = opts.socket || dgram.createSocket({
-    type: type,
-    reuseAddr: opts.reuseAddr !== false,
-    toString: function () {
-      return type
-    }
-  })
-
-  socket.on('error', function (err) {
-    if (err.code === 'EACCES' || err.code === 'EADDRINUSE') that.emit('error', err)
-    else that.emit('warning', err)
-  })
-
-  socket.on('message', function (message, rinfo) {
-    try {
-      message = packet.decode(message)
-    } catch (err) {
-      that.emit('warning', err)
-      return
-    }
-
-    that.emit('packet', message, rinfo)
-
-    if (message.type === 'query') that.emit('query', message, rinfo)
-    if (message.type === 'response') that.emit('response', message, rinfo)
-  })
-
-  socket.on('listening', function () {
-    if (!port) port = me.port = socket.address().port
-    if (opts.multicast !== false) {
-      that.update()
-      interval = setInterval(that.update, 5000)
-      socket.setMulticastTTL(opts.ttl || 255)
-      socket.setMulticastLoopback(opts.loopback !== false)
-    }
-  })
-
-  var bind = thunky(function (cb) {
-    if (!port) return cb(null)
-    socket.once('error', cb)
-    socket.bind(port, opts.interface, function () {
-      socket.removeListener('error', cb)
-      cb(null)
-    })
-  })
-
-  bind(function (err) {
-    if (err) return that.emit('error', err)
-    that.emit('ready')
-  })
-
-  that.send = function (value, rinfo, cb) {
-    if (typeof rinfo === 'function') return that.send(value, null, rinfo)
-    if (!cb) cb = noop
-    if (!rinfo) rinfo = me
-
-    bind(onbind)
-
-    function onbind (err) {
-      if (destroyed) return cb()
-      if (err) return cb(err)
-      var message = packet.encode(value)
-      socket.send(message, 0, message.length, rinfo.port, rinfo.address || rinfo.host, cb)
-    }
-  }
-
-  that.response =
-  that.respond = function (res, rinfo, cb) {
-    if (Array.isArray(res)) res = {answers: res}
-
-    res.type = 'response'
-    res.flags = (res.flags || 0) | packet.AUTHORITATIVE_ANSWER
-    that.send(res, rinfo, cb)
-  }
-
-  that.query = function (q, type, rinfo, cb) {
-    if (typeof type === 'function') return that.query(q, null, null, type)
-    if (typeof type === 'object' && type && type.port) return that.query(q, null, type, rinfo)
-    if (typeof rinfo === 'function') return that.query(q, type, null, rinfo)
-    if (!cb) cb = noop
-
-    if (typeof q === 'string') q = [{name: q, type: type || 'ANY'}]
-    if (Array.isArray(q)) q = {type: 'query', questions: q}
-
-    q.type = 'query'
-    that.send(q, rinfo, cb)
-  }
-
-  that.destroy = function (cb) {
-    if (!cb) cb = noop
-    if (destroyed) return process.nextTick(cb)
-    destroyed = true
-    clearInterval(interval)
-    socket.once('close', cb)
-    socket.close()
-  }
-
-  that.update = function () {
-    var ifaces = opts.interface ? [].concat(opts.interface) : allInterfaces()
-    var updated = false
-
-    for (var i = 0; i < ifaces.length; i++) {
-      var addr = ifaces[i]
-
-      if (memberships[addr]) continue
-      memberships[addr] = true
-      updated = true
-
-      try {
-        socket.addMembership(ip, addr)
-      } catch (err) {
-        that.emit('warning', err)
-      }
-    }
-
-    if (!updated || !socket.setMulticastInterface) return
-    socket.setMulticastInterface(opts.interface || defaultInterface())
-  }
-
-  return that
-}
-
-function defaultInterface () {
-  var networks = os.networkInterfaces()
-  var names = Object.keys(networks)
-
-  for (var i = 0; i < names.length; i++) {
-    var net = networks[names[i]]
-    for (var j = 0; j < net.length; j++) {
-      var iface = net[j]
-      if (iface.family === 'IPv4' && !iface.internal) return iface.address
-    }
-  }
-
-  return '127.0.0.1'
-}
-
-function allInterfaces () {
-  var networks = os.networkInterfaces()
-  var names = Object.keys(networks)
-  var res = []
-
-  for (var i = 0; i < names.length; i++) {
-    var net = networks[names[i]]
-    for (var j = 0; j < net.length; j++) {
-      var iface = net[j]
-      if (iface.family === 'IPv4') {
-        res.push(iface.address)
-        // could only addMembership once per interface (https://nodejs.org/api/dgram.html#dgram_socket_addmembership_multicastaddress_multicastinterface)
-        break
-      }
-    }
-  }
-
-  return res
-}

+ 0 - 73
node_modules.bak/multicast-dns/package.json

@@ -1,73 +0,0 @@
-{
-  "_from": "multicast-dns@^6.0.1",
-  "_id": "multicast-dns@6.2.3",
-  "_inBundle": false,
-  "_integrity": "sha1-oOx72QVcQoL3kMPIL04o2zsxsik=",
-  "_location": "/multicast-dns",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "multicast-dns@^6.0.1",
-    "name": "multicast-dns",
-    "escapedName": "multicast-dns",
-    "rawSpec": "^6.0.1",
-    "saveSpec": null,
-    "fetchSpec": "^6.0.1"
-  },
-  "_requiredBy": [
-    "/bonjour"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/multicast-dns/download/multicast-dns-6.2.3.tgz",
-  "_shasum": "a0ec7bd9055c4282f790c3c82f4e28db3b31b229",
-  "_spec": "multicast-dns@^6.0.1",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\bonjour",
-  "author": {
-    "name": "Mathias Buus",
-    "url": "@mafintosh"
-  },
-  "bin": {
-    "multicast-dns": "cli.js"
-  },
-  "bugs": {
-    "url": "https://github.com/mafintosh/multicast-dns/issues"
-  },
-  "bundleDependencies": false,
-  "coordinates": [
-    55.6465878,
-    12.5492251
-  ],
-  "dependencies": {
-    "dns-packet": "^1.3.1",
-    "thunky": "^1.0.2"
-  },
-  "deprecated": false,
-  "description": "Low level multicast-dns implementation in pure javascript",
-  "devDependencies": {
-    "standard": "^10.0.3",
-    "tape": "^4.8.0"
-  },
-  "homepage": "https://github.com/mafintosh/multicast-dns",
-  "keywords": [
-    "multicast",
-    "dns",
-    "mdns",
-    "multicastdns",
-    "dns-sd",
-    "service",
-    "discovery",
-    "bonjour",
-    "avahi"
-  ],
-  "license": "MIT",
-  "main": "index.js",
-  "name": "multicast-dns",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/mafintosh/multicast-dns.git"
-  },
-  "scripts": {
-    "test": "standard && tape test.js"
-  },
-  "version": "6.2.3"
-}

+ 0 - 240
node_modules.bak/multicast-dns/test.js

@@ -1,240 +0,0 @@
-var mdns = require('./')
-var tape = require('tape')
-var dgram = require('dgram')
-
-var port = function (cb) {
-  var s = dgram.createSocket('udp4')
-  s.bind(0, function () {
-    var port = s.address().port
-    s.on('close', function () {
-      cb(port)
-    })
-    s.close()
-  })
-}
-
-var configs = [
-   {ip: '127.0.0.1', multicast: false}
-  // {'interface': '127.0.0.1', multicast: true}
-]
-
-var tests = configs.map(function (config) {
-  return function (name, fn) {
-    tape(name, function (t) {
-      port(function (p) {
-        config.port = p
-        var dns = mdns(config)
-        dns.on('warning', function (e) {
-          t.error(e)
-        })
-        fn(dns, t)
-      })
-    })
-  }
-})
-
-tests.forEach(function (test) {
-  test('works', function (dns, t) {
-    t.plan(3)
-
-    dns.once('query', function (packet) {
-      t.same(packet.type, 'query')
-      dns.destroy(function () {
-        t.ok(true, 'destroys')
-      })
-    })
-
-    dns.query('hello-world', function () {
-      t.ok(true, 'flushed')
-    })
-  })
-
-  test('ANY query', function (dns, t) {
-    dns.once('query', function (packet) {
-      t.same(packet.questions.length, 1, 'one question')
-      t.same(packet.questions[0], {name: 'hello-world', type: 'ANY', class: 1})
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query('hello-world', 'ANY')
-  })
-
-  test('A record', function (dns, t) {
-    dns.once('query', function (packet) {
-      t.same(packet.questions.length, 1, 'one question')
-      t.same(packet.questions[0], {name: 'hello-world', type: 'A', class: 1})
-      dns.respond([{type: 'A', name: 'hello-world', ttl: 120, data: '127.0.0.1'}])
-    })
-
-    dns.once('response', function (packet) {
-      t.same(packet.answers.length, 1, 'one answer')
-      t.same(packet.answers[0], {type: 'A', name: 'hello-world', ttl: 120, data: '127.0.0.1', class: 1, flush: false})
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query('hello-world', 'A')
-  })
-
-  test('A record (two questions)', function (dns, t) {
-    dns.once('query', function (packet) {
-      t.same(packet.questions.length, 2, 'two questions')
-      t.same(packet.questions[0], {name: 'hello-world', type: 'A', class: 1})
-      t.same(packet.questions[1], {name: 'hej.verden', type: 'A', class: 1})
-      dns.respond([{type: 'A', name: 'hello-world', ttl: 120, data: '127.0.0.1'}, {
-        type: 'A',
-        name: 'hej.verden',
-        ttl: 120,
-        data: '127.0.0.2'
-      }])
-    })
-
-    dns.once('response', function (packet) {
-      t.same(packet.answers.length, 2, 'one answers')
-      t.same(packet.answers[0], {type: 'A', name: 'hello-world', ttl: 120, data: '127.0.0.1', class: 1, flush: false})
-      t.same(packet.answers[1], {type: 'A', name: 'hej.verden', ttl: 120, data: '127.0.0.2', class: 1, flush: false})
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query([{name: 'hello-world', type: 'A'}, {name: 'hej.verden', type: 'A'}])
-  })
-
-  test('AAAA record', function (dns, t) {
-    dns.once('query', function (packet) {
-      t.same(packet.questions.length, 1, 'one question')
-      t.same(packet.questions[0], {name: 'hello-world', type: 'AAAA', class: 1})
-      dns.respond([{type: 'AAAA', name: 'hello-world', ttl: 120, data: 'fe80::5ef9:38ff:fe8c:ceaa'}])
-    })
-
-    dns.once('response', function (packet) {
-      t.same(packet.answers.length, 1, 'one answer')
-      t.same(packet.answers[0], {
-        type: 'AAAA',
-        name: 'hello-world',
-        ttl: 120,
-        data: 'fe80::5ef9:38ff:fe8c:ceaa',
-        class: 1,
-        flush: false
-      })
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query('hello-world', 'AAAA')
-  })
-
-  test('SRV record', function (dns, t) {
-    dns.once('query', function (packet) {
-      t.same(packet.questions.length, 1, 'one question')
-      t.same(packet.questions[0], {name: 'hello-world', type: 'SRV', class: 1})
-      dns.respond([{
-        type: 'SRV',
-        name: 'hello-world',
-        ttl: 120,
-        data: {port: 11111, target: 'hello.world.com', priority: 10, weight: 12}
-      }])
-    })
-
-    dns.once('response', function (packet) {
-      t.same(packet.answers.length, 1, 'one answer')
-      t.same(packet.answers[0], {
-        type: 'SRV',
-        name: 'hello-world',
-        ttl: 120,
-        data: {port: 11111, target: 'hello.world.com', priority: 10, weight: 12},
-        class: 1,
-        flush: false
-      })
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query('hello-world', 'SRV')
-  })
-
-  test('TXT record', function (dns, t) {
-    var data = Buffer.from('black box')
-
-    dns.once('query', function (packet) {
-      t.same(packet.questions.length, 1, 'one question')
-      t.same(packet.questions[0], {name: 'hello-world', type: 'TXT', class: 1})
-      dns.respond([{type: 'TXT', name: 'hello-world', ttl: 120, data: data}])
-    })
-
-    dns.once('response', function (packet) {
-      t.same(packet.answers.length, 1, 'one answer')
-      t.same(packet.answers[0], {type: 'TXT', name: 'hello-world', ttl: 120, data: data, class: 1, flush: false})
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query('hello-world', 'TXT')
-  })
-
-  test('QU question bit', function (dns, t) {
-    dns.once('query', function (packet) {
-      t.same(packet.questions, [
-        {type: 'A', name: 'foo', class: 1},
-        {type: 'A', name: 'bar', class: 1}
-      ])
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query([
-      {type: 'A', name: 'foo', class: 32769},
-      {type: 'A', name: 'bar', class: 1}
-    ])
-  })
-
-  test('cache flush bit', function (dns, t) {
-    dns.once('query', function (packet) {
-      dns.respond({
-        answers: [
-          {type: 'A', name: 'foo', ttl: 120, data: '127.0.0.1', class: 1, flush: true},
-          {type: 'A', name: 'foo', ttl: 120, data: '127.0.0.2', class: 1, flush: false}
-        ],
-        additionals: [
-          {type: 'A', name: 'foo', ttl: 120, data: '127.0.0.3', class: 1, flush: true}
-        ]
-      })
-    })
-
-    dns.once('response', function (packet) {
-      t.same(packet.answers, [
-        {type: 'A', name: 'foo', ttl: 120, data: '127.0.0.1', class: 1, flush: true},
-        {type: 'A', name: 'foo', ttl: 120, data: '127.0.0.2', class: 1, flush: false}
-      ])
-      t.same(packet.additionals[0], {type: 'A', name: 'foo', ttl: 120, data: '127.0.0.3', class: 1, flush: true})
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query('foo', 'A')
-  })
-
-  test('Authoritive Answer bit', function (dns, t) {
-    dns.once('query', function (packet) {
-      dns.respond([])
-    })
-
-    dns.once('response', function (packet) {
-      t.ok(packet.flag_auth, 'should be set')
-      dns.destroy(function () {
-        t.end()
-      })
-    })
-
-    dns.query('foo', 'A')
-  })
-})

+ 0 - 537
node_modules.bak/nan/CHANGELOG.md

@@ -1,537 +0,0 @@
-# NAN ChangeLog
-
-**Version 2.14.2: current Node 14.13.1, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1**
-
-### 2.14.2 Oct 13 2020
-
-  - Bugfix: fix gcc 8 function cast warning (#899) 35f0fab205574b2cbda04e6347c8b2db755e124f
-
-### 2.14.1 Apr 21 2020
-
-  - Bugfix: use GetBackingStore() instead of GetContents() (#888) 2c023bd447661a61071da318b0ff4003c3858d39
-
-### 2.14.0 May 16 2019
-
-  - Feature: Add missing methods to Nan::Maybe<T> (#852) 4e962489fb84a184035b9fa74f245f650249aca6
-
-### 2.13.2 Mar 24 2019
-
-  - Bugfix: remove usage of deprecated `IsNearDeath` (#842) fbaf42252af279c3d867c6b193571f9711c39847
-
-### 2.13.1 Mar 14 2019
-
-  - Bugfix: check V8 version directly instead of inferring from NMV (#840) 12f9df9f393285de8fb4a8cd01478dc4fe3b089d
-
-### 2.13.0 Mar 13 2019
-
-  - Feature: add support for node master (#831) 113c0282072e7ff4f9dfc98b432fd894b798c2c
-
-### 2.12.1 Dec 18 2018
-
-  - Bugfix: Fix build breakage with Node.js 10.0.0-10.9.0. (#833) 625e90e8fef8d39ffa7247250a76a100b2487474
-
-### 2.12.0 Dec 16 2018
-
-  - Bugfix: Add scope.Escape() to Call() (#817) 2e5ed4fc3a8ac80a6ef1f2a55099ab3ac8800dc6
-  - Bugfix: Fix Node.js v10.12.0 deprecation warnings. 509859cc23b1770376b56550a027840a2ce0f73d
-  - Feature: Allow SetWeak() for non-object persistent handles. (#824) e6ef6a48e7e671fe3e4b7dddaa8912a3f8262ecd
-
-### 2.11.1 Sep 29 2018
-
-  - Fix: adapt to V8 7.0 24a22c3b25eeeec2016c6ec239bdd6169e985447
-
-### 2.11.0 Aug 25 2018
-
-  - Removal: remove `FunctionCallbackInfo::Callee` for nodejs `>= 10` 1a56c0a6efd4fac944cb46c30912a8e023bda7d4
-  - Bugfix: Fix `AsyncProgressWorkerBase::WorkProgress` sends invalid data b0c764d1dab11e9f8b37ffb81e2560a4498aad5e
-  - Feature: Introduce `GetCurrentEventLoop` b4911b0bb1f6d47d860e10ec014d941c51efac5e
-  - Feature: Add `NAN_MODULE_WORKER_ENABLED` macro as a replacement for `NAN_MODULE` b058fb047d18a58250e66ae831444441c1f2ac7a
-
-### 2.10.0 Mar 16 2018
-
-  - Deprecation: Deprecate `MakeCallback` 5e92b19a59e194241d6a658bd6ff7bfbda372950
-  - Feature: add `Nan::Call` overload 4482e1242fe124d166fc1a5b2be3c1cc849fe452
-  - Feature: add more `Nan::Call` overloads 8584e63e6d04c7d2eb8c4a664e4ef57d70bf672b
-  - Feature: Fix deprecation warnings for Node 10 1caf258243b0602ed56922bde74f1c91b0cbcb6a
-
-### 2.9.2 Feb 22 2018
-
-  - Bugfix: Bandaid for async hooks 212bd2f849be14ef1b02fc85010b053daa24252b
-
-### 2.9.1 Feb 22 2018
-
-  - Bugfix: Avoid deprecation warnings in deprecated `Nan::Callback::operator()` 372b14d91289df4604b0f81780709708c45a9aa4
-  - Bugfix: Avoid deprecation warnings in `Nan::JSON` 3bc294bce0b7d0a3ee4559926303e5ed4866fda2
-
-### 2.9.0 Feb 22 2018
-
-  - Deprecation: Deprecate legacy `Callback::Call` 6dd5fa690af61ca3523004b433304c581b3ea309
-  - Feature: introduce `AsyncResource` class 90c0a179c0d8cb5fd26f1a7d2b1d6231eb402d48o
-  - Feature: Add context aware `Nan::Callback::Call` functions 7169e09fb088418b6e388222e88b4c13f07ebaee
-  - Feature: Make `AsyncWorker` context aware 066ba21a6fb9e2b5230c9ed3a6fc51f1211736a4
-  - Feature: add `Callback` overload to `Nan::Call` 5328daf66e202658c1dc0d916c3aaba99b3cc606
-  - Bugfix: fix warning: suggest parentheses around `&&` within `||` b2bb63d68b8ae623a526b542764e1ac82319cb2c
-  - Bugfix: Fix compilation on io.js 3 d06114dba0a522fb436f0c5f47b994210968cd7b
-
-### 2.8.0 Nov 15 2017
-
-  - Deprecation: Deprecate `Nan::ForceSet` in favor of `Nan::DefineOwnProperty()` 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
-  - Feature: Add `Nan::AsyncProgressQueueWorker` a976636ecc2ef617d1b061ce4a6edf39923691cb
-  - Feature: Add `Nan::DefineOwnProperty()` 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
-  - Bugfix: Fix compiling on io.js 1 & 2 82705a64503ce60c62e98df5bd02972bba090900
-  - Bugfix: Use DefineOwnProperty instead of ForceSet 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
-
-### 2.7.0 Aug 30 2017
-
-  - Feature: Add `Nan::To<v8::Function>()` overload. b93280670c9f6da42ed4cf6cbf085ffdd87bd65b
-  - Bugfix: Fix ternary in `Nan::MaybeLocal<T>::FromMaybe<S>()`. 79a26f7d362e756a9524e672a82c3d603b542867
-
-### 2.6.2 Apr 12 2017
-
-  - Bugfix: Fix v8::JSON::Parse() deprecation warning. 87f6a3c65815fa062296a994cc863e2fa124867d
-
-### 2.6.1 Apr 6 2017
-
-  - Bugfix: nan_json.h: fix build breakage in Node 6 ac8d47dc3c10bfbf3f15a6b951633120c0ee6d51
-
-### 2.6.0 Apr 6 2017
-
-  - Feature: nan: add support for JSON::Parse & Stringify b533226c629cce70e1932a873bb6f849044a56c5
-
-### 2.5.1 Jan 23 2017
-
-  - Bugfix: Fix disappearing handle for private value 6a80995694f162ef63dbc9948fbefd45d4485aa0
-  - Bugfix: Add missing scopes a93b8bae6bc7d32a170db6e89228b7f60ee57112
-  - Bugfix: Use string::data instead of string::front in NewOneByteString d5f920371e67e1f3b268295daee6e83af86b6e50
-
-### 2.5.0 Dec 21 2016
-
-  - Feature: Support Private accessors a86255cb357e8ad8ccbf1f6a4a901c921e39a178
-  - Bugfix: Abort in delete operators that shouldn't be called 0fe38215ff8581703967dfd26c12793feb960018
-
-### 2.4.0 Jul 10 2016
-
-  - Feature: Rewrite Callback to add Callback::Reset c4cf44d61f8275cd5f7b0c911d7a806d4004f649
-  - Feature: AsyncProgressWorker: add template types for .send 1242c9a11a7ed481c8f08ec06316385cacc513d0
-  - Bugfix: Add constness to old Persistent comparison operators bd43cb9982c7639605d60fd073efe8cae165d9b2
-
-### 2.3.5 May 31 2016
-
-  - Bugfix: Replace NAN_INLINE with 'inline' keyword. 71819d8725f822990f439479c9aba3b240804909
-
-### 2.3.4 May 31 2016
-
-  - Bugfix: Remove V8 deprecation warnings 0592fb0a47f3a1c7763087ebea8e1138829f24f9
-  - Bugfix: Fix new versions not to use WeakCallbackInfo::IsFirstPass 615c19d9e03d4be2049c10db0151edbc3b229246
-  - Bugfix: Make ObjectWrap::handle() const d19af99595587fe7a26bd850af6595c2a7145afc
-  - Bugfix: Fix compilation errors related to 0592fb0a47f3a1c7763087ebea8e1138829f24f9 e9191c525b94f652718325e28610a1adcf90fed8
-
-### 2.3.3 May 4 2016
-
-  - Bugfix: Refactor SetMethod() to deal with v8::Templates (#566) b9083cf6d5de6ebe6bcb49c7502fbb7c0d9ddda8
-
-### 2.3.2 Apr 27 2016
-
-  - Bugfix: Fix compilation on outdated versions due to Handle removal f8b7c875d04d425a41dfd4f3f8345bc3a11e6c52
-
-### 2.3.1 Apr 27 2016
-
-  - Bugfix: Don't use deprecated v8::Template::Set() in SetMethod a90951e9ea70fa1b3836af4b925322919159100e
-
-### 2.3.0 Apr 27 2016
-
-  - Feature: added Signal() for invoking async callbacks without sending data from AsyncProgressWorker d8adba45f20e077d00561b20199133620c990b38
-  - Bugfix: Don't use deprecated v8::Template::Set() 00dacf0a4b86027415867fa7f1059acc499dcece
-
-### 2.2.1 Mar 29 2016
-
-  - Bugfix: Use NewFromUnsigned in ReturnValue<T>::Set(uint32_t i) for pre_12 3a18f9bdce29826e0e4c217854bc476918241a58
-  - Performance: Remove unneeeded nullptr checks b715ef44887931c94f0d1605b3b1a4156eebece9
-
-### 2.2.0 Jan 9 2016
-
-  - Feature: Add Function::Call wrapper 4c157474dacf284d125c324177b45aa5dabc08c6
-  - Feature: Rename GC*logueCallback to GCCallback for > 4.0 3603435109f981606d300eb88004ca101283acec
-  - Bugfix: Fix Global::Pass for old versions 367e82a60fbaa52716232cc89db1cc3f685d77d9
-  - Bugfix: Remove weird MaybeLocal wrapping of what already is a MaybeLocal 23b4590db10c2ba66aee2338aebe9751c4cb190b
-
-### 2.1.0 Oct 8 2015
-
-  - Deprecation: Deprecate NanErrnoException in favor of ErrnoException 0af1ca4cf8b3f0f65ed31bc63a663ab3319da55c
-  - Feature: added helper class for accessing contents of typedarrays 17b51294c801e534479d5463697a73462d0ca555
-  - Feature: [Maybe types] Add MakeMaybe(...) 48d7b53d9702b0c7a060e69ea10fea8fb48d814d
-  - Feature: new: allow utf16 string with length 66ac6e65c8ab9394ef588adfc59131b3b9d8347b
-  - Feature: Introduce SetCallHandler and SetCallAsFunctionHandler 7764a9a115d60ba10dc24d86feb0fbc9b4f75537
-  - Bugfix: Enable creating Locals from Globals under Node 0.10. 9bf9b8b190821af889790fdc18ace57257e4f9ff
-  - Bugfix: Fix issue #462 where PropertyCallbackInfo data is not stored safely. 55f50adedd543098526c7b9f4fffd607d3f9861f
-
-### 2.0.9 Sep 8 2015
-
-  - Bugfix: EscapableHandleScope in Nan::NewBuffer for Node 0.8 and 0.10 b1654d7
-
-### 2.0.8 Aug 28 2015
-
-  - Work around duplicate linking bug in clang 11902da
-
-### 2.0.7 Aug 26 2015
-
-  - Build: Repackage
-
-### 2.0.6 Aug 26 2015
-
-  - Bugfix: Properly handle null callback in FunctionTemplate factory 6e99cb1
-  - Bugfix: Remove unused static std::map instances 525bddc
-  - Bugfix: Make better use of maybe versions of APIs bfba85b
-  - Bugfix: Fix shadowing issues with handle in ObjectWrap 0a9072d
-
-### 2.0.5 Aug 10 2015
-
-  - Bugfix: Reimplement weak callback in ObjectWrap 98d38c1
-  - Bugfix: Make sure callback classes are not assignable, copyable or movable 81f9b1d
-
-### 2.0.4 Aug 6 2015
-
-  - Build: Repackage
-
-### 2.0.3 Aug 6 2015
-
-  - Bugfix: Don't use clang++ / g++ syntax extension. 231450e
-
-### 2.0.2 Aug 6 2015
-
-  - Build: Repackage
-
-### 2.0.1 Aug 6 2015
-
-  - Bugfix: Add workaround for missing REPLACE_INVALID_UTF8 60d6687
-  - Bugfix: Reimplement ObjectWrap from scratch to prevent memory leaks 6484601
-  - Bugfix: Fix Persistent leak in FunctionCallbackInfo and PropertyCallbackInfo 641ef5f
-  - Bugfix: Add missing overload for Nan::NewInstance that takes argc/argv 29450ed
-
-### 2.0.0 Jul 31 2015
-
-  - Change: Renamed identifiers with leading underscores	b5932b4
-  - Change: Replaced NanObjectWrapHandle with class NanObjectWrap	464f1e1
-  - Change: Replace NanScope and NanEscpableScope macros with classes	47751c4
-  - Change: Rename NanNewBufferHandle to NanNewBuffer	6745f99
-  - Change: Rename NanBufferUse to NanNewBuffer	3e8b0a5
-  - Change: Rename NanNewBuffer to NanCopyBuffer	d6af78d
-  - Change: Remove Nan prefix from all names	72d1f67
-  - Change: Update Buffer API for new upstream changes	d5d3291
-  - Change: Rename Scope and EscapableScope to HandleScope and EscapableHandleScope	21a7a6a
-  - Change: Get rid of Handles	 e6c0daf
-  - Feature: Support io.js 3 with V8 4.4
-  - Feature: Introduce NanPersistent	7fed696
-  - Feature: Introduce NanGlobal	4408da1
-  - Feature: Added NanTryCatch	10f1ca4
-  - Feature: Update for V8 v4.3	4b6404a
-  - Feature: Introduce NanNewOneByteString	c543d32
-  - Feature: Introduce namespace Nan	67ed1b1
-  - Removal: Remove NanLocker and NanUnlocker	dd6e401
-  - Removal: Remove string converters, except NanUtf8String, which now follows the node implementation b5d00a9
-  - Removal: Remove NanReturn* macros	d90a25c
-  - Removal: Remove HasInstance	e8f84fe
-
-
-### 1.9.0 Jul 31 2015
-
-  - Feature: Added `NanFatalException` 81d4a2c
-  - Feature: Added more error types 4265f06
-  - Feature: Added dereference and function call operators to NanCallback c4b2ed0
-  - Feature: Added indexed GetFromPersistent and SaveToPersistent edd510c
-  - Feature: Added more overloads of SaveToPersistent and GetFromPersistent 8b1cef6
-  - Feature: Added NanErrnoException dd87d9e
-  - Correctness: Prevent assign, copy, and move for classes that do not support it 1f55c59, 4b808cb, c96d9b2, fba4a29, 3357130
-  - Deprecation: Deprecate `NanGetPointerSafe` and `NanSetPointerSafe` 81d4a2c
-  - Deprecation: Deprecate `NanBooleanOptionValue` and `NanUInt32OptionValue` 0ad254b
-
-### 1.8.4 Apr 26 2015
-
-  - Build: Repackage
-
-### 1.8.3 Apr 26 2015
-
-  - Bugfix: Include missing header 1af8648
-
-### 1.8.2 Apr 23 2015
-
-  - Build: Repackage
-
-### 1.8.1 Apr 23 2015
-
-  - Bugfix: NanObjectWrapHandle should take a pointer 155f1d3
-
-### 1.8.0 Apr 23 2015
-
-  - Feature: Allow primitives with NanReturnValue 2e4475e
-  - Feature: Added comparison operators to NanCallback 55b075e
-  - Feature: Backport thread local storage 15bb7fa
-  - Removal: Remove support for signatures with arguments 8a2069d
-  - Correcteness: Replaced NanObjectWrapHandle macro with function 0bc6d59
-
-### 1.7.0 Feb 28 2015
-
-  - Feature: Made NanCallback::Call accept optional target 8d54da7
-  - Feature: Support atom-shell 0.21 0b7f1bb
-
-### 1.6.2 Feb 6 2015
-
-  - Bugfix: NanEncode: fix argument type for node::Encode on io.js 2be8639
-
-### 1.6.1 Jan 23 2015
-
-  - Build: version bump
-
-### 1.5.3 Jan 23 2015
-
-  - Build: repackage
-
-### 1.6.0 Jan 23 2015
-
- - Deprecated `NanNewContextHandle` in favor of `NanNew<Context>` 49259af
- - Support utility functions moved in newer v8 versions (Node 0.11.15, io.js 1.0) a0aa179
- - Added `NanEncode`, `NanDecodeBytes` and `NanDecodeWrite` 75e6fb9
-
-### 1.5.2 Jan 23 2015
-
-  - Bugfix: Fix non-inline definition build error with clang++ 21d96a1, 60fadd4
-  - Bugfix: Readded missing String constructors 18d828f
-  - Bugfix: Add overload handling NanNew<FunctionTemplate>(..) 5ef813b
-  - Bugfix: Fix uv_work_cb versioning 997e4ae
-  - Bugfix: Add function factory and test 4eca89c
-  - Bugfix: Add object template factory and test cdcb951
-  - Correctness: Lifted an io.js related typedef c9490be
-  - Correctness: Make explicit downcasts of String lengths 00074e6
-  - Windows: Limit the scope of disabled warning C4530 83d7deb
-
-### 1.5.1 Jan 15 2015
-
-  - Build: version bump
-
-### 1.4.3 Jan 15 2015
-
-  - Build: version bump
-
-### 1.4.2 Jan 15 2015
-
-  - Feature: Support io.js 0dbc5e8
-
-### 1.5.0 Jan 14 2015
-
- - Feature: Support io.js b003843
- - Correctness: Improved NanNew internals 9cd4f6a
- - Feature: Implement progress to NanAsyncWorker 8d6a160
-
-### 1.4.1 Nov 8 2014
-
- - Bugfix: Handle DEBUG definition correctly
- - Bugfix: Accept int as Boolean
-
-### 1.4.0 Nov 1 2014
-
- - Feature: Added NAN_GC_CALLBACK 6a5c245
- - Performance: Removed unnecessary local handle creation 18a7243, 41fe2f8
- - Correctness: Added constness to references in NanHasInstance 02c61cd
- - Warnings: Fixed spurious warnings from -Wundef and -Wshadow, 541b122, 99d8cb6
- - Windoze: Shut Visual Studio up when compiling 8d558c1
- - License: Switch to plain MIT from custom hacked MIT license 11de983
- - Build: Added test target to Makefile e232e46
- - Performance: Removed superfluous scope in NanAsyncWorker f4b7821
- - Sugar/Feature: Added NanReturnThis() and NanReturnHolder() shorthands 237a5ff, d697208
- - Feature: Added suitable overload of NanNew for v8::Integer::NewFromUnsigned b27b450
-
-### 1.3.0 Aug 2 2014
-
- - Added NanNew<v8::String, std::string>(std::string)
- - Added NanNew<v8::String, std::string&>(std::string&)
- - Added NanAsciiString helper class
- - Added NanUtf8String helper class
- - Added NanUcs2String helper class
- - Deprecated NanRawString()
- - Deprecated NanCString()
- - Added NanGetIsolateData(v8::Isolate *isolate)
- - Added NanMakeCallback(v8::Handle<v8::Object> target, v8::Handle<v8::Function> func, int argc, v8::Handle<v8::Value>* argv)
- - Added NanMakeCallback(v8::Handle<v8::Object> target, v8::Handle<v8::String> symbol, int argc, v8::Handle<v8::Value>* argv)
- - Added NanMakeCallback(v8::Handle<v8::Object> target, const char* method, int argc, v8::Handle<v8::Value>* argv)
- - Added NanSetTemplate(v8::Handle<v8::Template> templ, v8::Handle<v8::String> name , v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
- - Added NanSetPrototypeTemplate(v8::Local<v8::FunctionTemplate> templ, v8::Handle<v8::String> name, v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
- - Added NanSetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ, const char *name, v8::Handle<v8::Data> value)
- - Added NanSetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ, v8::Handle<v8::String> name, v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
-
-### 1.2.0 Jun 5 2014
-
- - Add NanSetPrototypeTemplate
- - Changed NAN_WEAK_CALLBACK internals, switched _NanWeakCallbackData to class,
-     introduced _NanWeakCallbackDispatcher
- - Removed -Wno-unused-local-typedefs from test builds
- - Made test builds Windows compatible ('Sleep()')
-
-### 1.1.2 May 28 2014
-
- - Release to fix more stuff-ups in 1.1.1
-
-### 1.1.1 May 28 2014
-
- - Release to fix version mismatch in nan.h and lack of changelog entry for 1.1.0
-
-### 1.1.0 May 25 2014
-
- - Remove nan_isolate, use v8::Isolate::GetCurrent() internally instead
- - Additional explicit overloads for NanNew(): (char*,int), (uint8_t*[,int]),
-     (uint16_t*[,int), double, int, unsigned int, bool, v8::String::ExternalStringResource*,
-     v8::String::ExternalAsciiStringResource*
- - Deprecate NanSymbol()
- - Added SetErrorMessage() and ErrorMessage() to NanAsyncWorker
-
-### 1.0.0 May 4 2014
-
- - Heavy API changes for V8 3.25 / Node 0.11.13
- - Use cpplint.py
- - Removed NanInitPersistent
- - Removed NanPersistentToLocal
- - Removed NanFromV8String
- - Removed NanMakeWeak
- - Removed NanNewLocal
- - Removed NAN_WEAK_CALLBACK_OBJECT
- - Removed NAN_WEAK_CALLBACK_DATA
- - Introduce NanNew, replaces NanNewLocal, NanPersistentToLocal, adds many overloaded typed versions
- - Introduce NanUndefined, NanNull, NanTrue and NanFalse
- - Introduce NanEscapableScope and NanEscapeScope
- - Introduce NanMakeWeakPersistent (requires a special callback to work on both old and new node)
- - Introduce NanMakeCallback for node::MakeCallback
- - Introduce NanSetTemplate
- - Introduce NanGetCurrentContext
- - Introduce NanCompileScript and NanRunScript
- - Introduce NanAdjustExternalMemory
- - Introduce NanAddGCEpilogueCallback, NanAddGCPrologueCallback, NanRemoveGCEpilogueCallback, NanRemoveGCPrologueCallback
- - Introduce NanGetHeapStatistics
- - Rename NanAsyncWorker#SavePersistent() to SaveToPersistent()
-
-### 0.8.0 Jan 9 2014
-
- - NanDispose -> NanDisposePersistent, deprecate NanDispose
- - Extract _NAN_*_RETURN_TYPE, pull up NAN_*()
-
-### 0.7.1 Jan 9 2014
-
- - Fixes to work against debug builds of Node
- - Safer NanPersistentToLocal (avoid reinterpret_cast)
- - Speed up common NanRawString case by only extracting flattened string when necessary
-
-### 0.7.0 Dec 17 2013
-
- - New no-arg form of NanCallback() constructor.
- - NanCallback#Call takes Handle rather than Local
- - Removed deprecated NanCallback#Run method, use NanCallback#Call instead
- - Split off _NAN_*_ARGS_TYPE from _NAN_*_ARGS
- - Restore (unofficial) Node 0.6 compatibility at NanCallback#Call()
- - Introduce NanRawString() for char* (or appropriate void*) from v8::String
-     (replacement for NanFromV8String)
- - Introduce NanCString() for null-terminated char* from v8::String
-
-### 0.6.0 Nov 21 2013
-
- - Introduce NanNewLocal<T>(v8::Handle<T> value) for use in place of
-     v8::Local<T>::New(...) since v8 started requiring isolate in Node 0.11.9
-
-### 0.5.2 Nov 16 2013
-
- - Convert SavePersistent and GetFromPersistent in NanAsyncWorker from protected and public
-
-### 0.5.1 Nov 12 2013
-
- - Use node::MakeCallback() instead of direct v8::Function::Call()
-
-### 0.5.0 Nov 11 2013
-
- - Added @TooTallNate as collaborator
- - New, much simpler, "include_dirs" for binding.gyp
- - Added full range of NAN_INDEX_* macros to match NAN_PROPERTY_* macros
-
-### 0.4.4 Nov 2 2013
-
- - Isolate argument from v8::Persistent::MakeWeak removed for 0.11.8+
-
-### 0.4.3 Nov 2 2013
-
- - Include node_object_wrap.h, removed from node.h for Node 0.11.8.
-
-### 0.4.2 Nov 2 2013
-
- - Handle deprecation of v8::Persistent::Dispose(v8::Isolate* isolate)) for
-     Node 0.11.8 release.
-
-### 0.4.1 Sep 16 2013
-
- - Added explicit `#include <uv.h>` as it was removed from node.h for v0.11.8
-
-### 0.4.0 Sep 2 2013
-
- - Added NAN_INLINE and NAN_DEPRECATED and made use of them
- - Added NanError, NanTypeError and NanRangeError
- - Cleaned up code
-
-### 0.3.2 Aug 30 2013
-
- - Fix missing scope declaration in GetFromPersistent() and SaveToPersistent
-     in NanAsyncWorker
-
-### 0.3.1 Aug 20 2013
-
- - fix "not all control paths return a value" compile warning on some platforms
-
-### 0.3.0 Aug 19 2013
-
- - Made NAN work with NPM
- - Lots of fixes to NanFromV8String, pulling in features from new Node core
- - Changed node::encoding to Nan::Encoding in NanFromV8String to unify the API
- - Added optional error number argument for NanThrowError()
- - Added NanInitPersistent()
- - Added NanReturnNull() and NanReturnEmptyString()
- - Added NanLocker and NanUnlocker
- - Added missing scopes
- - Made sure to clear disposed Persistent handles
- - Changed NanAsyncWorker to allocate error messages on the heap
- - Changed NanThrowError(Local<Value>) to NanThrowError(Handle<Value>)
- - Fixed leak in NanAsyncWorker when errmsg is used
-
-### 0.2.2 Aug 5 2013
-
- - Fixed usage of undefined variable with node::BASE64 in NanFromV8String()
-
-### 0.2.1 Aug 5 2013
-
- - Fixed 0.8 breakage, node::BUFFER encoding type not available in 0.8 for
-     NanFromV8String()
-
-### 0.2.0 Aug 5 2013
-
- - Added NAN_PROPERTY_GETTER, NAN_PROPERTY_SETTER, NAN_PROPERTY_ENUMERATOR,
-     NAN_PROPERTY_DELETER, NAN_PROPERTY_QUERY
- - Extracted _NAN_METHOD_ARGS, _NAN_GETTER_ARGS, _NAN_SETTER_ARGS,
-     _NAN_PROPERTY_GETTER_ARGS, _NAN_PROPERTY_SETTER_ARGS,
-     _NAN_PROPERTY_ENUMERATOR_ARGS, _NAN_PROPERTY_DELETER_ARGS,
-     _NAN_PROPERTY_QUERY_ARGS
- - Added NanGetInternalFieldPointer, NanSetInternalFieldPointer
- - Added NAN_WEAK_CALLBACK, NAN_WEAK_CALLBACK_OBJECT,
-     NAN_WEAK_CALLBACK_DATA, NanMakeWeak
- - Renamed THROW_ERROR to _NAN_THROW_ERROR
- - Added NanNewBufferHandle(char*, size_t, node::smalloc::FreeCallback, void*)
- - Added NanBufferUse(char*, uint32_t)
- - Added NanNewContextHandle(v8::ExtensionConfiguration*,
-       v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)
- - Fixed broken NanCallback#GetFunction()
- - Added optional encoding and size arguments to NanFromV8String()
- - Added NanGetPointerSafe() and NanSetPointerSafe()
- - Added initial test suite (to be expanded)
- - Allow NanUInt32OptionValue to convert any Number object
-
-### 0.1.0 Jul 21 2013
-
- - Added `NAN_GETTER`, `NAN_SETTER`
- - Added `NanThrowError` with single Local<Value> argument
- - Added `NanNewBufferHandle` with single uint32_t argument
- - Added `NanHasInstance(Persistent<FunctionTemplate>&, Handle<Value>)`
- - Added `Local<Function> NanCallback#GetFunction()`
- - Added `NanCallback#Call(int, Local<Value>[])`
- - Deprecated `NanCallback#Run(int, Local<Value>[])` in favour of Call

+ 0 - 13
node_modules.bak/nan/LICENSE.md

@@ -1,13 +0,0 @@
-The MIT License (MIT)
-=====================
-
-Copyright (c) 2018 NAN contributors
------------------------------------
-
-*NAN contributors listed at <https://github.com/nodejs/nan#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.

File diff suppressed because it is too large
+ 0 - 455
node_modules.bak/nan/README.md


+ 0 - 146
node_modules.bak/nan/doc/asyncworker.md

@@ -1,146 +0,0 @@
-## Asynchronous work helpers
-
-`Nan::AsyncWorker`, `Nan::AsyncProgressWorker` and `Nan::AsyncProgressQueueWorker` are helper classes that make working with asynchronous code easier.
-
- - <a href="#api_nan_async_worker"><b><code>Nan::AsyncWorker</code></b></a>
- - <a href="#api_nan_async_progress_worker"><b><code>Nan::AsyncProgressWorkerBase &amp; Nan::AsyncProgressWorker</code></b></a>
- - <a href="#api_nan_async_progress_queue_worker"><b><code>Nan::AsyncProgressQueueWorker</code></b></a>
- - <a href="#api_nan_async_queue_worker"><b><code>Nan::AsyncQueueWorker</code></b></a>
-
-<a name="api_nan_async_worker"></a>
-### Nan::AsyncWorker
-
-`Nan::AsyncWorker` is an _abstract_ class that you can subclass to have much of the annoying asynchronous queuing and handling taken care of for you. It can even store arbitrary V8 objects for you and have them persist while the asynchronous work is in progress.
-
-This class internally handles the details of creating an [`AsyncResource`][AsyncResource], and running the callback in the
-correct async context. To be able to identify the async resources created by this class in async-hooks, provide a
-`resource_name` to the constructor. It is recommended that the module name be used as a prefix to the `resource_name` to avoid
-collisions in the names. For more details see [`AsyncResource`][AsyncResource] documentation.  The `resource_name` needs to stay valid for the lifetime of the worker instance.
-
-Definition:
-
-```c++
-class AsyncWorker {
- public:
-  explicit AsyncWorker(Callback *callback_, const char* resource_name = "nan:AsyncWorker");
-
-  virtual ~AsyncWorker();
-
-  virtual void WorkComplete();
-
-  void SaveToPersistent(const char *key, const v8::Local<v8::Value> &value);
-
-  void SaveToPersistent(const v8::Local<v8::String> &key,
-                        const v8::Local<v8::Value> &value);
-
-  void SaveToPersistent(uint32_t index,
-                        const v8::Local<v8::Value> &value);
-
-  v8::Local<v8::Value> GetFromPersistent(const char *key) const;
-
-  v8::Local<v8::Value> GetFromPersistent(const v8::Local<v8::String> &key) const;
-
-  v8::Local<v8::Value> GetFromPersistent(uint32_t index) const;
-
-  virtual void Execute() = 0;
-
-  uv_work_t request;
-
-  virtual void Destroy();
-
- protected:
-  Persistent<v8::Object> persistentHandle;
-
-  Callback *callback;
-
-  virtual void HandleOKCallback();
-
-  virtual void HandleErrorCallback();
-
-  void SetErrorMessage(const char *msg);
-
-  const char* ErrorMessage();
-};
-```
-
-<a name="api_nan_async_progress_worker"></a>
-### Nan::AsyncProgressWorkerBase &amp; Nan::AsyncProgressWorker
-
-`Nan::AsyncProgressWorkerBase` is an _abstract_ class template that extends `Nan::AsyncWorker` and adds additional progress reporting callbacks that can be used during the asynchronous work execution to provide progress data back to JavaScript.
-
-Previously the definition of `Nan::AsyncProgressWorker` only allowed sending `const char` data. Now extending `Nan::AsyncProgressWorker` will yield an instance of the implicit `Nan::AsyncProgressWorkerBase` template with type `<char>` for compatibility.
-
-`Nan::AsyncProgressWorkerBase` &amp; `Nan::AsyncProgressWorker` is intended for best-effort delivery of nonessential progress messages, e.g. a progress bar.  The last event sent before the main thread is woken will be delivered.
-
-Definition:
-
-```c++
-template<class T>
-class AsyncProgressWorkerBase<T> : public AsyncWorker {
- public:
-  explicit AsyncProgressWorkerBase(Callback *callback_, const char* resource_name = ...);
-
-  virtual ~AsyncProgressWorkerBase();
-
-  void WorkProgress();
-
-  class ExecutionProgress {
-   public:
-    void Signal() const;
-    void Send(const T* data, size_t count) const;
-  };
-
-  virtual void Execute(const ExecutionProgress& progress) = 0;
-
-  virtual void HandleProgressCallback(const T *data, size_t count) = 0;
-
-  virtual void Destroy();
-};
-
-typedef AsyncProgressWorkerBase<T> AsyncProgressWorker;
-```
-
-<a name="api_nan_async_progress_queue_worker"></a>
-### Nan::AsyncProgressQueueWorker
-
-`Nan::AsyncProgressQueueWorker` is an _abstract_ class template that extends `Nan::AsyncWorker` and adds additional progress reporting callbacks that can be used during the asynchronous work execution to provide progress data back to JavaScript.
-
-`Nan::AsyncProgressQueueWorker` behaves exactly the same as `Nan::AsyncProgressWorker`, except all events are queued and delivered to the main thread.
-
-Definition:
-
-```c++
-template<class T>
-class AsyncProgressQueueWorker<T> : public AsyncWorker {
- public:
-  explicit AsyncProgressQueueWorker(Callback *callback_, const char* resource_name = "nan:AsyncProgressQueueWorker");
-
-  virtual ~AsyncProgressQueueWorker();
-
-  void WorkProgress();
-
-  class ExecutionProgress {
-   public:
-    void Send(const T* data, size_t count) const;
-  };
-
-  virtual void Execute(const ExecutionProgress& progress) = 0;
-
-  virtual void HandleProgressCallback(const T *data, size_t count) = 0;
-
-  virtual void Destroy();
-};
-```
-
-<a name="api_nan_async_queue_worker"></a>
-### Nan::AsyncQueueWorker
-
-`Nan::AsyncQueueWorker` will run a `Nan::AsyncWorker` asynchronously via libuv. Both the `execute` and `after_work` steps are taken care of for you. Most of the logic for this is embedded in `Nan::AsyncWorker`.
-
-Definition:
-
-```c++
-void AsyncQueueWorker(AsyncWorker *);
-```
-
-[AsyncResource]: node_misc.md#api_nan_asyncresource

+ 0 - 54
node_modules.bak/nan/doc/buffers.md

@@ -1,54 +0,0 @@
-## Buffers
-
-NAN's `node::Buffer` helpers exist as the API has changed across supported Node versions. Use these methods to ensure compatibility.
-
- - <a href="#api_nan_new_buffer"><b><code>Nan::NewBuffer()</code></b></a>
- - <a href="#api_nan_copy_buffer"><b><code>Nan::CopyBuffer()</code></b></a>
- - <a href="#api_nan_free_callback"><b><code>Nan::FreeCallback()</code></b></a>
-
-<a name="api_nan_new_buffer"></a>
-### Nan::NewBuffer()
-
-Allocate a new `node::Buffer` object with the specified size and optional data. Calls `node::Buffer::New()`.
-
-Note that when creating a `Buffer` using `Nan::NewBuffer()` and an existing `char*`, it is assumed that the ownership of the pointer is being transferred to the new `Buffer` for management.
-When a `node::Buffer` instance is garbage collected and a `FreeCallback` has not been specified, `data` will be disposed of via a call to `free()`.
-You _must not_ free the memory space manually once you have created a `Buffer` in this way.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Object> Nan::NewBuffer(uint32_t size)
-Nan::MaybeLocal<v8::Object> Nan::NewBuffer(char* data, uint32_t size)
-Nan::MaybeLocal<v8::Object> Nan::NewBuffer(char *data,
-                                           size_t length,
-                                           Nan::FreeCallback callback,
-                                           void *hint)
-```
-
-
-<a name="api_nan_copy_buffer"></a>
-### Nan::CopyBuffer()
-
-Similar to [`Nan::NewBuffer()`](#api_nan_new_buffer) except that an implicit memcpy will occur within Node. Calls `node::Buffer::Copy()`.
-
-Management of the `char*` is left to the user, you should manually free the memory space if necessary as the new `Buffer` will have its own copy.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Object> Nan::CopyBuffer(const char *data, uint32_t size)
-```
-
-
-<a name="api_nan_free_callback"></a>
-### Nan::FreeCallback()
-
-A free callback that can be provided to [`Nan::NewBuffer()`](#api_nan_new_buffer).
-The supplied callback will be invoked when the `Buffer` undergoes garbage collection.
-
-Signature:
-
-```c++
-typedef void (*FreeCallback)(char *data, void *hint);
-```

+ 0 - 76
node_modules.bak/nan/doc/callback.md

@@ -1,76 +0,0 @@
-## Nan::Callback
-
-`Nan::Callback` makes it easier to use `v8::Function` handles as callbacks. A class that wraps a `v8::Function` handle, protecting it from garbage collection and making it particularly useful for storage and use across asynchronous execution.
-
- - <a href="#api_nan_callback"><b><code>Nan::Callback</code></b></a>
-
-<a name="api_nan_callback"></a>
-### Nan::Callback
-
-```c++
-class Callback {
- public:
-  Callback();
-
-  explicit Callback(const v8::Local<v8::Function> &fn);
-
-  ~Callback();
-
-  bool operator==(const Callback &other) const;
-
-  bool operator!=(const Callback &other) const;
-
-  v8::Local<v8::Function> operator*() const;
-
-  MaybeLocal<v8::Value> operator()(AsyncResource* async_resource,
-                                   v8::Local<v8::Object> target,
-                                   int argc = 0,
-                                   v8::Local<v8::Value> argv[] = 0) const;
-
-  MaybeLocal<v8::Value> operator()(AsyncResource* async_resource,
-                                   int argc = 0,
-                                   v8::Local<v8::Value> argv[] = 0) const;
-
-  void SetFunction(const v8::Local<v8::Function> &fn);
-
-  v8::Local<v8::Function> GetFunction() const;
-
-  bool IsEmpty() const;
-
-  void Reset(const v8::Local<v8::Function> &fn);
-
-  void Reset();
-
-  MaybeLocal<v8::Value> Call(v8::Local<v8::Object> target,
-                            int argc,
-                            v8::Local<v8::Value> argv[],
-                            AsyncResource* async_resource) const;
-  MaybeLocal<v8::Value> Call(int argc,
-                             v8::Local<v8::Value> argv[],
-                             AsyncResource* async_resource) const;
-
-  // Deprecated versions. Use the versions that accept an async_resource instead
-  // as they run the callback in the correct async context as specified by the
-  // resource. If you want to call a synchronous JS function (i.e. on a
-  // non-empty JS stack), you can use Nan::Call instead.
-  v8::Local<v8::Value> operator()(v8::Local<v8::Object> target,
-                                  int argc = 0,
-                                  v8::Local<v8::Value> argv[] = 0) const;
-
-  v8::Local<v8::Value> operator()(int argc = 0,
-                                  v8::Local<v8::Value> argv[] = 0) const;
-  v8::Local<v8::Value> Call(v8::Local<v8::Object> target,
-                            int argc,
-                            v8::Local<v8::Value> argv[]) const;
-
-  v8::Local<v8::Value> Call(int argc, v8::Local<v8::Value> argv[]) const;
-};
-```
-
-Example usage:
-
-```c++
-v8::Local<v8::Function> function;
-Nan::Callback callback(function);
-callback.Call(0, 0);
-```

File diff suppressed because it is too large
+ 0 - 41
node_modules.bak/nan/doc/converters.md


+ 0 - 226
node_modules.bak/nan/doc/errors.md

@@ -1,226 +0,0 @@
-## Errors
-
-NAN includes helpers for creating, throwing and catching Errors as much of this functionality varies across the supported versions of V8 and must be abstracted.
-
-Note that an Error object is simply a specialized form of `v8::Value`.
-
-Also consult the V8 Embedders Guide section on [Exceptions](https://developers.google.com/v8/embed#exceptions) for more information.
-
- - <a href="#api_nan_error"><b><code>Nan::Error()</code></b></a>
- - <a href="#api_nan_range_error"><b><code>Nan::RangeError()</code></b></a>
- - <a href="#api_nan_reference_error"><b><code>Nan::ReferenceError()</code></b></a>
- - <a href="#api_nan_syntax_error"><b><code>Nan::SyntaxError()</code></b></a>
- - <a href="#api_nan_type_error"><b><code>Nan::TypeError()</code></b></a>
- - <a href="#api_nan_throw_error"><b><code>Nan::ThrowError()</code></b></a>
- - <a href="#api_nan_throw_range_error"><b><code>Nan::ThrowRangeError()</code></b></a>
- - <a href="#api_nan_throw_reference_error"><b><code>Nan::ThrowReferenceError()</code></b></a>
- - <a href="#api_nan_throw_syntax_error"><b><code>Nan::ThrowSyntaxError()</code></b></a>
- - <a href="#api_nan_throw_type_error"><b><code>Nan::ThrowTypeError()</code></b></a>
- - <a href="#api_nan_fatal_exception"><b><code>Nan::FatalException()</code></b></a>
- - <a href="#api_nan_errno_exception"><b><code>Nan::ErrnoException()</code></b></a>
- - <a href="#api_nan_try_catch"><b><code>Nan::TryCatch</code></b></a>
-
-
-<a name="api_nan_error"></a>
-### Nan::Error()
-
-Create a new Error object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an Error object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::Error(const char *msg);
-v8::Local<v8::Value> Nan::Error(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_range_error"></a>
-### Nan::RangeError()
-
-Create a new RangeError object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an RangeError object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::RangeError(const char *msg);
-v8::Local<v8::Value> Nan::RangeError(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_reference_error"></a>
-### Nan::ReferenceError()
-
-Create a new ReferenceError object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an ReferenceError object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::ReferenceError(const char *msg);
-v8::Local<v8::Value> Nan::ReferenceError(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_syntax_error"></a>
-### Nan::SyntaxError()
-
-Create a new SyntaxError object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an SyntaxError object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::SyntaxError(const char *msg);
-v8::Local<v8::Value> Nan::SyntaxError(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_type_error"></a>
-### Nan::TypeError()
-
-Create a new TypeError object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an TypeError object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::TypeError(const char *msg);
-v8::Local<v8::Value> Nan::TypeError(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_throw_error"></a>
-### Nan::ThrowError()
-
-Throw an Error object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new Error object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowError(const char *msg);
-void Nan::ThrowError(v8::Local<v8::String> msg);
-void Nan::ThrowError(v8::Local<v8::Value> error);
-```
-
-
-<a name="api_nan_throw_range_error"></a>
-### Nan::ThrowRangeError()
-
-Throw an RangeError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new RangeError object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowRangeError(const char *msg);
-void Nan::ThrowRangeError(v8::Local<v8::String> msg);
-void Nan::ThrowRangeError(v8::Local<v8::Value> error);
-```
-
-
-<a name="api_nan_throw_reference_error"></a>
-### Nan::ThrowReferenceError()
-
-Throw an ReferenceError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new ReferenceError object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowReferenceError(const char *msg);
-void Nan::ThrowReferenceError(v8::Local<v8::String> msg);
-void Nan::ThrowReferenceError(v8::Local<v8::Value> error);
-```
-
-
-<a name="api_nan_throw_syntax_error"></a>
-### Nan::ThrowSyntaxError()
-
-Throw an SyntaxError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new SyntaxError object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowSyntaxError(const char *msg);
-void Nan::ThrowSyntaxError(v8::Local<v8::String> msg);
-void Nan::ThrowSyntaxError(v8::Local<v8::Value> error);
-```
-
-
-<a name="api_nan_throw_type_error"></a>
-### Nan::ThrowTypeError()
-
-Throw an TypeError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new TypeError object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowTypeError(const char *msg);
-void Nan::ThrowTypeError(v8::Local<v8::String> msg);
-void Nan::ThrowTypeError(v8::Local<v8::Value> error);
-```
-
-<a name="api_nan_fatal_exception"></a>
-### Nan::FatalException()
-
-Replaces `node::FatalException()` which has a different API across supported versions of Node. For use with [`Nan::TryCatch`](#api_nan_try_catch).
-
-Signature:
-
-```c++
-void Nan::FatalException(const Nan::TryCatch& try_catch);
-```
-
-<a name="api_nan_errno_exception"></a>
-### Nan::ErrnoException()
-
-Replaces `node::ErrnoException()` which has a different API across supported versions of Node. 
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::ErrnoException(int errorno,
-                                         const char* syscall = NULL,
-                                         const char* message = NULL,
-                                         const char* path = NULL);
-```
-
-
-<a name="api_nan_try_catch"></a>
-### Nan::TryCatch
-
-A simple wrapper around [`v8::TryCatch`](https://v8docs.nodesource.com/node-8.16/d4/dc6/classv8_1_1_try_catch.html) compatible with all supported versions of V8. Can be used as a direct replacement in most cases. See also [`Nan::FatalException()`](#api_nan_fatal_exception) for an internal use compatible with `node::FatalException`.
-
-Signature:
-
-```c++
-class Nan::TryCatch {
- public:
-  Nan::TryCatch();
-
-  bool HasCaught() const;
-
-  bool CanContinue() const;
-
-  v8::Local<v8::Value> ReThrow();
-
-  v8::Local<v8::Value> Exception() const;
-
-  // Nan::MaybeLocal for older versions of V8
-  v8::MaybeLocal<v8::Value> StackTrace() const;
-
-  v8::Local<v8::Message> Message() const;
-
-  void Reset();
-
-  void SetVerbose(bool value);
-
-  void SetCaptureMessage(bool value);
-};
-```
-

+ 0 - 62
node_modules.bak/nan/doc/json.md

@@ -1,62 +0,0 @@
-## JSON
-
-The _JSON_ object provides the c++ versions of the methods offered by the `JSON` object in javascript. V8 exposes these methods via the `v8::JSON` object.
-
- - <a href="#api_nan_json_parse"><b><code>Nan::JSON.Parse</code></b></a>
- - <a href="#api_nan_json_stringify"><b><code>Nan::JSON.Stringify</code></b></a>
-
-Refer to the V8 JSON object in the [V8 documentation](https://v8docs.nodesource.com/node-8.16/da/d6f/classv8_1_1_j_s_o_n.html) for more information about these methods and their arguments.
-
-<a name="api_nan_json_parse"></a>
-
-### Nan::JSON.Parse
-
-A simple wrapper around [`v8::JSON::Parse`](https://v8docs.nodesource.com/node-8.16/da/d6f/classv8_1_1_j_s_o_n.html#a936310d2540fb630ed37d3ee3ffe4504).
-
-Definition:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::JSON::Parse(v8::Local<v8::String> json_string);
-```
-
-Use `JSON.Parse(json_string)` to parse a string into a `v8::Value`.
-
-Example:
-
-```c++
-v8::Local<v8::String> json_string = Nan::New("{ \"JSON\": \"object\" }").ToLocalChecked();
-
-Nan::JSON NanJSON;
-Nan::MaybeLocal<v8::Value> result = NanJSON.Parse(json_string);
-if (!result.IsEmpty()) {
-  v8::Local<v8::Value> val = result.ToLocalChecked();
-}
-```
-
-<a name="api_nan_json_stringify"></a>
-
-### Nan::JSON.Stringify
-
-A simple wrapper around [`v8::JSON::Stringify`](https://v8docs.nodesource.com/node-8.16/da/d6f/classv8_1_1_j_s_o_n.html#a44b255c3531489ce43f6110209138860).
-
-Definition:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::JSON::Stringify(v8::Local<v8::Object> json_object, v8::Local<v8::String> gap = v8::Local<v8::String>());
-```
-
-Use `JSON.Stringify(value)` to stringify a `v8::Object`.
-
-Example:
-
-```c++
-// using `v8::Local<v8::Value> val` from the `JSON::Parse` example
-v8::Local<v8::Object> obj = Nan::To<v8::Object>(val).ToLocalChecked();
-
-Nan::JSON NanJSON;
-Nan::MaybeLocal<v8::String> result = NanJSON.Stringify(obj);
-if (!result.IsEmpty()) {
-  v8::Local<v8::String> stringified = result.ToLocalChecked();
-}
-```
-

+ 0 - 583
node_modules.bak/nan/doc/maybe_types.md

@@ -1,583 +0,0 @@
-## Maybe Types
-
-The `Nan::MaybeLocal` and `Nan::Maybe` types are monads that encapsulate `v8::Local` handles that _may be empty_.
-
-* **Maybe Types**
-  - <a href="#api_nan_maybe_local"><b><code>Nan::MaybeLocal</code></b></a>
-  - <a href="#api_nan_maybe"><b><code>Nan::Maybe</code></b></a>
-  - <a href="#api_nan_nothing"><b><code>Nan::Nothing</code></b></a>
-  - <a href="#api_nan_just"><b><code>Nan::Just</code></b></a>
-* **Maybe Helpers**
-  - <a href="#api_nan_call"><b><code>Nan::Call()</code></b></a>
-  - <a href="#api_nan_to_detail_string"><b><code>Nan::ToDetailString()</code></b></a>
-  - <a href="#api_nan_to_array_index"><b><code>Nan::ToArrayIndex()</code></b></a>
-  - <a href="#api_nan_equals"><b><code>Nan::Equals()</code></b></a>
-  - <a href="#api_nan_new_instance"><b><code>Nan::NewInstance()</code></b></a>
-  - <a href="#api_nan_get_function"><b><code>Nan::GetFunction()</code></b></a>
-  - <a href="#api_nan_set"><b><code>Nan::Set()</code></b></a>
-  - <a href="#api_nan_define_own_property"><b><code>Nan::DefineOwnProperty()</code></b></a>
-  - <a href="#api_nan_force_set"><del><b><code>Nan::ForceSet()</code></b></del></a>
-  - <a href="#api_nan_get"><b><code>Nan::Get()</code></b></a>
-  - <a href="#api_nan_get_property_attribute"><b><code>Nan::GetPropertyAttributes()</code></b></a>
-  - <a href="#api_nan_has"><b><code>Nan::Has()</code></b></a>
-  - <a href="#api_nan_delete"><b><code>Nan::Delete()</code></b></a>
-  - <a href="#api_nan_get_property_names"><b><code>Nan::GetPropertyNames()</code></b></a>
-  - <a href="#api_nan_get_own_property_names"><b><code>Nan::GetOwnPropertyNames()</code></b></a>
-  - <a href="#api_nan_set_prototype"><b><code>Nan::SetPrototype()</code></b></a>
-  - <a href="#api_nan_object_proto_to_string"><b><code>Nan::ObjectProtoToString()</code></b></a>
-  - <a href="#api_nan_has_own_property"><b><code>Nan::HasOwnProperty()</code></b></a>
-  - <a href="#api_nan_has_real_named_property"><b><code>Nan::HasRealNamedProperty()</code></b></a>
-  - <a href="#api_nan_has_real_indexed_property"><b><code>Nan::HasRealIndexedProperty()</code></b></a>
-  - <a href="#api_nan_has_real_named_callback_property"><b><code>Nan::HasRealNamedCallbackProperty()</code></b></a>
-  - <a href="#api_nan_get_real_named_property_in_prototype_chain"><b><code>Nan::GetRealNamedPropertyInPrototypeChain()</code></b></a>
-  - <a href="#api_nan_get_real_named_property"><b><code>Nan::GetRealNamedProperty()</code></b></a>
-  - <a href="#api_nan_call_as_function"><b><code>Nan::CallAsFunction()</code></b></a>
-  - <a href="#api_nan_call_as_constructor"><b><code>Nan::CallAsConstructor()</code></b></a>
-  - <a href="#api_nan_get_source_line"><b><code>Nan::GetSourceLine()</code></b></a>
-  - <a href="#api_nan_get_line_number"><b><code>Nan::GetLineNumber()</code></b></a>
-  - <a href="#api_nan_get_start_column"><b><code>Nan::GetStartColumn()</code></b></a>
-  - <a href="#api_nan_get_end_column"><b><code>Nan::GetEndColumn()</code></b></a>
-  - <a href="#api_nan_clone_element_at"><b><code>Nan::CloneElementAt()</code></b></a>
-  - <a href="#api_nan_has_private"><b><code>Nan::HasPrivate()</code></b></a>
-  - <a href="#api_nan_get_private"><b><code>Nan::GetPrivate()</code></b></a>
-  - <a href="#api_nan_set_private"><b><code>Nan::SetPrivate()</code></b></a>
-  - <a href="#api_nan_delete_private"><b><code>Nan::DeletePrivate()</code></b></a>
-  - <a href="#api_nan_make_maybe"><b><code>Nan::MakeMaybe()</code></b></a>
-
-<a name="api_nan_maybe_local"></a>
-### Nan::MaybeLocal
-
-A `Nan::MaybeLocal<T>` is a wrapper around [`v8::Local<T>`](https://v8docs.nodesource.com/node-8.16/de/deb/classv8_1_1_local.html) that enforces a check that determines whether the `v8::Local<T>` is empty before it can be used.
-
-If an API method returns a `Nan::MaybeLocal`, the API method can potentially fail either because an exception is thrown, or because an exception is pending, e.g. because a previous API call threw an exception that hasn't been caught yet, or because a `v8::TerminateExecution` exception was thrown. In that case, an empty `Nan::MaybeLocal` is returned.
-
-Definition:
-
-```c++
-template<typename T> class Nan::MaybeLocal {
- public:
-  MaybeLocal();
-
-  template<typename S> MaybeLocal(v8::Local<S> that);
-
-  bool IsEmpty() const;
-
-  template<typename S> bool ToLocal(v8::Local<S> *out);
-
-  // Will crash if the MaybeLocal<> is empty.
-  v8::Local<T> ToLocalChecked();
-
-  template<typename S> v8::Local<S> FromMaybe(v8::Local<S> default_value) const;
-};
-```
-
-See the documentation for [`v8::MaybeLocal`](https://v8docs.nodesource.com/node-8.16/d8/d7d/classv8_1_1_maybe_local.html) for further details.
-
-<a name="api_nan_maybe"></a>
-### Nan::Maybe
-
-A simple `Nan::Maybe` type, representing an object which may or may not have a value, see https://hackage.haskell.org/package/base/docs/Data-Maybe.html.
-
-If an API method returns a `Nan::Maybe<>`, the API method can potentially fail either because an exception is thrown, or because an exception is pending, e.g. because a previous API call threw an exception that hasn't been caught yet, or because a `v8::TerminateExecution` exception was thrown. In that case, a "Nothing" value is returned.
-
-Definition:
-
-```c++
-template<typename T> class Nan::Maybe {
- public:
-  bool IsNothing() const;
-  bool IsJust() const;
-
-  // Will crash if the Maybe<> is nothing.
-  T FromJust();
-
-  T FromMaybe(const T& default_value);
-
-  bool operator==(const Maybe &other);
-
-  bool operator!=(const Maybe &other);
-};
-```
-
-See the documentation for [`v8::Maybe`](https://v8docs.nodesource.com/node-8.16/d9/d4b/classv8_1_1_maybe.html) for further details.
-
-<a name="api_nan_nothing"></a>
-### Nan::Nothing
-
-Construct an empty `Nan::Maybe` type representing _nothing_.
-
-```c++
-template<typename T> Nan::Maybe<T> Nan::Nothing();
-```
-
-<a name="api_nan_just"></a>
-### Nan::Just
-
-Construct a `Nan::Maybe` type representing _just_ a value.
-
-```c++
-template<typename T> Nan::Maybe<T> Nan::Just(const T &t);
-```
-
-<a name="api_nan_call"></a>
-### Nan::Call()
-
-A helper method for calling a synchronous [`v8::Function#Call()`](https://v8docs.nodesource.com/node-8.16/d5/d54/classv8_1_1_function.html#a9c3d0e4e13ddd7721fce238aa5b94a11) in a way compatible across supported versions of V8.
-
-For asynchronous callbacks, use Nan::Callback::Call along with an AsyncResource.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::Call(v8::Local<v8::Function> fun, v8::Local<v8::Object> recv, int argc, v8::Local<v8::Value> argv[]);
-Nan::MaybeLocal<v8::Value> Nan::Call(const Nan::Callback& callback, v8::Local<v8::Object> recv,
- int argc, v8::Local<v8::Value> argv[]);
-Nan::MaybeLocal<v8::Value> Nan::Call(const Nan::Callback& callback, int argc, v8::Local<v8::Value> argv[]);
-```
-
-
-<a name="api_nan_to_detail_string"></a>
-### Nan::ToDetailString()
-
-A helper method for calling [`v8::Value#ToDetailString()`](https://v8docs.nodesource.com/node-8.16/dc/d0a/classv8_1_1_value.html#a2f9770296dc2c8d274bc8cc0dca243e5) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::ToDetailString(v8::Local<v8::Value> val);
-```
-
-
-<a name="api_nan_to_array_index"></a>
-### Nan::ToArrayIndex()
-
-A helper method for calling [`v8::Value#ToArrayIndex()`](https://v8docs.nodesource.com/node-8.16/dc/d0a/classv8_1_1_value.html#acc5bbef3c805ec458470c0fcd6f13493) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Uint32> Nan::ToArrayIndex(v8::Local<v8::Value> val);
-```
-
-
-<a name="api_nan_equals"></a>
-### Nan::Equals()
-
-A helper method for calling [`v8::Value#Equals()`](https://v8docs.nodesource.com/node-8.16/dc/d0a/classv8_1_1_value.html#a08fba1d776a59bbf6864b25f9152c64b) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::Equals(v8::Local<v8::Value> a, v8::Local<v8::Value>(b));
-```
-
-
-<a name="api_nan_new_instance"></a>
-### Nan::NewInstance()
-
-A helper method for calling [`v8::Function#NewInstance()`](https://v8docs.nodesource.com/node-8.16/d5/d54/classv8_1_1_function.html#ae477558b10c14b76ed00e8dbab44ce5b) and [`v8::ObjectTemplate#NewInstance()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#ad605a7543cfbc5dab54cdb0883d14ae4) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::Function> h);
-Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::Function> h, int argc, v8::Local<v8::Value> argv[]);
-Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::ObjectTemplate> h);
-```
-
-
-<a name="api_nan_get_function"></a>
-### Nan::GetFunction()
-
-A helper method for calling [`v8::FunctionTemplate#GetFunction()`](https://v8docs.nodesource.com/node-8.16/d8/d83/classv8_1_1_function_template.html#a56d904662a86eca78da37d9bb0ed3705) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Function> Nan::GetFunction(v8::Local<v8::FunctionTemplate> t);
-```
-
-
-<a name="api_nan_set"></a>
-### Nan::Set()
-
-A helper method for calling [`v8::Object#Set()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a67604ea3734f170c66026064ea808f20) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::Set(v8::Local<v8::Object> obj,
-                          v8::Local<v8::Value> key,
-                          v8::Local<v8::Value> value)
-Nan::Maybe<bool> Nan::Set(v8::Local<v8::Object> obj,
-                          uint32_t index,
-                          v8::Local<v8::Value> value);
-```
-
-
-<a name="api_nan_define_own_property"></a>
-### Nan::DefineOwnProperty()
-
-A helper method for calling [`v8::Object#DefineOwnProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a6f76b2ed605cb8f9185b92de0033a820) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::DefineOwnProperty(v8::Local<v8::Object> obj,
-                                        v8::Local<v8::String> key,
-                                        v8::Local<v8::Value> value,
-                                        v8::PropertyAttribute attribs = v8::None);
-```
-
-
-<a name="api_nan_force_set"></a>
-### <del>Nan::ForceSet()</del>
-
-Deprecated, use <a href="#api_nan_define_own_property"><code>Nan::DefineOwnProperty()</code></a>.
-
-<del>A helper method for calling [`v8::Object#ForceSet()`](https://v8docs.nodesource.com/node-0.12/db/d85/classv8_1_1_object.html#acfbdfd7427b516ebdb5c47c4df5ed96c) in a way compatible across supported versions of V8.</del>
-
-Signature:
-
-```c++
-NAN_DEPRECATED Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object> obj,
-                                              v8::Local<v8::Value> key,
-                                              v8::Local<v8::Value> value,
-                                              v8::PropertyAttribute attribs = v8::None);
-```
-
-
-<a name="api_nan_get"></a>
-### Nan::Get()
-
-A helper method for calling [`v8::Object#Get()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a2565f03e736694f6b1e1cf22a0b4eac2) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object> obj,
-                                    v8::Local<v8::Value> key);
-Nan::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object> obj, uint32_t index);
-```
-
-
-<a name="api_nan_get_property_attribute"></a>
-### Nan::GetPropertyAttributes()
-
-A helper method for calling [`v8::Object#GetPropertyAttributes()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a9b898894da3d1db2714fd9325a54fe57) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<v8::PropertyAttribute> Nan::GetPropertyAttributes(
-    v8::Local<v8::Object> obj,
-    v8::Local<v8::Value> key);
-```
-
-
-<a name="api_nan_has"></a>
-### Nan::Has()
-
-A helper method for calling [`v8::Object#Has()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab3c3d89ea7c2f9afd08965bd7299a41d) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::Has(v8::Local<v8::Object> obj, v8::Local<v8::String> key);
-Nan::Maybe<bool> Nan::Has(v8::Local<v8::Object> obj, uint32_t index);
-```
-
-
-<a name="api_nan_delete"></a>
-### Nan::Delete()
-
-A helper method for calling [`v8::Object#Delete()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a48e4a19b2cedff867eecc73ddb7d377f) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::Delete(v8::Local<v8::Object> obj,
-                             v8::Local<v8::String> key);
-Nan::Maybe<bool> Nan::Delete(v8::Local<v8::Object> obj, uint32_t index);
-```
-
-
-<a name="api_nan_get_property_names"></a>
-### Nan::GetPropertyNames()
-
-A helper method for calling [`v8::Object#GetPropertyNames()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#aced885270cfd2c956367b5eedc7fbfe8) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Array> Nan::GetPropertyNames(v8::Local<v8::Object> obj);
-```
-
-
-<a name="api_nan_get_own_property_names"></a>
-### Nan::GetOwnPropertyNames()
-
-A helper method for calling [`v8::Object#GetOwnPropertyNames()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a79a6e4d66049b9aa648ed4dfdb23e6eb) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Array> Nan::GetOwnPropertyNames(v8::Local<v8::Object> obj);
-```
-
-
-<a name="api_nan_set_prototype"></a>
-### Nan::SetPrototype()
-
-A helper method for calling [`v8::Object#SetPrototype()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a442706b22fceda6e6d1f632122a9a9f4) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::SetPrototype(v8::Local<v8::Object> obj,
-                                   v8::Local<v8::Value> prototype);
-```
-
-
-<a name="api_nan_object_proto_to_string"></a>
-### Nan::ObjectProtoToString()
-
-A helper method for calling [`v8::Object#ObjectProtoToString()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab7a92b4dcf822bef72f6c0ac6fea1f0b) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::ObjectProtoToString(v8::Local<v8::Object> obj);
-```
-
-
-<a name="api_nan_has_own_property"></a>
-### Nan::HasOwnProperty()
-
-A helper method for calling [`v8::Object#HasOwnProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab7b7245442ca6de1e1c145ea3fd653ff) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasOwnProperty(v8::Local<v8::Object> obj,
-                                     v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_has_real_named_property"></a>
-### Nan::HasRealNamedProperty()
-
-A helper method for calling [`v8::Object#HasRealNamedProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ad8b80a59c9eb3c1e6c3cd6c84571f767) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasRealNamedProperty(v8::Local<v8::Object> obj,
-                                           v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_has_real_indexed_property"></a>
-### Nan::HasRealIndexedProperty()
-
-A helper method for calling [`v8::Object#HasRealIndexedProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#af94fc1135a5e74a2193fb72c3a1b9855) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasRealIndexedProperty(v8::Local<v8::Object> obj,
-                                             uint32_t index);
-```
-
-
-<a name="api_nan_has_real_named_callback_property"></a>
-### Nan::HasRealNamedCallbackProperty()
-
-A helper method for calling [`v8::Object#HasRealNamedCallbackProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#af743b7ea132b89f84d34d164d0668811) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasRealNamedCallbackProperty(
-    v8::Local<v8::Object> obj,
-    v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_get_real_named_property_in_prototype_chain"></a>
-### Nan::GetRealNamedPropertyInPrototypeChain()
-
-A helper method for calling [`v8::Object#GetRealNamedPropertyInPrototypeChain()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a8700b1862e6b4783716964ba4d5e6172) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::GetRealNamedPropertyInPrototypeChain(
-    v8::Local<v8::Object> obj,
-    v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_get_real_named_property"></a>
-### Nan::GetRealNamedProperty()
-
-A helper method for calling [`v8::Object#GetRealNamedProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a84471a824576a5994fdd0ffcbf99ccc0) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::GetRealNamedProperty(v8::Local<v8::Object> obj,
-                                                     v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_call_as_function"></a>
-### Nan::CallAsFunction()
-
-A helper method for calling [`v8::Object#CallAsFunction()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ad3ffc36f3dfc3592ce2a96bc047ee2cd) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::CallAsFunction(v8::Local<v8::Object> obj,
-                                               v8::Local<v8::Object> recv,
-                                               int argc,
-                                               v8::Local<v8::Value> argv[]);
-```
-
-
-<a name="api_nan_call_as_constructor"></a>
-### Nan::CallAsConstructor()
-
-A helper method for calling [`v8::Object#CallAsConstructor()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a50d571de50d0b0dfb28795619d07a01b) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::CallAsConstructor(v8::Local<v8::Object> obj,
-                                                  int argc,
-                                                  v8::Local<v8::Value> argv[]);
-```
-
-
-<a name="api_nan_get_source_line"></a>
-### Nan::GetSourceLine()
-
-A helper method for calling [`v8::Message#GetSourceLine()`](https://v8docs.nodesource.com/node-8.16/d9/d28/classv8_1_1_message.html#a849f7a6c41549d83d8159825efccd23a) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::GetSourceLine(v8::Local<v8::Message> msg);
-```
-
-
-<a name="api_nan_get_line_number"></a>
-### Nan::GetLineNumber()
-
-A helper method for calling [`v8::Message#GetLineNumber()`](https://v8docs.nodesource.com/node-8.16/d9/d28/classv8_1_1_message.html#adbe46c10a88a6565f2732a2d2adf99b9) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<int> Nan::GetLineNumber(v8::Local<v8::Message> msg);
-```
-
-
-<a name="api_nan_get_start_column"></a>
-### Nan::GetStartColumn()
-
-A helper method for calling [`v8::Message#GetStartColumn()`](https://v8docs.nodesource.com/node-8.16/d9/d28/classv8_1_1_message.html#a60ede616ba3822d712e44c7a74487ba6) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<int> Nan::GetStartColumn(v8::Local<v8::Message> msg);
-```
-
-
-<a name="api_nan_get_end_column"></a>
-### Nan::GetEndColumn()
-
-A helper method for calling [`v8::Message#GetEndColumn()`](https://v8docs.nodesource.com/node-8.16/d9/d28/classv8_1_1_message.html#aaa004cf19e529da980bc19fcb76d93be) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<int> Nan::GetEndColumn(v8::Local<v8::Message> msg);
-```
-
-
-<a name="api_nan_clone_element_at"></a>
-### Nan::CloneElementAt()
-
-A helper method for calling [`v8::Array#CloneElementAt()`](https://v8docs.nodesource.com/node-4.8/d3/d32/classv8_1_1_array.html#a1d3a878d4c1c7cae974dd50a1639245e) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array> array, uint32_t index);
-```
-
-<a name="api_nan_has_private"></a>
-### Nan::HasPrivate()
-
-A helper method for calling [`v8::Object#HasPrivate()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#af68a0b98066cfdeb8f943e98a40ba08d) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key);
-```
-
-<a name="api_nan_get_private"></a>
-### Nan::GetPrivate()
-
-A helper method for calling [`v8::Object#GetPrivate()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a169f2da506acbec34deadd9149a1925a) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::GetPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key);
-```
-
-<a name="api_nan_set_private"></a>
-### Nan::SetPrivate()
-
-A helper method for calling [`v8::Object#SetPrivate()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ace1769b0f3b86bfe9fda1010916360ee) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::SetPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key, v8::Local<v8::Value> value);
-```
-
-<a name="api_nan_delete_private"></a>
-### Nan::DeletePrivate()
-
-A helper method for calling [`v8::Object#DeletePrivate()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a138bb32a304f3982be02ad499693b8fd) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::DeletePrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key);
-```
-
-<a name="api_nan_make_maybe"></a>
-### Nan::MakeMaybe()
-
-Wraps a `v8::Local<>` in a `Nan::MaybeLocal<>`. When called with a `Nan::MaybeLocal<>` it just returns its argument. This is useful in generic template code that builds on NAN.
-
-Synopsis:
-
-```c++
-  MaybeLocal<v8::Number> someNumber = MakeMaybe(New<v8::Number>(3.141592654));
-  MaybeLocal<v8::String> someString = MakeMaybe(New<v8::String>("probably"));
-```
-
-Signature:
-
-```c++
-template <typename T, template <typename> class MaybeMaybe>
-Nan::MaybeLocal<T> Nan::MakeMaybe(MaybeMaybe<T> v);
-```

+ 0 - 664
node_modules.bak/nan/doc/methods.md

@@ -1,664 +0,0 @@
-## JavaScript-accessible methods
-
-A _template_ is a blueprint for JavaScript functions and objects in a context. You can use a template to wrap C++ functions and data structures within JavaScript objects so that they can be manipulated from JavaScript. See the V8 Embedders Guide section on [Templates](https://github.com/v8/v8/wiki/Embedder%27s-Guide#templates) for further information.
-
-In order to expose functionality to JavaScript via a template, you must provide it to V8 in a form that it understands. Across the versions of V8 supported by NAN, JavaScript-accessible method signatures vary widely, NAN fully abstracts method declaration and provides you with an interface that is similar to the most recent V8 API but is backward-compatible with older versions that still use the now-deceased `v8::Argument` type.
-
-* **Method argument types**
- - <a href="#api_nan_function_callback_info"><b><code>Nan::FunctionCallbackInfo</code></b></a>
- - <a href="#api_nan_property_callback_info"><b><code>Nan::PropertyCallbackInfo</code></b></a>
- - <a href="#api_nan_return_value"><b><code>Nan::ReturnValue</code></b></a>
-* **Method declarations**
- - <a href="#api_nan_method"><b>Method declaration</b></a>
- - <a href="#api_nan_getter"><b>Getter declaration</b></a>
- - <a href="#api_nan_setter"><b>Setter declaration</b></a>
- - <a href="#api_nan_property_getter"><b>Property getter declaration</b></a>
- - <a href="#api_nan_property_setter"><b>Property setter declaration</b></a>
- - <a href="#api_nan_property_enumerator"><b>Property enumerator declaration</b></a>
- - <a href="#api_nan_property_deleter"><b>Property deleter declaration</b></a>
- - <a href="#api_nan_property_query"><b>Property query declaration</b></a>
- - <a href="#api_nan_index_getter"><b>Index getter declaration</b></a>
- - <a href="#api_nan_index_setter"><b>Index setter declaration</b></a>
- - <a href="#api_nan_index_enumerator"><b>Index enumerator declaration</b></a>
- - <a href="#api_nan_index_deleter"><b>Index deleter declaration</b></a>
- - <a href="#api_nan_index_query"><b>Index query declaration</b></a>
-* Method and template helpers
- - <a href="#api_nan_set_method"><b><code>Nan::SetMethod()</code></b></a>
- - <a href="#api_nan_set_prototype_method"><b><code>Nan::SetPrototypeMethod()</code></b></a>
- - <a href="#api_nan_set_accessor"><b><code>Nan::SetAccessor()</code></b></a>
- - <a href="#api_nan_set_named_property_handler"><b><code>Nan::SetNamedPropertyHandler()</code></b></a>
- - <a href="#api_nan_set_indexed_property_handler"><b><code>Nan::SetIndexedPropertyHandler()</code></b></a>
- - <a href="#api_nan_set_template"><b><code>Nan::SetTemplate()</code></b></a>
- - <a href="#api_nan_set_prototype_template"><b><code>Nan::SetPrototypeTemplate()</code></b></a>
- - <a href="#api_nan_set_instance_template"><b><code>Nan::SetInstanceTemplate()</code></b></a>
- - <a href="#api_nan_set_call_handler"><b><code>Nan::SetCallHandler()</code></b></a>
- - <a href="#api_nan_set_call_as_function_handler"><b><code>Nan::SetCallAsFunctionHandler()</code></b></a>
-
-<a name="api_nan_function_callback_info"></a>
-### Nan::FunctionCallbackInfo
-
-`Nan::FunctionCallbackInfo` should be used in place of [`v8::FunctionCallbackInfo`](https://v8docs.nodesource.com/node-8.16/dd/d0d/classv8_1_1_function_callback_info.html), even with older versions of Node where `v8::FunctionCallbackInfo` does not exist.
-
-Definition:
-
-```c++
-template<typename T> class FunctionCallbackInfo {
- public:
-  ReturnValue<T> GetReturnValue() const;
-  v8::Local<v8::Function> Callee(); // NOTE: Not available in NodeJS >= 10.0.0
-  v8::Local<v8::Value> Data();
-  v8::Local<v8::Object> Holder();
-  bool IsConstructCall();
-  int Length() const;
-  v8::Local<v8::Value> operator[](int i) const;
-  v8::Local<v8::Object> This() const;
-  v8::Isolate *GetIsolate() const;
-};
-```
-
-See the [`v8::FunctionCallbackInfo`](https://v8docs.nodesource.com/node-8.16/dd/d0d/classv8_1_1_function_callback_info.html) documentation for usage details on these. See [`Nan::ReturnValue`](#api_nan_return_value) for further information on how to set a return value from methods.
-
-**Note:** `FunctionCallbackInfo::Callee` is removed in Node.js after `10.0.0` because it is was deprecated in V8. Consider using `info.Data()` to pass any information you need.
-
-<a name="api_nan_property_callback_info"></a>
-### Nan::PropertyCallbackInfo
-
-`Nan::PropertyCallbackInfo` should be used in place of [`v8::PropertyCallbackInfo`](https://v8docs.nodesource.com/node-8.16/d7/dc5/classv8_1_1_property_callback_info.html), even with older versions of Node where `v8::PropertyCallbackInfo` does not exist.
-
-Definition:
-
-```c++
-template<typename T> class PropertyCallbackInfo : public PropertyCallbackInfoBase<T> {
- public:
-  ReturnValue<T> GetReturnValue() const;
-  v8::Isolate* GetIsolate() const;
-  v8::Local<v8::Value> Data() const;
-  v8::Local<v8::Object> This() const;
-  v8::Local<v8::Object> Holder() const;
-};
-```
-
-See the [`v8::PropertyCallbackInfo`](https://v8docs.nodesource.com/node-8.16/d7/dc5/classv8_1_1_property_callback_info.html) documentation for usage details on these. See [`Nan::ReturnValue`](#api_nan_return_value) for further information on how to set a return value from property accessor methods.
-
-<a name="api_nan_return_value"></a>
-### Nan::ReturnValue
-
-`Nan::ReturnValue` is used in place of [`v8::ReturnValue`](https://v8docs.nodesource.com/node-8.16/da/da7/classv8_1_1_return_value.html) on both [`Nan::FunctionCallbackInfo`](#api_nan_function_callback_info) and [`Nan::PropertyCallbackInfo`](#api_nan_property_callback_info) as the return type of `GetReturnValue()`.
-
-Example usage:
-
-```c++
-void EmptyArray(const Nan::FunctionCallbackInfo<v8::Value>& info) {
-  info.GetReturnValue().Set(Nan::New<v8::Array>());
-}
-```
-
-Definition:
-
-```c++
-template<typename T> class ReturnValue {
- public:
-  // Handle setters
-  template <typename S> void Set(const v8::Local<S> &handle);
-  template <typename S> void Set(const Nan::Global<S> &handle);
-
-  // Fast primitive setters
-  void Set(bool value);
-  void Set(double i);
-  void Set(int32_t i);
-  void Set(uint32_t i);
-
-  // Fast JS primitive setters
-  void SetNull();
-  void SetUndefined();
-  void SetEmptyString();
-
-  // Convenience getter for isolate
-  v8::Isolate *GetIsolate() const;
-};
-```
-
-See the documentation on [`v8::ReturnValue`](https://v8docs.nodesource.com/node-8.16/da/da7/classv8_1_1_return_value.html) for further information on this.
-
-<a name="api_nan_method"></a>
-### Method declaration
-
-JavaScript-accessible methods should be declared with the following signature to form a `Nan::FunctionCallback`:
-
-```c++
-typedef void(*FunctionCallback)(const FunctionCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void MethodName(const Nan::FunctionCallbackInfo<v8::Value>& info) {
-  ...
-}
-```
-
-You do not need to declare a new `HandleScope` within a method as one is implicitly created for you.
-
-**Example usage**
-
-```c++
-// .h:
-class Foo : public Nan::ObjectWrap {
-  ...
-
-  static void Bar(const Nan::FunctionCallbackInfo<v8::Value>& info);
-  static void Baz(const Nan::FunctionCallbackInfo<v8::Value>& info);
-}
-
-
-// .cc:
-void Foo::Bar(const Nan::FunctionCallbackInfo<v8::Value>& info) {
-  ...
-}
-
-void Foo::Baz(const Nan::FunctionCallbackInfo<v8::Value>& info) {
-  ...
-}
-```
-
-A helper macro `NAN_METHOD(methodname)` exists, compatible with NAN v1 method declarations.
-
-**Example usage with `NAN_METHOD(methodname)`**
-
-```c++
-// .h:
-class Foo : public Nan::ObjectWrap {
-  ...
-
-  static NAN_METHOD(Bar);
-  static NAN_METHOD(Baz);
-}
-
-
-// .cc:
-NAN_METHOD(Foo::Bar) {
-  ...
-}
-
-NAN_METHOD(Foo::Baz) {
-  ...
-}
-```
-
-Use [`Nan::SetPrototypeMethod`](#api_nan_set_prototype_method) to attach a method to a JavaScript function prototype or [`Nan::SetMethod`](#api_nan_set_method) to attach a method directly on a JavaScript object.
-
-<a name="api_nan_getter"></a>
-### Getter declaration
-
-JavaScript-accessible getters should be declared with the following signature to form a `Nan::GetterCallback`:
-
-```c++
-typedef void(*GetterCallback)(v8::Local<v8::String>,
-                              const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void GetterName(v8::Local<v8::String> property,
-                const Nan::PropertyCallbackInfo<v8::Value>& info) {
-  ...
-}
-```
-
-You do not need to declare a new `HandleScope` within a getter as one is implicitly created for you.
-
-A helper macro `NAN_GETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on [Accessors](https://developers.google.com/v8/embed#accesssors).
-
-<a name="api_nan_setter"></a>
-### Setter declaration
-
-JavaScript-accessible setters should be declared with the following signature to form a <b><code>Nan::SetterCallback</code></b>:
-
-```c++
-typedef void(*SetterCallback)(v8::Local<v8::String>,
-                              v8::Local<v8::Value>,
-                              const PropertyCallbackInfo<void>&);
-```
-
-Example:
-
-```c++
-void SetterName(v8::Local<v8::String> property,
-                v8::Local<v8::Value> value,
-                const Nan::PropertyCallbackInfo<void>& info) {
-  ...
-}
-```
-
-You do not need to declare a new `HandleScope` within a setter as one is implicitly created for you.
-
-A helper macro `NAN_SETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on [Accessors](https://developers.google.com/v8/embed#accesssors).
-
-<a name="api_nan_property_getter"></a>
-### Property getter declaration
-
-JavaScript-accessible property getters should be declared with the following signature to form a <b><code>Nan::PropertyGetterCallback</code></b>:
-
-```c++
-typedef void(*PropertyGetterCallback)(v8::Local<v8::String>,
-                                      const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void PropertyGetterName(v8::Local<v8::String> property,
-                        const Nan::PropertyCallbackInfo<v8::Value>& info) {
-  ...
-}
-```
-
-You do not need to declare a new `HandleScope` within a property getter as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_GETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_property_setter"></a>
-### Property setter declaration
-
-JavaScript-accessible property setters should be declared with the following signature to form a <b><code>Nan::PropertySetterCallback</code></b>:
-
-```c++
-typedef void(*PropertySetterCallback)(v8::Local<v8::String>,
-                                      v8::Local<v8::Value>,
-                                      const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void PropertySetterName(v8::Local<v8::String> property,
-                        v8::Local<v8::Value> value,
-                        const Nan::PropertyCallbackInfo<v8::Value>& info);
-```
-
-You do not need to declare a new `HandleScope` within a property setter as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_SETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_property_enumerator"></a>
-### Property enumerator declaration
-
-JavaScript-accessible property enumerators should be declared with the following signature to form a <b><code>Nan::PropertyEnumeratorCallback</code></b>:
-
-```c++
-typedef void(*PropertyEnumeratorCallback)(const PropertyCallbackInfo<v8::Array>&);
-```
-
-Example:
-
-```c++
-void PropertyEnumeratorName(const Nan::PropertyCallbackInfo<v8::Array>& info);
-```
-
-You do not need to declare a new `HandleScope` within a property enumerator as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_ENUMERATOR(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_property_deleter"></a>
-### Property deleter declaration
-
-JavaScript-accessible property deleters should be declared with the following signature to form a <b><code>Nan::PropertyDeleterCallback</code></b>:
-
-```c++
-typedef void(*PropertyDeleterCallback)(v8::Local<v8::String>,
-                                       const PropertyCallbackInfo<v8::Boolean>&);
-```
-
-Example:
-
-```c++
-void PropertyDeleterName(v8::Local<v8::String> property,
-                         const Nan::PropertyCallbackInfo<v8::Boolean>& info);
-```
-
-You do not need to declare a new `HandleScope` within a property deleter as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_DELETER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_property_query"></a>
-### Property query declaration
-
-JavaScript-accessible property query methods should be declared with the following signature to form a <b><code>Nan::PropertyQueryCallback</code></b>:
-
-```c++
-typedef void(*PropertyQueryCallback)(v8::Local<v8::String>,
-                                     const PropertyCallbackInfo<v8::Integer>&);
-```
-
-Example:
-
-```c++
-void PropertyQueryName(v8::Local<v8::String> property,
-                       const Nan::PropertyCallbackInfo<v8::Integer>& info);
-```
-
-You do not need to declare a new `HandleScope` within a property query method as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_QUERY(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_getter"></a>
-### Index getter declaration
-
-JavaScript-accessible index getter methods should be declared with the following signature to form a <b><code>Nan::IndexGetterCallback</code></b>:
-
-```c++
-typedef void(*IndexGetterCallback)(uint32_t,
-                                   const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void IndexGetterName(uint32_t index, const PropertyCallbackInfo<v8::Value>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index getter as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_GETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_setter"></a>
-### Index setter declaration
-
-JavaScript-accessible index setter methods should be declared with the following signature to form a <b><code>Nan::IndexSetterCallback</code></b>:
-
-```c++
-typedef void(*IndexSetterCallback)(uint32_t,
-                                   v8::Local<v8::Value>,
-                                   const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void IndexSetterName(uint32_t index,
-                     v8::Local<v8::Value> value,
-                     const PropertyCallbackInfo<v8::Value>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index setter as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_SETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_enumerator"></a>
-### Index enumerator declaration
-
-JavaScript-accessible index enumerator methods should be declared with the following signature to form a <b><code>Nan::IndexEnumeratorCallback</code></b>:
-
-```c++
-typedef void(*IndexEnumeratorCallback)(const PropertyCallbackInfo<v8::Array>&);
-```
-
-Example:
-
-```c++
-void IndexEnumeratorName(const PropertyCallbackInfo<v8::Array>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index enumerator as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_ENUMERATOR(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_deleter"></a>
-### Index deleter declaration
-
-JavaScript-accessible index deleter methods should be declared with the following signature to form a <b><code>Nan::IndexDeleterCallback</code></b>:
-
-```c++
-typedef void(*IndexDeleterCallback)(uint32_t,
-                                    const PropertyCallbackInfo<v8::Boolean>&);
-```
-
-Example:
-
-```c++
-void IndexDeleterName(uint32_t index, const PropertyCallbackInfo<v8::Boolean>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index deleter as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_DELETER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_query"></a>
-### Index query declaration
-
-JavaScript-accessible index query methods should be declared with the following signature to form a <b><code>Nan::IndexQueryCallback</code></b>:
-
-```c++
-typedef void(*IndexQueryCallback)(uint32_t,
-                                  const PropertyCallbackInfo<v8::Integer>&);
-```
-
-Example:
-
-```c++
-void IndexQueryName(uint32_t index, const PropertyCallbackInfo<v8::Integer>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index query method as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_QUERY(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_set_method"></a>
-### Nan::SetMethod()
-
-Sets a method with a given name directly on a JavaScript object where the method has the `Nan::FunctionCallback` signature (see <a href="#api_nan_method">Method declaration</a>).
-
-Signature:
-
-```c++
-void Nan::SetMethod(v8::Local<v8::Object> recv,
-                    const char *name,
-                    Nan::FunctionCallback callback,
-                    v8::Local<v8::Value> data = v8::Local<v8::Value>())
-void Nan::SetMethod(v8::Local<v8::Template> templ,
-                    const char *name,
-                    Nan::FunctionCallback callback,
-                    v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-<a name="api_nan_set_prototype_method"></a>
-### Nan::SetPrototypeMethod()
-
-Sets a method with a given name on a `FunctionTemplate`'s prototype where the method has the `Nan::FunctionCallback` signature (see <a href="#api_nan_method">Method declaration</a>).
-
-Signature:
-
-```c++
-void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate> recv,
-                             const char* name,
-                             Nan::FunctionCallback callback,
-                             v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-<a name="api_nan_set_accessor"></a>
-### Nan::SetAccessor()
-
-Sets getters and setters for a property with a given name on an `ObjectTemplate` or a plain `Object`. Accepts getters with the `Nan::GetterCallback` signature (see <a href="#api_nan_getter">Getter declaration</a>) and setters with the `Nan::SetterCallback` signature (see <a href="#api_nan_setter">Setter declaration</a>).
-
-Signature:
-
-```c++
-void SetAccessor(v8::Local<v8::ObjectTemplate> tpl,
-                 v8::Local<v8::String> name,
-                 Nan::GetterCallback getter,
-                 Nan::SetterCallback setter = 0,
-                 v8::Local<v8::Value> data = v8::Local<v8::Value>(),
-                 v8::AccessControl settings = v8::DEFAULT,
-                 v8::PropertyAttribute attribute = v8::None,
-                 imp::Sig signature = imp::Sig());
-bool SetAccessor(v8::Local<v8::Object> obj,
-                 v8::Local<v8::String> name,
-                 Nan::GetterCallback getter,
-                 Nan::SetterCallback setter = 0,
-                 v8::Local<v8::Value> data = v8::Local<v8::Value>(),
-                 v8::AccessControl settings = v8::DEFAULT,
-                 v8::PropertyAttribute attribute = v8::None)
-```
-
-See the V8 [`ObjectTemplate#SetAccessor()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#aca0ed196f8a9adb1f68b1aadb6c9cd77) and [`Object#SetAccessor()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ae91b3b56b357f285288c89fbddc46d1b) for further information about how to use `Nan::SetAccessor()`.
-
-<a name="api_nan_set_named_property_handler"></a>
-### Nan::SetNamedPropertyHandler()
-
-Sets named property getters, setters, query, deleter and enumerator methods on an `ObjectTemplate`. Accepts:
-
-* Property getters with the `Nan::PropertyGetterCallback` signature (see <a href="#api_nan_property_getter">Property getter declaration</a>)
-* Property setters with the `Nan::PropertySetterCallback` signature (see <a href="#api_nan_property_setter">Property setter declaration</a>)
-* Property query methods with the `Nan::PropertyQueryCallback` signature (see <a href="#api_nan_property_query">Property query declaration</a>)
-* Property deleters with the `Nan::PropertyDeleterCallback` signature (see <a href="#api_nan_property_deleter">Property deleter declaration</a>)
-* Property enumerators with the `Nan::PropertyEnumeratorCallback` signature (see <a href="#api_nan_property_enumerator">Property enumerator declaration</a>)
-
-Signature:
-
-```c++
-void SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate> tpl,
-                             Nan::PropertyGetterCallback getter,
-                             Nan::PropertySetterCallback setter = 0,
-                             Nan::PropertyQueryCallback query = 0,
-                             Nan::PropertyDeleterCallback deleter = 0,
-                             Nan::PropertyEnumeratorCallback enumerator = 0,
-                             v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-See the V8 [`ObjectTemplate#SetNamedPropertyHandler()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#a33b3ebd7de641f6cc6414b7de01fc1c7) for further information about how to use `Nan::SetNamedPropertyHandler()`.
-
-<a name="api_nan_set_indexed_property_handler"></a>
-### Nan::SetIndexedPropertyHandler()
-
-Sets indexed property getters, setters, query, deleter and enumerator methods on an `ObjectTemplate`. Accepts:
-
-* Indexed property getters with the `Nan::IndexGetterCallback` signature (see <a href="#api_nan_index_getter">Index getter declaration</a>)
-* Indexed property setters with the `Nan::IndexSetterCallback` signature (see <a href="#api_nan_index_setter">Index setter declaration</a>)
-* Indexed property query methods with the `Nan::IndexQueryCallback` signature (see <a href="#api_nan_index_query">Index query declaration</a>)
-* Indexed property deleters with the `Nan::IndexDeleterCallback` signature (see <a href="#api_nan_index_deleter">Index deleter declaration</a>)
-* Indexed property enumerators with the `Nan::IndexEnumeratorCallback` signature (see <a href="#api_nan_index_enumerator">Index enumerator declaration</a>)
-
-Signature:
-
-```c++
-void SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate> tpl,
-                               Nan::IndexGetterCallback getter,
-                               Nan::IndexSetterCallback setter = 0,
-                               Nan::IndexQueryCallback query = 0,
-                               Nan::IndexDeleterCallback deleter = 0,
-                               Nan::IndexEnumeratorCallback enumerator = 0,
-                               v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-See the V8 [`ObjectTemplate#SetIndexedPropertyHandler()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#ac89f06d634add0e890452033f7d17ff1) for further information about how to use `Nan::SetIndexedPropertyHandler()`.
-
-<a name="api_nan_set_template"></a>
-### Nan::SetTemplate()
-
-Adds properties on an `Object`'s or `Function`'s template.
-
-Signature:
-
-```c++
-void Nan::SetTemplate(v8::Local<v8::Template> templ,
-                      const char *name,
-                      v8::Local<v8::Data> value);
-void Nan::SetTemplate(v8::Local<v8::Template> templ,
-                      v8::Local<v8::String> name,
-                      v8::Local<v8::Data> value,
-                      v8::PropertyAttribute attributes)
-```
-
-Calls the `Template`'s [`Set()`](https://v8docs.nodesource.com/node-8.16/db/df7/classv8_1_1_template.html#ae3fbaff137557aa6a0233bc7e52214ac).
-
-<a name="api_nan_set_prototype_template"></a>
-### Nan::SetPrototypeTemplate()
-
-Adds properties on an `Object`'s or `Function`'s prototype template.
-
-Signature:
-
-```c++
-void Nan::SetPrototypeTemplate(v8::Local<v8::FunctionTemplate> templ,
-                               const char *name,
-                               v8::Local<v8::Data> value);
-void Nan::SetPrototypeTemplate(v8::Local<v8::FunctionTemplate> templ,
-                               v8::Local<v8::String> name,
-                               v8::Local<v8::Data> value,
-                               v8::PropertyAttribute attributes)
-```
-
-Calls the `FunctionTemplate`'s _PrototypeTemplate's_ [`Set()`](https://v8docs.nodesource.com/node-8.16/db/df7/classv8_1_1_template.html#a2db6a56597bf23c59659c0659e564ddf).
-
-<a name="api_nan_set_instance_template"></a>
-### Nan::SetInstanceTemplate()
-
-Use to add instance properties on `FunctionTemplate`'s.
-
-Signature:
-
-```c++
-void Nan::SetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ,
-                              const char *name,
-                              v8::Local<v8::Data> value);
-void Nan::SetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ,
-                              v8::Local<v8::String> name,
-                              v8::Local<v8::Data> value,
-                              v8::PropertyAttribute attributes)
-```
-
-Calls the `FunctionTemplate`'s _InstanceTemplate's_ [`Set()`](https://v8docs.nodesource.com/node-8.16/db/df7/classv8_1_1_template.html#a2db6a56597bf23c59659c0659e564ddf).
-
-<a name="api_nan_set_call_handler"></a>
-### Nan::SetCallHandler()
-
-Set the call-handler callback for a `v8::FunctionTemplate`.
-This callback is called whenever the function created from this FunctionTemplate is called.
-
-Signature:
-
-```c++
-void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate> templ, Nan::FunctionCallback callback, v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-Calls the `FunctionTemplate`'s [`SetCallHandler()`](https://v8docs.nodesource.com/node-8.16/d8/d83/classv8_1_1_function_template.html#ab7574b298db3c27fbc2ed465c08ea2f8).
-
-<a name="api_nan_set_call_as_function_handler"></a>
-### Nan::SetCallAsFunctionHandler()
-
-Sets the callback to be used when calling instances created from the `v8::ObjectTemplate` as a function.
-If no callback is set, instances behave like normal JavaScript objects that cannot be called as a function.
-
-Signature:
-
-```c++
-void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate> templ, Nan::FunctionCallback callback, v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-Calls the `ObjectTemplate`'s [`SetCallAsFunctionHandler()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#a5e9612fc80bf6db8f2da199b9b0bd04e).
-

+ 0 - 147
node_modules.bak/nan/doc/new.md

@@ -1,147 +0,0 @@
-## New
-
-NAN provides a `Nan::New()` helper for the creation of new JavaScript objects in a way that's compatible across the supported versions of V8.
-
- - <a href="#api_nan_new"><b><code>Nan::New()</code></b></a>
- - <a href="#api_nan_undefined"><b><code>Nan::Undefined()</code></b></a>
- - <a href="#api_nan_null"><b><code>Nan::Null()</code></b></a>
- - <a href="#api_nan_true"><b><code>Nan::True()</code></b></a>
- - <a href="#api_nan_false"><b><code>Nan::False()</code></b></a>
- - <a href="#api_nan_empty_string"><b><code>Nan::EmptyString()</code></b></a>
-
-
-<a name="api_nan_new"></a>
-### Nan::New()
-
-`Nan::New()` should be used to instantiate new JavaScript objects.
-
-Refer to the specific V8 type in the [V8 documentation](https://v8docs.nodesource.com/node-8.16/d1/d83/classv8_1_1_data.html) for information on the types of arguments required for instantiation.
-
-Signatures:
-
-Return types are mostly omitted from the signatures for simplicity. In most cases the type will be contained within a `v8::Local<T>`. The following types will be contained within a `Nan::MaybeLocal<T>`: `v8::String`, `v8::Date`, `v8::RegExp`, `v8::Script`, `v8::UnboundScript`.
-
-Empty objects:
-
-```c++
-Nan::New<T>();
-```
-
-Generic single and multiple-argument:
-
-```c++
-Nan::New<T>(A0 arg0);
-Nan::New<T>(A0 arg0, A1 arg1);
-Nan::New<T>(A0 arg0, A1 arg1, A2 arg2);
-Nan::New<T>(A0 arg0, A1 arg1, A2 arg2, A3 arg3);
-```
-
-For creating `v8::FunctionTemplate` and `v8::Function` objects:
-
-_The definition of `Nan::FunctionCallback` can be found in the [Method declaration](./methods.md#api_nan_method) documentation._
-
-```c++
-Nan::New<T>(Nan::FunctionCallback callback,
-            v8::Local<v8::Value> data = v8::Local<v8::Value>());
-Nan::New<T>(Nan::FunctionCallback callback,
-            v8::Local<v8::Value> data = v8::Local<v8::Value>(),
-            A2 a2 = A2());
-```
-
-Native number types:
-
-```c++
-v8::Local<v8::Boolean> Nan::New<T>(bool value);
-v8::Local<v8::Int32> Nan::New<T>(int32_t value);
-v8::Local<v8::Uint32> Nan::New<T>(uint32_t value);
-v8::Local<v8::Number> Nan::New<T>(double value);
-```
-
-String types:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::New<T>(std::string const& value);
-Nan::MaybeLocal<v8::String> Nan::New<T>(const char * value, int length);
-Nan::MaybeLocal<v8::String> Nan::New<T>(const char * value);
-Nan::MaybeLocal<v8::String> Nan::New<T>(const uint16_t * value);
-Nan::MaybeLocal<v8::String> Nan::New<T>(const uint16_t * value, int length);
-```
-
-Specialized types:
-
-```c++
-v8::Local<v8::String> Nan::New<T>(v8::String::ExternalStringResource * value);
-v8::Local<v8::String> Nan::New<T>(Nan::ExternalOneByteStringResource * value);
-v8::Local<v8::RegExp> Nan::New<T>(v8::Local<v8::String> pattern, v8::RegExp::Flags flags);
-```
-
-Note that `Nan::ExternalOneByteStringResource` maps to [`v8::String::ExternalOneByteStringResource`](https://v8docs.nodesource.com/node-8.16/d9/db3/classv8_1_1_string_1_1_external_one_byte_string_resource.html), and `v8::String::ExternalAsciiStringResource` in older versions of V8.
-
-
-<a name="api_nan_undefined"></a>
-### Nan::Undefined()
-
-A helper method to reference the `v8::Undefined` object in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Primitive> Nan::Undefined()
-```
-
-<a name="api_nan_null"></a>
-### Nan::Null()
-
-A helper method to reference the `v8::Null` object in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Primitive> Nan::Null()
-```
-
-<a name="api_nan_true"></a>
-### Nan::True()
-
-A helper method to reference the `v8::Boolean` object representing the `true` value in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Boolean> Nan::True()
-```
-
-<a name="api_nan_false"></a>
-### Nan::False()
-
-A helper method to reference the `v8::Boolean` object representing the `false` value in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Boolean> Nan::False()
-```
-
-<a name="api_nan_empty_string"></a>
-### Nan::EmptyString()
-
-Call [`v8::String::Empty`](https://v8docs.nodesource.com/node-8.16/d2/db3/classv8_1_1_string.html#a7c1bc8886115d7ee46f1d571dd6ebc6d) to reference the empty string in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::String> Nan::EmptyString()
-```
-
-
-<a name="api_nan_new_one_byte_string"></a>
-### Nan::NewOneByteString()
-
-An implementation of [`v8::String::NewFromOneByte()`](https://v8docs.nodesource.com/node-8.16/d2/db3/classv8_1_1_string.html#a5264d50b96d2c896ce525a734dc10f09) provided for consistent availability and API across supported versions of V8. Allocates a new string from Latin-1 data.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::NewOneByteString(const uint8_t * value,
-                                                  int length = -1)
-```

+ 0 - 123
node_modules.bak/nan/doc/node_misc.md

@@ -1,123 +0,0 @@
-## Miscellaneous Node Helpers
-
- - <a href="#api_nan_asyncresource"><b><code>Nan::AsyncResource</code></b></a>
- - <a href="#api_nan_make_callback"><b><code>Nan::MakeCallback()</code></b></a>
- - <a href="#api_nan_module_init"><b><code>NAN_MODULE_INIT()</code></b></a>
- - <a href="#api_nan_export"><b><code>Nan::Export()</code></b></a>
-
-<a name="api_nan_asyncresource"></a>
-### Nan::AsyncResource
-
-This class is analogous to the `AsyncResource` JavaScript class exposed by Node's [async_hooks][] API.
-
-When calling back into JavaScript asynchronously, special care must be taken to ensure that the runtime can properly track
-async hops. `Nan::AsyncResource` is a class that provides an RAII wrapper around `node::EmitAsyncInit`, `node::EmitAsyncDestroy`,
-and `node::MakeCallback`. Using this mechanism to call back into JavaScript, as opposed to `Nan::MakeCallback` or
-`v8::Function::Call` ensures that the callback is executed in the correct async context. This ensures that async mechanisms
-such as domains and [async_hooks][] function correctly.
-
-Definition:
-
-```c++
-class AsyncResource {
- public:
-  AsyncResource(v8::Local<v8::String> name,
-                v8::Local<v8::Object> resource = New<v8::Object>());
-  AsyncResource(const char* name,
-                v8::Local<v8::Object> resource = New<v8::Object>());
-  ~AsyncResource();
-
-  v8::MaybeLocal<v8::Value> runInAsyncScope(v8::Local<v8::Object> target,
-                                            v8::Local<v8::Function> func,
-                                            int argc,
-                                            v8::Local<v8::Value>* argv);
-  v8::MaybeLocal<v8::Value> runInAsyncScope(v8::Local<v8::Object> target,
-                                            v8::Local<v8::String> symbol,
-                                            int argc,
-                                            v8::Local<v8::Value>* argv);
-  v8::MaybeLocal<v8::Value> runInAsyncScope(v8::Local<v8::Object> target,
-                                            const char* method,
-                                            int argc,
-                                            v8::Local<v8::Value>* argv);
-};
-```
-
-* `name`: Identifier for the kind of resource that is being provided for diagnostics information exposed by the [async_hooks][]
-  API. This will be passed to the possible `init` hook as the `type`. To avoid name collisions with other modules we recommend
-  that the name include the name of the owning module as a prefix. For example `mysql` module could use something like
-  `mysql:batch-db-query-resource`.
-* `resource`: An optional object associated with the async work that will be passed to the possible [async_hooks][]
-  `init` hook. If this parameter is omitted, or an empty handle is provided, this object will be created automatically.
-* When calling JS on behalf of this resource, one can use `runInAsyncScope`. This will ensure that the callback runs in the
-  correct async execution context.
-* `AsyncDestroy` is automatically called when an AsyncResource object is destroyed.
-
-For more details, see the Node [async_hooks][] documentation. You might also want to take a look at the documentation for the
-[N-API counterpart][napi]. For example usage, see the `asyncresource.cpp` example in the `test/cpp` directory.
-
-<a name="api_nan_make_callback"></a>
-### Nan::MakeCallback()
-
-Deprecated wrappers around the legacy `node::MakeCallback()` APIs. Node.js 10+
-has deprecated these legacy APIs as they do not provide a mechanism to preserve
-async context.
-
-We recommend that you use the `AsyncResource` class and `AsyncResource::runInAsyncScope` instead of using `Nan::MakeCallback` or
-`v8::Function#Call()` directly. `AsyncResource` properly takes care of running the callback in the correct async execution
-context – something that is essential for functionality like domains, async_hooks and async debugging.
-
-Signatures:
-
-```c++
-NAN_DEPRECATED
-v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object> target,
-                                       v8::Local<v8::Function> func,
-                                       int argc,
-                                       v8::Local<v8::Value>* argv);
-NAN_DEPRECATED
-v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object> target,
-                                       v8::Local<v8::String> symbol,
-                                       int argc,
-                                       v8::Local<v8::Value>* argv);
-NAN_DEPRECATED
-v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object> target,
-                                       const char* method,
-                                       int argc,
-                                       v8::Local<v8::Value>* argv);
-```
-
-
-<a name="api_nan_module_init"></a>
-### NAN_MODULE_INIT()
-
-Used to define the entry point function to a Node add-on. Creates a function with a given `name` that receives a `target` object representing the equivalent of the JavaScript `exports` object.
-
-See example below.
-
-<a name="api_nan_export"></a>
-### Nan::Export()
-
-A simple helper to register a `v8::FunctionTemplate` from a JavaScript-accessible method (see [Methods](./methods.md)) as a property on an object. Can be used in a way similar to assigning properties to `module.exports` in JavaScript.
-
-Signature:
-
-```c++
-void Export(v8::Local<v8::Object> target, const char *name, Nan::FunctionCallback f)
-```
-
-Also available as the shortcut `NAN_EXPORT` macro.
-
-Example:
-
-```c++
-NAN_METHOD(Foo) {
-  ...
-}
-
-NAN_MODULE_INIT(Init) {
-  NAN_EXPORT(target, Foo);
-}
-```
-
-[async_hooks]: https://nodejs.org/dist/latest-v9.x/docs/api/async_hooks.html
-[napi]: https://nodejs.org/dist/latest-v9.x/docs/api/n-api.html#n_api_custom_asynchronous_operations

+ 0 - 263
node_modules.bak/nan/doc/object_wrappers.md

@@ -1,263 +0,0 @@
-## Object Wrappers
-
-The `ObjectWrap` class can be used to make wrapped C++ objects and a factory of wrapped objects.
-
- - <a href="#api_nan_object_wrap"><b><code>Nan::ObjectWrap</code></b></a>
-
-
-<a name="api_nan_object_wrap"></a>
-### Nan::ObjectWrap()
-
-A reimplementation of `node::ObjectWrap` that adds some API not present in older versions of Node. Should be preferred over `node::ObjectWrap` in all cases for consistency.
-
-Definition:
-
-```c++
-class ObjectWrap {
- public:
-  ObjectWrap();
-
-  virtual ~ObjectWrap();
-
-  template <class T>
-  static inline T* Unwrap(v8::Local<v8::Object> handle);
-
-  inline v8::Local<v8::Object> handle();
-
-  inline Nan::Persistent<v8::Object>& persistent();
-
- protected:
-  inline void Wrap(v8::Local<v8::Object> handle);
-
-  inline void MakeWeak();
-
-  /* Ref() marks the object as being attached to an event loop.
-   * Refed objects will not be garbage collected, even if
-   * all references are lost.
-   */
-  virtual void Ref();
-
-  /* Unref() marks an object as detached from the event loop.  This is its
-   * default state.  When an object with a "weak" reference changes from
-   * attached to detached state it will be freed. Be careful not to access
-   * the object after making this call as it might be gone!
-   * (A "weak reference" means an object that only has a
-   * persistent handle.)
-   *
-   * DO NOT CALL THIS FROM DESTRUCTOR
-   */
-  virtual void Unref();
-
-  int refs_;  // ro
-};
-```
-
-See the Node documentation on [Wrapping C++ Objects](https://nodejs.org/api/addons.html#addons_wrapping_c_objects) for more details.
-
-### This vs. Holder
-
-When calling `Unwrap`, it is important that the argument is indeed some JavaScript object which got wrapped by a `Wrap` call for this class or any derived class.
-The `Signature` installed by [`Nan::SetPrototypeMethod()`](methods.md#api_nan_set_prototype_method) does ensure that `info.Holder()` is just such an instance.
-In Node 0.12 and later, `info.This()` will also be of such a type, since otherwise the invocation will get rejected.
-However, in Node 0.10 and before it was possible to invoke a method on a JavaScript object which just had the extension type in its prototype chain.
-In such a situation, calling `Unwrap` on `info.This()` will likely lead to a failed assertion causing a crash, but could lead to even more serious corruption.
-
-On the other hand, calling `Unwrap` in an [accessor](methods.md#api_nan_set_accessor) should not use `Holder()` if the accessor is defined on the prototype.
-So either define your accessors on the instance template,
-or use `This()` after verifying that it is indeed a valid object.
-
-### Examples
-
-#### Basic
-
-```c++
-class MyObject : public Nan::ObjectWrap {
- public:
-  static NAN_MODULE_INIT(Init) {
-    v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
-    tpl->SetClassName(Nan::New("MyObject").ToLocalChecked());
-    tpl->InstanceTemplate()->SetInternalFieldCount(1);
-
-    Nan::SetPrototypeMethod(tpl, "getHandle", GetHandle);
-    Nan::SetPrototypeMethod(tpl, "getValue", GetValue);
-
-    constructor().Reset(Nan::GetFunction(tpl).ToLocalChecked());
-    Nan::Set(target, Nan::New("MyObject").ToLocalChecked(),
-      Nan::GetFunction(tpl).ToLocalChecked());
-  }
-
- private:
-  explicit MyObject(double value = 0) : value_(value) {}
-  ~MyObject() {}
-
-  static NAN_METHOD(New) {
-    if (info.IsConstructCall()) {
-      double value = info[0]->IsUndefined() ? 0 : Nan::To<double>(info[0]).FromJust();
-      MyObject *obj = new MyObject(value);
-      obj->Wrap(info.This());
-      info.GetReturnValue().Set(info.This());
-    } else {
-      const int argc = 1;
-      v8::Local<v8::Value> argv[argc] = {info[0]};
-      v8::Local<v8::Function> cons = Nan::New(constructor());
-      info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked());
-    }
-  }
-
-  static NAN_METHOD(GetHandle) {
-    MyObject* obj = Nan::ObjectWrap::Unwrap<MyObject>(info.Holder());
-    info.GetReturnValue().Set(obj->handle());
-  }
-
-  static NAN_METHOD(GetValue) {
-    MyObject* obj = Nan::ObjectWrap::Unwrap<MyObject>(info.Holder());
-    info.GetReturnValue().Set(obj->value_);
-  }
-
-  static inline Nan::Persistent<v8::Function> & constructor() {
-    static Nan::Persistent<v8::Function> my_constructor;
-    return my_constructor;
-  }
-
-  double value_;
-};
-
-NODE_MODULE(objectwrapper, MyObject::Init)
-```
-
-To use in Javascript:
-
-```Javascript
-var objectwrapper = require('bindings')('objectwrapper');
-
-var obj = new objectwrapper.MyObject(5);
-console.log('Should be 5: ' + obj.getValue());
-```
-
-#### Factory of wrapped objects
-
-```c++
-class MyFactoryObject : public Nan::ObjectWrap {
- public:
-  static NAN_MODULE_INIT(Init) {
-    v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
-    tpl->InstanceTemplate()->SetInternalFieldCount(1);
-
-    Nan::SetPrototypeMethod(tpl, "getValue", GetValue);
-
-    constructor().Reset(Nan::GetFunction(tpl).ToLocalChecked());
-  }
-
-  static NAN_METHOD(NewInstance) {
-    v8::Local<v8::Function> cons = Nan::New(constructor());
-    double value = info[0]->IsNumber() ? Nan::To<double>(info[0]).FromJust() : 0;
-    const int argc = 1;
-    v8::Local<v8::Value> argv[1] = {Nan::New(value)};
-    info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked());
-  }
-
-  // Needed for the next example:
-  inline double value() const {
-    return value_;
-  }
-
- private:
-  explicit MyFactoryObject(double value = 0) : value_(value) {}
-  ~MyFactoryObject() {}
-
-  static NAN_METHOD(New) {
-    if (info.IsConstructCall()) {
-      double value = info[0]->IsNumber() ? Nan::To<double>(info[0]).FromJust() : 0;
-      MyFactoryObject * obj = new MyFactoryObject(value);
-      obj->Wrap(info.This());
-      info.GetReturnValue().Set(info.This());
-    } else {
-      const int argc = 1;
-      v8::Local<v8::Value> argv[argc] = {info[0]};
-      v8::Local<v8::Function> cons = Nan::New(constructor());
-      info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked());
-    }
-  }
-
-  static NAN_METHOD(GetValue) {
-    MyFactoryObject* obj = ObjectWrap::Unwrap<MyFactoryObject>(info.Holder());
-    info.GetReturnValue().Set(obj->value_);
-  }
-
-  static inline Nan::Persistent<v8::Function> & constructor() {
-    static Nan::Persistent<v8::Function> my_constructor;
-    return my_constructor;
-  }
-
-  double value_;
-};
-
-NAN_MODULE_INIT(Init) {
-  MyFactoryObject::Init(target);
-  Nan::Set(target,
-    Nan::New<v8::String>("newFactoryObjectInstance").ToLocalChecked(),
-    Nan::GetFunction(
-      Nan::New<v8::FunctionTemplate>(MyFactoryObject::NewInstance)).ToLocalChecked()
-  );
-}
-
-NODE_MODULE(wrappedobjectfactory, Init)
-```
-
-To use in Javascript:
-
-```Javascript
-var wrappedobjectfactory = require('bindings')('wrappedobjectfactory');
-
-var obj = wrappedobjectfactory.newFactoryObjectInstance(10);
-console.log('Should be 10: ' + obj.getValue());
-```
-
-#### Passing wrapped objects around
-
-Use the `MyFactoryObject` class above along with the following:
-
-```c++
-static NAN_METHOD(Sum) {
-  Nan::MaybeLocal<v8::Object> maybe1 = Nan::To<v8::Object>(info[0]);
-  Nan::MaybeLocal<v8::Object> maybe2 = Nan::To<v8::Object>(info[1]);
-
-  // Quick check:
-  if (maybe1.IsEmpty() || maybe2.IsEmpty()) {
-    // return value is undefined by default
-    return;
-  }
-
-  MyFactoryObject* obj1 =
-    Nan::ObjectWrap::Unwrap<MyFactoryObject>(maybe1.ToLocalChecked());
-  MyFactoryObject* obj2 =
-    Nan::ObjectWrap::Unwrap<MyFactoryObject>(maybe2.ToLocalChecked());
-
-  info.GetReturnValue().Set(Nan::New<v8::Number>(obj1->value() + obj2->value()));
-}
-
-NAN_MODULE_INIT(Init) {
-  MyFactoryObject::Init(target);
-  Nan::Set(target,
-    Nan::New<v8::String>("newFactoryObjectInstance").ToLocalChecked(),
-    Nan::GetFunction(
-      Nan::New<v8::FunctionTemplate>(MyFactoryObject::NewInstance)).ToLocalChecked()
-  );
-  Nan::Set(target,
-    Nan::New<v8::String>("sum").ToLocalChecked(),
-    Nan::GetFunction(Nan::New<v8::FunctionTemplate>(Sum)).ToLocalChecked()
-  );
-}
-
-NODE_MODULE(myaddon, Init)
-```
-
-To use in Javascript:
-
-```Javascript
-var myaddon = require('bindings')('myaddon');
-
-var obj1 = myaddon.newFactoryObjectInstance(5);
-var obj2 = myaddon.newFactoryObjectInstance(10);
-console.log('sum of object values: ' + myaddon.sum(obj1, obj2));
-```

+ 0 - 296
node_modules.bak/nan/doc/persistent.md

@@ -1,296 +0,0 @@
-## Persistent references
-
-An object reference that is independent of any `HandleScope` is a _persistent_ reference. Where a `Local` handle only lives as long as the `HandleScope` in which it was allocated, a `Persistent` handle remains valid until it is explicitly disposed.
-
-Due to the evolution of the V8 API, it is necessary for NAN to provide a wrapper implementation of the `Persistent` classes to supply compatibility across the V8 versions supported.
-
- - <a href="#api_nan_persistent_base"><b><code>Nan::PersistentBase & v8::PersistentBase</code></b></a>
- - <a href="#api_nan_non_copyable_persistent_traits"><b><code>Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits</code></b></a>
- - <a href="#api_nan_copyable_persistent_traits"><b><code>Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits</code></b></a>
- - <a href="#api_nan_persistent"><b><code>Nan::Persistent</code></b></a>
- - <a href="#api_nan_global"><b><code>Nan::Global</code></b></a>
- - <a href="#api_nan_weak_callback_info"><b><code>Nan::WeakCallbackInfo</code></b></a>
- - <a href="#api_nan_weak_callback_type"><b><code>Nan::WeakCallbackType</code></b></a>
-
-Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://developers.google.com/v8/embed#handles).
-
-<a name="api_nan_persistent_base"></a>
-### Nan::PersistentBase & v8::PersistentBase
-
-A persistent handle contains a reference to a storage cell in V8 which holds an object value and which is updated by the garbage collector whenever the object is moved. A new storage cell can be created using the constructor or `Nan::PersistentBase::Reset()`. Existing handles can be disposed using an argument-less `Nan::PersistentBase::Reset()`.
-
-Definition:
-
-_(note: this is implemented as `Nan::PersistentBase` for older versions of V8 and the native `v8::PersistentBase` is used for newer versions of V8)_
-
-```c++
-template<typename T> class PersistentBase {
- public:
-  /**
-   * If non-empty, destroy the underlying storage cell
-   */
-  void Reset();
-
-  /**
-   * If non-empty, destroy the underlying storage cell and create a new one with
-   * the contents of another if it is also non-empty
-   */
-  template<typename S> void Reset(const v8::Local<S> &other);
-
-  /**
-   * If non-empty, destroy the underlying storage cell and create a new one with
-   * the contents of another if it is also non-empty
-   */
-  template<typename S> void Reset(const PersistentBase<S> &other);
-
-  /** Returns true if the handle is empty. */
-  bool IsEmpty() const;
-
-  /**
-   * If non-empty, destroy the underlying storage cell
-   * IsEmpty() will return true after this call.
-   */
-  void Empty();
-
-  template<typename S> bool operator==(const PersistentBase<S> &that);
-
-  template<typename S> bool operator==(const v8::Local<S> &that);
-
-  template<typename S> bool operator!=(const PersistentBase<S> &that);
-
-  template<typename S> bool operator!=(const v8::Local<S> &that);
-
-   /**
-   *  Install a finalization callback on this object.
-   *  NOTE: There is no guarantee as to *when* or even *if* the callback is
-   *  invoked. The invocation is performed solely on a best effort basis.
-   *  As always, GC-based finalization should *not* be relied upon for any
-   *  critical form of resource management! At the moment you can either
-   *  specify a parameter for the callback or the location of two internal
-   *  fields in the dying object.
-   */
-  template<typename P>
-  void SetWeak(P *parameter,
-               typename WeakCallbackInfo<P>::Callback callback,
-               WeakCallbackType type);
-
-  void ClearWeak();
-
-  /**
-   * Marks the reference to this object independent. Garbage collector is free
-   * to ignore any object groups containing this object. Weak callback for an
-   * independent handle should not assume that it will be preceded by a global
-   * GC prologue callback or followed by a global GC epilogue callback.
-   */
-  void MarkIndependent() const;
-
-  bool IsIndependent() const;
-
-  /** Checks if the handle holds the only reference to an object. */
-  bool IsNearDeath() const;
-
-  /** Returns true if the handle's reference is weak.  */
-  bool IsWeak() const
-};
-```
-
-See the V8 documentation for [`PersistentBase`](https://v8docs.nodesource.com/node-8.16/d4/dca/classv8_1_1_persistent_base.html) for further information.
-
-**Tip:** To get a `v8::Local` reference to the original object back from a `PersistentBase` or `Persistent` object:
-
-```c++
-v8::Local<v8::Object> object = Nan::New(persistent);
-```
-
-<a name="api_nan_non_copyable_persistent_traits"></a>
-### Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits
-
-Default traits for `Nan::Persistent`. This class does not allow use of the a copy constructor or assignment operator. At present `kResetInDestructor` is not set, but that will change in a future version.
-
-Definition:
-
-_(note: this is implemented as `Nan::NonCopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_
-
-```c++
-template<typename T> class NonCopyablePersistentTraits {
- public:
-  typedef Persistent<T, NonCopyablePersistentTraits<T> > NonCopyablePersistent;
-
-  static const bool kResetInDestructor = false;
-
-  template<typename S, typename M>
-  static void Copy(const Persistent<S, M> &source,
-                   NonCopyablePersistent *dest);
-
-  template<typename O> static void Uncompilable();
-};
-```
-
-See the V8 documentation for [`NonCopyablePersistentTraits`](https://v8docs.nodesource.com/node-8.16/de/d73/classv8_1_1_non_copyable_persistent_traits.html) for further information.
-
-<a name="api_nan_copyable_persistent_traits"></a>
-### Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits
-
-A helper class of traits to allow copying and assignment of `Persistent`. This will clone the contents of storage cell, but not any of the flags, etc..
-
-Definition:
-
-_(note: this is implemented as `Nan::CopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_
-
-```c++
-template<typename T>
-class CopyablePersistentTraits {
- public:
-  typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
-
-  static const bool kResetInDestructor = true;
-
-  template<typename S, typename M>
-  static void Copy(const Persistent<S, M> &source,
-                   CopyablePersistent *dest);
-};
-```
-
-See the V8 documentation for [`CopyablePersistentTraits`](https://v8docs.nodesource.com/node-8.16/da/d5c/structv8_1_1_copyable_persistent_traits.html) for further information.
-
-<a name="api_nan_persistent"></a>
-### Nan::Persistent
-
-A type of `PersistentBase` which allows copy and assignment. Copy, assignment and destructor behavior is controlled by the traits class `M`.
-
-Definition:
-
-```c++
-template<typename T, typename M = NonCopyablePersistentTraits<T> >
-class Persistent;
-
-template<typename T, typename M> class Persistent : public PersistentBase<T> {
- public:
- /**
-  * A Persistent with no storage cell.
-  */
-  Persistent();
-
-  /**
-   * Construct a Persistent from a v8::Local. When the v8::Local is non-empty, a
-   * new storage cell is created pointing to the same object, and no flags are
-   * set.
-   */
-  template<typename S> Persistent(v8::Local<S> that);
-
-  /**
-   * Construct a Persistent from a Persistent. When the Persistent is non-empty,
-   * a new storage cell is created pointing to the same object, and no flags are
-   * set.
-   */
-  Persistent(const Persistent &that);
-
-  /**
-   * The copy constructors and assignment operator create a Persistent exactly
-   * as the Persistent constructor, but the Copy function from the traits class
-   * is called, allowing the setting of flags based on the copied Persistent.
-   */
-  Persistent &operator=(const Persistent &that);
-
-  template <typename S, typename M2>
-  Persistent &operator=(const Persistent<S, M2> &that);
-
-  /**
-   * The destructor will dispose the Persistent based on the kResetInDestructor
-   * flags in the traits class.  Since not calling dispose can result in a
-   * memory leak, it is recommended to always set this flag.
-   */
-  ~Persistent();
-};
-```
-
-See the V8 documentation for [`Persistent`](https://v8docs.nodesource.com/node-8.16/d2/d78/classv8_1_1_persistent.html) for further information.
-
-<a name="api_nan_global"></a>
-### Nan::Global
-
-A type of `PersistentBase` which has move semantics.
-
-```c++
-template<typename T> class Global : public PersistentBase<T> {
- public:
-  /**
-   * A Global with no storage cell.
-   */
-  Global();
-
-  /**
-   * Construct a Global from a v8::Local. When the v8::Local is non-empty, a new
-   * storage cell is created pointing to the same object, and no flags are set.
-   */
-  template<typename S> Global(v8::Local<S> that);
-  /**
-   * Construct a Global from a PersistentBase. When the Persistent is non-empty,
-   * a new storage cell is created pointing to the same object, and no flags are
-   * set.
-   */
-  template<typename S> Global(const PersistentBase<S> &that);
-
-  /**
-   * Pass allows returning globals from functions, etc.
-   */
-  Global Pass();
-};
-```
-
-See the V8 documentation for [`Global`](https://v8docs.nodesource.com/node-8.16/d5/d40/classv8_1_1_global.html) for further information.
-
-<a name="api_nan_weak_callback_info"></a>
-### Nan::WeakCallbackInfo
-
-`Nan::WeakCallbackInfo` is used as an argument when setting a persistent reference as weak. You may need to free any external resources attached to the object. It is a mirror of `v8:WeakCallbackInfo` as found in newer versions of V8.
-
-Definition:
-
-```c++
-template<typename T> class WeakCallbackInfo {
- public:
-  typedef void (*Callback)(const WeakCallbackInfo<T>& data);
-
-  v8::Isolate *GetIsolate() const;
-
-  /**
-   * Get the parameter that was associated with the weak handle.
-   */
-  T *GetParameter() const;
-
-  /**
-   * Get pointer from internal field, index can be 0 or 1.
-   */
-  void *GetInternalField(int index) const;
-};
-```
-
-Example usage:
-
-```c++
-void weakCallback(const WeakCallbackInfo<int> &data) {
-  int *parameter = data.GetParameter();
-  delete parameter;
-}
-
-Persistent<v8::Object> obj;
-int *data = new int(0);
-obj.SetWeak(data, callback, WeakCallbackType::kParameter);
-```
-
-See the V8 documentation for [`WeakCallbackInfo`](https://v8docs.nodesource.com/node-8.16/d8/d06/classv8_1_1_weak_callback_info.html) for further information.
-
-<a name="api_nan_weak_callback_type"></a>
-### Nan::WeakCallbackType
-
-Represents the type of a weak callback.
-A weak callback of type `kParameter` makes the supplied parameter to `Nan::PersistentBase::SetWeak` available through `WeakCallbackInfo::GetParameter`.
-A weak callback of type `kInternalFields` uses up to two internal fields at indices 0 and 1 on the `Nan::PersistentBase<v8::Object>` being made weak.
-Note that only `v8::Object`s and derivatives can have internal fields.
-
-Definition:
-
-```c++
-enum class WeakCallbackType { kParameter, kInternalFields };
-```

+ 0 - 73
node_modules.bak/nan/doc/scopes.md

@@ -1,73 +0,0 @@
-## Scopes
-
-A _local handle_ is a pointer to an object. All V8 objects are accessed using handles, they are necessary because of the way the V8 garbage collector works.
-
-A handle scope can be thought of as a container for any number of handles. When you've finished with your handles, instead of deleting each one individually you can simply delete their scope.
-
-The creation of `HandleScope` objects is different across the supported versions of V8. Therefore, NAN provides its own implementations that can be used safely across these.
-
- - <a href="#api_nan_handle_scope"><b><code>Nan::HandleScope</code></b></a>
- - <a href="#api_nan_escapable_handle_scope"><b><code>Nan::EscapableHandleScope</code></b></a>
-
-Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://github.com/v8/v8/wiki/Embedder%27s%20Guide#handles-and-garbage-collection).
-
-<a name="api_nan_handle_scope"></a>
-### Nan::HandleScope
-
-A simple wrapper around [`v8::HandleScope`](https://v8docs.nodesource.com/node-8.16/d3/d95/classv8_1_1_handle_scope.html).
-
-Definition:
-
-```c++
-class Nan::HandleScope {
- public:
-  Nan::HandleScope();
-  static int NumberOfHandles();
-};
-```
-
-Allocate a new `Nan::HandleScope` whenever you are creating new V8 JavaScript objects. Note that an implicit `HandleScope` is created for you on JavaScript-accessible methods so you do not need to insert one yourself.
-
-Example:
-
-```c++
-// new object is created, it needs a new scope:
-void Pointless() {
-  Nan::HandleScope scope;
-  v8::Local<v8::Object> obj = Nan::New<v8::Object>();
-}
-
-// JavaScript-accessible method already has a HandleScope
-NAN_METHOD(Pointless2) {
-  v8::Local<v8::Object> obj = Nan::New<v8::Object>();
-}
-```
-
-<a name="api_nan_escapable_handle_scope"></a>
-### Nan::EscapableHandleScope
-
-Similar to [`Nan::HandleScope`](#api_nan_handle_scope) but should be used in cases where a function needs to return a V8 JavaScript type that has been created within it.
-
-Definition:
-
-```c++
-class Nan::EscapableHandleScope {
- public:
-  Nan::EscapableHandleScope();
-  static int NumberOfHandles();
-  template<typename T> v8::Local<T> Escape(v8::Local<T> value);
-}
-```
-
-Use `Escape(value)` to return the object.
-
-Example:
-
-```c++
-v8::Local<v8::Object> EmptyObj() {
-  Nan::EscapableHandleScope scope;
-  v8::Local<v8::Object> obj = Nan::New<v8::Object>();
-  return scope.Escape(obj);
-}
-```
-

+ 0 - 38
node_modules.bak/nan/doc/script.md

@@ -1,38 +0,0 @@
-## Script
-
-NAN provides a `v8::Script` helpers as the API has changed over the supported versions of V8.
-
- - <a href="#api_nan_compile_script"><b><code>Nan::CompileScript()</code></b></a>
- - <a href="#api_nan_run_script"><b><code>Nan::RunScript()</code></b></a>
-
-
-<a name="api_nan_compile_script"></a>
-### Nan::CompileScript()
-
-A wrapper around [`v8::ScriptCompiler::Compile()`](https://v8docs.nodesource.com/node-8.16/da/da5/classv8_1_1_script_compiler.html#a93f5072a0db55d881b969e9fc98e564b).
-
-Note that `Nan::BoundScript` is an alias for `v8::Script`.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<Nan::BoundScript> Nan::CompileScript(
-    v8::Local<v8::String> s,
-    const v8::ScriptOrigin& origin);
-Nan::MaybeLocal<Nan::BoundScript> Nan::CompileScript(v8::Local<v8::String> s);
-```
-
-
-<a name="api_nan_run_script"></a>
-### Nan::RunScript()
-
-Calls `script->Run()` or `script->BindToCurrentContext()->Run(Nan::GetCurrentContext())`.
-
-Note that `Nan::BoundScript` is an alias for `v8::Script` and `Nan::UnboundScript` is an alias for `v8::UnboundScript` where available and `v8::Script` on older versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::RunScript(v8::Local<Nan::UnboundScript> script)
-Nan::MaybeLocal<v8::Value> Nan::RunScript(v8::Local<Nan::BoundScript> script) 
-```

+ 0 - 62
node_modules.bak/nan/doc/string_bytes.md

@@ -1,62 +0,0 @@
-## Strings & Bytes
-
-Miscellaneous string & byte encoding and decoding functionality provided for compatibility across supported versions of V8 and Node. Implemented by NAN to ensure that all encoding types are supported, even for older versions of Node where they are missing.
-
- - <a href="#api_nan_encoding"><b><code>Nan::Encoding</code></b></a>
- - <a href="#api_nan_encode"><b><code>Nan::Encode()</code></b></a>
- - <a href="#api_nan_decode_bytes"><b><code>Nan::DecodeBytes()</code></b></a>
- - <a href="#api_nan_decode_write"><b><code>Nan::DecodeWrite()</code></b></a>
-
-
-<a name="api_nan_encoding"></a>
-### Nan::Encoding
-
-An enum representing the supported encoding types. A copy of `node::encoding` that is consistent across versions of Node.
-
-Definition:
-
-```c++
-enum Nan::Encoding { ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER }
-```
-
-
-<a name="api_nan_encode"></a>
-### Nan::Encode()
-
-A wrapper around `node::Encode()` that provides a consistent implementation across supported versions of Node.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::Encode(const void *buf,
-                                 size_t len,
-                                 enum Nan::Encoding encoding = BINARY);
-```
-
-
-<a name="api_nan_decode_bytes"></a>
-### Nan::DecodeBytes()
-
-A wrapper around `node::DecodeBytes()` that provides a consistent implementation across supported versions of Node.
-
-Signature:
-
-```c++
-ssize_t Nan::DecodeBytes(v8::Local<v8::Value> val,
-                         enum Nan::Encoding encoding = BINARY);
-```
-
-
-<a name="api_nan_decode_write"></a>
-### Nan::DecodeWrite()
-
-A wrapper around `node::DecodeWrite()` that provides a consistent implementation across supported versions of Node.
-
-Signature:
-
-```c++
-ssize_t Nan::DecodeWrite(char *buf,
-                         size_t len,
-                         v8::Local<v8::Value> val,
-                         enum Nan::Encoding encoding = BINARY);
-```

+ 0 - 199
node_modules.bak/nan/doc/v8_internals.md

@@ -1,199 +0,0 @@
-## V8 internals
-
-The hooks to access V8 internals—including GC and statistics—are different across the supported versions of V8, therefore NAN provides its own hooks that call the appropriate V8 methods.
-
- - <a href="#api_nan_gc_callback"><b><code>NAN_GC_CALLBACK()</code></b></a>
- - <a href="#api_nan_add_gc_epilogue_callback"><b><code>Nan::AddGCEpilogueCallback()</code></b></a>
- - <a href="#api_nan_remove_gc_epilogue_callback"><b><code>Nan::RemoveGCEpilogueCallback()</code></b></a>
- - <a href="#api_nan_add_gc_prologue_callback"><b><code>Nan::AddGCPrologueCallback()</code></b></a>
- - <a href="#api_nan_remove_gc_prologue_callback"><b><code>Nan::RemoveGCPrologueCallback()</code></b></a>
- - <a href="#api_nan_get_heap_statistics"><b><code>Nan::GetHeapStatistics()</code></b></a>
- - <a href="#api_nan_set_counter_function"><b><code>Nan::SetCounterFunction()</code></b></a>
- - <a href="#api_nan_set_create_histogram_function"><b><code>Nan::SetCreateHistogramFunction()</code></b></a>
- - <a href="#api_nan_set_add_histogram_sample_function"><b><code>Nan::SetAddHistogramSampleFunction()</code></b></a>
- - <a href="#api_nan_idle_notification"><b><code>Nan::IdleNotification()</code></b></a>
- - <a href="#api_nan_low_memory_notification"><b><code>Nan::LowMemoryNotification()</code></b></a>
- - <a href="#api_nan_context_disposed_notification"><b><code>Nan::ContextDisposedNotification()</code></b></a>
- - <a href="#api_nan_get_internal_field_pointer"><b><code>Nan::GetInternalFieldPointer()</code></b></a>
- - <a href="#api_nan_set_internal_field_pointer"><b><code>Nan::SetInternalFieldPointer()</code></b></a>
- - <a href="#api_nan_adjust_external_memory"><b><code>Nan::AdjustExternalMemory()</code></b></a>
-
-
-<a name="api_nan_gc_callback"></a>
-### NAN_GC_CALLBACK(callbackname)
-
-Use `NAN_GC_CALLBACK` to declare your callbacks for `Nan::AddGCPrologueCallback()` and `Nan::AddGCEpilogueCallback()`. Your new method receives the arguments `v8::GCType type` and `v8::GCCallbackFlags flags`.
-
-```c++
-static Nan::Persistent<Function> callback;
-
-NAN_GC_CALLBACK(gcPrologueCallback) {
-  v8::Local<Value> argv[] = { Nan::New("prologue").ToLocalChecked() };
-  Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(callback), 1, argv);
-}
-
-NAN_METHOD(Hook) {
-  callback.Reset(To<Function>(args[0]).ToLocalChecked());
-  Nan::AddGCPrologueCallback(gcPrologueCallback);
-  info.GetReturnValue().Set(info.Holder());
-}
-```
-
-<a name="api_nan_add_gc_epilogue_callback"></a>
-### Nan::AddGCEpilogueCallback()
-
-Signature:
-
-```c++
-void Nan::AddGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback, v8::GCType gc_type_filter = v8::kGCTypeAll)
-```
-
-Calls V8's [`AddGCEpilogueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a580f976e4290cead62c2fc4dd396be3e).
-
-<a name="api_nan_remove_gc_epilogue_callback"></a>
-### Nan::RemoveGCEpilogueCallback()
-
-Signature:
-
-```c++
-void Nan::RemoveGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback)
-```
-
-Calls V8's [`RemoveGCEpilogueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#adca9294555a3908e9f23c7bb0f0f284c).
-
-<a name="api_nan_add_gc_prologue_callback"></a>
-### Nan::AddGCPrologueCallback()
-
-Signature:
-
-```c++
-void Nan::AddGCPrologueCallback(v8::Isolate::GCPrologueCallback, v8::GCType gc_type_filter callback)
-```
-
-Calls V8's [`AddGCPrologueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a6dbef303603ebdb03da6998794ea05b8).
-
-<a name="api_nan_remove_gc_prologue_callback"></a>
-### Nan::RemoveGCPrologueCallback()
-
-Signature:
-
-```c++
-void Nan::RemoveGCPrologueCallback(v8::Isolate::GCPrologueCallback callback)
-```
-
-Calls V8's [`RemoveGCPrologueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a5f72c7cda21415ce062bbe5c58abe09e).
-
-<a name="api_nan_get_heap_statistics"></a>
-### Nan::GetHeapStatistics()
-
-Signature:
-
-```c++
-void Nan::GetHeapStatistics(v8::HeapStatistics *heap_statistics)
-```
-
-Calls V8's [`GetHeapStatistics()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a5593ac74687b713095c38987e5950b34).
-
-<a name="api_nan_set_counter_function"></a>
-### Nan::SetCounterFunction()
-
-Signature:
-
-```c++
-void Nan::SetCounterFunction(v8::CounterLookupCallback cb)
-```
-
-Calls V8's [`SetCounterFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a045d7754e62fa0ec72ae6c259b29af94).
-
-<a name="api_nan_set_create_histogram_function"></a>
-### Nan::SetCreateHistogramFunction()
-
-Signature:
-
-```c++
-void Nan::SetCreateHistogramFunction(v8::CreateHistogramCallback cb) 
-```
-
-Calls V8's [`SetCreateHistogramFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a542d67e85089cb3f92aadf032f99e732).
-
-<a name="api_nan_set_add_histogram_sample_function"></a>
-### Nan::SetAddHistogramSampleFunction()
-
-Signature:
-
-```c++
-void Nan::SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) 
-```
-
-Calls V8's [`SetAddHistogramSampleFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#aeb420b690bc2c216882d6fdd00ddd3ea).
-
-<a name="api_nan_idle_notification"></a>
-### Nan::IdleNotification()
-
-Signature:
-
-```c++
-bool Nan::IdleNotification(int idle_time_in_ms)
-```
-
-Calls V8's [`IdleNotification()` or `IdleNotificationDeadline()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad6a2a02657f5425ad460060652a5a118) depending on V8 version.
-
-<a name="api_nan_low_memory_notification"></a>
-### Nan::LowMemoryNotification()
-
-Signature:
-
-```c++
-void Nan::LowMemoryNotification() 
-```
-
-Calls V8's [`LowMemoryNotification()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a24647f61d6b41f69668094bdcd6ea91f).
-
-<a name="api_nan_context_disposed_notification"></a>
-### Nan::ContextDisposedNotification()
-
-Signature:
-
-```c++
-void Nan::ContextDisposedNotification()
-```
-
-Calls V8's [`ContextDisposedNotification()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad7f5dc559866343fe6cd8db1f134d48b).
-
-<a name="api_nan_get_internal_field_pointer"></a>
-### Nan::GetInternalFieldPointer()
-
-Gets a pointer to the internal field with at `index` from a V8 `Object` handle.
-
-Signature:
-
-```c++
-void* Nan::GetInternalFieldPointer(v8::Local<v8::Object> object, int index) 
-```
-
-Calls the Object's [`GetAlignedPointerFromInternalField()` or `GetPointerFromInternalField()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a580ea84afb26c005d6762eeb9e3c308f) depending on the version of V8.
-
-<a name="api_nan_set_internal_field_pointer"></a>
-### Nan::SetInternalFieldPointer()
-
-Sets the value of the internal field at `index` on a V8 `Object` handle.
-
-Signature:
-
-```c++
-void Nan::SetInternalFieldPointer(v8::Local<v8::Object> object, int index, void* value)
-```
-
-Calls the Object's [`SetAlignedPointerInInternalField()` or `SetPointerInInternalField()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab3c57184263cf29963ef0017bec82281) depending on the version of V8.
-
-<a name="api_nan_adjust_external_memory"></a>
-### Nan::AdjustExternalMemory()
-
-Signature:
-
-```c++
-int Nan::AdjustExternalMemory(int bytesChange)
-```
-
-Calls V8's [`AdjustAmountOfExternalAllocatedMemory()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ae1a59cac60409d3922582c4af675473e).
-

+ 0 - 85
node_modules.bak/nan/doc/v8_misc.md

@@ -1,85 +0,0 @@
-## Miscellaneous V8 Helpers
-
- - <a href="#api_nan_utf8_string"><b><code>Nan::Utf8String</code></b></a>
- - <a href="#api_nan_get_current_context"><b><code>Nan::GetCurrentContext()</code></b></a>
- - <a href="#api_nan_set_isolate_data"><b><code>Nan::SetIsolateData()</code></b></a>
- - <a href="#api_nan_get_isolate_data"><b><code>Nan::GetIsolateData()</code></b></a>
- - <a href="#api_nan_typedarray_contents"><b><code>Nan::TypedArrayContents</code></b></a>
-
-
-<a name="api_nan_utf8_string"></a>
-### Nan::Utf8String
-
-Converts an object to a UTF-8-encoded character array. If conversion to a string fails (e.g. due to an exception in the toString() method of the object) then the length() method returns 0 and the * operator returns NULL. The underlying memory used for this object is managed by the object.
-
-An implementation of [`v8::String::Utf8Value`](https://v8docs.nodesource.com/node-8.16/d4/d1b/classv8_1_1_string_1_1_utf8_value.html) that is consistent across all supported versions of V8.
-
-Definition:
-
-```c++
-class Nan::Utf8String {
- public:
-  Nan::Utf8String(v8::Local<v8::Value> from);
-
-  int length() const;
-
-  char* operator*();
-  const char* operator*() const;
-};
-```
-
-<a name="api_nan_get_current_context"></a>
-### Nan::GetCurrentContext()
-
-A call to [`v8::Isolate::GetCurrent()->GetCurrentContext()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a81c7a1ed7001ae2a65e89107f75fd053) that works across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Context> Nan::GetCurrentContext()
-```
-
-<a name="api_nan_set_isolate_data"></a>
-### Nan::SetIsolateData()
-
-A helper to provide a consistent API to [`v8::Isolate#SetData()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a7acadfe7965997e9c386a05f098fbe36).
-
-Signature:
-
-```c++
-void Nan::SetIsolateData(v8::Isolate *isolate, T *data)
-```
-
-
-<a name="api_nan_get_isolate_data"></a>
-### Nan::GetIsolateData()
-
-A helper to provide a consistent API to [`v8::Isolate#GetData()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#aabd223436bc1100a787dadaa024c6257).
-
-Signature:
-
-```c++
-T *Nan::GetIsolateData(v8::Isolate *isolate)
-```
-
-<a name="api_nan_typedarray_contents"></a>
-### Nan::TypedArrayContents<T>
-
-A helper class for accessing the contents of an ArrayBufferView (aka a typedarray) from C++.  If the input array is not a valid typedarray, then the data pointer of TypedArrayContents will default to `NULL` and the length will be 0.  If the data pointer is not compatible with the alignment requirements of type, an assertion error will fail.
-
-Note that you must store a reference to the `array` object while you are accessing its contents.
-
-Definition:
-
-```c++
-template<typename T>
-class Nan::TypedArrayContents {
- public:
-  TypedArrayContents(v8::Local<Value> array);
-
-  size_t length() const;
-
-  T* const operator*();
-  const T* const operator*() const;
-};
-```

+ 0 - 1
node_modules.bak/nan/include_dirs.js

@@ -1 +0,0 @@
-console.log(require('path').relative('.', __dirname));

File diff suppressed because it is too large
+ 0 - 2898
node_modules.bak/nan/nan.h


+ 0 - 88
node_modules.bak/nan/nan_callbacks.h

@@ -1,88 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CALLBACKS_H_
-#define NAN_CALLBACKS_H_
-
-template<typename T> class FunctionCallbackInfo;
-template<typename T> class PropertyCallbackInfo;
-template<typename T> class Global;
-
-typedef void(*FunctionCallback)(const FunctionCallbackInfo<v8::Value>&);
-typedef void(*GetterCallback)
-    (v8::Local<v8::String>, const PropertyCallbackInfo<v8::Value>&);
-typedef void(*SetterCallback)(
-    v8::Local<v8::String>,
-    v8::Local<v8::Value>,
-    const PropertyCallbackInfo<void>&);
-typedef void(*PropertyGetterCallback)(
-    v8::Local<v8::String>,
-    const PropertyCallbackInfo<v8::Value>&);
-typedef void(*PropertySetterCallback)(
-    v8::Local<v8::String>,
-    v8::Local<v8::Value>,
-    const PropertyCallbackInfo<v8::Value>&);
-typedef void(*PropertyEnumeratorCallback)
-    (const PropertyCallbackInfo<v8::Array>&);
-typedef void(*PropertyDeleterCallback)(
-    v8::Local<v8::String>,
-    const PropertyCallbackInfo<v8::Boolean>&);
-typedef void(*PropertyQueryCallback)(
-    v8::Local<v8::String>,
-    const PropertyCallbackInfo<v8::Integer>&);
-typedef void(*IndexGetterCallback)(
-    uint32_t,
-    const PropertyCallbackInfo<v8::Value>&);
-typedef void(*IndexSetterCallback)(
-    uint32_t,
-    v8::Local<v8::Value>,
-    const PropertyCallbackInfo<v8::Value>&);
-typedef void(*IndexEnumeratorCallback)
-    (const PropertyCallbackInfo<v8::Array>&);
-typedef void(*IndexDeleterCallback)(
-    uint32_t,
-    const PropertyCallbackInfo<v8::Boolean>&);
-typedef void(*IndexQueryCallback)(
-    uint32_t,
-    const PropertyCallbackInfo<v8::Integer>&);
-
-namespace imp {
-typedef v8::Local<v8::AccessorSignature> Sig;
-
-static const int kDataIndex =                    0;
-
-static const int kFunctionIndex =                1;
-static const int kFunctionFieldCount =           2;
-
-static const int kGetterIndex =                  1;
-static const int kSetterIndex =                  2;
-static const int kAccessorFieldCount =           3;
-
-static const int kPropertyGetterIndex =          1;
-static const int kPropertySetterIndex =          2;
-static const int kPropertyEnumeratorIndex =      3;
-static const int kPropertyDeleterIndex =         4;
-static const int kPropertyQueryIndex =           5;
-static const int kPropertyFieldCount =           6;
-
-static const int kIndexPropertyGetterIndex =     1;
-static const int kIndexPropertySetterIndex =     2;
-static const int kIndexPropertyEnumeratorIndex = 3;
-static const int kIndexPropertyDeleterIndex =    4;
-static const int kIndexPropertyQueryIndex =      5;
-static const int kIndexPropertyFieldCount =      6;
-
-}  // end of namespace imp
-
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-# include "nan_callbacks_12_inl.h"  // NOLINT(build/include)
-#else
-# include "nan_callbacks_pre_12_inl.h"  // NOLINT(build/include)
-#endif
-
-#endif  // NAN_CALLBACKS_H_

+ 0 - 514
node_modules.bak/nan/nan_callbacks_12_inl.h

@@ -1,514 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CALLBACKS_12_INL_H_
-#define NAN_CALLBACKS_12_INL_H_
-
-template<typename T>
-class ReturnValue {
-  v8::ReturnValue<T> value_;
-
- public:
-  template <class S>
-  explicit inline ReturnValue(const v8::ReturnValue<S> &value) :
-      value_(value) {}
-  template <class S>
-  explicit inline ReturnValue(const ReturnValue<S>& that)
-      : value_(that.value_) {
-    TYPE_CHECK(T, S);
-  }
-
-  // Handle setters
-  template <typename S> inline void Set(const v8::Local<S> &handle) {
-    TYPE_CHECK(T, S);
-    value_.Set(handle);
-  }
-
-  template <typename S> inline void Set(const Global<S> &handle) {
-    TYPE_CHECK(T, S);
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) &&                       \
-  (V8_MINOR_VERSION > 5 || (V8_MINOR_VERSION == 5 &&                           \
-  defined(V8_BUILD_NUMBER) && V8_BUILD_NUMBER >= 8))))
-    value_.Set(handle);
-#else
-    value_.Set(*reinterpret_cast<const v8::Persistent<S>*>(&handle));
-    const_cast<Global<S> &>(handle).Reset();
-#endif
-  }
-
-  // Fast primitive setters
-  inline void Set(bool value) {
-    TYPE_CHECK(T, v8::Boolean);
-    value_.Set(value);
-  }
-
-  inline void Set(double i) {
-    TYPE_CHECK(T, v8::Number);
-    value_.Set(i);
-  }
-
-  inline void Set(int32_t i) {
-    TYPE_CHECK(T, v8::Integer);
-    value_.Set(i);
-  }
-
-  inline void Set(uint32_t i) {
-    TYPE_CHECK(T, v8::Integer);
-    value_.Set(i);
-  }
-
-  // Fast JS primitive setters
-  inline void SetNull() {
-    TYPE_CHECK(T, v8::Primitive);
-    value_.SetNull();
-  }
-
-  inline void SetUndefined() {
-    TYPE_CHECK(T, v8::Primitive);
-    value_.SetUndefined();
-  }
-
-  inline void SetEmptyString() {
-    TYPE_CHECK(T, v8::String);
-    value_.SetEmptyString();
-  }
-
-  // Convenience getter for isolate
-  inline v8::Isolate *GetIsolate() const {
-    return value_.GetIsolate();
-  }
-
-  // Pointer setter: Uncompilable to prevent inadvertent misuse.
-  template<typename S>
-  inline void Set(S *whatever) { TYPE_CHECK(S*, v8::Primitive); }
-};
-
-template<typename T>
-class FunctionCallbackInfo {
-  const v8::FunctionCallbackInfo<T> &info_;
-  const v8::Local<v8::Value> data_;
-
- public:
-  explicit inline FunctionCallbackInfo(
-      const v8::FunctionCallbackInfo<T> &info
-    , v8::Local<v8::Value> data) :
-          info_(info)
-        , data_(data) {}
-
-  inline ReturnValue<T> GetReturnValue() const {
-    return ReturnValue<T>(info_.GetReturnValue());
-  }
-
-#if NODE_MAJOR_VERSION < 10
-  inline v8::Local<v8::Function> Callee() const { return info_.Callee(); }
-#endif
-  inline v8::Local<v8::Value> Data() const { return data_; }
-  inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
-  inline bool IsConstructCall() const { return info_.IsConstructCall(); }
-  inline int Length() const { return info_.Length(); }
-  inline v8::Local<v8::Value> operator[](int i) const { return info_[i]; }
-  inline v8::Local<v8::Object> This() const { return info_.This(); }
-  inline v8::Isolate *GetIsolate() const { return info_.GetIsolate(); }
-
-
- protected:
-  static const int kHolderIndex = 0;
-  static const int kIsolateIndex = 1;
-  static const int kReturnValueDefaultValueIndex = 2;
-  static const int kReturnValueIndex = 3;
-  static const int kDataIndex = 4;
-  static const int kCalleeIndex = 5;
-  static const int kContextSaveIndex = 6;
-  static const int kArgsLength = 7;
-
- private:
-  NAN_DISALLOW_ASSIGN_COPY_MOVE(FunctionCallbackInfo)
-};
-
-template<typename T>
-class PropertyCallbackInfo {
-  const v8::PropertyCallbackInfo<T> &info_;
-  const v8::Local<v8::Value> data_;
-
- public:
-  explicit inline PropertyCallbackInfo(
-      const v8::PropertyCallbackInfo<T> &info
-    , const v8::Local<v8::Value> data) :
-          info_(info)
-        , data_(data) {}
-
-  inline v8::Isolate* GetIsolate() const { return info_.GetIsolate(); }
-  inline v8::Local<v8::Value> Data() const { return data_; }
-  inline v8::Local<v8::Object> This() const { return info_.This(); }
-  inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
-  inline ReturnValue<T> GetReturnValue() const {
-    return ReturnValue<T>(info_.GetReturnValue());
-  }
-
- protected:
-  static const int kHolderIndex = 0;
-  static const int kIsolateIndex = 1;
-  static const int kReturnValueDefaultValueIndex = 2;
-  static const int kReturnValueIndex = 3;
-  static const int kDataIndex = 4;
-  static const int kThisIndex = 5;
-  static const int kArgsLength = 6;
-
- private:
-  NAN_DISALLOW_ASSIGN_COPY_MOVE(PropertyCallbackInfo)
-};
-
-namespace imp {
-static
-void FunctionCallbackWrapper(const v8::FunctionCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  FunctionCallback callback = reinterpret_cast<FunctionCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kFunctionIndex).As<v8::External>()->Value()));
-  FunctionCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  callback(cbinfo);
-}
-
-typedef void (*NativeFunction)(const v8::FunctionCallbackInfo<v8::Value> &);
-
-#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-static
-void GetterCallbackWrapper(
-    v8::Local<v8::Name> property
-  , const v8::PropertyCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  GetterCallback callback = reinterpret_cast<GetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kGetterIndex).As<v8::External>()->Value()));
-  callback(property.As<v8::String>(), cbinfo);
-}
-
-typedef void (*NativeGetter)
-    (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void SetterCallbackWrapper(
-    v8::Local<v8::Name> property
-  , v8::Local<v8::Value> value
-  , const v8::PropertyCallbackInfo<void> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<void>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  SetterCallback callback = reinterpret_cast<SetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kSetterIndex).As<v8::External>()->Value()));
-  callback(property.As<v8::String>(), value, cbinfo);
-}
-
-typedef void (*NativeSetter)(
-    v8::Local<v8::Name>
-  , v8::Local<v8::Value>
-  , const v8::PropertyCallbackInfo<void> &);
-#else
-static
-void GetterCallbackWrapper(
-    v8::Local<v8::String> property
-  , const v8::PropertyCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  GetterCallback callback = reinterpret_cast<GetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kGetterIndex).As<v8::External>()->Value()));
-  callback(property, cbinfo);
-}
-
-typedef void (*NativeGetter)
-    (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void SetterCallbackWrapper(
-    v8::Local<v8::String> property
-  , v8::Local<v8::Value> value
-  , const v8::PropertyCallbackInfo<void> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<void>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  SetterCallback callback = reinterpret_cast<SetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kSetterIndex).As<v8::External>()->Value()));
-  callback(property, value, cbinfo);
-}
-
-typedef void (*NativeSetter)(
-    v8::Local<v8::String>
-  , v8::Local<v8::Value>
-  , const v8::PropertyCallbackInfo<void> &);
-#endif
-
-#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-static
-void PropertyGetterCallbackWrapper(
-    v8::Local<v8::Name> property
-  , const v8::PropertyCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyGetterCallback callback = reinterpret_cast<PropertyGetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyGetterIndex)
-              .As<v8::External>()->Value()));
-  callback(property.As<v8::String>(), cbinfo);
-}
-
-typedef void (*NativePropertyGetter)
-    (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void PropertySetterCallbackWrapper(
-    v8::Local<v8::Name> property
-  , v8::Local<v8::Value> value
-  , const v8::PropertyCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertySetterCallback callback = reinterpret_cast<PropertySetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertySetterIndex)
-              .As<v8::External>()->Value()));
-  callback(property.As<v8::String>(), value, cbinfo);
-}
-
-typedef void (*NativePropertySetter)(
-    v8::Local<v8::Name>
-  , v8::Local<v8::Value>
-  , const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void PropertyEnumeratorCallbackWrapper(
-    const v8::PropertyCallbackInfo<v8::Array> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Array>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyEnumeratorCallback callback =
-      reinterpret_cast<PropertyEnumeratorCallback>(reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyEnumeratorIndex)
-              .As<v8::External>()->Value()));
-  callback(cbinfo);
-}
-
-typedef void (*NativePropertyEnumerator)
-    (const v8::PropertyCallbackInfo<v8::Array> &);
-
-static
-void PropertyDeleterCallbackWrapper(
-    v8::Local<v8::Name> property
-  , const v8::PropertyCallbackInfo<v8::Boolean> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Boolean>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyDeleterCallback callback = reinterpret_cast<PropertyDeleterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyDeleterIndex)
-              .As<v8::External>()->Value()));
-  callback(property.As<v8::String>(), cbinfo);
-}
-
-typedef void (NativePropertyDeleter)
-    (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Boolean> &);
-
-static
-void PropertyQueryCallbackWrapper(
-    v8::Local<v8::Name> property
-  , const v8::PropertyCallbackInfo<v8::Integer> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Integer>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyQueryIndex)
-              .As<v8::External>()->Value()));
-  callback(property.As<v8::String>(), cbinfo);
-}
-
-typedef void (*NativePropertyQuery)
-    (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Integer> &);
-#else
-static
-void PropertyGetterCallbackWrapper(
-    v8::Local<v8::String> property
-  , const v8::PropertyCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyGetterCallback callback = reinterpret_cast<PropertyGetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyGetterIndex)
-              .As<v8::External>()->Value()));
-  callback(property, cbinfo);
-}
-
-typedef void (*NativePropertyGetter)
-    (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void PropertySetterCallbackWrapper(
-    v8::Local<v8::String> property
-  , v8::Local<v8::Value> value
-  , const v8::PropertyCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertySetterCallback callback = reinterpret_cast<PropertySetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertySetterIndex)
-              .As<v8::External>()->Value()));
-  callback(property, value, cbinfo);
-}
-
-typedef void (*NativePropertySetter)(
-    v8::Local<v8::String>
-  , v8::Local<v8::Value>
-  , const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void PropertyEnumeratorCallbackWrapper(
-    const v8::PropertyCallbackInfo<v8::Array> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Array>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyEnumeratorCallback callback =
-      reinterpret_cast<PropertyEnumeratorCallback>(reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyEnumeratorIndex)
-              .As<v8::External>()->Value()));
-  callback(cbinfo);
-}
-
-typedef void (*NativePropertyEnumerator)
-    (const v8::PropertyCallbackInfo<v8::Array> &);
-
-static
-void PropertyDeleterCallbackWrapper(
-    v8::Local<v8::String> property
-  , const v8::PropertyCallbackInfo<v8::Boolean> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Boolean>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyDeleterCallback callback = reinterpret_cast<PropertyDeleterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyDeleterIndex)
-              .As<v8::External>()->Value()));
-  callback(property, cbinfo);
-}
-
-typedef void (NativePropertyDeleter)
-    (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Boolean> &);
-
-static
-void PropertyQueryCallbackWrapper(
-    v8::Local<v8::String> property
-  , const v8::PropertyCallbackInfo<v8::Integer> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Integer>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyQueryIndex)
-              .As<v8::External>()->Value()));
-  callback(property, cbinfo);
-}
-
-typedef void (*NativePropertyQuery)
-    (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Integer> &);
-#endif
-
-static
-void IndexGetterCallbackWrapper(
-    uint32_t index, const v8::PropertyCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexGetterCallback callback = reinterpret_cast<IndexGetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertyGetterIndex)
-              .As<v8::External>()->Value()));
-  callback(index, cbinfo);
-}
-
-typedef void (*NativeIndexGetter)
-    (uint32_t, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void IndexSetterCallbackWrapper(
-    uint32_t index
-  , v8::Local<v8::Value> value
-  , const v8::PropertyCallbackInfo<v8::Value> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexSetterCallback callback = reinterpret_cast<IndexSetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertySetterIndex)
-              .As<v8::External>()->Value()));
-  callback(index, value, cbinfo);
-}
-
-typedef void (*NativeIndexSetter)(
-    uint32_t
-  , v8::Local<v8::Value>
-  , const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void IndexEnumeratorCallbackWrapper(
-    const v8::PropertyCallbackInfo<v8::Array> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Array>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexEnumeratorCallback callback = reinterpret_cast<IndexEnumeratorCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(
-              kIndexPropertyEnumeratorIndex).As<v8::External>()->Value()));
-  callback(cbinfo);
-}
-
-typedef void (*NativeIndexEnumerator)
-    (const v8::PropertyCallbackInfo<v8::Array> &);
-
-static
-void IndexDeleterCallbackWrapper(
-    uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Boolean>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexDeleterCallback callback = reinterpret_cast<IndexDeleterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertyDeleterIndex)
-              .As<v8::External>()->Value()));
-  callback(index, cbinfo);
-}
-
-typedef void (*NativeIndexDeleter)
-    (uint32_t, const v8::PropertyCallbackInfo<v8::Boolean> &);
-
-static
-void IndexQueryCallbackWrapper(
-    uint32_t index, const v8::PropertyCallbackInfo<v8::Integer> &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Integer>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexQueryCallback callback = reinterpret_cast<IndexQueryCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertyQueryIndex)
-              .As<v8::External>()->Value()));
-  callback(index, cbinfo);
-}
-
-typedef void (*NativeIndexQuery)
-    (uint32_t, const v8::PropertyCallbackInfo<v8::Integer> &);
-}  // end of namespace imp
-
-#endif  // NAN_CALLBACKS_12_INL_H_

+ 0 - 520
node_modules.bak/nan/nan_callbacks_pre_12_inl.h

@@ -1,520 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CALLBACKS_PRE_12_INL_H_
-#define NAN_CALLBACKS_PRE_12_INL_H_
-
-namespace imp {
-template<typename T> class ReturnValueImp;
-}  // end of namespace imp
-
-template<typename T>
-class ReturnValue {
-  v8::Isolate *isolate_;
-  v8::Persistent<T> *value_;
-  friend class imp::ReturnValueImp<T>;
-
- public:
-  template <class S>
-  explicit inline ReturnValue(v8::Isolate *isolate, v8::Persistent<S> *p) :
-      isolate_(isolate), value_(p) {}
-  template <class S>
-  explicit inline ReturnValue(const ReturnValue<S>& that)
-      : isolate_(that.isolate_), value_(that.value_) {
-    TYPE_CHECK(T, S);
-  }
-
-  // Handle setters
-  template <typename S> inline void Set(const v8::Local<S> &handle) {
-    TYPE_CHECK(T, S);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(handle);
-  }
-
-  template <typename S> inline void Set(const Global<S> &handle) {
-    TYPE_CHECK(T, S);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(handle.persistent);
-    const_cast<Global<S> &>(handle).Reset();
-  }
-
-  // Fast primitive setters
-  inline void Set(bool value) {
-    v8::HandleScope scope;
-
-    TYPE_CHECK(T, v8::Boolean);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(v8::Boolean::New(value));
-  }
-
-  inline void Set(double i) {
-    v8::HandleScope scope;
-
-    TYPE_CHECK(T, v8::Number);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(v8::Number::New(i));
-  }
-
-  inline void Set(int32_t i) {
-    v8::HandleScope scope;
-
-    TYPE_CHECK(T, v8::Integer);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(v8::Int32::New(i));
-  }
-
-  inline void Set(uint32_t i) {
-    v8::HandleScope scope;
-
-    TYPE_CHECK(T, v8::Integer);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(v8::Uint32::NewFromUnsigned(i));
-  }
-
-  // Fast JS primitive setters
-  inline void SetNull() {
-    v8::HandleScope scope;
-
-    TYPE_CHECK(T, v8::Primitive);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(v8::Null());
-  }
-
-  inline void SetUndefined() {
-    v8::HandleScope scope;
-
-    TYPE_CHECK(T, v8::Primitive);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(v8::Undefined());
-  }
-
-  inline void SetEmptyString() {
-    v8::HandleScope scope;
-
-    TYPE_CHECK(T, v8::String);
-    value_->Dispose();
-    *value_ = v8::Persistent<T>::New(v8::String::Empty());
-  }
-
-  // Convenience getter for isolate
-  inline v8::Isolate *GetIsolate() const {
-    return isolate_;
-  }
-
-  // Pointer setter: Uncompilable to prevent inadvertent misuse.
-  template<typename S>
-  inline void Set(S *whatever) { TYPE_CHECK(S*, v8::Primitive); }
-};
-
-template<typename T>
-class FunctionCallbackInfo {
-  const v8::Arguments &args_;
-  v8::Local<v8::Value> data_;
-  ReturnValue<T> return_value_;
-  v8::Persistent<T> retval_;
-
- public:
-  explicit inline FunctionCallbackInfo(
-      const v8::Arguments &args
-    , v8::Local<v8::Value> data) :
-          args_(args)
-        , data_(data)
-        , return_value_(args.GetIsolate(), &retval_)
-        , retval_(v8::Persistent<T>::New(v8::Undefined())) {}
-
-  inline ~FunctionCallbackInfo() {
-    retval_.Dispose();
-    retval_.Clear();
-  }
-
-  inline ReturnValue<T> GetReturnValue() const {
-    return ReturnValue<T>(return_value_);
-  }
-
-  inline v8::Local<v8::Function> Callee() const { return args_.Callee(); }
-  inline v8::Local<v8::Value> Data() const { return data_; }
-  inline v8::Local<v8::Object> Holder() const { return args_.Holder(); }
-  inline bool IsConstructCall() const { return args_.IsConstructCall(); }
-  inline int Length() const { return args_.Length(); }
-  inline v8::Local<v8::Value> operator[](int i) const { return args_[i]; }
-  inline v8::Local<v8::Object> This() const { return args_.This(); }
-  inline v8::Isolate *GetIsolate() const { return args_.GetIsolate(); }
-
-
- protected:
-  static const int kHolderIndex = 0;
-  static const int kIsolateIndex = 1;
-  static const int kReturnValueDefaultValueIndex = 2;
-  static const int kReturnValueIndex = 3;
-  static const int kDataIndex = 4;
-  static const int kCalleeIndex = 5;
-  static const int kContextSaveIndex = 6;
-  static const int kArgsLength = 7;
-
- private:
-  NAN_DISALLOW_ASSIGN_COPY_MOVE(FunctionCallbackInfo)
-};
-
-template<typename T>
-class PropertyCallbackInfoBase {
-  const v8::AccessorInfo &info_;
-  const v8::Local<v8::Value> data_;
-
- public:
-  explicit inline PropertyCallbackInfoBase(
-      const v8::AccessorInfo &info
-    , const v8::Local<v8::Value> data) :
-          info_(info)
-        , data_(data) {}
-
-  inline v8::Isolate* GetIsolate() const { return info_.GetIsolate(); }
-  inline v8::Local<v8::Value> Data() const { return data_; }
-  inline v8::Local<v8::Object> This() const { return info_.This(); }
-  inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
-
- protected:
-  static const int kHolderIndex = 0;
-  static const int kIsolateIndex = 1;
-  static const int kReturnValueDefaultValueIndex = 2;
-  static const int kReturnValueIndex = 3;
-  static const int kDataIndex = 4;
-  static const int kThisIndex = 5;
-  static const int kArgsLength = 6;
-
- private:
-  NAN_DISALLOW_ASSIGN_COPY_MOVE(PropertyCallbackInfoBase)
-};
-
-template<typename T>
-class PropertyCallbackInfo : public PropertyCallbackInfoBase<T> {
-  ReturnValue<T> return_value_;
-  v8::Persistent<T> retval_;
-
- public:
-  explicit inline PropertyCallbackInfo(
-      const v8::AccessorInfo &info
-    , const v8::Local<v8::Value> data) :
-          PropertyCallbackInfoBase<T>(info, data)
-        , return_value_(info.GetIsolate(), &retval_)
-        , retval_(v8::Persistent<T>::New(v8::Undefined())) {}
-
-  inline ~PropertyCallbackInfo() {
-    retval_.Dispose();
-    retval_.Clear();
-  }
-
-  inline ReturnValue<T> GetReturnValue() const { return return_value_; }
-};
-
-template<>
-class PropertyCallbackInfo<v8::Array> :
-    public PropertyCallbackInfoBase<v8::Array> {
-  ReturnValue<v8::Array> return_value_;
-  v8::Persistent<v8::Array> retval_;
-
- public:
-  explicit inline PropertyCallbackInfo(
-      const v8::AccessorInfo &info
-    , const v8::Local<v8::Value> data) :
-          PropertyCallbackInfoBase<v8::Array>(info, data)
-        , return_value_(info.GetIsolate(), &retval_)
-        , retval_(v8::Persistent<v8::Array>::New(v8::Local<v8::Array>())) {}
-
-  inline ~PropertyCallbackInfo() {
-    retval_.Dispose();
-    retval_.Clear();
-  }
-
-  inline ReturnValue<v8::Array> GetReturnValue() const {
-    return return_value_;
-  }
-};
-
-template<>
-class PropertyCallbackInfo<v8::Boolean> :
-    public PropertyCallbackInfoBase<v8::Boolean> {
-  ReturnValue<v8::Boolean> return_value_;
-  v8::Persistent<v8::Boolean> retval_;
-
- public:
-  explicit inline PropertyCallbackInfo(
-      const v8::AccessorInfo &info
-    , const v8::Local<v8::Value> data) :
-          PropertyCallbackInfoBase<v8::Boolean>(info, data)
-        , return_value_(info.GetIsolate(), &retval_)
-        , retval_(v8::Persistent<v8::Boolean>::New(v8::Local<v8::Boolean>())) {}
-
-  inline ~PropertyCallbackInfo() {
-    retval_.Dispose();
-    retval_.Clear();
-  }
-
-  inline ReturnValue<v8::Boolean> GetReturnValue() const {
-    return return_value_;
-  }
-};
-
-template<>
-class PropertyCallbackInfo<v8::Integer> :
-    public PropertyCallbackInfoBase<v8::Integer> {
-  ReturnValue<v8::Integer> return_value_;
-  v8::Persistent<v8::Integer> retval_;
-
- public:
-  explicit inline PropertyCallbackInfo(
-      const v8::AccessorInfo &info
-    , const v8::Local<v8::Value> data) :
-          PropertyCallbackInfoBase<v8::Integer>(info, data)
-        , return_value_(info.GetIsolate(), &retval_)
-        , retval_(v8::Persistent<v8::Integer>::New(v8::Local<v8::Integer>())) {}
-
-  inline ~PropertyCallbackInfo() {
-    retval_.Dispose();
-    retval_.Clear();
-  }
-
-  inline ReturnValue<v8::Integer> GetReturnValue() const {
-    return return_value_;
-  }
-};
-
-namespace imp {
-template<typename T>
-class ReturnValueImp : public ReturnValue<T> {
- public:
-  explicit ReturnValueImp(ReturnValue<T> that) :
-      ReturnValue<T>(that) {}
-  inline v8::Handle<T> Value() {
-      return *ReturnValue<T>::value_;
-  }
-};
-
-static
-v8::Handle<v8::Value> FunctionCallbackWrapper(const v8::Arguments &args) {
-  v8::Local<v8::Object> obj = args.Data().As<v8::Object>();
-  FunctionCallback callback = reinterpret_cast<FunctionCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kFunctionIndex).As<v8::External>()->Value()));
-  FunctionCallbackInfo<v8::Value>
-      cbinfo(args, obj->GetInternalField(kDataIndex));
-  callback(cbinfo);
-  return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativeFunction)(const v8::Arguments &);
-
-static
-v8::Handle<v8::Value> GetterCallbackWrapper(
-    v8::Local<v8::String> property, const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  GetterCallback callback = reinterpret_cast<GetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kGetterIndex).As<v8::External>()->Value()));
-  callback(property, cbinfo);
-  return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativeGetter)
-    (v8::Local<v8::String>, const v8::AccessorInfo &);
-
-static
-void SetterCallbackWrapper(
-    v8::Local<v8::String> property
-  , v8::Local<v8::Value> value
-  , const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<void>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  SetterCallback callback = reinterpret_cast<SetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kSetterIndex).As<v8::External>()->Value()));
-  callback(property, value, cbinfo);
-}
-
-typedef void (*NativeSetter)
-    (v8::Local<v8::String>, v8::Local<v8::Value>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Value> PropertyGetterCallbackWrapper(
-    v8::Local<v8::String> property, const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyGetterCallback callback = reinterpret_cast<PropertyGetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyGetterIndex)
-              .As<v8::External>()->Value()));
-  callback(property, cbinfo);
-  return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativePropertyGetter)
-    (v8::Local<v8::String>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Value> PropertySetterCallbackWrapper(
-    v8::Local<v8::String> property
-  , v8::Local<v8::Value> value
-  , const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertySetterCallback callback = reinterpret_cast<PropertySetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertySetterIndex)
-              .As<v8::External>()->Value()));
-  callback(property, value, cbinfo);
-  return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativePropertySetter)
-    (v8::Local<v8::String>, v8::Local<v8::Value>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Array> PropertyEnumeratorCallbackWrapper(
-    const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Array>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyEnumeratorCallback callback =
-      reinterpret_cast<PropertyEnumeratorCallback>(reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyEnumeratorIndex)
-              .As<v8::External>()->Value()));
-  callback(cbinfo);
-  return ReturnValueImp<v8::Array>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Array> (*NativePropertyEnumerator)
-    (const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Boolean> PropertyDeleterCallbackWrapper(
-    v8::Local<v8::String> property
-  , const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Boolean>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyDeleterCallback callback = reinterpret_cast<PropertyDeleterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyDeleterIndex)
-              .As<v8::External>()->Value()));
-  callback(property, cbinfo);
-  return ReturnValueImp<v8::Boolean>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Boolean> (NativePropertyDeleter)
-    (v8::Local<v8::String>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Integer> PropertyQueryCallbackWrapper(
-    v8::Local<v8::String> property, const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Integer>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kPropertyQueryIndex)
-              .As<v8::External>()->Value()));
-  callback(property, cbinfo);
-  return ReturnValueImp<v8::Integer>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Integer> (*NativePropertyQuery)
-    (v8::Local<v8::String>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Value> IndexGetterCallbackWrapper(
-    uint32_t index, const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexGetterCallback callback = reinterpret_cast<IndexGetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertyGetterIndex)
-              .As<v8::External>()->Value()));
-  callback(index, cbinfo);
-  return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativeIndexGetter)
-    (uint32_t, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Value> IndexSetterCallbackWrapper(
-    uint32_t index
-  , v8::Local<v8::Value> value
-  , const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Value>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexSetterCallback callback = reinterpret_cast<IndexSetterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertySetterIndex)
-              .As<v8::External>()->Value()));
-  callback(index, value, cbinfo);
-  return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativeIndexSetter)
-    (uint32_t, v8::Local<v8::Value>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Array> IndexEnumeratorCallbackWrapper(
-    const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Array>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexEnumeratorCallback callback = reinterpret_cast<IndexEnumeratorCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertyEnumeratorIndex)
-              .As<v8::External>()->Value()));
-  callback(cbinfo);
-  return ReturnValueImp<v8::Array>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Array> (*NativeIndexEnumerator)
-    (const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Boolean> IndexDeleterCallbackWrapper(
-    uint32_t index, const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Boolean>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexDeleterCallback callback = reinterpret_cast<IndexDeleterCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertyDeleterIndex)
-              .As<v8::External>()->Value()));
-  callback(index, cbinfo);
-  return ReturnValueImp<v8::Boolean>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Boolean> (*NativeIndexDeleter)
-    (uint32_t, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Integer> IndexQueryCallbackWrapper(
-    uint32_t index, const v8::AccessorInfo &info) {
-  v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
-  PropertyCallbackInfo<v8::Integer>
-      cbinfo(info, obj->GetInternalField(kDataIndex));
-  IndexQueryCallback callback = reinterpret_cast<IndexQueryCallback>(
-      reinterpret_cast<intptr_t>(
-          obj->GetInternalField(kIndexPropertyQueryIndex)
-              .As<v8::External>()->Value()));
-  callback(index, cbinfo);
-  return ReturnValueImp<v8::Integer>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Integer> (*NativeIndexQuery)
-    (uint32_t, const v8::AccessorInfo &);
-}  // end of namespace imp
-
-#endif  // NAN_CALLBACKS_PRE_12_INL_H_

+ 0 - 72
node_modules.bak/nan/nan_converters.h

@@ -1,72 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CONVERTERS_H_
-#define NAN_CONVERTERS_H_
-
-namespace imp {
-template<typename T> struct ToFactoryBase {
-  typedef MaybeLocal<T> return_t;
-};
-template<typename T> struct ValueFactoryBase { typedef Maybe<T> return_t; };
-
-template<typename T> struct ToFactory;
-
-template<>
-struct ToFactory<v8::Function> : ToFactoryBase<v8::Function> {
-  static inline return_t convert(v8::Local<v8::Value> val) {
-    if (val.IsEmpty() || !val->IsFunction()) return MaybeLocal<v8::Function>();
-    return MaybeLocal<v8::Function>(val.As<v8::Function>());
-  }
-};
-
-#define X(TYPE)                                                                \
-    template<>                                                                 \
-    struct ToFactory<v8::TYPE> : ToFactoryBase<v8::TYPE> {                     \
-      static inline return_t convert(v8::Local<v8::Value> val);                \
-    };
-
-X(Boolean)
-X(Number)
-X(String)
-X(Object)
-X(Integer)
-X(Uint32)
-X(Int32)
-
-#undef X
-
-#define X(TYPE)                                                                \
-    template<>                                                                 \
-    struct ToFactory<TYPE> : ValueFactoryBase<TYPE> {                          \
-      static inline return_t convert(v8::Local<v8::Value> val);                \
-    };
-
-X(bool)
-X(double)
-X(int64_t)
-X(uint32_t)
-X(int32_t)
-
-#undef X
-}  // end of namespace imp
-
-template<typename T>
-inline
-typename imp::ToFactory<T>::return_t To(v8::Local<v8::Value> val) {
-  return imp::ToFactory<T>::convert(val);
-}
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-# include "nan_converters_43_inl.h"
-#else
-# include "nan_converters_pre_43_inl.h"
-#endif
-
-#endif  // NAN_CONVERTERS_H_

+ 0 - 68
node_modules.bak/nan/nan_converters_43_inl.h

@@ -1,68 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CONVERTERS_43_INL_H_
-#define NAN_CONVERTERS_43_INL_H_
-
-#define X(TYPE)                                                                \
-imp::ToFactory<v8::TYPE>::return_t                                             \
-imp::ToFactory<v8::TYPE>::convert(v8::Local<v8::Value> val) {                  \
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();                            \
-  v8::EscapableHandleScope scope(isolate);                                     \
-  return scope.Escape(                                                         \
-      val->To ## TYPE(isolate->GetCurrentContext())                            \
-          .FromMaybe(v8::Local<v8::TYPE>()));                                  \
-}
-
-X(Number)
-X(String)
-X(Object)
-X(Integer)
-X(Uint32)
-X(Int32)
-// V8 <= 7.0
-#if V8_MAJOR_VERSION < 7 || (V8_MAJOR_VERSION == 7 && V8_MINOR_VERSION == 0)
-X(Boolean)
-#else
-imp::ToFactory<v8::Boolean>::return_t                                          \
-imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value> val) {               \
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();                            \
-  v8::EscapableHandleScope scope(isolate);                                     \
-  return scope.Escape(val->ToBoolean(isolate));                                \
-}
-#endif
-
-#undef X
-
-#define X(TYPE, NAME)                                                          \
-imp::ToFactory<TYPE>::return_t                                                 \
-imp::ToFactory<TYPE>::convert(v8::Local<v8::Value> val) {                      \
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();                            \
-  v8::HandleScope scope(isolate);                                              \
-  return val->NAME ## Value(isolate->GetCurrentContext());                     \
-}
-
-X(double, Number)
-X(int64_t, Integer)
-X(uint32_t, Uint32)
-X(int32_t, Int32)
-// V8 <= 7.0
-#if V8_MAJOR_VERSION < 7 || (V8_MAJOR_VERSION == 7 && V8_MINOR_VERSION == 0)
-X(bool, Boolean)
-#else
-imp::ToFactory<bool>::return_t                                                 \
-imp::ToFactory<bool>::convert(v8::Local<v8::Value> val) {                      \
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();                            \
-  v8::HandleScope scope(isolate);                                              \
-  return Just<bool>(val->BooleanValue(isolate));                               \
-}
-#endif
-
-#undef X
-
-#endif  // NAN_CONVERTERS_43_INL_H_

+ 0 - 42
node_modules.bak/nan/nan_converters_pre_43_inl.h

@@ -1,42 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CONVERTERS_PRE_43_INL_H_
-#define NAN_CONVERTERS_PRE_43_INL_H_
-
-#define X(TYPE)                                                                \
-imp::ToFactory<v8::TYPE>::return_t                                             \
-imp::ToFactory<v8::TYPE>::convert(v8::Local<v8::Value> val) {                  \
-  return val->To ## TYPE();                                                    \
-}
-
-X(Boolean)
-X(Number)
-X(String)
-X(Object)
-X(Integer)
-X(Uint32)
-X(Int32)
-
-#undef X
-
-#define X(TYPE, NAME)                                                          \
-imp::ToFactory<TYPE>::return_t                                                 \
-imp::ToFactory<TYPE>::convert(v8::Local<v8::Value> val) {                      \
-  return Just(val->NAME ## Value());                                           \
-}
-
-X(bool, Boolean)
-X(double, Number)
-X(int64_t, Integer)
-X(uint32_t, Uint32)
-X(int32_t, Int32)
-
-#undef X
-
-#endif  // NAN_CONVERTERS_PRE_43_INL_H_

+ 0 - 29
node_modules.bak/nan/nan_define_own_property_helper.h

@@ -1,29 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_DEFINE_OWN_PROPERTY_HELPER_H_
-#define NAN_DEFINE_OWN_PROPERTY_HELPER_H_
-
-namespace imp {
-
-inline Maybe<bool> DefineOwnPropertyHelper(
-    v8::PropertyAttribute current
-  , v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key
-  , v8::Handle<v8::Value> value
-  , v8::PropertyAttribute attribs = v8::None) {
-  return !(current & v8::DontDelete) ||                     // configurable OR
-                  (!(current & v8::ReadOnly) &&             // writable AND
-                   !((attribs ^ current) & ~v8::ReadOnly))  // same excluding RO
-             ? Just<bool>(obj->ForceSet(key, value, attribs))
-             : Nothing<bool>();
-}
-
-}  // end of namespace imp
-
-#endif  // NAN_DEFINE_OWN_PROPERTY_HELPER_H_

+ 0 - 430
node_modules.bak/nan/nan_implementation_12_inl.h

@@ -1,430 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_IMPLEMENTATION_12_INL_H_
-#define NAN_IMPLEMENTATION_12_INL_H_
-//==============================================================================
-// node v0.11 implementation
-//==============================================================================
-
-namespace imp {
-
-//=== Array ====================================================================
-
-Factory<v8::Array>::return_t
-Factory<v8::Array>::New() {
-  return v8::Array::New(v8::Isolate::GetCurrent());
-}
-
-Factory<v8::Array>::return_t
-Factory<v8::Array>::New(int length) {
-  return v8::Array::New(v8::Isolate::GetCurrent(), length);
-}
-
-//=== Boolean ==================================================================
-
-Factory<v8::Boolean>::return_t
-Factory<v8::Boolean>::New(bool value) {
-  return v8::Boolean::New(v8::Isolate::GetCurrent(), value);
-}
-
-//=== Boolean Object ===========================================================
-
-Factory<v8::BooleanObject>::return_t
-Factory<v8::BooleanObject>::New(bool value) {
-#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
-  return v8::BooleanObject::New(
-    v8::Isolate::GetCurrent(), value).As<v8::BooleanObject>();
-#else
-  return v8::BooleanObject::New(value).As<v8::BooleanObject>();
-#endif
-}
-
-//=== Context ==================================================================
-
-Factory<v8::Context>::return_t
-Factory<v8::Context>::New( v8::ExtensionConfiguration* extensions
-                         , v8::Local<v8::ObjectTemplate> tmpl
-                         , v8::Local<v8::Value> obj) {
-  return v8::Context::New(v8::Isolate::GetCurrent(), extensions, tmpl, obj);
-}
-
-//=== Date =====================================================================
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::Date>::return_t
-Factory<v8::Date>::New(double value) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(v8::Date::New(isolate->GetCurrentContext(), value)
-      .FromMaybe(v8::Local<v8::Value>()).As<v8::Date>());
-}
-#else
-Factory<v8::Date>::return_t
-Factory<v8::Date>::New(double value) {
-  return v8::Date::New(v8::Isolate::GetCurrent(), value).As<v8::Date>();
-}
-#endif
-
-//=== External =================================================================
-
-Factory<v8::External>::return_t
-Factory<v8::External>::New(void * value) {
-  return v8::External::New(v8::Isolate::GetCurrent(), value);
-}
-
-//=== Function =================================================================
-
-Factory<v8::Function>::return_t
-Factory<v8::Function>::New( FunctionCallback callback
-                          , v8::Local<v8::Value> data) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New(isolate);
-  tpl->SetInternalFieldCount(imp::kFunctionFieldCount);
-  v8::Local<v8::Object> obj = NewInstance(tpl).ToLocalChecked();
-
-  obj->SetInternalField(
-      imp::kFunctionIndex
-    , v8::External::New(isolate, reinterpret_cast<void *>(callback)));
-
-  v8::Local<v8::Value> val = v8::Local<v8::Value>::New(isolate, data);
-
-  if (!val.IsEmpty()) {
-    obj->SetInternalField(imp::kDataIndex, val);
-  }
-
-#if NODE_MAJOR_VERSION >= 10
-  v8::Local<v8::Context> context = isolate->GetCurrentContext();
-  v8::Local<v8::Function> function =
-      v8::Function::New(context, imp::FunctionCallbackWrapper, obj)
-      .ToLocalChecked();
-#else
-  v8::Local<v8::Function> function =
-      v8::Function::New(isolate, imp::FunctionCallbackWrapper, obj);
-#endif
-
-  return scope.Escape(function);
-}
-
-//=== Function Template ========================================================
-
-Factory<v8::FunctionTemplate>::return_t
-Factory<v8::FunctionTemplate>::New( FunctionCallback callback
-                                  , v8::Local<v8::Value> data
-                                  , v8::Local<v8::Signature> signature) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  if (callback) {
-    v8::EscapableHandleScope scope(isolate);
-    v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New(isolate);
-    tpl->SetInternalFieldCount(imp::kFunctionFieldCount);
-    v8::Local<v8::Object> obj = NewInstance(tpl).ToLocalChecked();
-
-    obj->SetInternalField(
-        imp::kFunctionIndex
-      , v8::External::New(isolate, reinterpret_cast<void *>(callback)));
-    v8::Local<v8::Value> val = v8::Local<v8::Value>::New(isolate, data);
-
-    if (!val.IsEmpty()) {
-      obj->SetInternalField(imp::kDataIndex, val);
-    }
-
-    return scope.Escape(v8::FunctionTemplate::New( isolate
-                                    , imp::FunctionCallbackWrapper
-                                    , obj
-                                    , signature));
-  } else {
-    return v8::FunctionTemplate::New(isolate, 0, data, signature);
-  }
-}
-
-//=== Number ===================================================================
-
-Factory<v8::Number>::return_t
-Factory<v8::Number>::New(double value) {
-  return v8::Number::New(v8::Isolate::GetCurrent(), value);
-}
-
-//=== Number Object ============================================================
-
-Factory<v8::NumberObject>::return_t
-Factory<v8::NumberObject>::New(double value) {
-  return v8::NumberObject::New( v8::Isolate::GetCurrent()
-                              , value).As<v8::NumberObject>();
-}
-
-//=== Integer, Int32 and Uint32 ================================================
-
-template <typename T>
-typename IntegerFactory<T>::return_t
-IntegerFactory<T>::New(int32_t value) {
-  return To<T>(T::New(v8::Isolate::GetCurrent(), value));
-}
-
-template <typename T>
-typename IntegerFactory<T>::return_t
-IntegerFactory<T>::New(uint32_t value) {
-  return To<T>(T::NewFromUnsigned(v8::Isolate::GetCurrent(), value));
-}
-
-Factory<v8::Uint32>::return_t
-Factory<v8::Uint32>::New(int32_t value) {
-  return To<v8::Uint32>(
-      v8::Uint32::NewFromUnsigned(v8::Isolate::GetCurrent(), value));
-}
-
-Factory<v8::Uint32>::return_t
-Factory<v8::Uint32>::New(uint32_t value) {
-  return To<v8::Uint32>(
-      v8::Uint32::NewFromUnsigned(v8::Isolate::GetCurrent(), value));
-}
-
-//=== Object ===================================================================
-
-Factory<v8::Object>::return_t
-Factory<v8::Object>::New() {
-  return v8::Object::New(v8::Isolate::GetCurrent());
-}
-
-//=== Object Template ==========================================================
-
-Factory<v8::ObjectTemplate>::return_t
-Factory<v8::ObjectTemplate>::New() {
-  return v8::ObjectTemplate::New(v8::Isolate::GetCurrent());
-}
-
-//=== RegExp ===================================================================
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::RegExp>::return_t
-Factory<v8::RegExp>::New(
-    v8::Local<v8::String> pattern
-  , v8::RegExp::Flags flags) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(
-      v8::RegExp::New(isolate->GetCurrentContext(), pattern, flags)
-          .FromMaybe(v8::Local<v8::RegExp>()));
-}
-#else
-Factory<v8::RegExp>::return_t
-Factory<v8::RegExp>::New(
-    v8::Local<v8::String> pattern
-  , v8::RegExp::Flags flags) {
-  return v8::RegExp::New(pattern, flags);
-}
-#endif
-
-//=== Script ===================================================================
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  v8::ScriptCompiler::Source src(source);
-  return scope.Escape(
-      v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &src)
-          .FromMaybe(v8::Local<v8::Script>()));
-}
-
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source
-                        , v8::ScriptOrigin const& origin) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  v8::ScriptCompiler::Source src(source, origin);
-  return scope.Escape(
-      v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &src)
-          .FromMaybe(v8::Local<v8::Script>()));
-}
-#else
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source) {
-  v8::ScriptCompiler::Source src(source);
-  return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
-}
-
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source
-                        , v8::ScriptOrigin const& origin) {
-  v8::ScriptCompiler::Source src(source, origin);
-  return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
-}
-#endif
-
-//=== Signature ================================================================
-
-Factory<v8::Signature>::return_t
-Factory<v8::Signature>::New(Factory<v8::Signature>::FTH receiver) {
-  return v8::Signature::New(v8::Isolate::GetCurrent(), receiver);
-}
-
-//=== String ===================================================================
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New() {
-  return v8::String::Empty(v8::Isolate::GetCurrent());
-}
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const char * value, int length) {
-  return v8::String::NewFromUtf8(
-      v8::Isolate::GetCurrent(), value, v8::NewStringType::kNormal, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(std::string const& value) {
-  assert(value.size() <= INT_MAX && "string too long");
-  return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(),
-      value.data(), v8::NewStringType::kNormal, static_cast<int>(value.size()));
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const uint16_t * value, int length) {
-  return v8::String::NewFromTwoByte(v8::Isolate::GetCurrent(), value,
-        v8::NewStringType::kNormal, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(v8::String::ExternalStringResource * value) {
-  return v8::String::NewExternalTwoByte(v8::Isolate::GetCurrent(), value);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(ExternalOneByteStringResource * value) {
-  return v8::String::NewExternalOneByte(v8::Isolate::GetCurrent(), value);
-}
-#else
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const char * value, int length) {
-  return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value,
-                                 v8::String::kNormalString, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(
-    std::string const& value) /* NOLINT(build/include_what_you_use) */ {
-  assert(value.size() <= INT_MAX && "string too long");
-  return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value.data(),
-                                 v8::String::kNormalString,
-                                 static_cast<int>(value.size()));
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const uint16_t * value, int length) {
-  return v8::String::NewFromTwoByte(v8::Isolate::GetCurrent(), value,
-                                    v8::String::kNormalString, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(v8::String::ExternalStringResource * value) {
-  return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(ExternalOneByteStringResource * value) {
-  return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
-}
-#endif
-
-//=== String Object ============================================================
-
-// See https://github.com/nodejs/nan/pull/811#discussion_r224594980.
-// Disable the warning as there is no way around it.
-// TODO(bnoordhuis) Use isolate-based version in Node.js v12.
-Factory<v8::StringObject>::return_t
-Factory<v8::StringObject>::New(v8::Local<v8::String> value) {
-// V8 > 7.0
-#if V8_MAJOR_VERSION > 7 || (V8_MAJOR_VERSION == 7 && V8_MINOR_VERSION > 0)
-  return v8::StringObject::New(v8::Isolate::GetCurrent(), value)
-      .As<v8::StringObject>();
-#else
-#ifdef _MSC_VER
-#pragma warning(push)
-#pragma warning(disable : 4996)
-#endif
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
-  return v8::StringObject::New(value).As<v8::StringObject>();
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
-#ifdef _MSC_VER
-#pragma warning(pop)
-#endif
-#endif
-}
-
-//=== Unbound Script ===========================================================
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::UnboundScript>::return_t
-Factory<v8::UnboundScript>::New(v8::Local<v8::String> source) {
-  v8::ScriptCompiler::Source src(source);
-  return v8::ScriptCompiler::CompileUnboundScript(
-      v8::Isolate::GetCurrent(), &src);
-}
-
-Factory<v8::UnboundScript>::return_t
-Factory<v8::UnboundScript>::New( v8::Local<v8::String> source
-                               , v8::ScriptOrigin const& origin) {
-  v8::ScriptCompiler::Source src(source, origin);
-  return v8::ScriptCompiler::CompileUnboundScript(
-      v8::Isolate::GetCurrent(), &src);
-}
-#else
-Factory<v8::UnboundScript>::return_t
-Factory<v8::UnboundScript>::New(v8::Local<v8::String> source) {
-  v8::ScriptCompiler::Source src(source);
-  return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
-}
-
-Factory<v8::UnboundScript>::return_t
-Factory<v8::UnboundScript>::New( v8::Local<v8::String> source
-                               , v8::ScriptOrigin const& origin) {
-  v8::ScriptCompiler::Source src(source, origin);
-  return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
-}
-#endif
-
-}  // end of namespace imp
-
-//=== Presistents and Handles ==================================================
-
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
-template <typename T>
-inline v8::Local<T> New(v8::Handle<T> h) {
-  return v8::Local<T>::New(v8::Isolate::GetCurrent(), h);
-}
-#endif
-
-template <typename T, typename M>
-inline v8::Local<T> New(v8::Persistent<T, M> const& p) {
-  return v8::Local<T>::New(v8::Isolate::GetCurrent(), p);
-}
-
-template <typename T, typename M>
-inline v8::Local<T> New(Persistent<T, M> const& p) {
-  return v8::Local<T>::New(v8::Isolate::GetCurrent(), p);
-}
-
-template <typename T>
-inline v8::Local<T> New(Global<T> const& p) {
-  return v8::Local<T>::New(v8::Isolate::GetCurrent(), p);
-}
-
-#endif  // NAN_IMPLEMENTATION_12_INL_H_

+ 0 - 263
node_modules.bak/nan/nan_implementation_pre_12_inl.h

@@ -1,263 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_IMPLEMENTATION_PRE_12_INL_H_
-#define NAN_IMPLEMENTATION_PRE_12_INL_H_
-
-//==============================================================================
-// node v0.10 implementation
-//==============================================================================
-
-namespace imp {
-
-//=== Array ====================================================================
-
-Factory<v8::Array>::return_t
-Factory<v8::Array>::New() {
-  return v8::Array::New();
-}
-
-Factory<v8::Array>::return_t
-Factory<v8::Array>::New(int length) {
-  return v8::Array::New(length);
-}
-
-//=== Boolean ==================================================================
-
-Factory<v8::Boolean>::return_t
-Factory<v8::Boolean>::New(bool value) {
-  return v8::Boolean::New(value)->ToBoolean();
-}
-
-//=== Boolean Object ===========================================================
-
-Factory<v8::BooleanObject>::return_t
-Factory<v8::BooleanObject>::New(bool value) {
-  return v8::BooleanObject::New(value).As<v8::BooleanObject>();
-}
-
-//=== Context ==================================================================
-
-Factory<v8::Context>::return_t
-Factory<v8::Context>::New( v8::ExtensionConfiguration* extensions
-                         , v8::Local<v8::ObjectTemplate> tmpl
-                         , v8::Local<v8::Value> obj) {
-  v8::Persistent<v8::Context> ctx = v8::Context::New(extensions, tmpl, obj);
-  v8::Local<v8::Context> lctx = v8::Local<v8::Context>::New(ctx);
-  ctx.Dispose();
-  return lctx;
-}
-
-//=== Date =====================================================================
-
-Factory<v8::Date>::return_t
-Factory<v8::Date>::New(double value) {
-  return v8::Date::New(value).As<v8::Date>();
-}
-
-//=== External =================================================================
-
-Factory<v8::External>::return_t
-Factory<v8::External>::New(void * value) {
-  return v8::External::New(value);
-}
-
-//=== Function =================================================================
-
-Factory<v8::Function>::return_t
-Factory<v8::Function>::New( FunctionCallback callback
-                          , v8::Local<v8::Value> data) {
-  v8::HandleScope scope;
-
-  return scope.Close(Factory<v8::FunctionTemplate>::New(
-                         callback, data, v8::Local<v8::Signature>())
-                         ->GetFunction());
-}
-
-
-//=== FunctionTemplate =========================================================
-
-Factory<v8::FunctionTemplate>::return_t
-Factory<v8::FunctionTemplate>::New( FunctionCallback callback
-                                  , v8::Local<v8::Value> data
-                                  , v8::Local<v8::Signature> signature) {
-  if (callback) {
-    v8::HandleScope scope;
-
-    v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New();
-    tpl->SetInternalFieldCount(imp::kFunctionFieldCount);
-    v8::Local<v8::Object> obj = tpl->NewInstance();
-
-    obj->SetInternalField(
-        imp::kFunctionIndex
-      , v8::External::New(reinterpret_cast<void *>(callback)));
-
-    v8::Local<v8::Value> val = v8::Local<v8::Value>::New(data);
-
-    if (!val.IsEmpty()) {
-      obj->SetInternalField(imp::kDataIndex, val);
-    }
-
-    // Note(agnat): Emulate length argument here. Unfortunately, I couldn't find
-    // a way. Have at it though...
-    return scope.Close(
-        v8::FunctionTemplate::New(imp::FunctionCallbackWrapper
-                                 , obj
-                                 , signature));
-  } else {
-    return v8::FunctionTemplate::New(0, data, signature);
-  }
-}
-
-//=== Number ===================================================================
-
-Factory<v8::Number>::return_t
-Factory<v8::Number>::New(double value) {
-  return v8::Number::New(value);
-}
-
-//=== Number Object ============================================================
-
-Factory<v8::NumberObject>::return_t
-Factory<v8::NumberObject>::New(double value) {
-  return v8::NumberObject::New(value).As<v8::NumberObject>();
-}
-
-//=== Integer, Int32 and Uint32 ================================================
-
-template <typename T>
-typename IntegerFactory<T>::return_t
-IntegerFactory<T>::New(int32_t value) {
-  return To<T>(T::New(value));
-}
-
-template <typename T>
-typename IntegerFactory<T>::return_t
-IntegerFactory<T>::New(uint32_t value) {
-  return To<T>(T::NewFromUnsigned(value));
-}
-
-Factory<v8::Uint32>::return_t
-Factory<v8::Uint32>::New(int32_t value) {
-  return To<v8::Uint32>(v8::Uint32::NewFromUnsigned(value));
-}
-
-Factory<v8::Uint32>::return_t
-Factory<v8::Uint32>::New(uint32_t value) {
-  return To<v8::Uint32>(v8::Uint32::NewFromUnsigned(value));
-}
-
-
-//=== Object ===================================================================
-
-Factory<v8::Object>::return_t
-Factory<v8::Object>::New() {
-  return v8::Object::New();
-}
-
-//=== Object Template ==========================================================
-
-Factory<v8::ObjectTemplate>::return_t
-Factory<v8::ObjectTemplate>::New() {
-  return v8::ObjectTemplate::New();
-}
-
-//=== RegExp ===================================================================
-
-Factory<v8::RegExp>::return_t
-Factory<v8::RegExp>::New(
-    v8::Local<v8::String> pattern
-  , v8::RegExp::Flags flags) {
-  return v8::RegExp::New(pattern, flags);
-}
-
-//=== Script ===================================================================
-
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source) {
-  return v8::Script::New(source);
-}
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source
-                        , v8::ScriptOrigin const& origin) {
-  return v8::Script::New(source, const_cast<v8::ScriptOrigin*>(&origin));
-}
-
-//=== Signature ================================================================
-
-Factory<v8::Signature>::return_t
-Factory<v8::Signature>::New(Factory<v8::Signature>::FTH receiver) {
-  return v8::Signature::New(receiver);
-}
-
-//=== String ===================================================================
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New() {
-  return v8::String::Empty();
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const char * value, int length) {
-  return v8::String::New(value, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(
-    std::string const& value) /* NOLINT(build/include_what_you_use) */ {
-  assert(value.size() <= INT_MAX && "string too long");
-  return v8::String::New(value.data(), static_cast<int>(value.size()));
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const uint16_t * value, int length) {
-  return v8::String::New(value, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(v8::String::ExternalStringResource * value) {
-  return v8::String::NewExternal(value);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(v8::String::ExternalAsciiStringResource * value) {
-  return v8::String::NewExternal(value);
-}
-
-//=== String Object ============================================================
-
-Factory<v8::StringObject>::return_t
-Factory<v8::StringObject>::New(v8::Local<v8::String> value) {
-  return v8::StringObject::New(value).As<v8::StringObject>();
-}
-
-}  // end of namespace imp
-
-//=== Presistents and Handles ==================================================
-
-template <typename T>
-inline v8::Local<T> New(v8::Handle<T> h) {
-  return v8::Local<T>::New(h);
-}
-
-template <typename T>
-inline v8::Local<T> New(v8::Persistent<T> const& p) {
-  return v8::Local<T>::New(p);
-}
-
-template <typename T, typename M>
-inline v8::Local<T> New(Persistent<T, M> const& p) {
-  return v8::Local<T>::New(p.persistent);
-}
-
-template <typename T>
-inline v8::Local<T> New(Global<T> const& p) {
-  return v8::Local<T>::New(p.persistent);
-}
-
-#endif  // NAN_IMPLEMENTATION_PRE_12_INL_H_

+ 0 - 166
node_modules.bak/nan/nan_json.h

@@ -1,166 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_JSON_H_
-#define NAN_JSON_H_
-
-#if NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION
-#define NAN_JSON_H_NEED_PARSE 1
-#else
-#define NAN_JSON_H_NEED_PARSE 0
-#endif  // NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION
-
-#if NODE_MODULE_VERSION >= NODE_7_0_MODULE_VERSION
-#define NAN_JSON_H_NEED_STRINGIFY 0
-#else
-#define NAN_JSON_H_NEED_STRINGIFY 1
-#endif  // NODE_MODULE_VERSION >= NODE_7_0_MODULE_VERSION
-
-class JSON {
- public:
-  JSON() {
-#if NAN_JSON_H_NEED_PARSE + NAN_JSON_H_NEED_STRINGIFY
-    Nan::HandleScope scope;
-
-    Nan::MaybeLocal<v8::Value> maybe_global_json = Nan::Get(
-      Nan::GetCurrentContext()->Global(),
-      Nan::New("JSON").ToLocalChecked()
-    );
-
-    assert(!maybe_global_json.IsEmpty() && "global JSON is empty");
-    v8::Local<v8::Value> val_global_json = maybe_global_json.ToLocalChecked();
-
-    assert(val_global_json->IsObject() && "global JSON is not an object");
-    Nan::MaybeLocal<v8::Object> maybe_obj_global_json =
-      Nan::To<v8::Object>(val_global_json);
-
-    assert(!maybe_obj_global_json.IsEmpty() && "global JSON object is empty");
-    v8::Local<v8::Object> global_json = maybe_obj_global_json.ToLocalChecked();
-
-#if NAN_JSON_H_NEED_PARSE
-    Nan::MaybeLocal<v8::Value> maybe_parse_method = Nan::Get(
-      global_json, Nan::New("parse").ToLocalChecked()
-    );
-
-    assert(!maybe_parse_method.IsEmpty() && "JSON.parse is empty");
-    v8::Local<v8::Value> parse_method = maybe_parse_method.ToLocalChecked();
-
-    assert(parse_method->IsFunction() && "JSON.parse is not a function");
-    parse_cb_.Reset(parse_method.As<v8::Function>());
-#endif  // NAN_JSON_H_NEED_PARSE
-
-#if NAN_JSON_H_NEED_STRINGIFY
-    Nan::MaybeLocal<v8::Value> maybe_stringify_method = Nan::Get(
-      global_json, Nan::New("stringify").ToLocalChecked()
-    );
-
-    assert(!maybe_stringify_method.IsEmpty() && "JSON.stringify is empty");
-    v8::Local<v8::Value> stringify_method =
-      maybe_stringify_method.ToLocalChecked();
-
-    assert(
-      stringify_method->IsFunction() && "JSON.stringify is not a function"
-    );
-    stringify_cb_.Reset(stringify_method.As<v8::Function>());
-#endif  // NAN_JSON_H_NEED_STRINGIFY
-#endif  // NAN_JSON_H_NEED_PARSE + NAN_JSON_H_NEED_STRINGIFY
-  }
-
-  inline
-  Nan::MaybeLocal<v8::Value> Parse(v8::Local<v8::String> json_string) {
-    Nan::EscapableHandleScope scope;
-#if NAN_JSON_H_NEED_PARSE
-    return scope.Escape(parse(json_string));
-#else
-    Nan::MaybeLocal<v8::Value> result;
-#if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION && \
-    NODE_MODULE_VERSION <= IOJS_2_0_MODULE_VERSION
-    result = v8::JSON::Parse(json_string);
-#else
-#if NODE_MODULE_VERSION > NODE_6_0_MODULE_VERSION
-    v8::Local<v8::Context> context_or_isolate = Nan::GetCurrentContext();
-#else
-    v8::Isolate* context_or_isolate = v8::Isolate::GetCurrent();
-#endif  // NODE_MODULE_VERSION > NODE_6_0_MODULE_VERSION
-    result = v8::JSON::Parse(context_or_isolate, json_string);
-#endif  // NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION &&
-        // NODE_MODULE_VERSION <= IOJS_2_0_MODULE_VERSION
-    if (result.IsEmpty()) return v8::Local<v8::Value>();
-    return scope.Escape(result.ToLocalChecked());
-#endif  // NAN_JSON_H_NEED_PARSE
-  }
-
-  inline
-  Nan::MaybeLocal<v8::String> Stringify(v8::Local<v8::Object> json_object) {
-    Nan::EscapableHandleScope scope;
-    Nan::MaybeLocal<v8::String> result =
-#if NAN_JSON_H_NEED_STRINGIFY
-      Nan::To<v8::String>(stringify(json_object));
-#else
-      v8::JSON::Stringify(Nan::GetCurrentContext(), json_object);
-#endif  // NAN_JSON_H_NEED_STRINGIFY
-    if (result.IsEmpty()) return v8::Local<v8::String>();
-    return scope.Escape(result.ToLocalChecked());
-  }
-
-  inline
-  Nan::MaybeLocal<v8::String> Stringify(v8::Local<v8::Object> json_object,
-    v8::Local<v8::String> gap) {
-    Nan::EscapableHandleScope scope;
-    Nan::MaybeLocal<v8::String> result =
-#if NAN_JSON_H_NEED_STRINGIFY
-      Nan::To<v8::String>(stringify(json_object, gap));
-#else
-      v8::JSON::Stringify(Nan::GetCurrentContext(), json_object, gap);
-#endif  // NAN_JSON_H_NEED_STRINGIFY
-    if (result.IsEmpty()) return v8::Local<v8::String>();
-    return scope.Escape(result.ToLocalChecked());
-  }
-
- private:
-  NAN_DISALLOW_ASSIGN_COPY_MOVE(JSON)
-#if NAN_JSON_H_NEED_PARSE
-  Nan::Callback parse_cb_;
-#endif  // NAN_JSON_H_NEED_PARSE
-#if NAN_JSON_H_NEED_STRINGIFY
-  Nan::Callback stringify_cb_;
-#endif  // NAN_JSON_H_NEED_STRINGIFY
-
-#if NAN_JSON_H_NEED_PARSE
-  inline v8::Local<v8::Value> parse(v8::Local<v8::Value> arg) {
-    assert(!parse_cb_.IsEmpty() && "parse_cb_ is empty");
-    AsyncResource resource("nan:JSON.parse");
-    return parse_cb_.Call(1, &arg, &resource).FromMaybe(v8::Local<v8::Value>());
-  }
-#endif  // NAN_JSON_H_NEED_PARSE
-
-#if NAN_JSON_H_NEED_STRINGIFY
-  inline v8::Local<v8::Value> stringify(v8::Local<v8::Value> arg) {
-    assert(!stringify_cb_.IsEmpty() && "stringify_cb_ is empty");
-    AsyncResource resource("nan:JSON.stringify");
-    return stringify_cb_.Call(1, &arg, &resource)
-        .FromMaybe(v8::Local<v8::Value>());
-  }
-
-  inline v8::Local<v8::Value> stringify(v8::Local<v8::Value> arg,
-    v8::Local<v8::String> gap) {
-    assert(!stringify_cb_.IsEmpty() && "stringify_cb_ is empty");
-
-    v8::Local<v8::Value> argv[] = {
-      arg,
-      Nan::Null(),
-      gap
-    };
-    AsyncResource resource("nan:JSON.stringify");
-    return stringify_cb_.Call(3, argv, &resource)
-        .FromMaybe(v8::Local<v8::Value>());
-  }
-#endif  // NAN_JSON_H_NEED_STRINGIFY
-};
-
-#endif  // NAN_JSON_H_

+ 0 - 356
node_modules.bak/nan/nan_maybe_43_inl.h

@@ -1,356 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_MAYBE_43_INL_H_
-#define NAN_MAYBE_43_INL_H_
-
-template<typename T>
-using MaybeLocal = v8::MaybeLocal<T>;
-
-inline
-MaybeLocal<v8::String> ToDetailString(v8::Local<v8::Value> val) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(val->ToDetailString(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::String>()));
-}
-
-inline
-MaybeLocal<v8::Uint32> ToArrayIndex(v8::Local<v8::Value> val) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(val->ToArrayIndex(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::Uint32>()));
-}
-
-inline
-Maybe<bool> Equals(v8::Local<v8::Value> a, v8::Local<v8::Value>(b)) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return a->Equals(isolate->GetCurrentContext(), b);
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(v8::Local<v8::Function> h) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::Object>()));
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(
-      v8::Local<v8::Function> h
-    , int argc
-    , v8::Local<v8::Value> argv[]) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(h->NewInstance(isolate->GetCurrentContext(), argc, argv)
-                          .FromMaybe(v8::Local<v8::Object>()));
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(v8::Local<v8::ObjectTemplate> h) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::Object>()));
-}
-
-
-inline MaybeLocal<v8::Function> GetFunction(
-    v8::Local<v8::FunctionTemplate> t) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(t->GetFunction(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::Function>()));
-}
-
-inline Maybe<bool> Set(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::Value> key
-  , v8::Local<v8::Value> value) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->Set(isolate->GetCurrentContext(), key, value);
-}
-
-inline Maybe<bool> Set(
-    v8::Local<v8::Object> obj
-  , uint32_t index
-  , v8::Local<v8::Value> value) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->Set(isolate->GetCurrentContext(), index, value);
-}
-
-#if NODE_MODULE_VERSION < NODE_4_0_MODULE_VERSION
-#include "nan_define_own_property_helper.h"  // NOLINT(build/include)
-#endif
-
-inline Maybe<bool> DefineOwnProperty(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::String> key
-  , v8::Local<v8::Value> value
-  , v8::PropertyAttribute attribs = v8::None) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-#if NODE_MODULE_VERSION >= NODE_4_0_MODULE_VERSION
-  return obj->DefineOwnProperty(isolate->GetCurrentContext(), key, value,
-                                attribs);
-#else
-  Maybe<v8::PropertyAttribute> maybeCurrent =
-      obj->GetPropertyAttributes(isolate->GetCurrentContext(), key);
-  if (maybeCurrent.IsNothing()) {
-    return Nothing<bool>();
-  }
-  v8::PropertyAttribute current = maybeCurrent.FromJust();
-  return imp::DefineOwnPropertyHelper(current, obj, key, value, attribs);
-#endif
-}
-
-NAN_DEPRECATED inline Maybe<bool> ForceSet(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::Value> key
-  , v8::Local<v8::Value> value
-  , v8::PropertyAttribute attribs = v8::None) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
-  return key->IsName()
-             ? obj->DefineOwnProperty(isolate->GetCurrentContext(),
-                                      key.As<v8::Name>(), value, attribs)
-             : Nothing<bool>();
-#else
-  return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
-#endif
-}
-
-inline MaybeLocal<v8::Value> Get(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::Value> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(obj->Get(isolate->GetCurrentContext(), key)
-                          .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline
-MaybeLocal<v8::Value> Get(v8::Local<v8::Object> obj, uint32_t index) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(obj->Get(isolate->GetCurrentContext(), index)
-                          .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline v8::PropertyAttribute GetPropertyAttributes(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::Value> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->GetPropertyAttributes(isolate->GetCurrentContext(), key)
-      .FromJust();
-}
-
-inline Maybe<bool> Has(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::String> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->Has(isolate->GetCurrentContext(), key);
-}
-
-inline Maybe<bool> Has(v8::Local<v8::Object> obj, uint32_t index) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->Has(isolate->GetCurrentContext(), index);
-}
-
-inline Maybe<bool> Delete(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::String> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->Delete(isolate->GetCurrentContext(), key);
-}
-
-inline
-Maybe<bool> Delete(v8::Local<v8::Object> obj, uint32_t index) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->Delete(isolate->GetCurrentContext(), index);
-}
-
-inline
-MaybeLocal<v8::Array> GetPropertyNames(v8::Local<v8::Object> obj) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(obj->GetPropertyNames(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::Array>()));
-}
-
-inline
-MaybeLocal<v8::Array> GetOwnPropertyNames(v8::Local<v8::Object> obj) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(obj->GetOwnPropertyNames(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::Array>()));
-}
-
-inline Maybe<bool> SetPrototype(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::Value> prototype) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->SetPrototype(isolate->GetCurrentContext(), prototype);
-}
-
-inline MaybeLocal<v8::String> ObjectProtoToString(
-    v8::Local<v8::Object> obj) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(obj->ObjectProtoToString(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::String>()));
-}
-
-inline Maybe<bool> HasOwnProperty(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::String> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->HasOwnProperty(isolate->GetCurrentContext(), key);
-}
-
-inline Maybe<bool> HasRealNamedProperty(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::String> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->HasRealNamedProperty(isolate->GetCurrentContext(), key);
-}
-
-inline Maybe<bool> HasRealIndexedProperty(
-    v8::Local<v8::Object> obj
-  , uint32_t index) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->HasRealIndexedProperty(isolate->GetCurrentContext(), index);
-}
-
-inline Maybe<bool> HasRealNamedCallbackProperty(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::String> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return obj->HasRealNamedCallbackProperty(isolate->GetCurrentContext(), key);
-}
-
-inline MaybeLocal<v8::Value> GetRealNamedPropertyInPrototypeChain(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::String> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(obj->GetRealNamedPropertyInPrototypeChain(
-                             isolate->GetCurrentContext(), key)
-                          .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline MaybeLocal<v8::Value> GetRealNamedProperty(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::String> key) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(
-      obj->GetRealNamedProperty(isolate->GetCurrentContext(), key)
-          .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline MaybeLocal<v8::Value> CallAsFunction(
-    v8::Local<v8::Object> obj
-  , v8::Local<v8::Object> recv
-  , int argc
-  , v8::Local<v8::Value> argv[]) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(
-      obj->CallAsFunction(isolate->GetCurrentContext(), recv, argc, argv)
-          .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline MaybeLocal<v8::Value> CallAsConstructor(
-    v8::Local<v8::Object> obj
-  , int argc, v8::Local<v8::Value> argv[]) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(
-      obj->CallAsConstructor(isolate->GetCurrentContext(), argc, argv)
-          .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline
-MaybeLocal<v8::String> GetSourceLine(v8::Local<v8::Message> msg) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(msg->GetSourceLine(isolate->GetCurrentContext())
-                          .FromMaybe(v8::Local<v8::String>()));
-}
-
-inline Maybe<int> GetLineNumber(v8::Local<v8::Message> msg) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return msg->GetLineNumber(isolate->GetCurrentContext());
-}
-
-inline Maybe<int> GetStartColumn(v8::Local<v8::Message> msg) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return msg->GetStartColumn(isolate->GetCurrentContext());
-}
-
-inline Maybe<int> GetEndColumn(v8::Local<v8::Message> msg) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::HandleScope scope(isolate);
-  return msg->GetEndColumn(isolate->GetCurrentContext());
-}
-
-inline MaybeLocal<v8::Object> CloneElementAt(
-    v8::Local<v8::Array> array
-  , uint32_t index) {
-#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  v8::Local<v8::Context> context = isolate->GetCurrentContext();
-  v8::Local<v8::Value> elem;
-  v8::Local<v8::Object> obj;
-  if (!array->Get(context, index).ToLocal(&elem)) {
-    return scope.Escape(obj);
-  }
-  if (!elem->ToObject(context).ToLocal(&obj)) {
-    return scope.Escape(v8::Local<v8::Object>());
-  }
-  return scope.Escape(obj->Clone());
-#else
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(array->CloneElementAt(isolate->GetCurrentContext(), index)
-                          .FromMaybe(v8::Local<v8::Object>()));
-#endif
-}
-
-inline MaybeLocal<v8::Value> Call(
-    v8::Local<v8::Function> fun
-  , v8::Local<v8::Object> recv
-  , int argc
-  , v8::Local<v8::Value> argv[]) {
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  return scope.Escape(fun->Call(isolate->GetCurrentContext(), recv, argc, argv)
-                          .FromMaybe(v8::Local<v8::Value>()));
-}
-
-#endif  // NAN_MAYBE_43_INL_H_

+ 0 - 268
node_modules.bak/nan/nan_maybe_pre_43_inl.h

@@ -1,268 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_MAYBE_PRE_43_INL_H_
-#define NAN_MAYBE_PRE_43_INL_H_
-
-template<typename T>
-class MaybeLocal {
- public:
-  inline MaybeLocal() : val_(v8::Local<T>()) {}
-
-  template<typename S>
-# if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION
-  inline
-  MaybeLocal(v8::Local<S> that) : val_(that) {}  // NOLINT(runtime/explicit)
-# else
-  inline
-  MaybeLocal(v8::Local<S> that) :  // NOLINT(runtime/explicit)
-      val_(*reinterpret_cast<v8::Local<T>*>(&that)) {}
-# endif
-
-  inline bool IsEmpty() const { return val_.IsEmpty(); }
-
-  template<typename S>
-  inline bool ToLocal(v8::Local<S> *out) const {
-    *out = val_;
-    return !IsEmpty();
-  }
-
-  inline v8::Local<T> ToLocalChecked() const {
-#if defined(V8_ENABLE_CHECKS)
-    assert(!IsEmpty() && "ToLocalChecked is Empty");
-#endif  // V8_ENABLE_CHECKS
-    return val_;
-  }
-
-  template<typename S>
-  inline v8::Local<S> FromMaybe(v8::Local<S> default_value) const {
-    return IsEmpty() ? default_value : v8::Local<S>(val_);
-  }
-
- private:
-  v8::Local<T> val_;
-};
-
-inline
-MaybeLocal<v8::String> ToDetailString(v8::Handle<v8::Value> val) {
-  return MaybeLocal<v8::String>(val->ToDetailString());
-}
-
-inline
-MaybeLocal<v8::Uint32> ToArrayIndex(v8::Handle<v8::Value> val) {
-  return MaybeLocal<v8::Uint32>(val->ToArrayIndex());
-}
-
-inline
-Maybe<bool> Equals(v8::Handle<v8::Value> a, v8::Handle<v8::Value>(b)) {
-  return Just<bool>(a->Equals(b));
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(v8::Handle<v8::Function> h) {
-  return MaybeLocal<v8::Object>(h->NewInstance());
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(
-      v8::Local<v8::Function> h
-    , int argc
-    , v8::Local<v8::Value> argv[]) {
-  return MaybeLocal<v8::Object>(h->NewInstance(argc, argv));
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(v8::Handle<v8::ObjectTemplate> h) {
-  return MaybeLocal<v8::Object>(h->NewInstance());
-}
-
-inline
-MaybeLocal<v8::Function> GetFunction(v8::Handle<v8::FunctionTemplate> t) {
-  return MaybeLocal<v8::Function>(t->GetFunction());
-}
-
-inline Maybe<bool> Set(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::Value> key
-  , v8::Handle<v8::Value> value) {
-  return Just<bool>(obj->Set(key, value));
-}
-
-inline Maybe<bool> Set(
-    v8::Handle<v8::Object> obj
-  , uint32_t index
-  , v8::Handle<v8::Value> value) {
-  return Just<bool>(obj->Set(index, value));
-}
-
-#include "nan_define_own_property_helper.h"  // NOLINT(build/include)
-
-inline Maybe<bool> DefineOwnProperty(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key
-  , v8::Handle<v8::Value> value
-  , v8::PropertyAttribute attribs = v8::None) {
-  v8::PropertyAttribute current = obj->GetPropertyAttributes(key);
-  return imp::DefineOwnPropertyHelper(current, obj, key, value, attribs);
-}
-
-NAN_DEPRECATED inline Maybe<bool> ForceSet(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::Value> key
-  , v8::Handle<v8::Value> value
-  , v8::PropertyAttribute attribs = v8::None) {
-  return Just<bool>(obj->ForceSet(key, value, attribs));
-}
-
-inline MaybeLocal<v8::Value> Get(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::Value> key) {
-  return MaybeLocal<v8::Value>(obj->Get(key));
-}
-
-inline MaybeLocal<v8::Value> Get(
-    v8::Handle<v8::Object> obj
-  , uint32_t index) {
-  return MaybeLocal<v8::Value>(obj->Get(index));
-}
-
-inline Maybe<v8::PropertyAttribute> GetPropertyAttributes(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::Value> key) {
-  return Just<v8::PropertyAttribute>(obj->GetPropertyAttributes(key));
-}
-
-inline Maybe<bool> Has(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key) {
-  return Just<bool>(obj->Has(key));
-}
-
-inline Maybe<bool> Has(
-    v8::Handle<v8::Object> obj
-  , uint32_t index) {
-  return Just<bool>(obj->Has(index));
-}
-
-inline Maybe<bool> Delete(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key) {
-  return Just<bool>(obj->Delete(key));
-}
-
-inline Maybe<bool> Delete(
-    v8::Handle<v8::Object> obj
-  , uint32_t index) {
-  return Just<bool>(obj->Delete(index));
-}
-
-inline
-MaybeLocal<v8::Array> GetPropertyNames(v8::Handle<v8::Object> obj) {
-  return MaybeLocal<v8::Array>(obj->GetPropertyNames());
-}
-
-inline
-MaybeLocal<v8::Array> GetOwnPropertyNames(v8::Handle<v8::Object> obj) {
-  return MaybeLocal<v8::Array>(obj->GetOwnPropertyNames());
-}
-
-inline Maybe<bool> SetPrototype(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::Value> prototype) {
-  return Just<bool>(obj->SetPrototype(prototype));
-}
-
-inline MaybeLocal<v8::String> ObjectProtoToString(
-    v8::Handle<v8::Object> obj) {
-  return MaybeLocal<v8::String>(obj->ObjectProtoToString());
-}
-
-inline Maybe<bool> HasOwnProperty(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key) {
-  return Just<bool>(obj->HasOwnProperty(key));
-}
-
-inline Maybe<bool> HasRealNamedProperty(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key) {
-  return Just<bool>(obj->HasRealNamedProperty(key));
-}
-
-inline Maybe<bool> HasRealIndexedProperty(
-    v8::Handle<v8::Object> obj
-  , uint32_t index) {
-  return Just<bool>(obj->HasRealIndexedProperty(index));
-}
-
-inline Maybe<bool> HasRealNamedCallbackProperty(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key) {
-  return Just<bool>(obj->HasRealNamedCallbackProperty(key));
-}
-
-inline MaybeLocal<v8::Value> GetRealNamedPropertyInPrototypeChain(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key) {
-  return MaybeLocal<v8::Value>(
-      obj->GetRealNamedPropertyInPrototypeChain(key));
-}
-
-inline MaybeLocal<v8::Value> GetRealNamedProperty(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::String> key) {
-  return MaybeLocal<v8::Value>(obj->GetRealNamedProperty(key));
-}
-
-inline MaybeLocal<v8::Value> CallAsFunction(
-    v8::Handle<v8::Object> obj
-  , v8::Handle<v8::Object> recv
-  , int argc
-  , v8::Handle<v8::Value> argv[]) {
-  return MaybeLocal<v8::Value>(obj->CallAsFunction(recv, argc, argv));
-}
-
-inline MaybeLocal<v8::Value> CallAsConstructor(
-    v8::Handle<v8::Object> obj
-  , int argc
-  , v8::Local<v8::Value> argv[]) {
-  return MaybeLocal<v8::Value>(obj->CallAsConstructor(argc, argv));
-}
-
-inline
-MaybeLocal<v8::String> GetSourceLine(v8::Handle<v8::Message> msg) {
-  return MaybeLocal<v8::String>(msg->GetSourceLine());
-}
-
-inline Maybe<int> GetLineNumber(v8::Handle<v8::Message> msg) {
-  return Just<int>(msg->GetLineNumber());
-}
-
-inline Maybe<int> GetStartColumn(v8::Handle<v8::Message> msg) {
-  return Just<int>(msg->GetStartColumn());
-}
-
-inline Maybe<int> GetEndColumn(v8::Handle<v8::Message> msg) {
-  return Just<int>(msg->GetEndColumn());
-}
-
-inline MaybeLocal<v8::Object> CloneElementAt(
-    v8::Handle<v8::Array> array
-  , uint32_t index) {
-  return MaybeLocal<v8::Object>(array->CloneElementAt(index));
-}
-
-inline MaybeLocal<v8::Value> Call(
-    v8::Local<v8::Function> fun
-  , v8::Local<v8::Object> recv
-  , int argc
-  , v8::Local<v8::Value> argv[]) {
-  return MaybeLocal<v8::Value>(fun->Call(recv, argc, argv));
-}
-
-#endif  // NAN_MAYBE_PRE_43_INL_H_

+ 0 - 340
node_modules.bak/nan/nan_new.h

@@ -1,340 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_NEW_H_
-#define NAN_NEW_H_
-
-namespace imp {  // scnr
-
-// TODO(agnat): Generalize
-template <typename T> v8::Local<T> To(v8::Local<v8::Integer> i);
-
-template <>
-inline
-v8::Local<v8::Integer>
-To<v8::Integer>(v8::Local<v8::Integer> i) {
-  return Nan::To<v8::Integer>(i).ToLocalChecked();
-}
-
-template <>
-inline
-v8::Local<v8::Int32>
-To<v8::Int32>(v8::Local<v8::Integer> i) {
-  return Nan::To<v8::Int32>(i).ToLocalChecked();
-}
-
-template <>
-inline
-v8::Local<v8::Uint32>
-To<v8::Uint32>(v8::Local<v8::Integer> i) {
-  return Nan::To<v8::Uint32>(i).ToLocalChecked();
-}
-
-template <typename T> struct FactoryBase {
-  typedef v8::Local<T> return_t;
-};
-
-template <typename T> struct MaybeFactoryBase {
-  typedef MaybeLocal<T> return_t;
-};
-
-template <typename T> struct Factory;
-
-template <>
-struct Factory<v8::Array> : FactoryBase<v8::Array> {
-  static inline return_t New();
-  static inline return_t New(int length);
-};
-
-template <>
-struct Factory<v8::Boolean> : FactoryBase<v8::Boolean> {
-  static inline return_t New(bool value);
-};
-
-template <>
-struct Factory<v8::BooleanObject> : FactoryBase<v8::BooleanObject> {
-  static inline return_t New(bool value);
-};
-
-template <>
-struct Factory<v8::Context> : FactoryBase<v8::Context> {
-  static inline
-  return_t
-  New( v8::ExtensionConfiguration* extensions = NULL
-     , v8::Local<v8::ObjectTemplate> tmpl = v8::Local<v8::ObjectTemplate>()
-     , v8::Local<v8::Value> obj = v8::Local<v8::Value>());
-};
-
-template <>
-struct Factory<v8::Date> : MaybeFactoryBase<v8::Date> {
-  static inline return_t New(double value);
-};
-
-template <>
-struct Factory<v8::External> : FactoryBase<v8::External> {
-  static inline return_t New(void *value);
-};
-
-template <>
-struct Factory<v8::Function> : FactoryBase<v8::Function> {
-  static inline
-  return_t
-  New( FunctionCallback callback
-     , v8::Local<v8::Value> data = v8::Local<v8::Value>());
-};
-
-template <>
-struct Factory<v8::FunctionTemplate> : FactoryBase<v8::FunctionTemplate> {
-  static inline
-  return_t
-  New( FunctionCallback callback = NULL
-     , v8::Local<v8::Value> data = v8::Local<v8::Value>()
-     , v8::Local<v8::Signature> signature = v8::Local<v8::Signature>());
-};
-
-template <>
-struct Factory<v8::Number> : FactoryBase<v8::Number> {
-  static inline return_t New(double value);
-};
-
-template <>
-struct Factory<v8::NumberObject> : FactoryBase<v8::NumberObject> {
-  static inline return_t New(double value);
-};
-
-template <typename T>
-struct IntegerFactory : FactoryBase<T> {
-  typedef typename FactoryBase<T>::return_t return_t;
-  static inline return_t New(int32_t value);
-  static inline return_t New(uint32_t value);
-};
-
-template <>
-struct Factory<v8::Integer> : IntegerFactory<v8::Integer> {};
-
-template <>
-struct Factory<v8::Int32> : IntegerFactory<v8::Int32> {};
-
-template <>
-struct Factory<v8::Uint32> : FactoryBase<v8::Uint32> {
-  static inline return_t New(int32_t value);
-  static inline return_t New(uint32_t value);
-};
-
-template <>
-struct Factory<v8::Object> : FactoryBase<v8::Object> {
-  static inline return_t New();
-};
-
-template <>
-struct Factory<v8::ObjectTemplate> : FactoryBase<v8::ObjectTemplate> {
-  static inline return_t New();
-};
-
-template <>
-struct Factory<v8::RegExp> : MaybeFactoryBase<v8::RegExp> {
-  static inline return_t New(
-      v8::Local<v8::String> pattern, v8::RegExp::Flags flags);
-};
-
-template <>
-struct Factory<v8::Script> : MaybeFactoryBase<v8::Script> {
-  static inline return_t New( v8::Local<v8::String> source);
-  static inline return_t New( v8::Local<v8::String> source
-                            , v8::ScriptOrigin const& origin);
-};
-
-template <>
-struct Factory<v8::Signature> : FactoryBase<v8::Signature> {
-  typedef v8::Local<v8::FunctionTemplate> FTH;
-  static inline return_t New(FTH receiver = FTH());
-};
-
-template <>
-struct Factory<v8::String> : MaybeFactoryBase<v8::String> {
-  static inline return_t New();
-  static inline return_t New(const char *value, int length = -1);
-  static inline return_t New(const uint16_t *value, int length = -1);
-  static inline return_t New(std::string const& value);
-
-  static inline return_t New(v8::String::ExternalStringResource * value);
-  static inline return_t New(ExternalOneByteStringResource * value);
-};
-
-template <>
-struct Factory<v8::StringObject> : FactoryBase<v8::StringObject> {
-  static inline return_t New(v8::Local<v8::String> value);
-};
-
-}  // end of namespace imp
-
-#if (NODE_MODULE_VERSION >= 12)
-
-namespace imp {
-
-template <>
-struct Factory<v8::UnboundScript> : MaybeFactoryBase<v8::UnboundScript> {
-  static inline return_t New( v8::Local<v8::String> source);
-  static inline return_t New( v8::Local<v8::String> source
-                            , v8::ScriptOrigin const& origin);
-};
-
-}  // end of namespace imp
-
-# include "nan_implementation_12_inl.h"
-
-#else  // NODE_MODULE_VERSION >= 12
-
-# include "nan_implementation_pre_12_inl.h"
-
-#endif
-
-//=== API ======================================================================
-
-template <typename T>
-typename imp::Factory<T>::return_t
-New() {
-  return imp::Factory<T>::New();
-}
-
-template <typename T, typename A0>
-typename imp::Factory<T>::return_t
-New(A0 arg0) {
-  return imp::Factory<T>::New(arg0);
-}
-
-template <typename T, typename A0, typename A1>
-typename imp::Factory<T>::return_t
-New(A0 arg0, A1 arg1) {
-  return imp::Factory<T>::New(arg0, arg1);
-}
-
-template <typename T, typename A0, typename A1, typename A2>
-typename imp::Factory<T>::return_t
-New(A0 arg0, A1 arg1, A2 arg2) {
-  return imp::Factory<T>::New(arg0, arg1, arg2);
-}
-
-template <typename T, typename A0, typename A1, typename A2, typename A3>
-typename imp::Factory<T>::return_t
-New(A0 arg0, A1 arg1, A2 arg2, A3 arg3) {
-  return imp::Factory<T>::New(arg0, arg1, arg2, arg3);
-}
-
-// Note(agnat): When passing overloaded function pointers to template functions
-// as generic arguments the compiler needs help in picking the right overload.
-// These two functions handle New<Function> and New<FunctionTemplate> with
-// all argument variations.
-
-// v8::Function and v8::FunctionTemplate with one or two arguments
-template <typename T>
-typename imp::Factory<T>::return_t
-New( FunctionCallback callback
-      , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
-    return imp::Factory<T>::New(callback, data);
-}
-
-// v8::Function and v8::FunctionTemplate with three arguments
-template <typename T, typename A2>
-typename imp::Factory<T>::return_t
-New( FunctionCallback callback
-      , v8::Local<v8::Value> data = v8::Local<v8::Value>()
-      , A2 a2 = A2()) {
-    return imp::Factory<T>::New(callback, data, a2);
-}
-
-// Convenience
-
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
-template <typename T> inline v8::Local<T> New(v8::Handle<T> h);
-#endif
-
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-template <typename T, typename M>
-    inline v8::Local<T> New(v8::Persistent<T, M> const& p);
-#else
-template <typename T> inline v8::Local<T> New(v8::Persistent<T> const& p);
-#endif
-template <typename T, typename M>
-inline v8::Local<T> New(Persistent<T, M> const& p);
-template <typename T>
-inline v8::Local<T> New(Global<T> const& p);
-
-inline
-imp::Factory<v8::Boolean>::return_t
-New(bool value) {
-  return New<v8::Boolean>(value);
-}
-
-inline
-imp::Factory<v8::Int32>::return_t
-New(int32_t value) {
-  return New<v8::Int32>(value);
-}
-
-inline
-imp::Factory<v8::Uint32>::return_t
-New(uint32_t value) {
-  return New<v8::Uint32>(value);
-}
-
-inline
-imp::Factory<v8::Number>::return_t
-New(double value) {
-  return New<v8::Number>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(std::string const& value) {  // NOLINT(build/include_what_you_use)
-  return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(const char * value, int length) {
-  return New<v8::String>(value, length);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(const uint16_t * value, int length) {
-  return New<v8::String>(value, length);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(const char * value) {
-  return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(const uint16_t * value) {
-  return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(v8::String::ExternalStringResource * value) {
-  return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(ExternalOneByteStringResource * value) {
-  return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::RegExp>::return_t
-New(v8::Local<v8::String> pattern, v8::RegExp::Flags flags) {
-  return New<v8::RegExp>(pattern, flags);
-}
-
-#endif  // NAN_NEW_H_

+ 0 - 156
node_modules.bak/nan/nan_object_wrap.h

@@ -1,156 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_OBJECT_WRAP_H_
-#define NAN_OBJECT_WRAP_H_
-
-class ObjectWrap {
- public:
-  ObjectWrap() {
-    refs_ = 0;
-  }
-
-
-  virtual ~ObjectWrap() {
-    if (persistent().IsEmpty()) {
-      return;
-    }
-
-    persistent().ClearWeak();
-    persistent().Reset();
-  }
-
-
-  template <class T>
-  static inline T* Unwrap(v8::Local<v8::Object> object) {
-    assert(!object.IsEmpty());
-    assert(object->InternalFieldCount() > 0);
-    // Cast to ObjectWrap before casting to T.  A direct cast from void
-    // to T won't work right when T has more than one base class.
-    void* ptr = GetInternalFieldPointer(object, 0);
-    ObjectWrap* wrap = static_cast<ObjectWrap*>(ptr);
-    return static_cast<T*>(wrap);
-  }
-
-
-  inline v8::Local<v8::Object> handle() const {
-    return New(handle_);
-  }
-
-
-  inline Persistent<v8::Object>& persistent() {
-    return handle_;
-  }
-
-
- protected:
-  inline void Wrap(v8::Local<v8::Object> object) {
-    assert(persistent().IsEmpty());
-    assert(object->InternalFieldCount() > 0);
-    SetInternalFieldPointer(object, 0, this);
-    persistent().Reset(object);
-    MakeWeak();
-  }
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-
-  inline void MakeWeak() {
-    persistent().v8::PersistentBase<v8::Object>::SetWeak(
-        this, WeakCallback, v8::WeakCallbackType::kParameter);
-#if NODE_MAJOR_VERSION < 10
-    // FIXME(bnoordhuis) Probably superfluous in older Node.js versions too.
-    persistent().MarkIndependent();
-#endif
-  }
-
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-
-  inline void MakeWeak() {
-    persistent().v8::PersistentBase<v8::Object>::SetWeak(this, WeakCallback);
-    persistent().MarkIndependent();
-  }
-
-#else
-
-  inline void MakeWeak() {
-    persistent().persistent.MakeWeak(this, WeakCallback);
-    persistent().MarkIndependent();
-  }
-
-#endif
-
-  /* Ref() marks the object as being attached to an event loop.
-   * Refed objects will not be garbage collected, even if
-   * all references are lost.
-   */
-  virtual void Ref() {
-    assert(!persistent().IsEmpty());
-    persistent().ClearWeak();
-    refs_++;
-  }
-
-  /* Unref() marks an object as detached from the event loop.  This is its
-   * default state.  When an object with a "weak" reference changes from
-   * attached to detached state it will be freed. Be careful not to access
-   * the object after making this call as it might be gone!
-   * (A "weak reference" means an object that only has a
-   * persistent handle.)
-   *
-   * DO NOT CALL THIS FROM DESTRUCTOR
-   */
-  virtual void Unref() {
-    assert(!persistent().IsEmpty());
-    assert(!persistent().IsWeak());
-    assert(refs_ > 0);
-    if (--refs_ == 0)
-      MakeWeak();
-  }
-
-  int refs_;  // ro
-
- private:
-  NAN_DISALLOW_ASSIGN_COPY_MOVE(ObjectWrap)
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-
-  static void
-  WeakCallback(v8::WeakCallbackInfo<ObjectWrap> const& info) {
-    ObjectWrap* wrap = info.GetParameter();
-    assert(wrap->refs_ == 0);
-    wrap->handle_.Reset();
-    delete wrap;
-  }
-
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-
-  static void
-  WeakCallback(v8::WeakCallbackData<v8::Object, ObjectWrap> const& data) {
-    ObjectWrap* wrap = data.GetParameter();
-    assert(wrap->refs_ == 0);
-    assert(wrap->handle_.IsNearDeath());
-    wrap->handle_.Reset();
-    delete wrap;
-  }
-
-#else
-
-  static void WeakCallback(v8::Persistent<v8::Value> value, void *data) {
-    ObjectWrap *wrap = static_cast<ObjectWrap*>(data);
-    assert(wrap->refs_ == 0);
-    assert(wrap->handle_.IsNearDeath());
-    wrap->handle_.Reset();
-    delete wrap;
-  }
-
-#endif
-  Persistent<v8::Object> handle_;
-};
-
-
-#endif  // NAN_OBJECT_WRAP_H_

+ 0 - 132
node_modules.bak/nan/nan_persistent_12_inl.h

@@ -1,132 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_PERSISTENT_12_INL_H_
-#define NAN_PERSISTENT_12_INL_H_
-
-template<typename T, typename M> class Persistent :
-    public v8::Persistent<T, M> {
- public:
-  inline Persistent() : v8::Persistent<T, M>() {}
-
-  template<typename S> inline Persistent(v8::Local<S> that) :
-      v8::Persistent<T, M>(v8::Isolate::GetCurrent(), that) {}
-
-  template<typename S, typename M2>
-  inline
-  Persistent(const v8::Persistent<S, M2> &that) :  // NOLINT(runtime/explicit)
-      v8::Persistent<T, M2>(v8::Isolate::GetCurrent(), that) {}
-
-  inline void Reset() { v8::PersistentBase<T>::Reset(); }
-
-  template <typename S>
-  inline void Reset(const v8::Local<S> &other) {
-    v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
-  }
-
-  template <typename S>
-  inline void Reset(const v8::PersistentBase<S> &other) {
-    v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
-  }
-
-  template<typename P>
-  inline void SetWeak(
-    P *parameter
-    , typename WeakCallbackInfo<P>::Callback callback
-    , WeakCallbackType type);
-
- private:
-  inline T *operator*() const { return *PersistentBase<T>::persistent; }
-
-  template<typename S, typename M2>
-  inline void Copy(const Persistent<S, M2> &that) {
-    TYPE_CHECK(T, S);
-
-    this->Reset();
-
-    if (!that.IsEmpty()) {
-      this->Reset(that);
-      M::Copy(that, this);
-    }
-  }
-};
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-template<typename T>
-class Global : public v8::Global<T> {
- public:
-  inline Global() : v8::Global<T>() {}
-
-  template<typename S> inline Global(v8::Local<S> that) :
-    v8::Global<T>(v8::Isolate::GetCurrent(), that) {}
-
-  template<typename S>
-  inline
-  Global(const v8::PersistentBase<S> &that) :  // NOLINT(runtime/explicit)
-      v8::Global<S>(v8::Isolate::GetCurrent(), that) {}
-
-  inline void Reset() { v8::PersistentBase<T>::Reset(); }
-
-  template <typename S>
-  inline void Reset(const v8::Local<S> &other) {
-    v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
-  }
-
-  template <typename S>
-  inline void Reset(const v8::PersistentBase<S> &other) {
-    v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
-  }
-
-  template<typename P>
-  inline void SetWeak(
-    P *parameter
-    , typename WeakCallbackInfo<P>::Callback callback
-    , WeakCallbackType type) {
-    reinterpret_cast<Persistent<T>*>(this)->SetWeak(
-        parameter, callback, type);
-  }
-};
-#else
-template<typename T>
-class Global : public v8::UniquePersistent<T> {
- public:
-  inline Global() : v8::UniquePersistent<T>() {}
-
-  template<typename S> inline Global(v8::Local<S> that) :
-    v8::UniquePersistent<T>(v8::Isolate::GetCurrent(), that) {}
-
-  template<typename S>
-  inline
-  Global(const v8::PersistentBase<S> &that) :  // NOLINT(runtime/explicit)
-      v8::UniquePersistent<S>(v8::Isolate::GetCurrent(), that) {}
-
-  inline void Reset() { v8::PersistentBase<T>::Reset(); }
-
-  template <typename S>
-  inline void Reset(const v8::Local<S> &other) {
-    v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
-  }
-
-  template <typename S>
-  inline void Reset(const v8::PersistentBase<S> &other) {
-    v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
-  }
-
-  template<typename P>
-  inline void SetWeak(
-    P *parameter
-    , typename WeakCallbackInfo<P>::Callback callback
-    , WeakCallbackType type) {
-    reinterpret_cast<Persistent<T>*>(this)->SetWeak(
-        parameter, callback, type);
-  }
-};
-#endif
-
-#endif  // NAN_PERSISTENT_12_INL_H_

+ 0 - 242
node_modules.bak/nan/nan_persistent_pre_12_inl.h

@@ -1,242 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_PERSISTENT_PRE_12_INL_H_
-#define NAN_PERSISTENT_PRE_12_INL_H_
-
-template<typename T>
-class PersistentBase {
-  v8::Persistent<T> persistent;
-  template<typename U>
-  friend v8::Local<U> New(const PersistentBase<U> &p);
-  template<typename U, typename M>
-  friend v8::Local<U> New(const Persistent<U, M> &p);
-  template<typename U>
-  friend v8::Local<U> New(const Global<U> &p);
-  template<typename S> friend class ReturnValue;
-
- public:
-  inline PersistentBase() :
-      persistent() {}
-
-  inline void Reset() {
-    persistent.Dispose();
-    persistent.Clear();
-  }
-
-  template<typename S>
-  inline void Reset(const v8::Local<S> &other) {
-    TYPE_CHECK(T, S);
-
-    if (!persistent.IsEmpty()) {
-      persistent.Dispose();
-    }
-
-    if (other.IsEmpty()) {
-      persistent.Clear();
-    } else {
-      persistent = v8::Persistent<T>::New(other);
-    }
-  }
-
-  template<typename S>
-  inline void Reset(const PersistentBase<S> &other) {
-    TYPE_CHECK(T, S);
-
-    if (!persistent.IsEmpty()) {
-      persistent.Dispose();
-    }
-
-    if (other.IsEmpty()) {
-      persistent.Clear();
-    } else {
-      persistent = v8::Persistent<T>::New(other.persistent);
-    }
-  }
-
-  inline bool IsEmpty() const { return persistent.IsEmpty(); }
-
-  inline void Empty() { persistent.Clear(); }
-
-  template<typename S>
-  inline bool operator==(const PersistentBase<S> &that) const {
-    return this->persistent == that.persistent;
-  }
-
-  template<typename S>
-  inline bool operator==(const v8::Local<S> &that) const {
-    return this->persistent == that;
-  }
-
-  template<typename S>
-  inline bool operator!=(const PersistentBase<S> &that) const {
-    return !operator==(that);
-  }
-
-  template<typename S>
-  inline bool operator!=(const v8::Local<S> &that) const {
-    return !operator==(that);
-  }
-
-  template<typename P>
-  inline void SetWeak(
-    P *parameter
-    , typename WeakCallbackInfo<P>::Callback callback
-    , WeakCallbackType type);
-
-  inline void ClearWeak() { persistent.ClearWeak(); }
-
-  inline void MarkIndependent() { persistent.MarkIndependent(); }
-
-  inline bool IsIndependent() const { return persistent.IsIndependent(); }
-
-  inline bool IsNearDeath() const { return persistent.IsNearDeath(); }
-
-  inline bool IsWeak() const { return persistent.IsWeak(); }
-
- private:
-  inline explicit PersistentBase(v8::Persistent<T> that) :
-      persistent(that) { }
-  inline explicit PersistentBase(T *val) : persistent(val) {}
-  template<typename S, typename M> friend class Persistent;
-  template<typename S> friend class Global;
-  friend class ObjectWrap;
-};
-
-template<typename T>
-class NonCopyablePersistentTraits {
- public:
-  typedef Persistent<T, NonCopyablePersistentTraits<T> >
-      NonCopyablePersistent;
-  static const bool kResetInDestructor = false;
-  template<typename S, typename M>
-  inline static void Copy(const Persistent<S, M> &source,
-                             NonCopyablePersistent *dest) {
-    Uncompilable<v8::Object>();
-  }
-
-  template<typename O> inline static void Uncompilable() {
-    TYPE_CHECK(O, v8::Primitive);
-  }
-};
-
-template<typename T>
-struct CopyablePersistentTraits {
-  typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
-  static const bool kResetInDestructor = true;
-  template<typename S, typename M>
-  static inline void Copy(const Persistent<S, M> &source,
-                             CopyablePersistent *dest) {}
-};
-
-template<typename T, typename M> class Persistent :
-    public PersistentBase<T> {
- public:
-  inline Persistent() {}
-
-  template<typename S> inline Persistent(v8::Handle<S> that)
-      : PersistentBase<T>(v8::Persistent<T>::New(that)) {
-    TYPE_CHECK(T, S);
-  }
-
-  inline Persistent(const Persistent &that) : PersistentBase<T>() {
-    Copy(that);
-  }
-
-  template<typename S, typename M2>
-  inline Persistent(const Persistent<S, M2> &that) :
-      PersistentBase<T>() {
-    Copy(that);
-  }
-
-  inline Persistent &operator=(const Persistent &that) {
-    Copy(that);
-    return *this;
-  }
-
-  template <class S, class M2>
-  inline Persistent &operator=(const Persistent<S, M2> &that) {
-    Copy(that);
-    return *this;
-  }
-
-  inline ~Persistent() {
-    if (M::kResetInDestructor) this->Reset();
-  }
-
- private:
-  inline T *operator*() const { return *PersistentBase<T>::persistent; }
-
-  template<typename S, typename M2>
-  inline void Copy(const Persistent<S, M2> &that) {
-    TYPE_CHECK(T, S);
-
-    this->Reset();
-
-    if (!that.IsEmpty()) {
-      this->persistent = v8::Persistent<T>::New(that.persistent);
-      M::Copy(that, this);
-    }
-  }
-};
-
-template<typename T>
-class Global : public PersistentBase<T> {
-  struct RValue {
-    inline explicit RValue(Global* obj) : object(obj) {}
-    Global* object;
-  };
-
- public:
-  inline Global() : PersistentBase<T>(0) { }
-
-  template <typename S>
-  inline Global(v8::Local<S> that)  // NOLINT(runtime/explicit)
-      : PersistentBase<T>(v8::Persistent<T>::New(that)) {
-    TYPE_CHECK(T, S);
-  }
-
-  template <typename S>
-  inline Global(const PersistentBase<S> &that)  // NOLINT(runtime/explicit)
-    : PersistentBase<T>(that) {
-    TYPE_CHECK(T, S);
-  }
-  /**
-   * Move constructor.
-   */
-  inline Global(RValue rvalue)  // NOLINT(runtime/explicit)
-    : PersistentBase<T>(rvalue.object->persistent) {
-    rvalue.object->Reset();
-  }
-  inline ~Global() { this->Reset(); }
-  /**
-   * Move via assignment.
-   */
-  template<typename S>
-  inline Global &operator=(Global<S> rhs) {
-    TYPE_CHECK(T, S);
-    this->Reset(rhs.persistent);
-    rhs.Reset();
-    return *this;
-  }
-  /**
-   * Cast operator for moves.
-   */
-  inline operator RValue() { return RValue(this); }
-  /**
-   * Pass allows returning uniques from functions, etc.
-   */
-  Global Pass() { return Global(RValue(this)); }
-
- private:
-  Global(Global &);
-  void operator=(Global &);
-  template<typename S> friend class ReturnValue;
-};
-
-#endif  // NAN_PERSISTENT_PRE_12_INL_H_

+ 0 - 73
node_modules.bak/nan/nan_private.h

@@ -1,73 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_PRIVATE_H_
-#define NAN_PRIVATE_H_
-
-inline Maybe<bool>
-HasPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key) {
-  HandleScope scope;
-#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::Local<v8::Context> context = isolate->GetCurrentContext();
-  v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
-  return object->HasPrivate(context, private_key);
-#else
-  return Just(!object->GetHiddenValue(key).IsEmpty());
-#endif
-}
-
-inline MaybeLocal<v8::Value>
-GetPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key) {
-#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::EscapableHandleScope scope(isolate);
-  v8::Local<v8::Context> context = isolate->GetCurrentContext();
-  v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
-  v8::MaybeLocal<v8::Value> v = object->GetPrivate(context, private_key);
-  return scope.Escape(v.ToLocalChecked());
-#else
-  EscapableHandleScope scope;
-  v8::Local<v8::Value> v = object->GetHiddenValue(key);
-  if (v.IsEmpty()) {
-    v = Undefined();
-  }
-  return scope.Escape(v);
-#endif
-}
-
-inline Maybe<bool> SetPrivate(
-    v8::Local<v8::Object> object,
-    v8::Local<v8::String> key,
-    v8::Local<v8::Value> value) {
-#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
-  HandleScope scope;
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::Local<v8::Context> context = isolate->GetCurrentContext();
-  v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
-  return object->SetPrivate(context, private_key, value);
-#else
-  return Just(object->SetHiddenValue(key, value));
-#endif
-}
-
-inline Maybe<bool> DeletePrivate(
-    v8::Local<v8::Object> object,
-    v8::Local<v8::String> key) {
-#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
-  HandleScope scope;
-  v8::Isolate *isolate = v8::Isolate::GetCurrent();
-  v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
-  return object->DeletePrivate(isolate->GetCurrentContext(), private_key);
-#else
-  return Just(object->DeleteHiddenValue(key));
-#endif
-}
-
-#endif  // NAN_PRIVATE_H_
-

+ 0 - 305
node_modules.bak/nan/nan_string_bytes.h

@@ -1,305 +0,0 @@
-// Copyright Joyent, Inc. and other Node 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.
-
-#ifndef NAN_STRING_BYTES_H_
-#define NAN_STRING_BYTES_H_
-
-// Decodes a v8::Local<v8::String> or Buffer to a raw char*
-
-namespace imp {
-
-using v8::Local;
-using v8::Object;
-using v8::String;
-using v8::Value;
-
-
-//// Base 64 ////
-
-#define base64_encoded_size(size) ((size + 2 - ((size + 2) % 3)) / 3 * 4)
-
-
-
-//// HEX ////
-
-static bool contains_non_ascii_slow(const char* buf, size_t len) {
-  for (size_t i = 0; i < len; ++i) {
-    if (buf[i] & 0x80) return true;
-  }
-  return false;
-}
-
-
-static bool contains_non_ascii(const char* src, size_t len) {
-  if (len < 16) {
-    return contains_non_ascii_slow(src, len);
-  }
-
-  const unsigned bytes_per_word = sizeof(void*);
-  const unsigned align_mask = bytes_per_word - 1;
-  const unsigned unaligned = reinterpret_cast<uintptr_t>(src) & align_mask;
-
-  if (unaligned > 0) {
-    const unsigned n = bytes_per_word - unaligned;
-    if (contains_non_ascii_slow(src, n)) return true;
-    src += n;
-    len -= n;
-  }
-
-
-#if defined(__x86_64__) || defined(_WIN64)
-  const uintptr_t mask = 0x8080808080808080ll;
-#else
-  const uintptr_t mask = 0x80808080l;
-#endif
-
-  const uintptr_t* srcw = reinterpret_cast<const uintptr_t*>(src);
-
-  for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) {
-    if (srcw[i] & mask) return true;
-  }
-
-  const unsigned remainder = len & align_mask;
-  if (remainder > 0) {
-    const size_t offset = len - remainder;
-    if (contains_non_ascii_slow(src + offset, remainder)) return true;
-  }
-
-  return false;
-}
-
-
-static void force_ascii_slow(const char* src, char* dst, size_t len) {
-  for (size_t i = 0; i < len; ++i) {
-    dst[i] = src[i] & 0x7f;
-  }
-}
-
-
-static void force_ascii(const char* src, char* dst, size_t len) {
-  if (len < 16) {
-    force_ascii_slow(src, dst, len);
-    return;
-  }
-
-  const unsigned bytes_per_word = sizeof(void*);
-  const unsigned align_mask = bytes_per_word - 1;
-  const unsigned src_unalign = reinterpret_cast<uintptr_t>(src) & align_mask;
-  const unsigned dst_unalign = reinterpret_cast<uintptr_t>(dst) & align_mask;
-
-  if (src_unalign > 0) {
-    if (src_unalign == dst_unalign) {
-      const unsigned unalign = bytes_per_word - src_unalign;
-      force_ascii_slow(src, dst, unalign);
-      src += unalign;
-      dst += unalign;
-      len -= src_unalign;
-    } else {
-      force_ascii_slow(src, dst, len);
-      return;
-    }
-  }
-
-#if defined(__x86_64__) || defined(_WIN64)
-  const uintptr_t mask = ~0x8080808080808080ll;
-#else
-  const uintptr_t mask = ~0x80808080l;
-#endif
-
-  const uintptr_t* srcw = reinterpret_cast<const uintptr_t*>(src);
-  uintptr_t* dstw = reinterpret_cast<uintptr_t*>(dst);
-
-  for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) {
-    dstw[i] = srcw[i] & mask;
-  }
-
-  const unsigned remainder = len & align_mask;
-  if (remainder > 0) {
-    const size_t offset = len - remainder;
-    force_ascii_slow(src + offset, dst + offset, remainder);
-  }
-}
-
-
-static size_t base64_encode(const char* src,
-                            size_t slen,
-                            char* dst,
-                            size_t dlen) {
-  // We know how much we'll write, just make sure that there's space.
-  assert(dlen >= base64_encoded_size(slen) &&
-      "not enough space provided for base64 encode");
-
-  dlen = base64_encoded_size(slen);
-
-  unsigned a;
-  unsigned b;
-  unsigned c;
-  unsigned i;
-  unsigned k;
-  unsigned n;
-
-  static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                              "abcdefghijklmnopqrstuvwxyz"
-                              "0123456789+/";
-
-  i = 0;
-  k = 0;
-  n = slen / 3 * 3;
-
-  while (i < n) {
-    a = src[i + 0] & 0xff;
-    b = src[i + 1] & 0xff;
-    c = src[i + 2] & 0xff;
-
-    dst[k + 0] = table[a >> 2];
-    dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
-    dst[k + 2] = table[((b & 0x0f) << 2) | (c >> 6)];
-    dst[k + 3] = table[c & 0x3f];
-
-    i += 3;
-    k += 4;
-  }
-
-  if (n != slen) {
-    switch (slen - n) {
-      case 1:
-        a = src[i + 0] & 0xff;
-        dst[k + 0] = table[a >> 2];
-        dst[k + 1] = table[(a & 3) << 4];
-        dst[k + 2] = '=';
-        dst[k + 3] = '=';
-        break;
-
-      case 2:
-        a = src[i + 0] & 0xff;
-        b = src[i + 1] & 0xff;
-        dst[k + 0] = table[a >> 2];
-        dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
-        dst[k + 2] = table[(b & 0x0f) << 2];
-        dst[k + 3] = '=';
-        break;
-    }
-  }
-
-  return dlen;
-}
-
-
-static size_t hex_encode(const char* src, size_t slen, char* dst, size_t dlen) {
-  // We know how much we'll write, just make sure that there's space.
-  assert(dlen >= slen * 2 &&
-      "not enough space provided for hex encode");
-
-  dlen = slen * 2;
-  for (uint32_t i = 0, k = 0; k < dlen; i += 1, k += 2) {
-    static const char hex[] = "0123456789abcdef";
-    uint8_t val = static_cast<uint8_t>(src[i]);
-    dst[k + 0] = hex[val >> 4];
-    dst[k + 1] = hex[val & 15];
-  }
-
-  return dlen;
-}
-
-
-
-static Local<Value> Encode(const char* buf,
-                           size_t buflen,
-                           enum Encoding encoding) {
-  assert(buflen <= node::Buffer::kMaxLength);
-  if (!buflen && encoding != BUFFER)
-    return New("").ToLocalChecked();
-
-  Local<String> val;
-  switch (encoding) {
-    case BUFFER:
-      return CopyBuffer(buf, buflen).ToLocalChecked();
-
-    case ASCII:
-      if (contains_non_ascii(buf, buflen)) {
-        char* out = new char[buflen];
-        force_ascii(buf, out, buflen);
-        val = New<String>(out, buflen).ToLocalChecked();
-        delete[] out;
-      } else {
-        val = New<String>(buf, buflen).ToLocalChecked();
-      }
-      break;
-
-    case UTF8:
-      val = New<String>(buf, buflen).ToLocalChecked();
-      break;
-
-    case BINARY: {
-      // TODO(isaacs) use ExternalTwoByteString?
-      const unsigned char *cbuf = reinterpret_cast<const unsigned char*>(buf);
-      uint16_t * twobytebuf = new uint16_t[buflen];
-      for (size_t i = 0; i < buflen; i++) {
-        // XXX is the following line platform independent?
-        twobytebuf[i] = cbuf[i];
-      }
-      val = New<String>(twobytebuf, buflen).ToLocalChecked();
-      delete[] twobytebuf;
-      break;
-    }
-
-    case BASE64: {
-      size_t dlen = base64_encoded_size(buflen);
-      char* dst = new char[dlen];
-
-      size_t written = base64_encode(buf, buflen, dst, dlen);
-      assert(written == dlen);
-
-      val = New<String>(dst, dlen).ToLocalChecked();
-      delete[] dst;
-      break;
-    }
-
-    case UCS2: {
-      const uint16_t* data = reinterpret_cast<const uint16_t*>(buf);
-      val = New<String>(data, buflen / 2).ToLocalChecked();
-      break;
-    }
-
-    case HEX: {
-      size_t dlen = buflen * 2;
-      char* dst = new char[dlen];
-      size_t written = hex_encode(buf, buflen, dst, dlen);
-      assert(written == dlen);
-
-      val = New<String>(dst, dlen).ToLocalChecked();
-      delete[] dst;
-      break;
-    }
-
-    default:
-      assert(0 && "unknown encoding");
-      break;
-  }
-
-  return val;
-}
-
-#undef base64_encoded_size
-
-}  // end of namespace imp
-
-#endif  // NAN_STRING_BYTES_H_

+ 0 - 96
node_modules.bak/nan/nan_typedarray_contents.h

@@ -1,96 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_TYPEDARRAY_CONTENTS_H_
-#define NAN_TYPEDARRAY_CONTENTS_H_
-
-template<typename T>
-class TypedArrayContents {
- public:
-  inline explicit TypedArrayContents(v8::Local<v8::Value> from) :
-      length_(0), data_(NULL) {
-    HandleScope scope;
-
-    size_t length = 0;
-    void*  data = NULL;
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-
-    if (from->IsArrayBufferView()) {
-      v8::Local<v8::ArrayBufferView> array =
-        v8::Local<v8::ArrayBufferView>::Cast(from);
-
-      const size_t    byte_length = array->ByteLength();
-      const ptrdiff_t byte_offset = array->ByteOffset();
-      v8::Local<v8::ArrayBuffer> buffer = array->Buffer();
-
-      length = byte_length / sizeof(T);
-// Actually it's 7.9 here but this would lead to ABI issues with Node.js 13
-// using 7.8 till 13.2.0.
-#if (V8_MAJOR_VERSION >= 8)
-      data = static_cast<char*>(buffer->GetBackingStore()->Data()) + byte_offset;
-#else
-      data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
-#endif
-    }
-
-#else
-
-    if (from->IsObject() && !from->IsNull()) {
-      v8::Local<v8::Object> array = v8::Local<v8::Object>::Cast(from);
-
-      MaybeLocal<v8::Value> buffer = Get(array,
-        New<v8::String>("buffer").ToLocalChecked());
-      MaybeLocal<v8::Value> byte_length = Get(array,
-        New<v8::String>("byteLength").ToLocalChecked());
-      MaybeLocal<v8::Value> byte_offset = Get(array,
-        New<v8::String>("byteOffset").ToLocalChecked());
-
-      if (!buffer.IsEmpty() &&
-          !byte_length.IsEmpty() && byte_length.ToLocalChecked()->IsUint32() &&
-          !byte_offset.IsEmpty() && byte_offset.ToLocalChecked()->IsUint32()) {
-        data = array->GetIndexedPropertiesExternalArrayData();
-        if(data) {
-          length = byte_length.ToLocalChecked()->Uint32Value() / sizeof(T);
-        }
-      }
-    }
-
-#endif
-
-#if defined(_MSC_VER) && _MSC_VER >= 1900 || __cplusplus >= 201103L
-    assert(reinterpret_cast<uintptr_t>(data) % alignof (T) == 0);
-#elif defined(_MSC_VER) && _MSC_VER >= 1600 || defined(__GNUC__)
-    assert(reinterpret_cast<uintptr_t>(data) % __alignof(T) == 0);
-#else
-    assert(reinterpret_cast<uintptr_t>(data) % sizeof (T) == 0);
-#endif
-
-    length_ = length;
-    data_   = static_cast<T*>(data);
-  }
-
-  inline size_t length() const      { return length_; }
-  inline T* operator*()             { return data_;   }
-  inline const T* operator*() const { return data_;   }
-
- private:
-  NAN_DISALLOW_ASSIGN_COPY_MOVE(TypedArrayContents)
-
-  //Disable heap allocation
-  void *operator new(size_t size);
-  void operator delete(void *, size_t) {
-    abort();
-  }
-
-  size_t  length_;
-  T*      data_;
-};
-
-#endif  // NAN_TYPEDARRAY_CONTENTS_H_

+ 0 - 437
node_modules.bak/nan/nan_weak.h

@@ -1,437 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_WEAK_H_
-#define NAN_WEAK_H_
-
-static const int kInternalFieldsInWeakCallback = 2;
-static const int kNoInternalFieldIndex = -1;
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
-    v8::WeakCallbackInfo<WeakCallbackInfo<T> > const&
-# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
-    NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-#elif NODE_MODULE_VERSION > IOJS_1_1_MODULE_VERSION
-# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
-    v8::PhantomCallbackData<WeakCallbackInfo<T> > const&
-# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
-    NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-#elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
-    v8::PhantomCallbackData<WeakCallbackInfo<T> > const&
-# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
-    v8::InternalFieldsCallbackData<WeakCallbackInfo<T>, void> const&
-# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-# define NAN_WEAK_CALLBACK_DATA_TYPE_ \
-    v8::WeakCallbackData<S, WeakCallbackInfo<T> > const&
-# define NAN_WEAK_CALLBACK_SIG_ NAN_WEAK_CALLBACK_DATA_TYPE_
-#else
-# define NAN_WEAK_CALLBACK_DATA_TYPE_ void *
-# define NAN_WEAK_CALLBACK_SIG_ \
-    v8::Persistent<v8::Value>, NAN_WEAK_CALLBACK_DATA_TYPE_
-#endif
-
-template<typename T>
-class WeakCallbackInfo {
- public:
-  typedef void (*Callback)(const WeakCallbackInfo<T>& data);
-  WeakCallbackInfo(
-      Persistent<v8::Value> *persistent
-    , Callback callback
-    , void *parameter
-    , void *field1 = 0
-    , void *field2 = 0) :
-        callback_(callback), isolate_(0), parameter_(parameter) {
-    std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>));
-    internal_fields_[0] = field1;
-    internal_fields_[1] = field2;
-  }
-  inline v8::Isolate *GetIsolate() const { return isolate_; }
-  inline T *GetParameter() const { return static_cast<T*>(parameter_); }
-  inline void *GetInternalField(int index) const {
-    assert((index == 0 || index == 1) && "internal field index out of bounds");
-    if (index == 0) {
-      return internal_fields_[0];
-    } else {
-      return internal_fields_[1];
-    }
-  }
-
- private:
-  NAN_DISALLOW_ASSIGN_COPY_MOVE(WeakCallbackInfo)
-  Callback callback_;
-  v8::Isolate *isolate_;
-  void *parameter_;
-  void *internal_fields_[kInternalFieldsInWeakCallback];
-  v8::Persistent<v8::Value> persistent_;
-  template<typename S, typename M> friend class Persistent;
-  template<typename S> friend class PersistentBase;
-#if NODE_MODULE_VERSION <= NODE_0_12_MODULE_VERSION
-# if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-  template<typename S>
-  static void invoke(NAN_WEAK_CALLBACK_SIG_ data);
-  template<typename S>
-  static WeakCallbackInfo *unwrap(NAN_WEAK_CALLBACK_DATA_TYPE_ data);
-# else
-  static void invoke(NAN_WEAK_CALLBACK_SIG_ data);
-  static WeakCallbackInfo *unwrap(NAN_WEAK_CALLBACK_DATA_TYPE_ data);
-# endif
-#else
-# if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                     \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-  template<bool isFirstPass>
-  static void invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data);
-  template<bool isFirstPass>
-  static void invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data);
-# else
-  static void invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data);
-  static void invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data);
-# endif
-  static WeakCallbackInfo *unwrapparameter(
-      NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data);
-  static WeakCallbackInfo *unwraptwofield(
-      NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data);
-#endif
-};
-
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-
-template<typename T>
-template<bool isFirstPass>
-void
-WeakCallbackInfo<T>::invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data) {
-  WeakCallbackInfo<T> *cbinfo = unwrapparameter(data);
-  if (isFirstPass) {
-    cbinfo->persistent_.Reset();
-    data.SetSecondPassCallback(invokeparameter<false>);
-  } else {
-    cbinfo->callback_(*cbinfo);
-    delete cbinfo;
-  }
-}
-
-template<typename T>
-template<bool isFirstPass>
-void
-WeakCallbackInfo<T>::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) {
-  WeakCallbackInfo<T> *cbinfo = unwraptwofield(data);
-  if (isFirstPass) {
-    cbinfo->persistent_.Reset();
-    data.SetSecondPassCallback(invoketwofield<false>);
-  } else {
-    cbinfo->callback_(*cbinfo);
-    delete cbinfo;
-  }
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrapparameter(
-    NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data) {
-  WeakCallbackInfo<T> *cbinfo =
-      static_cast<WeakCallbackInfo<T>*>(data.GetParameter());
-  cbinfo->isolate_ = data.GetIsolate();
-  return cbinfo;
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwraptwofield(
-    NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) {
-  WeakCallbackInfo<T> *cbinfo =
-      static_cast<WeakCallbackInfo<T>*>(data.GetInternalField(0));
-  cbinfo->isolate_ = data.GetIsolate();
-  return cbinfo;
-}
-
-#undef NAN_WEAK_PARAMETER_CALLBACK_SIG_
-#undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_
-#undef NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-#undef NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-# elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-
-template<typename T>
-void
-WeakCallbackInfo<T>::invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data) {
-  WeakCallbackInfo<T> *cbinfo = unwrapparameter(data);
-  cbinfo->persistent_.Reset();
-  cbinfo->callback_(*cbinfo);
-  delete cbinfo;
-}
-
-template<typename T>
-void
-WeakCallbackInfo<T>::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) {
-  WeakCallbackInfo<T> *cbinfo = unwraptwofield(data);
-  cbinfo->persistent_.Reset();
-  cbinfo->callback_(*cbinfo);
-  delete cbinfo;
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrapparameter(
-    NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data) {
-  WeakCallbackInfo<T> *cbinfo =
-       static_cast<WeakCallbackInfo<T>*>(data.GetParameter());
-  cbinfo->isolate_ = data.GetIsolate();
-  return cbinfo;
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwraptwofield(
-    NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) {
-  WeakCallbackInfo<T> *cbinfo =
-       static_cast<WeakCallbackInfo<T>*>(data.GetInternalField1());
-  cbinfo->isolate_ = data.GetIsolate();
-  return cbinfo;
-}
-
-#undef NAN_WEAK_PARAMETER_CALLBACK_SIG_
-#undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_
-#undef NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-#undef NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-
-template<typename T>
-template<typename S>
-void WeakCallbackInfo<T>::invoke(NAN_WEAK_CALLBACK_SIG_ data) {
-  WeakCallbackInfo<T> *cbinfo = unwrap(data);
-  cbinfo->persistent_.Reset();
-  cbinfo->callback_(*cbinfo);
-  delete cbinfo;
-}
-
-template<typename T>
-template<typename S>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrap(
-    NAN_WEAK_CALLBACK_DATA_TYPE_ data) {
-  void *parameter = data.GetParameter();
-  WeakCallbackInfo<T> *cbinfo =
-      static_cast<WeakCallbackInfo<T>*>(parameter);
-  cbinfo->isolate_ = data.GetIsolate();
-  return cbinfo;
-}
-
-#undef NAN_WEAK_CALLBACK_SIG_
-#undef NAN_WEAK_CALLBACK_DATA_TYPE_
-#else
-
-template<typename T>
-void WeakCallbackInfo<T>::invoke(NAN_WEAK_CALLBACK_SIG_ data) {
-  WeakCallbackInfo<T> *cbinfo = unwrap(data);
-  cbinfo->persistent_.Dispose();
-  cbinfo->persistent_.Clear();
-  cbinfo->callback_(*cbinfo);
-  delete cbinfo;
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrap(
-    NAN_WEAK_CALLBACK_DATA_TYPE_ data) {
-  WeakCallbackInfo<T> *cbinfo =
-      static_cast<WeakCallbackInfo<T>*>(data);
-  cbinfo->isolate_ = v8::Isolate::GetCurrent();
-  return cbinfo;
-}
-
-#undef NAN_WEAK_CALLBACK_SIG_
-#undef NAN_WEAK_CALLBACK_DATA_TYPE_
-#endif
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 ||                      \
-  (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-template<typename T, typename M>
-template<typename P>
-inline void Persistent<T, M>::SetWeak(
-    P *parameter
-  , typename WeakCallbackInfo<P>::Callback callback
-  , WeakCallbackType type) {
-  WeakCallbackInfo<P> *wcbd;
-  if (type == WeakCallbackType::kParameter) {
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , parameter);
-    v8::PersistentBase<T>::SetWeak(
-        wcbd
-      , WeakCallbackInfo<P>::template invokeparameter<true>
-      , type);
-  } else {
-    v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
-    assert((*self_v)->IsObject());
-    v8::Local<v8::Object> self((*self_v).As<v8::Object>());
-    int count = self->InternalFieldCount();
-    void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
-    for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
-      internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
-    }
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , 0
-      , internal_fields[0]
-      , internal_fields[1]);
-    self->SetAlignedPointerInInternalField(0, wcbd);
-    v8::PersistentBase<T>::SetWeak(
-        static_cast<WeakCallbackInfo<P>*>(0)
-      , WeakCallbackInfo<P>::template invoketwofield<true>
-      , type);
-  }
-}
-#elif NODE_MODULE_VERSION > IOJS_1_1_MODULE_VERSION
-template<typename T, typename M>
-template<typename P>
-inline void Persistent<T, M>::SetWeak(
-    P *parameter
-  , typename WeakCallbackInfo<P>::Callback callback
-  , WeakCallbackType type) {
-  WeakCallbackInfo<P> *wcbd;
-  if (type == WeakCallbackType::kParameter) {
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , parameter);
-    v8::PersistentBase<T>::SetPhantom(
-        wcbd
-      , WeakCallbackInfo<P>::invokeparameter);
-  } else {
-    v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
-    assert((*self_v)->IsObject());
-    v8::Local<v8::Object> self((*self_v).As<v8::Object>());
-    int count = self->InternalFieldCount();
-    void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
-    for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
-      internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
-    }
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , 0
-      , internal_fields[0]
-      , internal_fields[1]);
-    self->SetAlignedPointerInInternalField(0, wcbd);
-    v8::PersistentBase<T>::SetPhantom(
-        static_cast<WeakCallbackInfo<P>*>(0)
-      , WeakCallbackInfo<P>::invoketwofield
-      , 0
-      , count > 1 ? 1 : kNoInternalFieldIndex);
-  }
-}
-#elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-template<typename T, typename M>
-template<typename P>
-inline void Persistent<T, M>::SetWeak(
-    P *parameter
-  , typename WeakCallbackInfo<P>::Callback callback
-  , WeakCallbackType type) {
-  WeakCallbackInfo<P> *wcbd;
-  if (type == WeakCallbackType::kParameter) {
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , parameter);
-    v8::PersistentBase<T>::SetPhantom(
-        wcbd
-      , WeakCallbackInfo<P>::invokeparameter);
-  } else {
-    v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
-    assert((*self_v)->IsObject());
-    v8::Local<v8::Object> self((*self_v).As<v8::Object>());
-    int count = self->InternalFieldCount();
-    void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
-    for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
-      internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
-    }
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , 0
-      , internal_fields[0]
-      , internal_fields[1]);
-    self->SetAlignedPointerInInternalField(0, wcbd);
-    v8::PersistentBase<T>::SetPhantom(
-        WeakCallbackInfo<P>::invoketwofield
-      , 0
-      , count > 1 ? 1 : kNoInternalFieldIndex);
-  }
-}
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-template<typename T, typename M>
-template<typename P>
-inline void Persistent<T, M>::SetWeak(
-    P *parameter
-  , typename WeakCallbackInfo<P>::Callback callback
-  , WeakCallbackType type) {
-  WeakCallbackInfo<P> *wcbd;
-  if (type == WeakCallbackType::kParameter) {
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , parameter);
-    v8::PersistentBase<T>::SetWeak(wcbd, WeakCallbackInfo<P>::invoke);
-  } else {
-    v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
-    assert((*self_v)->IsObject());
-    v8::Local<v8::Object> self((*self_v).As<v8::Object>());
-    int count = self->InternalFieldCount();
-    void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
-    for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
-      internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
-    }
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , 0
-      , internal_fields[0]
-      , internal_fields[1]);
-    v8::PersistentBase<T>::SetWeak(wcbd, WeakCallbackInfo<P>::invoke);
-  }
-}
-#else
-template<typename T>
-template<typename P>
-inline void PersistentBase<T>::SetWeak(
-    P *parameter
-  , typename WeakCallbackInfo<P>::Callback callback
-  , WeakCallbackType type) {
-  WeakCallbackInfo<P> *wcbd;
-  if (type == WeakCallbackType::kParameter) {
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , parameter);
-    persistent.MakeWeak(wcbd, WeakCallbackInfo<P>::invoke);
-  } else {
-    v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
-    assert((*self_v)->IsObject());
-    v8::Local<v8::Object> self((*self_v).As<v8::Object>());
-    int count = self->InternalFieldCount();
-    void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
-    for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
-      internal_fields[i] = self->GetPointerFromInternalField(i);
-    }
-    wcbd = new WeakCallbackInfo<P>(
-        reinterpret_cast<Persistent<v8::Value>*>(this)
-      , callback
-      , 0
-      , internal_fields[0]
-      , internal_fields[1]);
-    persistent.MakeWeak(wcbd, WeakCallbackInfo<P>::invoke);
-  }
-}
-#endif
-
-#endif  // NAN_WEAK_H_

+ 0 - 37
node_modules.bak/nan/package.json

@@ -1,37 +0,0 @@
-{
-  "name": "nan",
-  "version": "2.14.2",
-  "description": "Native Abstractions for Node.js: C++ header for Node 0.8 -> 14 compatibility",
-  "main": "include_dirs.js",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/nodejs/nan.git"
-  },
-  "scripts": {
-    "test": "tap --gc --stderr test/js/*-test.js",
-    "test:worker": "node --experimental-worker test/tap-as-worker.js --gc --stderr test/js/*-test.js",
-    "rebuild-tests": "node-gyp rebuild --msvs_version=2015 --directory test",
-    "docs": "doc/.build.sh"
-  },
-  "contributors": [
-    "Rod Vagg <r@va.gg> (https://github.com/rvagg)",
-    "Benjamin Byholm <bbyholm@abo.fi> (https://github.com/kkoopa/)",
-    "Trevor Norris <trev.norris@gmail.com> (https://github.com/trevnorris)",
-    "Nathan Rajlich <nathan@tootallnate.net> (https://github.com/TooTallNate)",
-    "Brett Lawson <brett19@gmail.com> (https://github.com/brett19)",
-    "Ben Noordhuis <info@bnoordhuis.nl> (https://github.com/bnoordhuis)",
-    "David Siegel <david@artcom.de> (https://github.com/agnat)",
-    "Michael Ira Krufky <mkrufky@gmail.com> (https://github.com/mkrufky)"
-  ],
-  "devDependencies": {
-    "bindings": "~1.2.1",
-    "commander": "^2.8.1",
-    "glob": "^5.0.14",
-    "request": "=2.81.0",
-    "node-gyp": "~3.6.2",
-    "readable-stream": "^2.1.4",
-    "tap": "~0.7.1",
-    "xtend": "~4.0.0"
-  },
-  "license": "MIT"
-}

+ 0 - 412
node_modules.bak/nan/tools/1to2.js

@@ -1,412 +0,0 @@
-#!/usr/bin/env node
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-var commander = require('commander'),
-    fs = require('fs'),
-    glob = require('glob'),
-    groups = [],
-    total = 0,
-    warning1 = '/* ERROR: Rewrite using Buffer */\n',
-    warning2 = '\\/\\* ERROR\\: Rewrite using Buffer \\*\\/\\n',
-    length,
-    i;
-
-fs.readFile(__dirname + '/package.json', 'utf8', function (err, data) {
-  if (err) {
-    throw err;
-  }
-
-  commander
-      .version(JSON.parse(data).version)
-      .usage('[options] <file ...>')
-      .parse(process.argv);
-
-  if (!process.argv.slice(2).length) {
-    commander.outputHelp();
-  }
-});
-
-/* construct strings representing regular expressions
-   each expression contains a unique group allowing for identification of the match
-   the index of this key group, relative to the regular expression in question,
-    is indicated by the first array member */
-
-/* simple substistutions, key group is the entire match, 0 */
-groups.push([0, [
-  '_NAN_',
-  'NODE_SET_METHOD',
-  'NODE_SET_PROTOTYPE_METHOD',
-  'NanAsciiString',
-  'NanEscapeScope',
-  'NanReturnValue',
-  'NanUcs2String'].join('|')]);
-
-/* substitutions of parameterless macros, key group is 1 */
-groups.push([1, ['(', [
-  'NanEscapableScope',
-  'NanReturnNull',
-  'NanReturnUndefined',
-  'NanScope'].join('|'), ')\\(\\)'].join('')]);
-
-/* replace TryCatch with NanTryCatch once, gobbling possible namespace, key group 2 */
-groups.push([2, '(?:(?:v8\\:\\:)?|(Nan)?)(TryCatch)']);
-
-/* NanNew("string") will likely not fail a ToLocalChecked(), key group 1 */ 
-groups.push([1, ['(NanNew)', '(\\("[^\\"]*"[^\\)]*\\))(?!\\.ToLocalChecked\\(\\))'].join('')]);
-
-/* Removed v8 APIs, warn that the code needs rewriting using node::Buffer, key group 2 */
-groups.push([2, ['(', warning2, ')?', '^.*?(', [
-      'GetIndexedPropertiesExternalArrayDataLength',
-      'GetIndexedPropertiesExternalArrayData',
-      'GetIndexedPropertiesExternalArrayDataType',
-      'GetIndexedPropertiesPixelData',
-      'GetIndexedPropertiesPixelDataLength',
-      'HasIndexedPropertiesInExternalArrayData',
-      'HasIndexedPropertiesInPixelData',
-      'SetIndexedPropertiesToExternalArrayData',
-      'SetIndexedPropertiesToPixelData'].join('|'), ')'].join('')]);
-
-/* No need for NanScope in V8-exposed methods, key group 2 */
-groups.push([2, ['((', [
-      'NAN_METHOD',
-      'NAN_GETTER',
-      'NAN_SETTER',
-      'NAN_PROPERTY_GETTER',
-      'NAN_PROPERTY_SETTER',
-      'NAN_PROPERTY_ENUMERATOR',
-      'NAN_PROPERTY_DELETER',
-      'NAN_PROPERTY_QUERY',
-      'NAN_INDEX_GETTER',
-      'NAN_INDEX_SETTER',
-      'NAN_INDEX_ENUMERATOR',
-      'NAN_INDEX_DELETER',
-      'NAN_INDEX_QUERY'].join('|'), ')\\([^\\)]*\\)\\s*\\{)\\s*NanScope\\(\\)\\s*;'].join('')]);
-
-/* v8::Value::ToXXXXXXX returns v8::MaybeLocal<T>, key group 3 */
-groups.push([3, ['([\\s\\(\\)])([^\\s\\(\\)]+)->(', [
-      'Boolean',
-      'Number',
-      'String',
-      'Object',
-      'Integer',
-      'Uint32',
-      'Int32'].join('|'), ')\\('].join('')]);
-
-/* v8::Value::XXXXXXXValue returns v8::Maybe<T>, key group 3 */
-groups.push([3, ['([\\s\\(\\)])([^\\s\\(\\)]+)->((?:', [
-      'Boolean',
-      'Number',
-      'Integer',
-      'Uint32',
-      'Int32'].join('|'), ')Value)\\('].join('')]);
-
-/* NAN_WEAK_CALLBACK macro was removed, write out callback definition, key group 1 */
-groups.push([1, '(NAN_WEAK_CALLBACK)\\(([^\\s\\)]+)\\)']);
-
-/* node::ObjectWrap and v8::Persistent have been replaced with Nan implementations, key group 1 */
-groups.push([1, ['(', [
-  'NanDisposePersistent',
-  'NanObjectWrapHandle'].join('|'), ')\\s*\\(\\s*([^\\s\\)]+)'].join('')]);
-
-/* Since NanPersistent there is no need for NanMakeWeakPersistent, key group 1 */
-groups.push([1, '(NanMakeWeakPersistent)\\s*\\(\\s*([^\\s,]+)\\s*,\\s*']);
-
-/* Many methods of v8::Object and others now return v8::MaybeLocal<T>, key group 3 */
-groups.push([3, ['([\\s])([^\\s]+)->(', [
-  'GetEndColumn',
-  'GetFunction',
-  'GetLineNumber',
-  'NewInstance',
-  'GetPropertyNames',
-  'GetOwnPropertyNames',
-  'GetSourceLine',
-  'GetStartColumn',
-  'ObjectProtoToString',
-  'ToArrayIndex',
-  'ToDetailString',
-  'CallAsConstructor',
-  'CallAsFunction',
-  'CloneElementAt',
-  'Delete',
-  'ForceSet',
-  'Get',
-  'GetPropertyAttributes',
-  'GetRealNamedProperty',
-  'GetRealNamedPropertyInPrototypeChain',
-  'Has',
-  'HasOwnProperty',
-  'HasRealIndexedProperty',
-  'HasRealNamedCallbackProperty',
-  'HasRealNamedProperty',
-  'Set',
-  'SetAccessor',
-  'SetIndexedPropertyHandler',
-  'SetNamedPropertyHandler',
-  'SetPrototype'].join('|'), ')\\('].join('')]);
-
-/* You should get an error if any of these fail anyways,
-   or handle the error better, it is indicated either way, key group 2 */
-groups.push([2, ['NanNew(<(?:v8\\:\\:)?(', ['Date', 'String', 'RegExp'].join('|'), ')>)(\\([^\\)]*\\))(?!\\.ToLocalChecked\\(\\))'].join('')]);
-
-/* v8::Value::Equals now returns a v8::Maybe, key group 3 */
-groups.push([3, '([\\s\\(\\)])([^\\s\\(\\)]+)->(Equals)\\(([^\\s\\)]+)']);
-
-/* NanPersistent makes this unnecessary, key group 1 */
-groups.push([1, '(NanAssignPersistent)(?:<v8\\:\\:[^>]+>)?\\(([^,]+),\\s*']);
-
-/* args has been renamed to info, key group 2 */
-groups.push([2, '(\\W)(args)(\\W)'])
-
-/* node::ObjectWrap was replaced with NanObjectWrap, key group 2 */
-groups.push([2, '(\\W)(?:node\\:\\:)?(ObjectWrap)(\\W)']);
-
-/* v8::Persistent was replaced with NanPersistent, key group 2 */
-groups.push([2, '(\\W)(?:v8\\:\\:)?(Persistent)(\\W)']);
-
-/* counts the number of capturing groups in a well-formed regular expression,
-   ignoring non-capturing groups and escaped parentheses */
-function groupcount(s) {
-  var positive = s.match(/\((?!\?)/g),
-      negative = s.match(/\\\(/g);
-  return (positive ? positive.length : 0) - (negative ? negative.length : 0);
-}
-
-/* compute the absolute position of each key group in the joined master RegExp */
-for (i = 1, length = groups.length; i < length; i++) {
-	total += groupcount(groups[i - 1][1]);
-	groups[i][0] += total;
-}
-
-/* create the master RegExp, whis is the union of all the groups' expressions */
-master = new RegExp(groups.map(function (a) { return a[1]; }).join('|'), 'gm');
-
-/* replacement function for String.replace, receives 21 arguments */
-function replace() {
-	/* simple expressions */
-      switch (arguments[groups[0][0]]) {
-        case '_NAN_':
-          return 'NAN_';
-        case 'NODE_SET_METHOD':
-          return 'NanSetMethod';
-        case 'NODE_SET_PROTOTYPE_METHOD':
-          return 'NanSetPrototypeMethod';
-        case 'NanAsciiString':
-          return 'NanUtf8String';
-        case 'NanEscapeScope':
-          return 'scope.Escape';
-        case 'NanReturnNull':
-          return 'info.GetReturnValue().SetNull';
-        case 'NanReturnValue':
-          return 'info.GetReturnValue().Set';
-        case 'NanUcs2String':
-          return 'v8::String::Value';
-        default:
-      }
-
-      /* macros without arguments */
-      switch (arguments[groups[1][0]]) {
-        case 'NanEscapableScope':
-          return 'NanEscapableScope scope'
-        case 'NanReturnUndefined':
-          return 'return';
-        case 'NanScope':
-          return 'NanScope scope';
-        default:
-      }
-
-      /* TryCatch, emulate negative backref */
-      if (arguments[groups[2][0]] === 'TryCatch') {
-        return arguments[groups[2][0] - 1] ? arguments[0] : 'NanTryCatch';
-      }
-
-      /* NanNew("foo") --> NanNew("foo").ToLocalChecked() */
-      if (arguments[groups[3][0]] === 'NanNew') {
-        return [arguments[0], '.ToLocalChecked()'].join('');
-      }
-
-      /* insert warning for removed functions as comment on new line above */
-      switch (arguments[groups[4][0]]) {
-        case 'GetIndexedPropertiesExternalArrayData':
-        case 'GetIndexedPropertiesExternalArrayDataLength':
-        case 'GetIndexedPropertiesExternalArrayDataType':
-        case 'GetIndexedPropertiesPixelData':
-        case 'GetIndexedPropertiesPixelDataLength':
-        case 'HasIndexedPropertiesInExternalArrayData':
-        case 'HasIndexedPropertiesInPixelData':
-        case 'SetIndexedPropertiesToExternalArrayData':
-        case 'SetIndexedPropertiesToPixelData':
-          return arguments[groups[4][0] - 1] ? arguments[0] : [warning1, arguments[0]].join('');
-        default:
-      }
-
-     /* remove unnecessary NanScope() */
-      switch (arguments[groups[5][0]]) {
-        case 'NAN_GETTER':
-        case 'NAN_METHOD':
-        case 'NAN_SETTER':
-        case 'NAN_INDEX_DELETER':
-        case 'NAN_INDEX_ENUMERATOR':
-        case 'NAN_INDEX_GETTER':
-        case 'NAN_INDEX_QUERY':
-        case 'NAN_INDEX_SETTER':
-        case 'NAN_PROPERTY_DELETER':
-        case 'NAN_PROPERTY_ENUMERATOR':
-        case 'NAN_PROPERTY_GETTER':
-        case 'NAN_PROPERTY_QUERY':
-        case 'NAN_PROPERTY_SETTER':
-          return arguments[groups[5][0] - 1];
-        default:
-      }
-
-      /* Value conversion */
-      switch (arguments[groups[6][0]]) {
-        case 'Boolean':
-        case 'Int32':
-        case 'Integer':
-        case 'Number':
-        case 'Object':
-        case 'String':
-        case 'Uint32':
-          return [arguments[groups[6][0] - 2], 'NanTo<v8::', arguments[groups[6][0]], '>(',  arguments[groups[6][0] - 1]].join('');
-        default:
-      }
-
-      /* other value conversion */
-      switch (arguments[groups[7][0]]) {
-        case 'BooleanValue':
-          return [arguments[groups[7][0] - 2], 'NanTo<bool>(', arguments[groups[7][0] - 1]].join('');
-        case 'Int32Value':
-          return [arguments[groups[7][0] - 2], 'NanTo<int32_t>(', arguments[groups[7][0] - 1]].join('');
-        case 'IntegerValue':
-          return [arguments[groups[7][0] - 2], 'NanTo<int64_t>(', arguments[groups[7][0] - 1]].join('');
-        case 'Uint32Value':
-          return [arguments[groups[7][0] - 2], 'NanTo<uint32_t>(', arguments[groups[7][0] - 1]].join('');
-        default:
-      }
-
-      /* NAN_WEAK_CALLBACK */
-      if (arguments[groups[8][0]] === 'NAN_WEAK_CALLBACK') {
-        return ['template<typename T>\nvoid ',
-          arguments[groups[8][0] + 1], '(const NanWeakCallbackInfo<T> &data)'].join('');
-      }
-
-      /* use methods on NAN classes instead */
-      switch (arguments[groups[9][0]]) {
-        case 'NanDisposePersistent':
-          return [arguments[groups[9][0] + 1], '.Reset('].join('');
-        case 'NanObjectWrapHandle':
-          return [arguments[groups[9][0] + 1], '->handle('].join('');
-        default:
-      }
-
-      /* use method on NanPersistent instead */
-      if (arguments[groups[10][0]] === 'NanMakeWeakPersistent') {
-        return arguments[groups[10][0] + 1] + '.SetWeak(';
-      }
-
-      /* These return Maybes, the upper ones take no arguments */
-      switch (arguments[groups[11][0]]) {
-        case 'GetEndColumn':
-        case 'GetFunction':
-        case 'GetLineNumber':
-        case 'GetOwnPropertyNames':
-        case 'GetPropertyNames':
-        case 'GetSourceLine':
-        case 'GetStartColumn':
-        case 'NewInstance':
-        case 'ObjectProtoToString':
-        case 'ToArrayIndex':
-        case 'ToDetailString':
-          return [arguments[groups[11][0] - 2], 'Nan', arguments[groups[11][0]], '(', arguments[groups[11][0] - 1]].join('');
-        case 'CallAsConstructor':
-        case 'CallAsFunction':
-        case 'CloneElementAt':
-        case 'Delete':
-        case 'ForceSet':
-        case 'Get':
-        case 'GetPropertyAttributes':
-        case 'GetRealNamedProperty':
-        case 'GetRealNamedPropertyInPrototypeChain':
-        case 'Has':
-        case 'HasOwnProperty':
-        case 'HasRealIndexedProperty':
-        case 'HasRealNamedCallbackProperty':
-        case 'HasRealNamedProperty':
-        case 'Set':
-        case 'SetAccessor':
-        case 'SetIndexedPropertyHandler':
-        case 'SetNamedPropertyHandler':
-        case 'SetPrototype':
-          return [arguments[groups[11][0] - 2], 'Nan', arguments[groups[11][0]], '(', arguments[groups[11][0] - 1], ', '].join('');
-        default:
-      }
-
-      /* Automatic ToLocalChecked(), take it or leave it */
-      switch (arguments[groups[12][0]]) {
-        case 'Date':
-        case 'String':
-        case 'RegExp':
-          return ['NanNew', arguments[groups[12][0] - 1], arguments[groups[12][0] + 1], '.ToLocalChecked()'].join('');
-        default:
-      }
-
-      /* NanEquals is now required for uniformity */
-      if (arguments[groups[13][0]] === 'Equals') {
-        return [arguments[groups[13][0] - 1], 'NanEquals(', arguments[groups[13][0] - 1], ', ', arguments[groups[13][0] + 1]].join('');
-      }
-
-      /* use method on replacement class instead */
-      if (arguments[groups[14][0]] === 'NanAssignPersistent') {
-        return [arguments[groups[14][0] + 1], '.Reset('].join('');
-      }
-
-      /* args --> info */
-      if (arguments[groups[15][0]] === 'args') {
-        return [arguments[groups[15][0] - 1], 'info', arguments[groups[15][0] + 1]].join('');
-      }
-
-      /* ObjectWrap --> NanObjectWrap */
-      if (arguments[groups[16][0]] === 'ObjectWrap') {
-        return [arguments[groups[16][0] - 1], 'NanObjectWrap', arguments[groups[16][0] + 1]].join('');
-      }
-
-      /* Persistent --> NanPersistent */
-      if (arguments[groups[17][0]] === 'Persistent') {
-        return [arguments[groups[17][0] - 1], 'NanPersistent', arguments[groups[17][0] + 1]].join('');
-      }
-
-      /* This should not happen. A switch is probably missing a case if it does. */
-      throw 'Unhandled match: ' + arguments[0];
-}
-
-/* reads a file, runs replacement and writes it back */
-function processFile(file) {
-  fs.readFile(file, {encoding: 'utf8'}, function (err, data) {
-    if (err) {
-      throw err;
-    }
-
-    /* run replacement twice, might need more runs */
-    fs.writeFile(file, data.replace(master, replace).replace(master, replace), function (err) {
-      if (err) {
-        throw err;
-      }
-    });
-  });
-}
-
-/* process file names from command line and process the identified files */
-for (i = 2, length = process.argv.length; i < length; i++) {
-  glob(process.argv[i], function (err, matches) {
-    if (err) {
-      throw err;
-    }
-    matches.forEach(processFile);
-  });
-}

+ 0 - 14
node_modules.bak/nan/tools/README.md

@@ -1,14 +0,0 @@
-1to2 naively converts source code files from NAN 1 to NAN 2. There will be erroneous conversions,
-false positives and missed opportunities. The input files are rewritten in place. Make sure that
-you have backups. You will have to manually review the changes afterwards and do some touchups.
-
-```sh
-$ tools/1to2.js
-
-  Usage: 1to2 [options] <file ...>
-
-  Options:
-
-    -h, --help     output usage information
-    -V, --version  output the version number
-```

+ 0 - 19
node_modules.bak/nan/tools/package.json

@@ -1,19 +0,0 @@
-{
-  "name": "1to2",
-  "version": "1.0.0",
-  "description": "NAN 1 -> 2 Migration Script",
-  "main": "1to2.js",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/nodejs/nan.git"
-  },
-  "contributors": [
-    "Benjamin Byholm <bbyholm@abo.fi> (https://github.com/kkoopa/)",
-    "Mathias Küsel (https://github.com/mathiask88/)"
-  ],
-  "dependencies": {
-    "glob": "~5.0.10",
-    "commander": "~2.8.1"
-  },
-  "license": "MIT"
-}

+ 0 - 57
node_modules.bak/nanomatch/CHANGELOG.md

@@ -1,57 +0,0 @@
-## History
-
-### key
-
-Changelog entries are classified using the following labels _(from [keep-a-changelog][]_):
-
-- `added`: for new features
-- `changed`: for changes in existing functionality
-- `deprecated`: for once-stable features removed in upcoming releases
-- `removed`: for deprecated features removed in this release
-- `fixed`: for any bug fixes
-- `bumped`: updated dependencies, only minor or higher will be listed.
-
-### [1.1.0] - 2017-04-11
-
-**Fixed**
-
-- adds support for unclosed quotes
-
-**Added**
-
-- adds support for `options.noglobstar`
-
-### [1.0.4] - 2017-04-06
-
-Housekeeping updates. Adds documentation section about escaping, cleans up utils.
-
-### [1.0.3] - 2017-04-06
-
-This release includes fixes for windows path edge cases and other improvements for stricter adherence to bash spec. 
-
-**Fixed**
-
-- More windows path edge cases
-
-**Added**
-
-- Support for bash-like quoted strings for escaping sequences of characters, such as `foo/"**"/bar` where `**` should be matched literally and not evaluated as special characters.
-
-### [1.0.1] - 2016-12-12
-
-**Added**
-
-- Support for windows path edge cases where backslashes are used in brackets or other unusual combinations.
-
-### [1.0.0] - 2016-12-12
-
-Stable release.
-
-### [0.1.0] - 2016-10-08
-
-First release.
-
-[Unreleased]: https://github.com/jonschlinkert/nanomatch/compare/0.1.0...HEAD
-[0.2.0]: https://github.com/jonschlinkert/nanomatch/compare/0.1.0...0.2.0
-
-[keep-a-changelog]: https://github.com/olivierlacan/keep-a-changelog

+ 0 - 21
node_modules.bak/nanomatch/LICENSE

@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016-2018, Jon Schlinkert.
-
-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.

File diff suppressed because it is too large
+ 0 - 1148
node_modules.bak/nanomatch/README.md


+ 0 - 838
node_modules.bak/nanomatch/index.js

@@ -1,838 +0,0 @@
-'use strict';
-
-/**
- * Module dependencies
- */
-
-var util = require('util');
-var toRegex = require('to-regex');
-var extend = require('extend-shallow');
-
-/**
- * Local dependencies
- */
-
-var compilers = require('./lib/compilers');
-var parsers = require('./lib/parsers');
-var cache = require('./lib/cache');
-var utils = require('./lib/utils');
-var MAX_LENGTH = 1024 * 64;
-
-/**
- * The main function takes a list of strings and one or more
- * glob patterns to use for matching.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm(list, patterns[, options]);
- *
- * console.log(nm(['a.js', 'a.txt'], ['*.js']));
- * //=> [ 'a.js' ]
- * ```
- * @param {Array} `list` A list of strings to match
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Array} Returns an array of matches
- * @summary false
- * @api public
- */
-
-function nanomatch(list, patterns, options) {
-  patterns = utils.arrayify(patterns);
-  list = utils.arrayify(list);
-
-  var len = patterns.length;
-  if (list.length === 0 || len === 0) {
-    return [];
-  }
-
-  if (len === 1) {
-    return nanomatch.match(list, patterns[0], options);
-  }
-
-  var negated = false;
-  var omit = [];
-  var keep = [];
-  var idx = -1;
-
-  while (++idx < len) {
-    var pattern = patterns[idx];
-
-    if (typeof pattern === 'string' && pattern.charCodeAt(0) === 33 /* ! */) {
-      omit.push.apply(omit, nanomatch.match(list, pattern.slice(1), options));
-      negated = true;
-    } else {
-      keep.push.apply(keep, nanomatch.match(list, pattern, options));
-    }
-  }
-
-  // minimatch.match parity
-  if (negated && keep.length === 0) {
-    if (options && options.unixify === false) {
-      keep = list.slice();
-    } else {
-      var unixify = utils.unixify(options);
-      for (var i = 0; i < list.length; i++) {
-        keep.push(unixify(list[i]));
-      }
-    }
-  }
-
-  var matches = utils.diff(keep, omit);
-  if (!options || options.nodupes !== false) {
-    return utils.unique(matches);
-  }
-
-  return matches;
-}
-
-/**
- * Similar to the main function, but `pattern` must be a string.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.match(list, pattern[, options]);
- *
- * console.log(nm.match(['a.a', 'a.aa', 'a.b', 'a.c'], '*.a'));
- * //=> ['a.a', 'a.aa']
- * ```
- * @param {Array} `list` Array of strings to match
- * @param {String} `pattern` Glob pattern to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Array} Returns an array of matches
- * @api public
- */
-
-nanomatch.match = function(list, pattern, options) {
-  if (Array.isArray(pattern)) {
-    throw new TypeError('expected pattern to be a string');
-  }
-
-  var unixify = utils.unixify(options);
-  var isMatch = memoize('match', pattern, options, nanomatch.matcher);
-  var matches = [];
-
-  list = utils.arrayify(list);
-  var len = list.length;
-  var idx = -1;
-
-  while (++idx < len) {
-    var ele = list[idx];
-    if (ele === pattern || isMatch(ele)) {
-      matches.push(utils.value(ele, unixify, options));
-    }
-  }
-
-  // if no options were passed, uniquify results and return
-  if (typeof options === 'undefined') {
-    return utils.unique(matches);
-  }
-
-  if (matches.length === 0) {
-    if (options.failglob === true) {
-      throw new Error('no matches found for "' + pattern + '"');
-    }
-    if (options.nonull === true || options.nullglob === true) {
-      return [options.unescape ? utils.unescape(pattern) : pattern];
-    }
-  }
-
-  // if `opts.ignore` was defined, diff ignored list
-  if (options.ignore) {
-    matches = nanomatch.not(matches, options.ignore, options);
-  }
-
-  return options.nodupes !== false ? utils.unique(matches) : matches;
-};
-
-/**
- * Returns true if the specified `string` matches the given glob `pattern`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.isMatch(string, pattern[, options]);
- *
- * console.log(nm.isMatch('a.a', '*.a'));
- * //=> true
- * console.log(nm.isMatch('a.b', '*.a'));
- * //=> false
- * ```
- * @param {String} `string` String to match
- * @param {String} `pattern` Glob pattern to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Boolean} Returns true if the string matches the glob pattern.
- * @api public
- */
-
-nanomatch.isMatch = function(str, pattern, options) {
-  if (typeof str !== 'string') {
-    throw new TypeError('expected a string: "' + util.inspect(str) + '"');
-  }
-
-  if (utils.isEmptyString(str) || utils.isEmptyString(pattern)) {
-    return false;
-  }
-
-  var equals = utils.equalsPattern(options);
-  if (equals(str)) {
-    return true;
-  }
-
-  var isMatch = memoize('isMatch', pattern, options, nanomatch.matcher);
-  return isMatch(str);
-};
-
-/**
- * Returns true if some of the elements in the given `list` match any of the
- * given glob `patterns`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.some(list, patterns[, options]);
- *
- * console.log(nm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
- * // true
- * console.log(nm.some(['foo.js'], ['*.js', '!foo.js']));
- * // false
- * ```
- * @param  {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Boolean} Returns true if any patterns match `str`
- * @api public
- */
-
-nanomatch.some = function(list, patterns, options) {
-  if (typeof list === 'string') {
-    list = [list];
-  }
-
-  for (var i = 0; i < list.length; i++) {
-    if (nanomatch(list[i], patterns, options).length === 1) {
-      return true;
-    }
-  }
-
-  return false;
-};
-
-/**
- * Returns true if every element in the given `list` matches
- * at least one of the given glob `patterns`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.every(list, patterns[, options]);
- *
- * console.log(nm.every('foo.js', ['foo.js']));
- * // true
- * console.log(nm.every(['foo.js', 'bar.js'], ['*.js']));
- * // true
- * console.log(nm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
- * // false
- * console.log(nm.every(['foo.js'], ['*.js', '!foo.js']));
- * // false
- * ```
- * @param  {String|Array} `list` The string or array of strings to test.
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Boolean} Returns true if any patterns match `str`
- * @api public
- */
-
-nanomatch.every = function(list, patterns, options) {
-  if (typeof list === 'string') {
-    list = [list];
-  }
-
-  for (var i = 0; i < list.length; i++) {
-    if (nanomatch(list[i], patterns, options).length !== 1) {
-      return false;
-    }
-  }
-
-  return true;
-};
-
-/**
- * Returns true if **any** of the given glob `patterns`
- * match the specified `string`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.any(string, patterns[, options]);
- *
- * console.log(nm.any('a.a', ['b.*', '*.a']));
- * //=> true
- * console.log(nm.any('a.a', 'b.*'));
- * //=> false
- * ```
- * @param  {String|Array} `str` The string to test.
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Boolean} Returns true if any patterns match `str`
- * @api public
- */
-
-nanomatch.any = function(str, patterns, options) {
-  if (typeof str !== 'string') {
-    throw new TypeError('expected a string: "' + util.inspect(str) + '"');
-  }
-
-  if (utils.isEmptyString(str) || utils.isEmptyString(patterns)) {
-    return false;
-  }
-
-  if (typeof patterns === 'string') {
-    patterns = [patterns];
-  }
-
-  for (var i = 0; i < patterns.length; i++) {
-    if (nanomatch.isMatch(str, patterns[i], options)) {
-      return true;
-    }
-  }
-  return false;
-};
-
-/**
- * Returns true if **all** of the given `patterns`
- * match the specified string.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.all(string, patterns[, options]);
- *
- * console.log(nm.all('foo.js', ['foo.js']));
- * // true
- *
- * console.log(nm.all('foo.js', ['*.js', '!foo.js']));
- * // false
- *
- * console.log(nm.all('foo.js', ['*.js', 'foo.js']));
- * // true
- *
- * console.log(nm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
- * // true
- * ```
- * @param  {String|Array} `str` The string to test.
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Boolean} Returns true if any patterns match `str`
- * @api public
- */
-
-nanomatch.all = function(str, patterns, options) {
-  if (typeof str !== 'string') {
-    throw new TypeError('expected a string: "' + util.inspect(str) + '"');
-  }
-
-  if (typeof patterns === 'string') {
-    patterns = [patterns];
-  }
-
-  for (var i = 0; i < patterns.length; i++) {
-    if (!nanomatch.isMatch(str, patterns[i], options)) {
-      return false;
-    }
-  }
-  return true;
-};
-
-/**
- * Returns a list of strings that _**do not match any**_ of the given `patterns`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.not(list, patterns[, options]);
- *
- * console.log(nm.not(['a.a', 'b.b', 'c.c'], '*.a'));
- * //=> ['b.b', 'c.c']
- * ```
- * @param {Array} `list` Array of strings to match.
- * @param {String|Array} `patterns` One or more glob pattern to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Array} Returns an array of strings that **do not match** the given patterns.
- * @api public
- */
-
-nanomatch.not = function(list, patterns, options) {
-  var opts = extend({}, options);
-  var ignore = opts.ignore;
-  delete opts.ignore;
-
-  list = utils.arrayify(list);
-
-  var matches = utils.diff(list, nanomatch(list, patterns, opts));
-  if (ignore) {
-    matches = utils.diff(matches, nanomatch(list, ignore));
-  }
-
-  return opts.nodupes !== false ? utils.unique(matches) : matches;
-};
-
-/**
- * Returns true if the given `string` contains the given pattern. Similar
- * to [.isMatch](#isMatch) but the pattern can match any part of the string.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.contains(string, pattern[, options]);
- *
- * console.log(nm.contains('aa/bb/cc', '*b'));
- * //=> true
- * console.log(nm.contains('aa/bb/cc', '*d'));
- * //=> false
- * ```
- * @param {String} `str` The string to match.
- * @param {String|Array} `patterns` Glob pattern to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Boolean} Returns true if the patter matches any part of `str`.
- * @api public
- */
-
-nanomatch.contains = function(str, patterns, options) {
-  if (typeof str !== 'string') {
-    throw new TypeError('expected a string: "' + util.inspect(str) + '"');
-  }
-
-  if (typeof patterns === 'string') {
-    if (utils.isEmptyString(str) || utils.isEmptyString(patterns)) {
-      return false;
-    }
-
-    var equals = utils.equalsPattern(patterns, options);
-    if (equals(str)) {
-      return true;
-    }
-    var contains = utils.containsPattern(patterns, options);
-    if (contains(str)) {
-      return true;
-    }
-  }
-
-  var opts = extend({}, options, {contains: true});
-  return nanomatch.any(str, patterns, opts);
-};
-
-/**
- * Returns true if the given pattern and options should enable
- * the `matchBase` option.
- * @return {Boolean}
- * @api private
- */
-
-nanomatch.matchBase = function(pattern, options) {
-  if (pattern && pattern.indexOf('/') !== -1 || !options) return false;
-  return options.basename === true || options.matchBase === true;
-};
-
-/**
- * Filter the keys of the given object with the given `glob` pattern
- * and `options`. Does not attempt to match nested keys. If you need this feature,
- * use [glob-object][] instead.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.matchKeys(object, patterns[, options]);
- *
- * var obj = { aa: 'a', ab: 'b', ac: 'c' };
- * console.log(nm.matchKeys(obj, '*b'));
- * //=> { ab: 'b' }
- * ```
- * @param {Object} `object` The object with keys to filter.
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Object} Returns an object with only keys that match the given patterns.
- * @api public
- */
-
-nanomatch.matchKeys = function(obj, patterns, options) {
-  if (!utils.isObject(obj)) {
-    throw new TypeError('expected the first argument to be an object');
-  }
-  var keys = nanomatch(Object.keys(obj), patterns, options);
-  return utils.pick(obj, keys);
-};
-
-/**
- * Returns a memoized matcher function from the given glob `pattern` and `options`.
- * The returned function takes a string to match as its only argument and returns
- * true if the string is a match.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.matcher(pattern[, options]);
- *
- * var isMatch = nm.matcher('*.!(*a)');
- * console.log(isMatch('a.a'));
- * //=> false
- * console.log(isMatch('a.b'));
- * //=> true
- * ```
- * @param {String} `pattern` Glob pattern
- * @param {Object} `options` See available [options](#options) for changing how matches are performed.
- * @return {Function} Returns a matcher function.
- * @api public
- */
-
-nanomatch.matcher = function matcher(pattern, options) {
-  if (utils.isEmptyString(pattern)) {
-    return function() {
-      return false;
-    };
-  }
-
-  if (Array.isArray(pattern)) {
-    return compose(pattern, options, matcher);
-  }
-
-  // if pattern is a regex
-  if (pattern instanceof RegExp) {
-    return test(pattern);
-  }
-
-  // if pattern is invalid
-  if (!utils.isString(pattern)) {
-    throw new TypeError('expected pattern to be an array, string or regex');
-  }
-
-  // if pattern is a non-glob string
-  if (!utils.hasSpecialChars(pattern)) {
-    if (options && options.nocase === true) {
-      pattern = pattern.toLowerCase();
-    }
-    return utils.matchPath(pattern, options);
-  }
-
-  // if pattern is a glob string
-  var re = nanomatch.makeRe(pattern, options);
-
-  // if `options.matchBase` or `options.basename` is defined
-  if (nanomatch.matchBase(pattern, options)) {
-    return utils.matchBasename(re, options);
-  }
-
-  function test(regex) {
-    var equals = utils.equalsPattern(options);
-    var unixify = utils.unixify(options);
-
-    return function(str) {
-      if (equals(str)) {
-        return true;
-      }
-
-      if (regex.test(unixify(str))) {
-        return true;
-      }
-      return false;
-    };
-  }
-
-  // create matcher function
-  var matcherFn = test(re);
-  // set result object from compiler on matcher function,
-  // as a non-enumerable property. useful for debugging
-  utils.define(matcherFn, 'result', re.result);
-  return matcherFn;
-};
-
-/**
- * Returns an array of matches captured by `pattern` in `string, or
- * `null` if the pattern did not match.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.capture(pattern, string[, options]);
- *
- * console.log(nm.capture('test/*.js', 'test/foo.js'));
- * //=> ['foo']
- * console.log(nm.capture('test/*.js', 'foo/bar.css'));
- * //=> null
- * ```
- * @param {String} `pattern` Glob pattern to use for matching.
- * @param {String} `string` String to match
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
- * @return {Boolean} Returns an array of captures if the string matches the glob pattern, otherwise `null`.
- * @api public
- */
-
-nanomatch.capture = function(pattern, str, options) {
-  var re = nanomatch.makeRe(pattern, extend({capture: true}, options));
-  var unixify = utils.unixify(options);
-
-  function match() {
-    return function(string) {
-      var match = re.exec(unixify(string));
-      if (!match) {
-        return null;
-      }
-
-      return match.slice(1);
-    };
-  }
-
-  var capture = memoize('capture', pattern, options, match);
-  return capture(str);
-};
-
-/**
- * Create a regular expression from the given glob `pattern`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.makeRe(pattern[, options]);
- *
- * console.log(nm.makeRe('*.js'));
- * //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
- * ```
- * @param {String} `pattern` A glob pattern to convert to regex.
- * @param {Object} `options` See available [options](#options) for changing how matches are performed.
- * @return {RegExp} Returns a regex created from the given pattern.
- * @api public
- */
-
-nanomatch.makeRe = function(pattern, options) {
-  if (pattern instanceof RegExp) {
-    return pattern;
-  }
-
-  if (typeof pattern !== 'string') {
-    throw new TypeError('expected pattern to be a string');
-  }
-
-  if (pattern.length > MAX_LENGTH) {
-    throw new Error('expected pattern to be less than ' + MAX_LENGTH + ' characters');
-  }
-
-  function makeRe() {
-    var opts = utils.extend({wrap: false}, options);
-    var result = nanomatch.create(pattern, opts);
-    var regex = toRegex(result.output, opts);
-    utils.define(regex, 'result', result);
-    return regex;
-  }
-
-  return memoize('makeRe', pattern, options, makeRe);
-};
-
-/**
- * Parses the given glob `pattern` and returns an object with the compiled `output`
- * and optional source `map`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.create(pattern[, options]);
- *
- * console.log(nm.create('abc/*.js'));
- * // { options: { source: 'string', sourcemap: true },
- * //   state: {},
- * //   compilers:
- * //    { ... },
- * //   output: '(\\.[\\\\\\/])?abc\\/(?!\\.)(?=.)[^\\/]*?\\.js',
- * //   ast:
- * //    { type: 'root',
- * //      errors: [],
- * //      nodes:
- * //       [ ... ],
- * //      dot: false,
- * //      input: 'abc/*.js' },
- * //   parsingErrors: [],
- * //   map:
- * //    { version: 3,
- * //      sources: [ 'string' ],
- * //      names: [],
- * //      mappings: 'AAAA,GAAG,EAAC,kBAAC,EAAC,EAAE',
- * //      sourcesContent: [ 'abc/*.js' ] },
- * //   position: { line: 1, column: 28 },
- * //   content: {},
- * //   files: {},
- * //   idx: 6 }
- * ```
- * @param {String} `pattern` Glob pattern to parse and compile.
- * @param {Object} `options` Any [options](#options) to change how parsing and compiling is performed.
- * @return {Object} Returns an object with the parsed AST, compiled string and optional source map.
- * @api public
- */
-
-nanomatch.create = function(pattern, options) {
-  if (typeof pattern !== 'string') {
-    throw new TypeError('expected a string');
-  }
-  function create() {
-    return nanomatch.compile(nanomatch.parse(pattern, options), options);
-  }
-  return memoize('create', pattern, options, create);
-};
-
-/**
- * Parse the given `str` with the given `options`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.parse(pattern[, options]);
- *
- * var ast = nm.parse('a/{b,c}/d');
- * console.log(ast);
- * // { type: 'root',
- * //   errors: [],
- * //   input: 'a/{b,c}/d',
- * //   nodes:
- * //    [ { type: 'bos', val: '' },
- * //      { type: 'text', val: 'a/' },
- * //      { type: 'brace',
- * //        nodes:
- * //         [ { type: 'brace.open', val: '{' },
- * //           { type: 'text', val: 'b,c' },
- * //           { type: 'brace.close', val: '}' } ] },
- * //      { type: 'text', val: '/d' },
- * //      { type: 'eos', val: '' } ] }
- * ```
- * @param {String} `str`
- * @param {Object} `options`
- * @return {Object} Returns an AST
- * @api public
- */
-
-nanomatch.parse = function(pattern, options) {
-  if (typeof pattern !== 'string') {
-    throw new TypeError('expected a string');
-  }
-
-  function parse() {
-    var snapdragon = utils.instantiate(null, options);
-    parsers(snapdragon, options);
-
-    var ast = snapdragon.parse(pattern, options);
-    utils.define(ast, 'snapdragon', snapdragon);
-    ast.input = pattern;
-    return ast;
-  }
-
-  return memoize('parse', pattern, options, parse);
-};
-
-/**
- * Compile the given `ast` or string with the given `options`.
- *
- * ```js
- * var nm = require('nanomatch');
- * nm.compile(ast[, options]);
- *
- * var ast = nm.parse('a/{b,c}/d');
- * console.log(nm.compile(ast));
- * // { options: { source: 'string' },
- * //   state: {},
- * //   compilers:
- * //    { eos: [Function],
- * //      noop: [Function],
- * //      bos: [Function],
- * //      brace: [Function],
- * //      'brace.open': [Function],
- * //      text: [Function],
- * //      'brace.close': [Function] },
- * //   output: [ 'a/(b|c)/d' ],
- * //   ast:
- * //    { ... },
- * //   parsingErrors: [] }
- * ```
- * @param {Object|String} `ast`
- * @param {Object} `options`
- * @return {Object} Returns an object that has an `output` property with the compiled string.
- * @api public
- */
-
-nanomatch.compile = function(ast, options) {
-  if (typeof ast === 'string') {
-    ast = nanomatch.parse(ast, options);
-  }
-
-  function compile() {
-    var snapdragon = utils.instantiate(ast, options);
-    compilers(snapdragon, options);
-    return snapdragon.compile(ast, options);
-  }
-
-  return memoize('compile', ast.input, options, compile);
-};
-
-/**
- * Clear the regex cache.
- *
- * ```js
- * nm.clearCache();
- * ```
- * @api public
- */
-
-nanomatch.clearCache = function() {
-  nanomatch.cache.__data__ = {};
-};
-
-/**
- * Compose a matcher function with the given patterns.
- * This allows matcher functions to be compiled once and
- * called multiple times.
- */
-
-function compose(patterns, options, matcher) {
-  var matchers;
-
-  return memoize('compose', String(patterns), options, function() {
-    return function(file) {
-      // delay composition until it's invoked the first time,
-      // after that it won't be called again
-      if (!matchers) {
-        matchers = [];
-        for (var i = 0; i < patterns.length; i++) {
-          matchers.push(matcher(patterns[i], options));
-        }
-      }
-
-      var len = matchers.length;
-      while (len--) {
-        if (matchers[len](file) === true) {
-          return true;
-        }
-      }
-      return false;
-    };
-  });
-}
-
-/**
- * Memoize a generated regex or function. A unique key is generated
- * from the `type` (usually method name), the `pattern`, and
- * user-defined options.
- */
-
-function memoize(type, pattern, options, fn) {
-  var key = utils.createKey(type + '=' + pattern, options);
-
-  if (options && options.cache === false) {
-    return fn(pattern, options);
-  }
-
-  if (cache.has(type, key)) {
-    return cache.get(type, key);
-  }
-
-  var val = fn(pattern, options);
-  cache.set(type, key, val);
-  return val;
-}
-
-/**
- * Expose compiler, parser and cache on `nanomatch`
- */
-
-nanomatch.compilers = compilers;
-nanomatch.parsers = parsers;
-nanomatch.cache = cache;
-
-/**
- * Expose `nanomatch`
- * @type {Function}
- */
-
-module.exports = nanomatch;

+ 0 - 1
node_modules.bak/nanomatch/lib/cache.js

@@ -1 +0,0 @@
-module.exports = new (require('fragment-cache'))();

+ 0 - 339
node_modules.bak/nanomatch/lib/compilers.js

@@ -1,339 +0,0 @@
-'use strict';
-
-/**
-* Nanomatch compilers
-*/
-
-module.exports = function(nanomatch, options) {
-  function slash() {
-    if (options && typeof options.slash === 'string') {
-      return options.slash;
-    }
-    if (options && typeof options.slash === 'function') {
-      return options.slash.call(nanomatch);
-    }
-    return '\\\\/';
-  }
-
-  function star() {
-    if (options && typeof options.star === 'string') {
-      return options.star;
-    }
-    if (options && typeof options.star === 'function') {
-      return options.star.call(nanomatch);
-    }
-    return '[^' + slash() + ']*?';
-  }
-
-  var ast = nanomatch.ast = nanomatch.parser.ast;
-  ast.state = nanomatch.parser.state;
-  nanomatch.compiler.state = ast.state;
-  nanomatch.compiler
-
-    /**
-     * Negation / escaping
-     */
-
-    .set('not', function(node) {
-      var prev = this.prev();
-      if (this.options.nonegate === true || prev.type !== 'bos') {
-        return this.emit('\\' + node.val, node);
-      }
-      return this.emit(node.val, node);
-    })
-    .set('escape', function(node) {
-      if (this.options.unescape && /^[-\w_.]/.test(node.val)) {
-        return this.emit(node.val, node);
-      }
-      return this.emit('\\' + node.val, node);
-    })
-    .set('quoted', function(node) {
-      return this.emit(node.val, node);
-    })
-
-    /**
-     * Regex
-     */
-
-    .set('dollar', function(node) {
-      if (node.parent.type === 'bracket') {
-        return this.emit(node.val, node);
-      }
-      return this.emit('\\' + node.val, node);
-    })
-
-    /**
-     * Dot: "."
-     */
-
-    .set('dot', function(node) {
-      if (node.dotfiles === true) this.dotfiles = true;
-      return this.emit('\\' + node.val, node);
-    })
-
-    /**
-     * Slashes: "/" and "\"
-     */
-
-    .set('backslash', function(node) {
-      return this.emit(node.val, node);
-    })
-    .set('slash', function(node, nodes, i) {
-      var val = '[' + slash() + ']';
-      var parent = node.parent;
-      var prev = this.prev();
-
-      // set "node.hasSlash" to true on all ancestor parens nodes
-      while (parent.type === 'paren' && !parent.hasSlash) {
-        parent.hasSlash = true;
-        parent = parent.parent;
-      }
-
-      if (prev.addQmark) {
-        val += '?';
-      }
-
-      // word boundary
-      if (node.rest.slice(0, 2) === '\\b') {
-        return this.emit(val, node);
-      }
-
-      // globstars
-      if (node.parsed === '**' || node.parsed === './**') {
-        this.output = '(?:' + this.output;
-        return this.emit(val + ')?', node);
-      }
-
-      // negation
-      if (node.parsed === '!**' && this.options.nonegate !== true) {
-        return this.emit(val + '?\\b', node);
-      }
-      return this.emit(val, node);
-    })
-
-    /**
-     * Square brackets
-     */
-
-    .set('bracket', function(node) {
-      var close = node.close;
-      var open = !node.escaped ? '[' : '\\[';
-      var negated = node.negated;
-      var inner = node.inner;
-      var val = node.val;
-
-      if (node.escaped === true) {
-        inner = inner.replace(/\\?(\W)/g, '\\$1');
-        negated = '';
-      }
-
-      if (inner === ']-') {
-        inner = '\\]\\-';
-      }
-
-      if (negated && inner.indexOf('.') === -1) {
-        inner += '.';
-      }
-      if (negated && inner.indexOf('/') === -1) {
-        inner += '/';
-      }
-
-      val = open + negated + inner + close;
-      return this.emit(val, node);
-    })
-
-    /**
-     * Square: "[.]" (only matches a single character in brackets)
-     */
-
-    .set('square', function(node) {
-      var val = (/^\W/.test(node.val) ? '\\' : '') + node.val;
-      return this.emit(val, node);
-    })
-
-    /**
-     * Question mark: "?"
-     */
-
-    .set('qmark', function(node) {
-      var prev = this.prev();
-      // don't use "slash" variable so that we always avoid
-      // matching backslashes and slashes with a qmark
-      var val = '[^.\\\\/]';
-      if (this.options.dot || (prev.type !== 'bos' && prev.type !== 'slash')) {
-        val = '[^\\\\/]';
-      }
-
-      if (node.parsed.slice(-1) === '(') {
-        var ch = node.rest.charAt(0);
-        if (ch === '!' || ch === '=' || ch === ':') {
-          return this.emit(node.val, node);
-        }
-      }
-
-      if (node.val.length > 1) {
-        val += '{' + node.val.length + '}';
-      }
-      return this.emit(val, node);
-    })
-
-    /**
-     * Plus
-     */
-
-    .set('plus', function(node) {
-      var prev = node.parsed.slice(-1);
-      if (prev === ']' || prev === ')') {
-        return this.emit(node.val, node);
-      }
-      if (!this.output || (/[?*+]/.test(ch) && node.parent.type !== 'bracket')) {
-        return this.emit('\\+', node);
-      }
-      var ch = this.output.slice(-1);
-      if (/\w/.test(ch) && !node.inside) {
-        return this.emit('+\\+?', node);
-      }
-      return this.emit('+', node);
-    })
-
-    /**
-     * globstar: '**'
-     */
-
-    .set('globstar', function(node, nodes, i) {
-      if (!this.output) {
-        this.state.leadingGlobstar = true;
-      }
-
-      var prev = this.prev();
-      var before = this.prev(2);
-      var next = this.next();
-      var after = this.next(2);
-      var type = prev.type;
-      var val = node.val;
-
-      if (prev.type === 'slash' && next.type === 'slash') {
-        if (before.type === 'text') {
-          this.output += '?';
-
-          if (after.type !== 'text') {
-            this.output += '\\b';
-          }
-        }
-      }
-
-      var parsed = node.parsed;
-      if (parsed.charAt(0) === '!') {
-        parsed = parsed.slice(1);
-      }
-
-      var isInside = node.isInside.paren || node.isInside.brace;
-      if (parsed && type !== 'slash' && type !== 'bos' && !isInside) {
-        val = star();
-      } else {
-        val = this.options.dot !== true
-          ? '(?:(?!(?:[' + slash() + ']|^)\\.).)*?'
-          : '(?:(?!(?:[' + slash() + ']|^)(?:\\.{1,2})($|[' + slash() + ']))(?!\\.{2}).)*?';
-      }
-
-      if ((type === 'slash' || type === 'bos') && this.options.dot !== true) {
-        val = '(?!\\.)' + val;
-      }
-
-      if (prev.type === 'slash' && next.type === 'slash' && before.type !== 'text') {
-        if (after.type === 'text' || after.type === 'star') {
-          node.addQmark = true;
-        }
-      }
-
-      if (this.options.capture) {
-        val = '(' + val + ')';
-      }
-
-      return this.emit(val, node);
-    })
-
-    /**
-     * Star: "*"
-     */
-
-    .set('star', function(node, nodes, i) {
-      var prior = nodes[i - 2] || {};
-      var prev = this.prev();
-      var next = this.next();
-      var type = prev.type;
-
-      function isStart(n) {
-        return n.type === 'bos' || n.type === 'slash';
-      }
-
-      if (this.output === '' && this.options.contains !== true) {
-        this.output = '(?![' + slash() + '])';
-      }
-
-      if (type === 'bracket' && this.options.bash === false) {
-        var str = next && next.type === 'bracket' ? star() : '*?';
-        if (!prev.nodes || prev.nodes[1].type !== 'posix') {
-          return this.emit(str, node);
-        }
-      }
-
-      var prefix = !this.dotfiles && type !== 'text' && type !== 'escape'
-        ? (this.options.dot ? '(?!(?:^|[' + slash() + '])\\.{1,2}(?:$|[' + slash() + ']))' : '(?!\\.)')
-        : '';
-
-      if (isStart(prev) || (isStart(prior) && type === 'not')) {
-        if (prefix !== '(?!\\.)') {
-          prefix += '(?!(\\.{2}|\\.[' + slash() + ']))(?=.)';
-        } else {
-          prefix += '(?=.)';
-        }
-      } else if (prefix === '(?!\\.)') {
-        prefix = '';
-      }
-
-      if (prev.type === 'not' && prior.type === 'bos' && this.options.dot === true) {
-        this.output = '(?!\\.)' + this.output;
-      }
-
-      var output = prefix + star();
-      if (this.options.capture) {
-        output = '(' + output + ')';
-      }
-
-      return this.emit(output, node);
-    })
-
-    /**
-     * Text
-     */
-
-    .set('text', function(node) {
-      return this.emit(node.val, node);
-    })
-
-    /**
-     * End-of-string
-     */
-
-    .set('eos', function(node) {
-      var prev = this.prev();
-      var val = node.val;
-
-      this.output = '(?:\\.[' + slash() + '](?=.))?' + this.output;
-      if (this.state.metachar && prev.type !== 'qmark' && prev.type !== 'slash') {
-        val += (this.options.contains ? '[' + slash() + ']?' : '(?:[' + slash() + ']|$)');
-      }
-
-      return this.emit(val, node);
-    });
-
-  /**
-   * Allow custom compilers to be passed on options
-   */
-
-  if (options && typeof options.compilers === 'function') {
-    options.compilers(nanomatch.compiler);
-  }
-};
-

+ 0 - 386
node_modules.bak/nanomatch/lib/parsers.js

@@ -1,386 +0,0 @@
-'use strict';
-
-var regexNot = require('regex-not');
-var toRegex = require('to-regex');
-
-/**
- * Characters to use in negation regex (we want to "not" match
- * characters that are matched by other parsers)
- */
-
-var cached;
-var NOT_REGEX = '[\\[!*+?$^"\'.\\\\/]+';
-var not = createTextRegex(NOT_REGEX);
-
-/**
- * Nanomatch parsers
- */
-
-module.exports = function(nanomatch, options) {
-  var parser = nanomatch.parser;
-  var opts = parser.options;
-
-  parser.state = {
-    slashes: 0,
-    paths: []
-  };
-
-  parser.ast.state = parser.state;
-  parser
-
-    /**
-     * Beginning-of-string
-     */
-
-    .capture('prefix', function() {
-      if (this.parsed) return;
-      var m = this.match(/^\.[\\/]/);
-      if (!m) return;
-      this.state.strictOpen = !!this.options.strictOpen;
-      this.state.addPrefix = true;
-    })
-
-    /**
-     * Escape: "\\."
-     */
-
-    .capture('escape', function() {
-      if (this.isInside('bracket')) return;
-      var pos = this.position();
-      var m = this.match(/^(?:\\(.)|([$^]))/);
-      if (!m) return;
-
-      return pos({
-        type: 'escape',
-        val: m[2] || m[1]
-      });
-    })
-
-    /**
-     * Quoted strings
-     */
-
-    .capture('quoted', function() {
-      var pos = this.position();
-      var m = this.match(/^["']/);
-      if (!m) return;
-
-      var quote = m[0];
-      if (this.input.indexOf(quote) === -1) {
-        return pos({
-          type: 'escape',
-          val: quote
-        });
-      }
-
-      var tok = advanceTo(this.input, quote);
-      this.consume(tok.len);
-
-      return pos({
-        type: 'quoted',
-        val: tok.esc
-      });
-    })
-
-    /**
-     * Negations: "!"
-     */
-
-    .capture('not', function() {
-      var parsed = this.parsed;
-      var pos = this.position();
-      var m = this.match(this.notRegex || /^!+/);
-      if (!m) return;
-      var val = m[0];
-
-      var isNegated = (val.length % 2) === 1;
-      if (parsed === '' && !isNegated) {
-        val = '';
-      }
-
-      // if nothing has been parsed, we know `!` is at the start,
-      // so we need to wrap the result in a negation regex
-      if (parsed === '' && isNegated && this.options.nonegate !== true) {
-        this.bos.val = '(?!^(?:';
-        this.append = ')$).*';
-        val = '';
-      }
-      return pos({
-        type: 'not',
-        val: val
-      });
-    })
-
-    /**
-     * Dot: "."
-     */
-
-    .capture('dot', function() {
-      var parsed = this.parsed;
-      var pos = this.position();
-      var m = this.match(/^\.+/);
-      if (!m) return;
-
-      var val = m[0];
-      this.state.dot = val === '.' && (parsed === '' || parsed.slice(-1) === '/');
-
-      return pos({
-        type: 'dot',
-        dotfiles: this.state.dot,
-        val: val
-      });
-    })
-
-    /**
-     * Plus: "+"
-     */
-
-    .capture('plus', /^\+(?!\()/)
-
-    /**
-     * Question mark: "?"
-     */
-
-    .capture('qmark', function() {
-      var parsed = this.parsed;
-      var pos = this.position();
-      var m = this.match(/^\?+(?!\()/);
-      if (!m) return;
-
-      this.state.metachar = true;
-      this.state.qmark = true;
-
-      return pos({
-        type: 'qmark',
-        parsed: parsed,
-        val: m[0]
-      });
-    })
-
-    /**
-     * Globstar: "**"
-     */
-
-    .capture('globstar', function() {
-      var parsed = this.parsed;
-      var pos = this.position();
-      var m = this.match(/^\*{2}(?![*(])(?=[,)/]|$)/);
-      if (!m) return;
-
-      var type = opts.noglobstar !== true ? 'globstar' : 'star';
-      var node = pos({type: type, parsed: parsed});
-      this.state.metachar = true;
-
-      while (this.input.slice(0, 4) === '/**/') {
-        this.input = this.input.slice(3);
-      }
-
-      node.isInside = {
-        brace: this.isInside('brace'),
-        paren: this.isInside('paren')
-      };
-
-      if (type === 'globstar') {
-        this.state.globstar = true;
-        node.val = '**';
-
-      } else {
-        this.state.star = true;
-        node.val = '*';
-      }
-
-      return node;
-    })
-
-    /**
-     * Star: "*"
-     */
-
-    .capture('star', function() {
-      var pos = this.position();
-      var starRe = /^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/;
-      var m = this.match(starRe);
-      if (!m) return;
-
-      this.state.metachar = true;
-      this.state.star = true;
-      return pos({
-        type: 'star',
-        val: m[0]
-      });
-    })
-
-    /**
-     * Slash: "/"
-     */
-
-    .capture('slash', function() {
-      var pos = this.position();
-      var m = this.match(/^\//);
-      if (!m) return;
-
-      this.state.slashes++;
-      return pos({
-        type: 'slash',
-        val: m[0]
-      });
-    })
-
-    /**
-     * Backslash: "\\"
-     */
-
-    .capture('backslash', function() {
-      var pos = this.position();
-      var m = this.match(/^\\(?![*+?(){}[\]'"])/);
-      if (!m) return;
-
-      var val = m[0];
-
-      if (this.isInside('bracket')) {
-        val = '\\';
-      } else if (val.length > 1) {
-        val = '\\\\';
-      }
-
-      return pos({
-        type: 'backslash',
-        val: val
-      });
-    })
-
-    /**
-     * Square: "[.]"
-     */
-
-    .capture('square', function() {
-      if (this.isInside('bracket')) return;
-      var pos = this.position();
-      var m = this.match(/^\[([^!^\\])\]/);
-      if (!m) return;
-
-      return pos({
-        type: 'square',
-        val: m[1]
-      });
-    })
-
-    /**
-     * Brackets: "[...]" (basic, this can be overridden by other parsers)
-     */
-
-    .capture('bracket', function() {
-      var pos = this.position();
-      var m = this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);
-      if (!m) return;
-
-      var val = m[0];
-      var negated = m[1] ? '^' : '';
-      var inner = (m[2] || '').replace(/\\\\+/, '\\\\');
-      var close = m[3] || '';
-
-      if (m[2] && inner.length < m[2].length) {
-        val = val.replace(/\\\\+/, '\\\\');
-      }
-
-      var esc = this.input.slice(0, 2);
-      if (inner === '' && esc === '\\]') {
-        inner += esc;
-        this.consume(2);
-
-        var str = this.input;
-        var idx = -1;
-        var ch;
-
-        while ((ch = str[++idx])) {
-          this.consume(1);
-          if (ch === ']') {
-            close = ch;
-            break;
-          }
-          inner += ch;
-        }
-      }
-
-      return pos({
-        type: 'bracket',
-        val: val,
-        escaped: close !== ']',
-        negated: negated,
-        inner: inner,
-        close: close
-      });
-    })
-
-    /**
-     * Text
-     */
-
-    .capture('text', function() {
-      if (this.isInside('bracket')) return;
-      var pos = this.position();
-      var m = this.match(not);
-      if (!m || !m[0]) return;
-
-      return pos({
-        type: 'text',
-        val: m[0]
-      });
-    });
-
-  /**
-   * Allow custom parsers to be passed on options
-   */
-
-  if (options && typeof options.parsers === 'function') {
-    options.parsers(nanomatch.parser);
-  }
-};
-
-/**
- * Advance to the next non-escaped character
- */
-
-function advanceTo(input, endChar) {
-  var ch = input.charAt(0);
-  var tok = { len: 1, val: '', esc: '' };
-  var idx = 0;
-
-  function advance() {
-    if (ch !== '\\') {
-      tok.esc += '\\' + ch;
-      tok.val += ch;
-    }
-
-    ch = input.charAt(++idx);
-    tok.len++;
-
-    if (ch === '\\') {
-      advance();
-      advance();
-    }
-  }
-
-  while (ch && ch !== endChar) {
-    advance();
-  }
-  return tok;
-}
-
-/**
- * Create text regex
- */
-
-function createTextRegex(pattern) {
-  if (cached) return cached;
-  var opts = {contains: true, strictClose: false};
-  var not = regexNot.create(pattern, opts);
-  var re = toRegex('^(?:[*]\\((?=.)|' + not + ')', opts);
-  return (cached = re);
-}
-
-/**
- * Expose negation string
- */
-
-module.exports.not = NOT_REGEX;

+ 0 - 379
node_modules.bak/nanomatch/lib/utils.js

@@ -1,379 +0,0 @@
-'use strict';
-
-var utils = module.exports;
-var path = require('path');
-
-/**
- * Module dependencies
- */
-
-var isWindows = require('is-windows')();
-var Snapdragon = require('snapdragon');
-utils.define = require('define-property');
-utils.diff = require('arr-diff');
-utils.extend = require('extend-shallow');
-utils.pick = require('object.pick');
-utils.typeOf = require('kind-of');
-utils.unique = require('array-unique');
-
-/**
- * Returns true if the given value is effectively an empty string
- */
-
-utils.isEmptyString = function(val) {
-  return String(val) === '' || String(val) === './';
-};
-
-/**
- * Returns true if the platform is windows, or `path.sep` is `\\`.
- * This is defined as a function to allow `path.sep` to be set in unit tests,
- * or by the user, if there is a reason to do so.
- * @return {Boolean}
- */
-
-utils.isWindows = function() {
-  return path.sep === '\\' || isWindows === true;
-};
-
-/**
- * Return the last element from an array
- */
-
-utils.last = function(arr, n) {
-  return arr[arr.length - (n || 1)];
-};
-
-/**
- * Get the `Snapdragon` instance to use
- */
-
-utils.instantiate = function(ast, options) {
-  var snapdragon;
-  // if an instance was created by `.parse`, use that instance
-  if (utils.typeOf(ast) === 'object' && ast.snapdragon) {
-    snapdragon = ast.snapdragon;
-  // if the user supplies an instance on options, use that instance
-  } else if (utils.typeOf(options) === 'object' && options.snapdragon) {
-    snapdragon = options.snapdragon;
-  // create a new instance
-  } else {
-    snapdragon = new Snapdragon(options);
-  }
-
-  utils.define(snapdragon, 'parse', function(str, options) {
-    var parsed = Snapdragon.prototype.parse.call(this, str, options);
-    parsed.input = str;
-
-    // escape unmatched brace/bracket/parens
-    var last = this.parser.stack.pop();
-    if (last && this.options.strictErrors !== true) {
-      var open = last.nodes[0];
-      var inner = last.nodes[1];
-      if (last.type === 'bracket') {
-        if (inner.val.charAt(0) === '[') {
-          inner.val = '\\' + inner.val;
-        }
-
-      } else {
-        open.val = '\\' + open.val;
-        var sibling = open.parent.nodes[1];
-        if (sibling.type === 'star') {
-          sibling.loose = true;
-        }
-      }
-    }
-
-    // add non-enumerable parser reference
-    utils.define(parsed, 'parser', this.parser);
-    return parsed;
-  });
-
-  return snapdragon;
-};
-
-/**
- * Create the key to use for memoization. The key is generated
- * by iterating over the options and concatenating key-value pairs
- * to the pattern string.
- */
-
-utils.createKey = function(pattern, options) {
-  if (typeof options === 'undefined') {
-    return pattern;
-  }
-  var key = pattern;
-  for (var prop in options) {
-    if (options.hasOwnProperty(prop)) {
-      key += ';' + prop + '=' + String(options[prop]);
-    }
-  }
-  return key;
-};
-
-/**
- * Cast `val` to an array
- * @return {Array}
- */
-
-utils.arrayify = function(val) {
-  if (typeof val === 'string') return [val];
-  return val ? (Array.isArray(val) ? val : [val]) : [];
-};
-
-/**
- * Return true if `val` is a non-empty string
- */
-
-utils.isString = function(val) {
-  return typeof val === 'string';
-};
-
-/**
- * Return true if `val` is a non-empty string
- */
-
-utils.isRegex = function(val) {
-  return utils.typeOf(val) === 'regexp';
-};
-
-/**
- * Return true if `val` is a non-empty string
- */
-
-utils.isObject = function(val) {
-  return utils.typeOf(val) === 'object';
-};
-
-/**
- * Escape regex characters in the given string
- */
-
-utils.escapeRegex = function(str) {
-  return str.replace(/[-[\]{}()^$|*+?.\\/\s]/g, '\\$&');
-};
-
-/**
- * Combines duplicate characters in the provided `input` string.
- * @param {String} `input`
- * @returns {String}
- */
-
-utils.combineDupes = function(input, patterns) {
-  patterns = utils.arrayify(patterns).join('|').split('|');
-  patterns = patterns.map(function(s) {
-    return s.replace(/\\?([+*\\/])/g, '\\$1');
-  });
-  var substr = patterns.join('|');
-  var regex = new RegExp('(' + substr + ')(?=\\1)', 'g');
-  return input.replace(regex, '');
-};
-
-/**
- * Returns true if the given `str` has special characters
- */
-
-utils.hasSpecialChars = function(str) {
-  return /(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(str);
-};
-
-/**
- * Normalize slashes in the given filepath.
- *
- * @param {String} `filepath`
- * @return {String}
- */
-
-utils.toPosixPath = function(str) {
-  return str.replace(/\\+/g, '/');
-};
-
-/**
- * Strip backslashes before special characters in a string.
- *
- * @param {String} `str`
- * @return {String}
- */
-
-utils.unescape = function(str) {
-  return utils.toPosixPath(str.replace(/\\(?=[*+?!.])/g, ''));
-};
-
-/**
- * Strip the drive letter from a windows filepath
- * @param {String} `fp`
- * @return {String}
- */
-
-utils.stripDrive = function(fp) {
-  return utils.isWindows() ? fp.replace(/^[a-z]:[\\/]+?/i, '/') : fp;
-};
-
-/**
- * Strip the prefix from a filepath
- * @param {String} `fp`
- * @return {String}
- */
-
-utils.stripPrefix = function(str) {
-  if (str.charAt(0) === '.' && (str.charAt(1) === '/' || str.charAt(1) === '\\')) {
-    return str.slice(2);
-  }
-  return str;
-};
-
-/**
- * Returns true if `str` is a common character that doesn't need
- * to be processed to be used for matching.
- * @param {String} `str`
- * @return {Boolean}
- */
-
-utils.isSimpleChar = function(str) {
-  return str.trim() === '' || str === '.';
-};
-
-/**
- * Returns true if the given str is an escaped or
- * unescaped path character
- */
-
-utils.isSlash = function(str) {
-  return str === '/' || str === '\\/' || str === '\\' || str === '\\\\';
-};
-
-/**
- * Returns a function that returns true if the given
- * pattern matches or contains a `filepath`
- *
- * @param {String} `pattern`
- * @return {Function}
- */
-
-utils.matchPath = function(pattern, options) {
-  return (options && options.contains)
-    ? utils.containsPattern(pattern, options)
-    : utils.equalsPattern(pattern, options);
-};
-
-/**
- * Returns true if the given (original) filepath or unixified path are equal
- * to the given pattern.
- */
-
-utils._equals = function(filepath, unixPath, pattern) {
-  return pattern === filepath || pattern === unixPath;
-};
-
-/**
- * Returns true if the given (original) filepath or unixified path contain
- * the given pattern.
- */
-
-utils._contains = function(filepath, unixPath, pattern) {
-  return filepath.indexOf(pattern) !== -1 || unixPath.indexOf(pattern) !== -1;
-};
-
-/**
- * Returns a function that returns true if the given
- * pattern is the same as a given `filepath`
- *
- * @param {String} `pattern`
- * @return {Function}
- */
-
-utils.equalsPattern = function(pattern, options) {
-  var unixify = utils.unixify(options);
-  options = options || {};
-
-  return function fn(filepath) {
-    var equal = utils._equals(filepath, unixify(filepath), pattern);
-    if (equal === true || options.nocase !== true) {
-      return equal;
-    }
-    var lower = filepath.toLowerCase();
-    return utils._equals(lower, unixify(lower), pattern);
-  };
-};
-
-/**
- * Returns a function that returns true if the given
- * pattern contains a `filepath`
- *
- * @param {String} `pattern`
- * @return {Function}
- */
-
-utils.containsPattern = function(pattern, options) {
-  var unixify = utils.unixify(options);
-  options = options || {};
-
-  return function(filepath) {
-    var contains = utils._contains(filepath, unixify(filepath), pattern);
-    if (contains === true || options.nocase !== true) {
-      return contains;
-    }
-    var lower = filepath.toLowerCase();
-    return utils._contains(lower, unixify(lower), pattern);
-  };
-};
-
-/**
- * Returns a function that returns true if the given
- * regex matches the `filename` of a file path.
- *
- * @param {RegExp} `re` Matching regex
- * @return {Function}
- */
-
-utils.matchBasename = function(re) {
-  return function(filepath) {
-    return re.test(filepath) || re.test(path.basename(filepath));
-  };
-};
-
-/**
- * Returns the given value unchanced.
- * @return {any}
- */
-
-utils.identity = function(val) {
-  return val;
-};
-
-/**
- * Determines the filepath to return based on the provided options.
- * @return {any}
- */
-
-utils.value = function(str, unixify, options) {
-  if (options && options.unixify === false) {
-    return str;
-  }
-  if (options && typeof options.unixify === 'function') {
-    return options.unixify(str);
-  }
-  return unixify(str);
-};
-
-/**
- * Returns a function that normalizes slashes in a string to forward
- * slashes, strips `./` from beginning of paths, and optionally unescapes
- * special characters.
- * @return {Function}
- */
-
-utils.unixify = function(options) {
-  var opts = options || {};
-  return function(filepath) {
-    if (opts.stripPrefix !== false) {
-      filepath = utils.stripPrefix(filepath);
-    }
-    if (opts.unescape === true) {
-      filepath = utils.unescape(filepath);
-    }
-    if (opts.unixify === true || utils.isWindows()) {
-      filepath = utils.toPosixPath(filepath);
-    }
-    return filepath;
-  };
-};

+ 0 - 171
node_modules.bak/nanomatch/package.json

@@ -1,171 +0,0 @@
-{
-  "_from": "nanomatch@^1.2.9",
-  "_id": "nanomatch@1.2.13",
-  "_inBundle": false,
-  "_integrity": "sha1-uHqKpPwN6P5r6IiVs4mD/yZb0Rk=",
-  "_location": "/nanomatch",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "nanomatch@^1.2.9",
-    "name": "nanomatch",
-    "escapedName": "nanomatch",
-    "rawSpec": "^1.2.9",
-    "saveSpec": null,
-    "fetchSpec": "^1.2.9"
-  },
-  "_requiredBy": [
-    "/micromatch"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/nanomatch/download/nanomatch-1.2.13.tgz",
-  "_shasum": "b87a8aa4fc0de8fe6be88895b38983ff265bd119",
-  "_spec": "nanomatch@^1.2.9",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\micromatch",
-  "author": {
-    "name": "Jon Schlinkert",
-    "url": "https://github.com/jonschlinkert"
-  },
-  "bugs": {
-    "url": "https://github.com/micromatch/nanomatch/issues"
-  },
-  "bundleDependencies": false,
-  "contributors": [
-    {
-      "name": "Devon Govett",
-      "url": "http://badassjs.com"
-    },
-    {
-      "name": "Jon Schlinkert",
-      "url": "http://twitter.com/jonschlinkert"
-    }
-  ],
-  "dependencies": {
-    "arr-diff": "^4.0.0",
-    "array-unique": "^0.3.2",
-    "define-property": "^2.0.2",
-    "extend-shallow": "^3.0.2",
-    "fragment-cache": "^0.2.1",
-    "is-windows": "^1.0.2",
-    "kind-of": "^6.0.2",
-    "object.pick": "^1.3.0",
-    "regex-not": "^1.0.0",
-    "snapdragon": "^0.8.1",
-    "to-regex": "^3.0.1"
-  },
-  "deprecated": false,
-  "description": "Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash 4.3 wildcard support only (no support for exglobs, posix brackets or braces)",
-  "devDependencies": {
-    "bash-match": "^1.0.2",
-    "for-own": "^1.0.0",
-    "gulp": "^3.9.1",
-    "gulp-format-md": "^1.0.0",
-    "gulp-istanbul": "^1.1.3",
-    "gulp-mocha": "^5.0.0",
-    "helper-changelog": "^0.3.0",
-    "minimatch": "^3.0.4",
-    "minimist": "^1.2.0",
-    "mocha": "^3.5.3",
-    "multimatch": "^2.1.0"
-  },
-  "engines": {
-    "node": ">=0.10.0"
-  },
-  "files": [
-    "index.js",
-    "lib"
-  ],
-  "homepage": "https://github.com/micromatch/nanomatch",
-  "keywords": [
-    "bash",
-    "expand",
-    "expansion",
-    "expression",
-    "file",
-    "files",
-    "filter",
-    "find",
-    "glob",
-    "globbing",
-    "globs",
-    "globstar",
-    "match",
-    "matcher",
-    "matches",
-    "matching",
-    "micromatch",
-    "minimatch",
-    "multimatch",
-    "nanomatch",
-    "path",
-    "pattern",
-    "patterns",
-    "regex",
-    "regexp",
-    "regular",
-    "shell",
-    "wildcard"
-  ],
-  "license": "MIT",
-  "lintDeps": {
-    "dependencies": {
-      "options": {
-        "lock": {
-          "snapdragon": "^0.8.1"
-        }
-      }
-    },
-    "devDependencies": {
-      "files": {
-        "options": {
-          "ignore": [
-            "benchmark/**"
-          ]
-        }
-      }
-    }
-  },
-  "main": "index.js",
-  "name": "nanomatch",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/micromatch/nanomatch.git"
-  },
-  "scripts": {
-    "test": "mocha"
-  },
-  "verb": {
-    "toc": "collapsible",
-    "layout": "default",
-    "tasks": [
-      "readme"
-    ],
-    "helpers": [
-      "helper-changelog"
-    ],
-    "plugins": [
-      "gulp-format-md"
-    ],
-    "related": {
-      "list": [
-        "extglob",
-        "is-extglob",
-        "is-glob",
-        "micromatch"
-      ]
-    },
-    "reflinks": [
-      "expand-brackets",
-      "expand-tilde",
-      "glob-object",
-      "micromatch",
-      "minimatch",
-      "options",
-      "snapdragon"
-    ],
-    "lint": {
-      "reflinks": true
-    }
-  },
-  "version": "1.2.13"
-}

+ 0 - 132
node_modules.bak/native-request/README.md

@@ -1,132 +0,0 @@
-# Native Request
-
-
-Native Request is a simple module that makes you create native node.js requests supports https.
-
-  - supports HTTPS
-  - 0 dependencies
-  - use callbacks
-
-
-
-
-## Installation
-
-Install the dependencies and devDependencies and start the server.
-
-```code
-npm install native-request
-```
-
-## Usage
-
-### GET request
- -  request.get(path, headers, callback)
- -  request.get(path, callback)
-
-
-
-```js
-let request = require('native-request');
-request.get('https://github.com', function(err, data, status, headers) {
-    if (err) {
-        throw err;
-    }
-    console.log(status); //200
-    console.log(data); // page content
-    console.log(headers); // response headers
-});
-```
-To add custom **headers** just do like this:
-```js
-let request = require('native-request');
-
-let headers = {
-    "content-type": "plain/text"
-}
-request.get('https://github.com', headers, function(err, data, status, headers) {
-    if (err) {
-        throw err;
-    }
-    console.log(status); //200
-    console.log(data); // page content
-    console.log(headers); // response headers
-});
-```
-### POST request
- -  request.post(path, callback)
- -  request.post(path, data, callback)
- -  request.post(path, data, headers, callback)
-
- 
-To send an empty **post**:
-```js
-let request = require('native-request');
-request.post('https://github.com', function(err, data, status, headers) {
-    if (err) {
-        throw err;
-    }
-    console.log(status); //200
-    console.log(data); // page content
-    console.log(headers); // response headers
-});
-```
-
-With headers and data:
-
-```js
-let request = require('native-request');
-
-let data = {
-    "example": true,
-}
-let headers = {
-    "content-type": "plain/text"
-}
-request.post('https://github.com', data, headers, function(err, data, status, headers) {
-    if (err) {
-        throw err;
-    }
-    console.log(status); //200
-    console.log(data); // page content
-    console.log(headers); // response headers
-});
-```
-
-### Custom request
- -  *.request(path, method, callback)
- -  *.request(path, method,data, callback)
- -  *.request(path, method, data, headers, callback)
-To send a **PUT** request:
-```js
-let request = require('native-request');
-request.request('https://github.com', 'PUT', function(err, data, status, headers) {
-    if (err) {
-        throw err;
-    }
-    console.log(status); //200
-    console.log(data); // page content
-    console.log(headers); // response headers
-});
-```
-With headers and data:
-```js
-let request = require('native-request');
-
-let data = {
-    "example": true,
-}
-let headers = {
-    "content-type": "plain/text"
-}
-request.request('https://github.com','PUT', data, headers, function(err, data, status, headers) {
-    if (err) {
-        throw err;
-    }
-    console.log(status); //200
-    console.log(data); // page content
-    console.log(headers); // response headers
-});
-```
-### License
-MIT. Copyright (c) Samuel Marchese.

+ 0 - 87
node_modules.bak/native-request/index.js

@@ -1,87 +0,0 @@
-`use strict`
-
-const http = require('http');
-const https = require('https');
-const url = require('url');
-
-function getProtocol(path) {
-	return url.parse(path).protocol === "http:" ? http : https;
-}
-
-/**
- * Send a get request
- * @param path is the url endpoint
- * @param headers of the request
- * @param callback contains (error, body, status, headers)
- */
- function get(path, headers, callback) {
- 	request(path, "GET", null, headers, callback);
- }
-
-/**
- * Send a post request
- * @param path is the url endpoint
- * @param headers of the request
- * @param callback contains (error, body, status, headers)
- * @param data a JSON Object or a string
- */
- function post(path, data, headers, callback) {
- 	request(path, "POST", data, headers, callback);
- }
-
-/**
- * Send a custom request
- * @param path is the url endpoint
- * @param headers of the request
- * @param callback contains (error, statusCode, data)
- * @param data a JSON Object or a string
- * @param method is the protocol used like POST GET DELETE PUT etc...
- */
- function request(path, method, data, headers = '', callback) {
- 	if (typeof data === 'function') {
- 		callback = data;
- 		data = '';
- 	} else if (typeof headers === 'function') {
- 		callback = headers;
- 		headers = {};
- 	} 
- 	const postData = typeof data === "object" ? JSON.stringify(data) : data;
- 	const parsedUrl = url.parse(path);
- 	const options = {
- 		hostname: parsedUrl.hostname,
- 		port: parsedUrl.port,
- 		path: parsedUrl.pathname +  (!!parsedUrl.search ? parsedUrl.search : ''),
-  		method: method,
- 		headers: headers
- 	};
- 	const req = getProtocol(path).request(options, function (response) {
- 		handleResponse(response, callback);
- 	});
- 	req.on('error', function (error) {
- 		callback(error);
- 		console.error(error);
- 	});
-	// Write data to request body
-	if (method !== "GET")
-		req.write(postData);
-	req.end();
-}
-
-function handleResponse(response, callback) {
-	let body = '';
-	const status = response.statusCode;
-	const hasError = status >= 300;
-	response.setEncoding('utf8');
-	response.on('data', function (data) {
-		body += data;
-	});
-	response.on('end', function () {
-		callback(hasError ? body : null, hasError ? null : body, response.statusCode, response.headers);
-	});
-}
-
-module.exports = {
-	get,
-	request,
-	post
-};

+ 0 - 68
node_modules.bak/native-request/package.json

@@ -1,68 +0,0 @@
-{
-  "_from": "native-request@^1.0.5",
-  "_id": "native-request@1.0.8",
-  "_inBundle": false,
-  "_integrity": "sha1-j2a/YG4PfqJ8DlmV6y9dA+M65vs=",
-  "_location": "/native-request",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "range",
-    "registry": true,
-    "raw": "native-request@^1.0.5",
-    "name": "native-request",
-    "escapedName": "native-request",
-    "rawSpec": "^1.0.5",
-    "saveSpec": null,
-    "fetchSpec": "^1.0.5"
-  },
-  "_requiredBy": [
-    "/less"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/native-request/download/native-request-1.0.8.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnative-request%2Fdownload%2Fnative-request-1.0.8.tgz",
-  "_shasum": "8f66bf606e0f7ea27c0e5995eb2f5d03e33ae6fb",
-  "_spec": "native-request@^1.0.5",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\less",
-  "author": {
-    "name": "Samuel Marchese",
-    "email": "contact@zaral.fr",
-    "url": "https://zaral.fr"
-  },
-  "bugs": {
-    "url": "https://github.com/ZaralDev/native-request/issues"
-  },
-  "bundleDependencies": false,
-  "deprecated": false,
-  "description": "A simple package with no dependencies for native requests using callback",
-  "devDependencies": {
-    "mocha": "^6.2.3"
-  },
-  "homepage": "https://github.com/ZaralDev/native-request#readme",
-  "keywords": [
-    "node-request",
-    "native-request",
-    "request",
-    "node-fetch",
-    "fetch",
-    "request",
-    "http",
-    "GET",
-    "get request",
-    "http.get",
-    "follow redirects",
-    "https",
-    "http-https",
-    "simple request",
-    "simple get"
-  ],
-  "license": "MIT",
-  "main": "index.js",
-  "name": "native-request",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/ZaralDev/native-request.git"
-  },
-  "scripts": {
-    "test": "node ./node_modules/mocha/bin/mocha"
-  },
-  "version": "1.0.8"
-}

+ 0 - 46
node_modules.bak/native-request/test/get.js

@@ -1,46 +0,0 @@
-let request = require('../index');
-let http = require('http');
-let assert = require('assert');
-let server = http.createServer(function (req, res) {
-	res.writeHead(200, { 'content-type': 'text/plain' });
-	res.end('Hello, world!\n');
-});
-
-
-describe('/GET', function () {
-	before(function () {
-		server.listen(8000);
-	});
-
-
-	describe('/', function () {
-		it('should return 200', function (done) {
-			request.get('http://localhost:8000/?hey=d', function(err, data, status, headers) {
-				assert.ifError(err);
-				assert.equal(200, status);
-				done();
-			});
-		});
-
-		it('should say "Hello, world!"', function (done) {
-			request.get("http://localhost:8000", function(err, data, status, headers) {
-				assert.ifError(err);
-				assert.equal('Hello, world!\n', data);	
-				done();
-			});
-		});	
-
-		it("should have content-type to 'text/plain'", function (done) {
-			request.get("http://localhost:8000",function(err, data, status, headers) {
-				assert.ifError(err);
-				assert.equal('text/plain' , headers['content-type']);
-				done();
-			});
-		});
-	});
-
-	after(function () {
-		server.close();
-	});
-});
-

+ 0 - 53
node_modules.bak/native-request/test/post.js

@@ -1,53 +0,0 @@
-let request = require('../index');
-let http = require('http');
-let assert = require('assert');
-
-const server = http.createServer(function(request, response) {
-    var body = ''
-    request.on('data', function(data) {
-      body += data
-    })
-    request.on('end', function() {
-      response.writeHead(200, {'Content-Type': 'text/html'})
-      response.end(body)
-    })
-  });
-
-
-describe('/POST', function () {
-	before(function () {
-		server.listen(8000);
-	});
-
-
-	describe('/', function () {
-		it('should return 200', function (done) {
-			request.post('http://localhost:8000/',function(err, data, status) {
-				assert.ifError(err);
-				assert.equal(200, status);
-				done();
-			});
-		});
-
-		it('should say "Hello, world!" inside a JSON object', function (done) {
-			request.post("http://localhost:8000",  {hello: 'Hello, world!'}, function(err, data) {
-				assert.ifError(err);
-				assert.deepEqual({hello: 'Hello, world!'}, JSON.parse(data));	
-				done();
-			});
-		});
-
-		it("should have content-type to 'text/html'", function (done) {
-			request.post("http://localhost:8000", function(err, data, status, headers) {
-				assert.ifError(err);
-				assert.equal('text/html' , headers['content-type']);
-				done();
-			});
-		});
-	});
-
-	after(function () {
-		server.close();
-	});
-});
-

+ 0 - 103
node_modules.bak/negotiator/HISTORY.md

@@ -1,103 +0,0 @@
-0.6.2 / 2019-04-29
-==================
-
-  * Fix sorting charset, encoding, and language with extra parameters
-
-0.6.1 / 2016-05-02
-==================
-
-  * perf: improve `Accept` parsing speed
-  * perf: improve `Accept-Charset` parsing speed
-  * perf: improve `Accept-Encoding` parsing speed
-  * perf: improve `Accept-Language` parsing speed
-
-0.6.0 / 2015-09-29
-==================
-
-  * Fix including type extensions in parameters in `Accept` parsing
-  * Fix parsing `Accept` parameters with quoted equals
-  * Fix parsing `Accept` parameters with quoted semicolons
-  * Lazy-load modules from main entry point
-  * perf: delay type concatenation until needed
-  * perf: enable strict mode
-  * perf: hoist regular expressions
-  * perf: remove closures getting spec properties
-  * perf: remove a closure from media type parsing
-  * perf: remove property delete from media type parsing
-
-0.5.3 / 2015-05-10
-==================
-
-  * Fix media type parameter matching to be case-insensitive
-
-0.5.2 / 2015-05-06
-==================
-
-  * Fix comparing media types with quoted values
-  * Fix splitting media types with quoted commas
-
-0.5.1 / 2015-02-14
-==================
-
-  * Fix preference sorting to be stable for long acceptable lists
-
-0.5.0 / 2014-12-18
-==================
-
-  * Fix list return order when large accepted list
-  * Fix missing identity encoding when q=0 exists
-  * Remove dynamic building of Negotiator class
-
-0.4.9 / 2014-10-14
-==================
-
-  * Fix error when media type has invalid parameter
-
-0.4.8 / 2014-09-28
-==================
-
-  * Fix all negotiations to be case-insensitive
-  * Stable sort preferences of same quality according to client order
-  * Support Node.js 0.6
-
-0.4.7 / 2014-06-24
-==================
-
-  * Handle invalid provided languages
-  * Handle invalid provided media types
-
-0.4.6 / 2014-06-11
-==================
-
-  *  Order by specificity when quality is the same
-
-0.4.5 / 2014-05-29
-==================
-
-  * Fix regression in empty header handling
-
-0.4.4 / 2014-05-29
-==================
-
-  * Fix behaviors when headers are not present
-
-0.4.3 / 2014-04-16
-==================
-
-  * Handle slashes on media params correctly
-
-0.4.2 / 2014-02-28
-==================
-
-  * Fix media type sorting
-  * Handle media types params strictly
-
-0.4.1 / 2014-01-16
-==================
-
-  * Use most specific matches
-
-0.4.0 / 2014-01-09
-==================
-
-  * Remove preferred prefix from methods

+ 0 - 24
node_modules.bak/negotiator/LICENSE

@@ -1,24 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2012-2014 Federico Romero
-Copyright (c) 2012-2014 Isaac Z. Schlueter
-Copyright (c) 2014-2015 Douglas Christopher Wilson
-
-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 - 203
node_modules.bak/negotiator/README.md

@@ -1,203 +0,0 @@
-# negotiator
-
-[![NPM Version][npm-image]][npm-url]
-[![NPM Downloads][downloads-image]][downloads-url]
-[![Node.js Version][node-version-image]][node-version-url]
-[![Build Status][travis-image]][travis-url]
-[![Test Coverage][coveralls-image]][coveralls-url]
-
-An HTTP content negotiator for Node.js
-
-## Installation
-
-```sh
-$ npm install negotiator
-```
-
-## API
-
-```js
-var Negotiator = require('negotiator')
-```
-
-### Accept Negotiation
-
-```js
-availableMediaTypes = ['text/html', 'text/plain', 'application/json']
-
-// The negotiator constructor receives a request object
-negotiator = new Negotiator(request)
-
-// Let's say Accept header is 'text/html, application/*;q=0.2, image/jpeg;q=0.8'
-
-negotiator.mediaTypes()
-// -> ['text/html', 'image/jpeg', 'application/*']
-
-negotiator.mediaTypes(availableMediaTypes)
-// -> ['text/html', 'application/json']
-
-negotiator.mediaType(availableMediaTypes)
-// -> 'text/html'
-```
-
-You can check a working example at `examples/accept.js`.
-
-#### Methods
-
-##### mediaType()
-
-Returns the most preferred media type from the client.
-
-##### mediaType(availableMediaType)
-
-Returns the most preferred media type from a list of available media types.
-
-##### mediaTypes()
-
-Returns an array of preferred media types ordered by the client preference.
-
-##### mediaTypes(availableMediaTypes)
-
-Returns an array of preferred media types ordered by priority from a list of
-available media types.
-
-### Accept-Language Negotiation
-
-```js
-negotiator = new Negotiator(request)
-
-availableLanguages = ['en', 'es', 'fr']
-
-// Let's say Accept-Language header is 'en;q=0.8, es, pt'
-
-negotiator.languages()
-// -> ['es', 'pt', 'en']
-
-negotiator.languages(availableLanguages)
-// -> ['es', 'en']
-
-language = negotiator.language(availableLanguages)
-// -> 'es'
-```
-
-You can check a working example at `examples/language.js`.
-
-#### Methods
-
-##### language()
-
-Returns the most preferred language from the client.
-
-##### language(availableLanguages)
-
-Returns the most preferred language from a list of available languages.
-
-##### languages()
-
-Returns an array of preferred languages ordered by the client preference.
-
-##### languages(availableLanguages)
-
-Returns an array of preferred languages ordered by priority from a list of
-available languages.
-
-### Accept-Charset Negotiation
-
-```js
-availableCharsets = ['utf-8', 'iso-8859-1', 'iso-8859-5']
-
-negotiator = new Negotiator(request)
-
-// Let's say Accept-Charset header is 'utf-8, iso-8859-1;q=0.8, utf-7;q=0.2'
-
-negotiator.charsets()
-// -> ['utf-8', 'iso-8859-1', 'utf-7']
-
-negotiator.charsets(availableCharsets)
-// -> ['utf-8', 'iso-8859-1']
-
-negotiator.charset(availableCharsets)
-// -> 'utf-8'
-```
-
-You can check a working example at `examples/charset.js`.
-
-#### Methods
-
-##### charset()
-
-Returns the most preferred charset from the client.
-
-##### charset(availableCharsets)
-
-Returns the most preferred charset from a list of available charsets.
-
-##### charsets()
-
-Returns an array of preferred charsets ordered by the client preference.
-
-##### charsets(availableCharsets)
-
-Returns an array of preferred charsets ordered by priority from a list of
-available charsets.
-
-### Accept-Encoding Negotiation
-
-```js
-availableEncodings = ['identity', 'gzip']
-
-negotiator = new Negotiator(request)
-
-// Let's say Accept-Encoding header is 'gzip, compress;q=0.2, identity;q=0.5'
-
-negotiator.encodings()
-// -> ['gzip', 'identity', 'compress']
-
-negotiator.encodings(availableEncodings)
-// -> ['gzip', 'identity']
-
-negotiator.encoding(availableEncodings)
-// -> 'gzip'
-```
-
-You can check a working example at `examples/encoding.js`.
-
-#### Methods
-
-##### encoding()
-
-Returns the most preferred encoding from the client.
-
-##### encoding(availableEncodings)
-
-Returns the most preferred encoding from a list of available encodings.
-
-##### encodings()
-
-Returns an array of preferred encodings ordered by the client preference.
-
-##### encodings(availableEncodings)
-
-Returns an array of preferred encodings ordered by priority from a list of
-available encodings.
-
-## See Also
-
-The [accepts](https://npmjs.org/package/accepts#readme) module builds on
-this module and provides an alternative interface, mime type validation,
-and more.
-
-## License
-
-[MIT](LICENSE)
-
-[npm-image]: https://img.shields.io/npm/v/negotiator.svg
-[npm-url]: https://npmjs.org/package/negotiator
-[node-version-image]: https://img.shields.io/node/v/negotiator.svg
-[node-version-url]: https://nodejs.org/en/download/
-[travis-image]: https://img.shields.io/travis/jshttp/negotiator/master.svg
-[travis-url]: https://travis-ci.org/jshttp/negotiator
-[coveralls-image]: https://img.shields.io/coveralls/jshttp/negotiator/master.svg
-[coveralls-url]: https://coveralls.io/r/jshttp/negotiator?branch=master
-[downloads-image]: https://img.shields.io/npm/dm/negotiator.svg
-[downloads-url]: https://npmjs.org/package/negotiator

+ 0 - 124
node_modules.bak/negotiator/index.js

@@ -1,124 +0,0 @@
-/*!
- * negotiator
- * Copyright(c) 2012 Federico Romero
- * Copyright(c) 2012-2014 Isaac Z. Schlueter
- * Copyright(c) 2015 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict';
-
-/**
- * Cached loaded submodules.
- * @private
- */
-
-var modules = Object.create(null);
-
-/**
- * Module exports.
- * @public
- */
-
-module.exports = Negotiator;
-module.exports.Negotiator = Negotiator;
-
-/**
- * Create a Negotiator instance from a request.
- * @param {object} request
- * @public
- */
-
-function Negotiator(request) {
-  if (!(this instanceof Negotiator)) {
-    return new Negotiator(request);
-  }
-
-  this.request = request;
-}
-
-Negotiator.prototype.charset = function charset(available) {
-  var set = this.charsets(available);
-  return set && set[0];
-};
-
-Negotiator.prototype.charsets = function charsets(available) {
-  var preferredCharsets = loadModule('charset').preferredCharsets;
-  return preferredCharsets(this.request.headers['accept-charset'], available);
-};
-
-Negotiator.prototype.encoding = function encoding(available) {
-  var set = this.encodings(available);
-  return set && set[0];
-};
-
-Negotiator.prototype.encodings = function encodings(available) {
-  var preferredEncodings = loadModule('encoding').preferredEncodings;
-  return preferredEncodings(this.request.headers['accept-encoding'], available);
-};
-
-Negotiator.prototype.language = function language(available) {
-  var set = this.languages(available);
-  return set && set[0];
-};
-
-Negotiator.prototype.languages = function languages(available) {
-  var preferredLanguages = loadModule('language').preferredLanguages;
-  return preferredLanguages(this.request.headers['accept-language'], available);
-};
-
-Negotiator.prototype.mediaType = function mediaType(available) {
-  var set = this.mediaTypes(available);
-  return set && set[0];
-};
-
-Negotiator.prototype.mediaTypes = function mediaTypes(available) {
-  var preferredMediaTypes = loadModule('mediaType').preferredMediaTypes;
-  return preferredMediaTypes(this.request.headers.accept, available);
-};
-
-// Backwards compatibility
-Negotiator.prototype.preferredCharset = Negotiator.prototype.charset;
-Negotiator.prototype.preferredCharsets = Negotiator.prototype.charsets;
-Negotiator.prototype.preferredEncoding = Negotiator.prototype.encoding;
-Negotiator.prototype.preferredEncodings = Negotiator.prototype.encodings;
-Negotiator.prototype.preferredLanguage = Negotiator.prototype.language;
-Negotiator.prototype.preferredLanguages = Negotiator.prototype.languages;
-Negotiator.prototype.preferredMediaType = Negotiator.prototype.mediaType;
-Negotiator.prototype.preferredMediaTypes = Negotiator.prototype.mediaTypes;
-
-/**
- * Load the given module.
- * @private
- */
-
-function loadModule(moduleName) {
-  var module = modules[moduleName];
-
-  if (module !== undefined) {
-    return module;
-  }
-
-  // This uses a switch for static require analysis
-  switch (moduleName) {
-    case 'charset':
-      module = require('./lib/charset');
-      break;
-    case 'encoding':
-      module = require('./lib/encoding');
-      break;
-    case 'language':
-      module = require('./lib/language');
-      break;
-    case 'mediaType':
-      module = require('./lib/mediaType');
-      break;
-    default:
-      throw new Error('Cannot find module \'' + moduleName + '\'');
-  }
-
-  // Store to prevent invoking require()
-  modules[moduleName] = module;
-
-  return module;
-}

+ 0 - 169
node_modules.bak/negotiator/lib/charset.js

@@ -1,169 +0,0 @@
-/**
- * negotiator
- * Copyright(c) 2012 Isaac Z. Schlueter
- * Copyright(c) 2014 Federico Romero
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict';
-
-/**
- * Module exports.
- * @public
- */
-
-module.exports = preferredCharsets;
-module.exports.preferredCharsets = preferredCharsets;
-
-/**
- * Module variables.
- * @private
- */
-
-var simpleCharsetRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
-
-/**
- * Parse the Accept-Charset header.
- * @private
- */
-
-function parseAcceptCharset(accept) {
-  var accepts = accept.split(',');
-
-  for (var i = 0, j = 0; i < accepts.length; i++) {
-    var charset = parseCharset(accepts[i].trim(), i);
-
-    if (charset) {
-      accepts[j++] = charset;
-    }
-  }
-
-  // trim accepts
-  accepts.length = j;
-
-  return accepts;
-}
-
-/**
- * Parse a charset from the Accept-Charset header.
- * @private
- */
-
-function parseCharset(str, i) {
-  var match = simpleCharsetRegExp.exec(str);
-  if (!match) return null;
-
-  var charset = match[1];
-  var q = 1;
-  if (match[2]) {
-    var params = match[2].split(';')
-    for (var j = 0; j < params.length; j++) {
-      var p = params[j].trim().split('=');
-      if (p[0] === 'q') {
-        q = parseFloat(p[1]);
-        break;
-      }
-    }
-  }
-
-  return {
-    charset: charset,
-    q: q,
-    i: i
-  };
-}
-
-/**
- * Get the priority of a charset.
- * @private
- */
-
-function getCharsetPriority(charset, accepted, index) {
-  var priority = {o: -1, q: 0, s: 0};
-
-  for (var i = 0; i < accepted.length; i++) {
-    var spec = specify(charset, accepted[i], index);
-
-    if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
-      priority = spec;
-    }
-  }
-
-  return priority;
-}
-
-/**
- * Get the specificity of the charset.
- * @private
- */
-
-function specify(charset, spec, index) {
-  var s = 0;
-  if(spec.charset.toLowerCase() === charset.toLowerCase()){
-    s |= 1;
-  } else if (spec.charset !== '*' ) {
-    return null
-  }
-
-  return {
-    i: index,
-    o: spec.i,
-    q: spec.q,
-    s: s
-  }
-}
-
-/**
- * Get the preferred charsets from an Accept-Charset header.
- * @public
- */
-
-function preferredCharsets(accept, provided) {
-  // RFC 2616 sec 14.2: no header = *
-  var accepts = parseAcceptCharset(accept === undefined ? '*' : accept || '');
-
-  if (!provided) {
-    // sorted list of all charsets
-    return accepts
-      .filter(isQuality)
-      .sort(compareSpecs)
-      .map(getFullCharset);
-  }
-
-  var priorities = provided.map(function getPriority(type, index) {
-    return getCharsetPriority(type, accepts, index);
-  });
-
-  // sorted list of accepted charsets
-  return priorities.filter(isQuality).sort(compareSpecs).map(function getCharset(priority) {
-    return provided[priorities.indexOf(priority)];
-  });
-}
-
-/**
- * Compare two specs.
- * @private
- */
-
-function compareSpecs(a, b) {
-  return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0;
-}
-
-/**
- * Get full charset string.
- * @private
- */
-
-function getFullCharset(spec) {
-  return spec.charset;
-}
-
-/**
- * Check if a spec has any quality.
- * @private
- */
-
-function isQuality(spec) {
-  return spec.q > 0;
-}

+ 0 - 184
node_modules.bak/negotiator/lib/encoding.js

@@ -1,184 +0,0 @@
-/**
- * negotiator
- * Copyright(c) 2012 Isaac Z. Schlueter
- * Copyright(c) 2014 Federico Romero
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict';
-
-/**
- * Module exports.
- * @public
- */
-
-module.exports = preferredEncodings;
-module.exports.preferredEncodings = preferredEncodings;
-
-/**
- * Module variables.
- * @private
- */
-
-var simpleEncodingRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
-
-/**
- * Parse the Accept-Encoding header.
- * @private
- */
-
-function parseAcceptEncoding(accept) {
-  var accepts = accept.split(',');
-  var hasIdentity = false;
-  var minQuality = 1;
-
-  for (var i = 0, j = 0; i < accepts.length; i++) {
-    var encoding = parseEncoding(accepts[i].trim(), i);
-
-    if (encoding) {
-      accepts[j++] = encoding;
-      hasIdentity = hasIdentity || specify('identity', encoding);
-      minQuality = Math.min(minQuality, encoding.q || 1);
-    }
-  }
-
-  if (!hasIdentity) {
-    /*
-     * If identity doesn't explicitly appear in the accept-encoding header,
-     * it's added to the list of acceptable encoding with the lowest q
-     */
-    accepts[j++] = {
-      encoding: 'identity',
-      q: minQuality,
-      i: i
-    };
-  }
-
-  // trim accepts
-  accepts.length = j;
-
-  return accepts;
-}
-
-/**
- * Parse an encoding from the Accept-Encoding header.
- * @private
- */
-
-function parseEncoding(str, i) {
-  var match = simpleEncodingRegExp.exec(str);
-  if (!match) return null;
-
-  var encoding = match[1];
-  var q = 1;
-  if (match[2]) {
-    var params = match[2].split(';');
-    for (var j = 0; j < params.length; j++) {
-      var p = params[j].trim().split('=');
-      if (p[0] === 'q') {
-        q = parseFloat(p[1]);
-        break;
-      }
-    }
-  }
-
-  return {
-    encoding: encoding,
-    q: q,
-    i: i
-  };
-}
-
-/**
- * Get the priority of an encoding.
- * @private
- */
-
-function getEncodingPriority(encoding, accepted, index) {
-  var priority = {o: -1, q: 0, s: 0};
-
-  for (var i = 0; i < accepted.length; i++) {
-    var spec = specify(encoding, accepted[i], index);
-
-    if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
-      priority = spec;
-    }
-  }
-
-  return priority;
-}
-
-/**
- * Get the specificity of the encoding.
- * @private
- */
-
-function specify(encoding, spec, index) {
-  var s = 0;
-  if(spec.encoding.toLowerCase() === encoding.toLowerCase()){
-    s |= 1;
-  } else if (spec.encoding !== '*' ) {
-    return null
-  }
-
-  return {
-    i: index,
-    o: spec.i,
-    q: spec.q,
-    s: s
-  }
-};
-
-/**
- * Get the preferred encodings from an Accept-Encoding header.
- * @public
- */
-
-function preferredEncodings(accept, provided) {
-  var accepts = parseAcceptEncoding(accept || '');
-
-  if (!provided) {
-    // sorted list of all encodings
-    return accepts
-      .filter(isQuality)
-      .sort(compareSpecs)
-      .map(getFullEncoding);
-  }
-
-  var priorities = provided.map(function getPriority(type, index) {
-    return getEncodingPriority(type, accepts, index);
-  });
-
-  // sorted list of accepted encodings
-  return priorities.filter(isQuality).sort(compareSpecs).map(function getEncoding(priority) {
-    return provided[priorities.indexOf(priority)];
-  });
-}
-
-/**
- * Compare two specs.
- * @private
- */
-
-function compareSpecs(a, b) {
-  return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0;
-}
-
-/**
- * Get full encoding string.
- * @private
- */
-
-function getFullEncoding(spec) {
-  return spec.encoding;
-}
-
-/**
- * Check if a spec has any quality.
- * @private
- */
-
-function isQuality(spec) {
-  return spec.q > 0;
-}

+ 0 - 179
node_modules.bak/negotiator/lib/language.js

@@ -1,179 +0,0 @@
-/**
- * negotiator
- * Copyright(c) 2012 Isaac Z. Schlueter
- * Copyright(c) 2014 Federico Romero
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict';
-
-/**
- * Module exports.
- * @public
- */
-
-module.exports = preferredLanguages;
-module.exports.preferredLanguages = preferredLanguages;
-
-/**
- * Module variables.
- * @private
- */
-
-var simpleLanguageRegExp = /^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;
-
-/**
- * Parse the Accept-Language header.
- * @private
- */
-
-function parseAcceptLanguage(accept) {
-  var accepts = accept.split(',');
-
-  for (var i = 0, j = 0; i < accepts.length; i++) {
-    var language = parseLanguage(accepts[i].trim(), i);
-
-    if (language) {
-      accepts[j++] = language;
-    }
-  }
-
-  // trim accepts
-  accepts.length = j;
-
-  return accepts;
-}
-
-/**
- * Parse a language from the Accept-Language header.
- * @private
- */
-
-function parseLanguage(str, i) {
-  var match = simpleLanguageRegExp.exec(str);
-  if (!match) return null;
-
-  var prefix = match[1],
-    suffix = match[2],
-    full = prefix;
-
-  if (suffix) full += "-" + suffix;
-
-  var q = 1;
-  if (match[3]) {
-    var params = match[3].split(';')
-    for (var j = 0; j < params.length; j++) {
-      var p = params[j].split('=');
-      if (p[0] === 'q') q = parseFloat(p[1]);
-    }
-  }
-
-  return {
-    prefix: prefix,
-    suffix: suffix,
-    q: q,
-    i: i,
-    full: full
-  };
-}
-
-/**
- * Get the priority of a language.
- * @private
- */
-
-function getLanguagePriority(language, accepted, index) {
-  var priority = {o: -1, q: 0, s: 0};
-
-  for (var i = 0; i < accepted.length; i++) {
-    var spec = specify(language, accepted[i], index);
-
-    if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
-      priority = spec;
-    }
-  }
-
-  return priority;
-}
-
-/**
- * Get the specificity of the language.
- * @private
- */
-
-function specify(language, spec, index) {
-  var p = parseLanguage(language)
-  if (!p) return null;
-  var s = 0;
-  if(spec.full.toLowerCase() === p.full.toLowerCase()){
-    s |= 4;
-  } else if (spec.prefix.toLowerCase() === p.full.toLowerCase()) {
-    s |= 2;
-  } else if (spec.full.toLowerCase() === p.prefix.toLowerCase()) {
-    s |= 1;
-  } else if (spec.full !== '*' ) {
-    return null
-  }
-
-  return {
-    i: index,
-    o: spec.i,
-    q: spec.q,
-    s: s
-  }
-};
-
-/**
- * Get the preferred languages from an Accept-Language header.
- * @public
- */
-
-function preferredLanguages(accept, provided) {
-  // RFC 2616 sec 14.4: no header = *
-  var accepts = parseAcceptLanguage(accept === undefined ? '*' : accept || '');
-
-  if (!provided) {
-    // sorted list of all languages
-    return accepts
-      .filter(isQuality)
-      .sort(compareSpecs)
-      .map(getFullLanguage);
-  }
-
-  var priorities = provided.map(function getPriority(type, index) {
-    return getLanguagePriority(type, accepts, index);
-  });
-
-  // sorted list of accepted languages
-  return priorities.filter(isQuality).sort(compareSpecs).map(function getLanguage(priority) {
-    return provided[priorities.indexOf(priority)];
-  });
-}
-
-/**
- * Compare two specs.
- * @private
- */
-
-function compareSpecs(a, b) {
-  return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0;
-}
-
-/**
- * Get full language string.
- * @private
- */
-
-function getFullLanguage(spec) {
-  return spec.full;
-}
-
-/**
- * Check if a spec has any quality.
- * @private
- */
-
-function isQuality(spec) {
-  return spec.q > 0;
-}

+ 0 - 294
node_modules.bak/negotiator/lib/mediaType.js

@@ -1,294 +0,0 @@
-/**
- * negotiator
- * Copyright(c) 2012 Isaac Z. Schlueter
- * Copyright(c) 2014 Federico Romero
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict';
-
-/**
- * Module exports.
- * @public
- */
-
-module.exports = preferredMediaTypes;
-module.exports.preferredMediaTypes = preferredMediaTypes;
-
-/**
- * Module variables.
- * @private
- */
-
-var simpleMediaTypeRegExp = /^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;
-
-/**
- * Parse the Accept header.
- * @private
- */
-
-function parseAccept(accept) {
-  var accepts = splitMediaTypes(accept);
-
-  for (var i = 0, j = 0; i < accepts.length; i++) {
-    var mediaType = parseMediaType(accepts[i].trim(), i);
-
-    if (mediaType) {
-      accepts[j++] = mediaType;
-    }
-  }
-
-  // trim accepts
-  accepts.length = j;
-
-  return accepts;
-}
-
-/**
- * Parse a media type from the Accept header.
- * @private
- */
-
-function parseMediaType(str, i) {
-  var match = simpleMediaTypeRegExp.exec(str);
-  if (!match) return null;
-
-  var params = Object.create(null);
-  var q = 1;
-  var subtype = match[2];
-  var type = match[1];
-
-  if (match[3]) {
-    var kvps = splitParameters(match[3]).map(splitKeyValuePair);
-
-    for (var j = 0; j < kvps.length; j++) {
-      var pair = kvps[j];
-      var key = pair[0].toLowerCase();
-      var val = pair[1];
-
-      // get the value, unwrapping quotes
-      var value = val && val[0] === '"' && val[val.length - 1] === '"'
-        ? val.substr(1, val.length - 2)
-        : val;
-
-      if (key === 'q') {
-        q = parseFloat(value);
-        break;
-      }
-
-      // store parameter
-      params[key] = value;
-    }
-  }
-
-  return {
-    type: type,
-    subtype: subtype,
-    params: params,
-    q: q,
-    i: i
-  };
-}
-
-/**
- * Get the priority of a media type.
- * @private
- */
-
-function getMediaTypePriority(type, accepted, index) {
-  var priority = {o: -1, q: 0, s: 0};
-
-  for (var i = 0; i < accepted.length; i++) {
-    var spec = specify(type, accepted[i], index);
-
-    if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) {
-      priority = spec;
-    }
-  }
-
-  return priority;
-}
-
-/**
- * Get the specificity of the media type.
- * @private
- */
-
-function specify(type, spec, index) {
-  var p = parseMediaType(type);
-  var s = 0;
-
-  if (!p) {
-    return null;
-  }
-
-  if(spec.type.toLowerCase() == p.type.toLowerCase()) {
-    s |= 4
-  } else if(spec.type != '*') {
-    return null;
-  }
-
-  if(spec.subtype.toLowerCase() == p.subtype.toLowerCase()) {
-    s |= 2
-  } else if(spec.subtype != '*') {
-    return null;
-  }
-
-  var keys = Object.keys(spec.params);
-  if (keys.length > 0) {
-    if (keys.every(function (k) {
-      return spec.params[k] == '*' || (spec.params[k] || '').toLowerCase() == (p.params[k] || '').toLowerCase();
-    })) {
-      s |= 1
-    } else {
-      return null
-    }
-  }
-
-  return {
-    i: index,
-    o: spec.i,
-    q: spec.q,
-    s: s,
-  }
-}
-
-/**
- * Get the preferred media types from an Accept header.
- * @public
- */
-
-function preferredMediaTypes(accept, provided) {
-  // RFC 2616 sec 14.2: no header = */*
-  var accepts = parseAccept(accept === undefined ? '*/*' : accept || '');
-
-  if (!provided) {
-    // sorted list of all types
-    return accepts
-      .filter(isQuality)
-      .sort(compareSpecs)
-      .map(getFullType);
-  }
-
-  var priorities = provided.map(function getPriority(type, index) {
-    return getMediaTypePriority(type, accepts, index);
-  });
-
-  // sorted list of accepted types
-  return priorities.filter(isQuality).sort(compareSpecs).map(function getType(priority) {
-    return provided[priorities.indexOf(priority)];
-  });
-}
-
-/**
- * Compare two specs.
- * @private
- */
-
-function compareSpecs(a, b) {
-  return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0;
-}
-
-/**
- * Get full type string.
- * @private
- */
-
-function getFullType(spec) {
-  return spec.type + '/' + spec.subtype;
-}
-
-/**
- * Check if a spec has any quality.
- * @private
- */
-
-function isQuality(spec) {
-  return spec.q > 0;
-}
-
-/**
- * Count the number of quotes in a string.
- * @private
- */
-
-function quoteCount(string) {
-  var count = 0;
-  var index = 0;
-
-  while ((index = string.indexOf('"', index)) !== -1) {
-    count++;
-    index++;
-  }
-
-  return count;
-}
-
-/**
- * Split a key value pair.
- * @private
- */
-
-function splitKeyValuePair(str) {
-  var index = str.indexOf('=');
-  var key;
-  var val;
-
-  if (index === -1) {
-    key = str;
-  } else {
-    key = str.substr(0, index);
-    val = str.substr(index + 1);
-  }
-
-  return [key, val];
-}
-
-/**
- * Split an Accept header into media types.
- * @private
- */
-
-function splitMediaTypes(accept) {
-  var accepts = accept.split(',');
-
-  for (var i = 1, j = 0; i < accepts.length; i++) {
-    if (quoteCount(accepts[j]) % 2 == 0) {
-      accepts[++j] = accepts[i];
-    } else {
-      accepts[j] += ',' + accepts[i];
-    }
-  }
-
-  // trim accepts
-  accepts.length = j + 1;
-
-  return accepts;
-}
-
-/**
- * Split a string of parameters.
- * @private
- */
-
-function splitParameters(str) {
-  var parameters = str.split(';');
-
-  for (var i = 1, j = 0; i < parameters.length; i++) {
-    if (quoteCount(parameters[j]) % 2 == 0) {
-      parameters[++j] = parameters[i];
-    } else {
-      parameters[j] += ';' + parameters[i];
-    }
-  }
-
-  // trim parameters
-  parameters.length = j + 1;
-
-  for (var i = 0; i < parameters.length; i++) {
-    parameters[i] = parameters[i].trim();
-  }
-
-  return parameters;
-}

+ 0 - 84
node_modules.bak/negotiator/package.json

@@ -1,84 +0,0 @@
-{
-  "_from": "negotiator@0.6.2",
-  "_id": "negotiator@0.6.2",
-  "_inBundle": false,
-  "_integrity": "sha1-/qz3zPUlp3rpY0Q2pkiD/+yjRvs=",
-  "_location": "/negotiator",
-  "_phantomChildren": {},
-  "_requested": {
-    "type": "version",
-    "registry": true,
-    "raw": "negotiator@0.6.2",
-    "name": "negotiator",
-    "escapedName": "negotiator",
-    "rawSpec": "0.6.2",
-    "saveSpec": null,
-    "fetchSpec": "0.6.2"
-  },
-  "_requiredBy": [
-    "/accepts"
-  ],
-  "_resolved": "https://registry.npm.taobao.org/negotiator/download/negotiator-0.6.2.tgz",
-  "_shasum": "feacf7ccf525a77ae9634436a64883ffeca346fb",
-  "_spec": "negotiator@0.6.2",
-  "_where": "D:\\朗通信息\\icssDService\\node_modules\\accepts",
-  "bugs": {
-    "url": "https://github.com/jshttp/negotiator/issues"
-  },
-  "bundleDependencies": false,
-  "contributors": [
-    {
-      "name": "Douglas Christopher Wilson",
-      "email": "doug@somethingdoug.com"
-    },
-    {
-      "name": "Federico Romero",
-      "email": "federico.romero@outboxlabs.com"
-    },
-    {
-      "name": "Isaac Z. Schlueter",
-      "email": "i@izs.me",
-      "url": "http://blog.izs.me/"
-    }
-  ],
-  "deprecated": false,
-  "description": "HTTP content negotiation",
-  "devDependencies": {
-    "eslint": "5.16.0",
-    "eslint-plugin-markdown": "1.0.0",
-    "mocha": "6.1.4",
-    "nyc": "14.0.0"
-  },
-  "engines": {
-    "node": ">= 0.6"
-  },
-  "files": [
-    "lib/",
-    "HISTORY.md",
-    "LICENSE",
-    "index.js",
-    "README.md"
-  ],
-  "homepage": "https://github.com/jshttp/negotiator#readme",
-  "keywords": [
-    "http",
-    "content negotiation",
-    "accept",
-    "accept-language",
-    "accept-encoding",
-    "accept-charset"
-  ],
-  "license": "MIT",
-  "name": "negotiator",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/jshttp/negotiator.git"
-  },
-  "scripts": {
-    "lint": "eslint --plugin markdown --ext js,md .",
-    "test": "mocha --reporter spec --check-leaks --bail test/",
-    "test-cov": "nyc --reporter=html --reporter=text npm test",
-    "test-travis": "nyc --reporter=text npm test"
-  },
-  "version": "0.6.2"
-}

+ 0 - 22
node_modules.bak/neo-async/LICENSE

@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Suguru Motegi
-Based on Async.js, Copyright Caolan McMahon
-
-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 - 273
node_modules.bak/neo-async/README.md

@@ -1,273 +0,0 @@
-<h1 align="center">Neo-Async</h1>
-
-<p align="center">
-  <img src="https://raw.githubusercontent.com/wiki/suguru03/neo-async/images/neo_async_v2.png" width="250px" />
-</p>
-
-<p align="center">
-  <a href="https://www.npmjs.com/package/neo-async"><img alt="npm" src="https://img.shields.io/npm/v/neo-async.svg"></a>
-  <a href="https://travis-ci.org/suguru03/neo-async"><img alt="Travis Status" src="https://img.shields.io/travis/suguru03/neo-async.svg"></a>
-  <a href="https://codecov.io/gh/suguru03/neo-async"><img alt="Coverage Status" src="https://img.shields.io/codecov/c/github/suguru03/neo-async/master.svg"></a>
-  <a href="https://www.npmjs.com/package/neo-async"><img alt="download" src="https://img.shields.io/npm/dm/neo-async.svg"></a>
-  <a href="https://lgtm.com/projects/g/suguru03/neo-async/context:javascript"><img src="https://img.shields.io/lgtm/grade/javascript/g/suguru03/neo-async.svg?logo=lgtm&logoWidth=18" alt="Code Quality: Javascript" height="18"></a>
-  <a href="https://lgtm.com/projects/g/suguru03/neo-async/alerts"><img src="https://img.shields.io/lgtm/alerts/g/suguru03/neo-async.svg?logo=lgtm&logoWidth=18" alt="Total Alerts" height="18"></a>
-  <a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fsuguru03%2Fneo-async?ref=badge_shield"><img src="https://app.fossa.io/api/projects/git%2Bgithub.com%2Fsuguru03%2Fneo-async.svg?type=shield" alt="FOSSA" height="18"></a>
-</p>
-
-Neo-Async is thought to be used as a drop-in replacement for [Async](https://github.com/caolan/async), it almost fully covers its functionality and runs [faster](#benchmark).
-
-Benchmark is [here](#benchmark)!
-
-Bluebird's benchmark is [here](https://github.com/suguru03/bluebird/tree/aigle/benchmark)!
-
-## Code Coverage
-![coverage](https://raw.githubusercontent.com/wiki/suguru03/neo-async/images/coverage.png)
-
-## Installation
-
-### In a browser
-```html
-<script src="async.min.js"></script>
-```
-
-### In an AMD loader
-```js
-require(['async'], function(async) {});
-```
-
-### Promise and async/await
-
-I recommend to use [`Aigle`](https://github.com/suguru03/aigle).
-
-It is optimized for Promise handling and has almost the same functionality as `neo-async`.
-
-### Node.js
-
-#### standard
-
-```bash
-$ npm install neo-async
-```
-```js
-var async = require('neo-async');
-```
-
-#### replacement
-```bash
-$ npm install neo-async
-$ ln -s ./node_modules/neo-async ./node_modules/async
-```
-```js
-var async = require('async');
-```
-
-### Bower
-
-```bash
-bower install neo-async
-```
-
-## Feature
-
-[JSDoc](http://suguru03.github.io/neo-async/doc/async.html)
-
-\* not in Async
-
-### Collections
-
-- [`each`](http://suguru03.github.io/neo-async/doc/async.each.html)
-- [`eachSeries`](http://suguru03.github.io/neo-async/doc/async.eachSeries.html)
-- [`eachLimit`](http://suguru03.github.io/neo-async/doc/async.eachLimit.html)
-- [`forEach`](http://suguru03.github.io/neo-async/doc/async.each.html) -> [`each`](http://suguru03.github.io/neo-async/doc/async.each.html)
-- [`forEachSeries`](http://suguru03.github.io/neo-async/doc/async.eachSeries.html) -> [`eachSeries`](http://suguru03.github.io/neo-async/doc/async.eachSeries.html)
-- [`forEachLimit`](http://suguru03.github.io/neo-async/doc/async.eachLimit.html) -> [`eachLimit`](http://suguru03.github.io/neo-async/doc/async.eachLimit.html)
-- [`eachOf`](http://suguru03.github.io/neo-async/doc/async.each.html) -> [`each`](http://suguru03.github.io/neo-async/doc/async.each.html)
-- [`eachOfSeries`](http://suguru03.github.io/neo-async/doc/async.eachSeries.html) -> [`eachSeries`](http://suguru03.github.io/neo-async/doc/async.eachSeries.html)
-- [`eachOfLimit`](http://suguru03.github.io/neo-async/doc/async.eachLimit.html) -> [`eachLimit`](http://suguru03.github.io/neo-async/doc/async.eachLimit.html)
-- [`forEachOf`](http://suguru03.github.io/neo-async/doc/async.each.html) -> [`each`](http://suguru03.github.io/neo-async/doc/async.each.html)
-- [`forEachOfSeries`](http://suguru03.github.io/neo-async/doc/async.eachSeries.html) -> [`eachSeries`](http://suguru03.github.io/neo-async/doc/async.eachSeries.html)
-- [`eachOfLimit`](http://suguru03.github.io/neo-async/doc/async.eachLimit.html) -> [`forEachLimit`](http://suguru03.github.io/neo-async/doc/async.eachLimit.html)
-- [`map`](http://suguru03.github.io/neo-async/doc/async.map.html)
-- [`mapSeries`](http://suguru03.github.io/neo-async/doc/async.mapSeries.html)
-- [`mapLimit`](http://suguru03.github.io/neo-async/doc/async.mapLimit.html)
-- [`mapValues`](http://suguru03.github.io/neo-async/doc/async.mapValues.html)
-- [`mapValuesSeries`](http://suguru03.github.io/neo-async/doc/async.mapValuesSeries.html)
-- [`mapValuesLimit`](http://suguru03.github.io/neo-async/doc/async.mapValuesLimit.html)
-- [`filter`](http://suguru03.github.io/neo-async/doc/async.filter.html)
-- [`filterSeries`](http://suguru03.github.io/neo-async/doc/async.filterSeries.html)
-- [`filterLimit`](http://suguru03.github.io/neo-async/doc/async.filterLimit.html)
-- [`select`](http://suguru03.github.io/neo-async/doc/async.filter.html) -> [`filter`](http://suguru03.github.io/neo-async/doc/async.filter.html)
-- [`selectSeries`](http://suguru03.github.io/neo-async/doc/async.filterSeries.html) -> [`filterSeries`](http://suguru03.github.io/neo-async/doc/async.filterSeries.html)
-- [`selectLimit`](http://suguru03.github.io/neo-async/doc/async.filterLimit.html) -> [`filterLimit`](http://suguru03.github.io/neo-async/doc/async.filterLimit.html)
-- [`reject`](http://suguru03.github.io/neo-async/doc/async.reject.html)
-- [`rejectSeries`](http://suguru03.github.io/neo-async/doc/async.rejectSeries.html)
-- [`rejectLimit`](http://suguru03.github.io/neo-async/doc/async.rejectLimit.html)
-- [`detect`](http://suguru03.github.io/neo-async/doc/async.detect.html)
-- [`detectSeries`](http://suguru03.github.io/neo-async/doc/async.detectSeries.html)
-- [`detectLimit`](http://suguru03.github.io/neo-async/doc/async.detectLimit.html)
-- [`find`](http://suguru03.github.io/neo-async/doc/async.detect.html) -> [`detect`](http://suguru03.github.io/neo-async/doc/async.detect.html)
-- [`findSeries`](http://suguru03.github.io/neo-async/doc/async.detectSeries.html) -> [`detectSeries`](http://suguru03.github.io/neo-async/doc/async.detectSeries.html)
-- [`findLimit`](http://suguru03.github.io/neo-async/doc/async.detectLimit.html) -> [`detectLimit`](http://suguru03.github.io/neo-async/doc/async.detectLimit.html)
-- [`pick`](http://suguru03.github.io/neo-async/doc/async.pick.html) *
-- [`pickSeries`](http://suguru03.github.io/neo-async/doc/async.pickSeries.html) *
-- [`pickLimit`](http://suguru03.github.io/neo-async/doc/async.pickLimit.html) *
-- [`omit`](http://suguru03.github.io/neo-async/doc/async.omit.html) *
-- [`omitSeries`](http://suguru03.github.io/neo-async/doc/async.omitSeries.html) *
-- [`omitLimit`](http://suguru03.github.io/neo-async/doc/async.omitLimit.html) *
-- [`reduce`](http://suguru03.github.io/neo-async/doc/async.reduce.html)
-- [`inject`](http://suguru03.github.io/neo-async/doc/async.reduce.html) -> [`reduce`](http://suguru03.github.io/neo-async/doc/async.reduce.html)
-- [`foldl`](http://suguru03.github.io/neo-async/doc/async.reduce.html) -> [`reduce`](http://suguru03.github.io/neo-async/doc/async.reduce.html)
-- [`reduceRight`](http://suguru03.github.io/neo-async/doc/async.reduceRight.html)
-- [`foldr`](http://suguru03.github.io/neo-async/doc/async.reduceRight.html) -> [`reduceRight`](http://suguru03.github.io/neo-async/doc/async.reduceRight.html)
-- [`transform`](http://suguru03.github.io/neo-async/doc/async.transform.html)
-- [`transformSeries`](http://suguru03.github.io/neo-async/doc/async.transformSeries.html) *
-- [`transformLimit`](http://suguru03.github.io/neo-async/doc/async.transformLimit.html) *
-- [`sortBy`](http://suguru03.github.io/neo-async/doc/async.sortBy.html)
-- [`sortBySeries`](http://suguru03.github.io/neo-async/doc/async.sortBySeries.html) *
-- [`sortByLimit`](http://suguru03.github.io/neo-async/doc/async.sortByLimit.html) *
-- [`some`](http://suguru03.github.io/neo-async/doc/async.some.html)
-- [`someSeries`](http://suguru03.github.io/neo-async/doc/async.someSeries.html)
-- [`someLimit`](http://suguru03.github.io/neo-async/doc/async.someLimit.html)
-- [`any`](http://suguru03.github.io/neo-async/doc/async.some.html) -> [`some`](http://suguru03.github.io/neo-async/doc/async.some.html)
-- [`anySeries`](http://suguru03.github.io/neo-async/doc/async.someSeries.html) -> [`someSeries`](http://suguru03.github.io/neo-async/doc/async.someSeries.html)
-- [`anyLimit`](http://suguru03.github.io/neo-async/doc/async.someLimit.html) -> [`someLimit`](http://suguru03.github.io/neo-async/doc/async.someLimit.html)
-- [`every`](http://suguru03.github.io/neo-async/doc/async.every.html)
-- [`everySeries`](http://suguru03.github.io/neo-async/doc/async.everySeries.html)
-- [`everyLimit`](http://suguru03.github.io/neo-async/doc/async.everyLimit.html)
-- [`all`](http://suguru03.github.io/neo-async/doc/async.every.html) -> [`every`](http://suguru03.github.io/neo-async/doc/async.every.html)
-- [`allSeries`](http://suguru03.github.io/neo-async/doc/async.everySeries.html) -> [`every`](http://suguru03.github.io/neo-async/doc/async.everySeries.html)
-- [`allLimit`](http://suguru03.github.io/neo-async/doc/async.everyLimit.html) -> [`every`](http://suguru03.github.io/neo-async/doc/async.everyLimit.html)
-- [`concat`](http://suguru03.github.io/neo-async/doc/async.concat.html)
-- [`concatSeries`](http://suguru03.github.io/neo-async/doc/async.concatSeries.html)
-- [`concatLimit`](http://suguru03.github.io/neo-async/doc/async.concatLimit.html) *
-
-### Control Flow
-
-- [`parallel`](http://suguru03.github.io/neo-async/doc/async.parallel.html)
-- [`series`](http://suguru03.github.io/neo-async/doc/async.series.html)
-- [`parallelLimit`](http://suguru03.github.io/neo-async/doc/async.series.html)
-- [`tryEach`](http://suguru03.github.io/neo-async/doc/async.tryEach.html)
-- [`waterfall`](http://suguru03.github.io/neo-async/doc/async.waterfall.html)
-- [`angelFall`](http://suguru03.github.io/neo-async/doc/async.angelFall.html) *
-- [`angelfall`](http://suguru03.github.io/neo-async/doc/async.angelFall.html) -> [`angelFall`](http://suguru03.github.io/neo-async/doc/async.angelFall.html) *
-- [`whilst`](#whilst)
-- [`doWhilst`](#doWhilst)
-- [`until`](#until)
-- [`doUntil`](#doUntil)
-- [`during`](#during)
-- [`doDuring`](#doDuring)
-- [`forever`](#forever)
-- [`compose`](#compose)
-- [`seq`](#seq)
-- [`applyEach`](#applyEach)
-- [`applyEachSeries`](#applyEachSeries)
-- [`queue`](#queue)
-- [`priorityQueue`](#priorityQueue)
-- [`cargo`](#cargo)
-- [`auto`](#auto)
-- [`autoInject`](#autoInject)
-- [`retry`](#retry)
-- [`retryable`](#retryable)
-- [`iterator`](#iterator)
-- [`times`](http://suguru03.github.io/neo-async/doc/async.times.html)
-- [`timesSeries`](http://suguru03.github.io/neo-async/doc/async.timesSeries.html)
-- [`timesLimit`](http://suguru03.github.io/neo-async/doc/async.timesLimit.html)
-- [`race`](#race)
-
-### Utils
-- [`apply`](#apply)
-- [`setImmediate`](#setImmediate)
-- [`nextTick`](#nextTick)
-- [`memoize`](#memoize)
-- [`unmemoize`](#unmemoize)
-- [`ensureAsync`](#ensureAsync)
-- [`constant`](#constant)
-- [`asyncify`](#asyncify)
-- [`wrapSync`](#asyncify) -> [`asyncify`](#asyncify)
-- [`log`](#log)
-- [`dir`](#dir)
-- [`timeout`](http://suguru03.github.io/neo-async/doc/async.timeout.html)
-- [`reflect`](#reflect)
-- [`reflectAll`](#reflectAll)
-- [`createLogger`](#createLogger)
-
-## Mode
-- [`safe`](#safe) *
-- [`fast`](#fast) *
-
-## Benchmark
-
-[Benchmark: Async vs Neo-Async](http://suguru03.hatenablog.com/entry/2016/06/10/135559)
-
-### How to check
-
-```bash
-$ node perf
-```
-
-### Environment
-
-* Darwin 17.3.0 x64
-* Node.js v8.9.4
-* async v2.6.0
-* neo-async v2.5.0
-* benchmark v2.1.4
-
-### Result
-
-The value is the ratio (Neo-Async/Async) of the average speed.
-
-#### Collections
-|function|benchmark|
-|---|--:|
-|each/forEach|2.43|
-|eachSeries/forEachSeries|1.75|
-|eachLimit/forEachLimit|1.68|
-|eachOf|3.29|
-|eachOfSeries|1.50|
-|eachOfLimit|1.59|
-|map|3.95|
-|mapSeries|1.81|
-|mapLimit|1.27|
-|mapValues|2.73|
-|mapValuesSeries|1.59|
-|mapValuesLimit|1.23|
-|filter|3.00|
-|filterSeries|1.74|
-|filterLimit|1.17|
-|reject|4.59|
-|rejectSeries|2.31|
-|rejectLimit|1.58|
-|detect|4.30|
-|detectSeries|1.86|
-|detectLimit|1.32|
-|reduce|1.82|
-|transform|2.46|
-|sortBy|4.08|
-|some|2.19|
-|someSeries|1.83|
-|someLimit|1.32|
-|every|2.09|
-|everySeries|1.84|
-|everyLimit|1.35|
-|concat|3.79|
-|concatSeries|4.45|
-
-#### Control Flow
-|funciton|benchmark|
-|---|--:|
-|parallel|2.93|
-|series|1.96|
-|waterfall|1.29|
-|whilst|1.00|
-|doWhilst|1.12|
-|until|1.12|
-|doUntil|1.12|
-|during|1.18|
-|doDuring|2.42|
-|times|4.25|
-|auto|1.97|
-
-
-## License
-[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fsuguru03%2Fneo-async.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fsuguru03%2Fneo-async?ref=badge_large)

+ 0 - 3
node_modules.bak/neo-async/all.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').all;

+ 0 - 3
node_modules.bak/neo-async/allLimit.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').allLimit;

+ 0 - 3
node_modules.bak/neo-async/allSeries.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').allSeries;

+ 0 - 3
node_modules.bak/neo-async/angelFall.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').angelfall;

+ 0 - 3
node_modules.bak/neo-async/any.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').any;

+ 0 - 3
node_modules.bak/neo-async/anyLimit.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').anyLimit;

+ 0 - 3
node_modules.bak/neo-async/anySeries.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').anySeries;

+ 0 - 3
node_modules.bak/neo-async/apply.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').apply;

+ 0 - 3
node_modules.bak/neo-async/applyEach.js

@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./async').applyEach;

+ 0 - 0
node_modules.bak/neo-async/applyEachSeries.js


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