diff options
author | Rebecca Turner <me@re-becca.org> | 2018-04-20 18:26:37 -0700 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2018-05-24 23:24:45 -0700 |
commit | 468ab4519e1b92473acefb22801497a1af6aebae (patch) | |
tree | bdac1d062cd4b094bde3a21147bab5d82c792ece /deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/node_modules/https-proxy-agent/node_modules/agent-base/node_modules/es6-promisify/dist/promise.js | |
parent | ac8226115e2192a7a46ba07789fa5136f74223e1 (diff) | |
download | android-node-v8-468ab4519e1b92473acefb22801497a1af6aebae.tar.gz android-node-v8-468ab4519e1b92473acefb22801497a1af6aebae.tar.bz2 android-node-v8-468ab4519e1b92473acefb22801497a1af6aebae.zip |
deps: upgrade npm to 6.1.0
PR-URL: https://github.com/nodejs/node/pull/20190
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/node_modules/https-proxy-agent/node_modules/agent-base/node_modules/es6-promisify/dist/promise.js')
-rw-r--r-- | deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/node_modules/https-proxy-agent/node_modules/agent-base/node_modules/es6-promisify/dist/promise.js | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/node_modules/https-proxy-agent/node_modules/agent-base/node_modules/es6-promisify/dist/promise.js b/deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/node_modules/https-proxy-agent/node_modules/agent-base/node_modules/es6-promisify/dist/promise.js deleted file mode 100644 index 2fe5c6103b..0000000000 --- a/deps/npm/node_modules/npm-profile/node_modules/make-fetch-happen/node_modules/https-proxy-agent/node_modules/agent-base/node_modules/es6-promisify/dist/promise.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; - -/* global self, window, module, global, require */ -module.exports = function () { - - "use strict"; - - var globalObject = void 0; - - function isFunction(x) { - return typeof x === "function"; - } - - // Seek the global object - if (global !== undefined) { - globalObject = global; - } else if (window !== undefined && window.document) { - globalObject = window; - } else { - globalObject = self; - } - - // Test for any native promise implementation, and if that - // implementation appears to conform to the specificaton. - // This code mostly nicked from the es6-promise module polyfill - // and then fooled with. - var hasPromiseSupport = function () { - - // No promise object at all, and it's a non-starter - if (!globalObject.hasOwnProperty("Promise")) { - return false; - } - - // There is a Promise object. Does it conform to the spec? - var P = globalObject.Promise; - - // Some of these methods are missing from - // Firefox/Chrome experimental implementations - if (!P.hasOwnProperty("resolve") || !P.hasOwnProperty("reject")) { - return false; - } - - if (!P.hasOwnProperty("all") || !P.hasOwnProperty("race")) { - return false; - } - - // Older version of the spec had a resolver object - // as the arg rather than a function - return function () { - - var resolve = void 0; - - var p = new globalObject.Promise(function (r) { - resolve = r; - }); - - if (p) { - return isFunction(resolve); - } - - return false; - }(); - }(); - - // Export the native Promise implementation if it - // looks like it matches the spec - if (hasPromiseSupport) { - return globalObject.Promise; - } - - // Otherwise, return the es6-promise polyfill by @jaffathecake. - return require("es6-promise").Promise; -}();
\ No newline at end of file |