aboutsummaryrefslogtreecommitdiff
path: root/node_modules/regenerator-runtime
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
commit0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch)
treef9864d4a4148621378958794cbbfdc2393733283 /node_modules/regenerator-runtime
parent6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff)
downloadwallet-core-0469abd4a9c9270a1fdc962969e36e63699af8b4.tar.xz
upgrade dependencies
Diffstat (limited to 'node_modules/regenerator-runtime')
-rw-r--r--node_modules/regenerator-runtime/.npmignore2
-rw-r--r--node_modules/regenerator-runtime/package.json2
-rw-r--r--node_modules/regenerator-runtime/path.js7
-rw-r--r--node_modules/regenerator-runtime/runtime-module.js12
-rw-r--r--node_modules/regenerator-runtime/runtime.js23
5 files changed, 23 insertions, 23 deletions
diff --git a/node_modules/regenerator-runtime/.npmignore b/node_modules/regenerator-runtime/.npmignore
deleted file mode 100644
index e216ae5e1..000000000
--- a/node_modules/regenerator-runtime/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/node_modules
-/test
diff --git a/node_modules/regenerator-runtime/package.json b/node_modules/regenerator-runtime/package.json
index d73b946d2..db0539875 100644
--- a/node_modules/regenerator-runtime/package.json
+++ b/node_modules/regenerator-runtime/package.json
@@ -2,7 +2,7 @@
"name": "regenerator-runtime",
"author": "Ben Newman <bn@cs.stanford.edu>",
"description": "Runtime for Regenerator-compiled generator and async functions.",
- "version": "0.10.5",
+ "version": "0.11.1",
"main": "runtime-module.js",
"keywords": [
"regenerator",
diff --git a/node_modules/regenerator-runtime/path.js b/node_modules/regenerator-runtime/path.js
index a450a7533..ced878b88 100644
--- a/node_modules/regenerator-runtime/path.js
+++ b/node_modules/regenerator-runtime/path.js
@@ -1,3 +1,10 @@
+/**
+ * Copyright (c) 2014-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
exports.path = require("path").join(
__dirname,
"runtime.js"
diff --git a/node_modules/regenerator-runtime/runtime-module.js b/node_modules/regenerator-runtime/runtime-module.js
index 8e7e2e4c1..ed2843177 100644
--- a/node_modules/regenerator-runtime/runtime-module.js
+++ b/node_modules/regenerator-runtime/runtime-module.js
@@ -1,9 +1,13 @@
+/**
+ * Copyright (c) 2014-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
// This method of obtaining a reference to the global object needs to be
// kept identical to the way it is obtained in runtime.js
-var g =
- typeof global === "object" ? global :
- typeof window === "object" ? window :
- typeof self === "object" ? self : this;
+var g = (function() { return this })() || Function("return this")();
// Use `getOwnPropertyNames` because not all browsers support calling
// `hasOwnProperty` on the global `self` object in a worker. See #183.
diff --git a/node_modules/regenerator-runtime/runtime.js b/node_modules/regenerator-runtime/runtime.js
index 5b08c4d34..22e7b005c 100644
--- a/node_modules/regenerator-runtime/runtime.js
+++ b/node_modules/regenerator-runtime/runtime.js
@@ -1,11 +1,8 @@
/**
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
+ * Copyright (c) 2014-present, Facebook, Inc.
*
- * This source code is licensed under the BSD-style license found in the
- * https://raw.github.com/facebook/regenerator/master/LICENSE file. An
- * additional grant of patent rights can be found in the PATENTS file in
- * the same directory.
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
*/
!(function(global) {
@@ -190,10 +187,6 @@
}
}
- if (typeof global.process === "object" && global.process.domain) {
- invoke = global.process.domain.bind(invoke);
- }
-
var previousPromise;
function enqueue(method, arg) {
@@ -727,10 +720,8 @@
}
};
})(
- // Among the various tricks for obtaining a reference to the global
- // object, this seems to be the most reliable technique that does not
- // use indirect eval (which violates Content Security Policy).
- typeof global === "object" ? global :
- typeof window === "object" ? window :
- typeof self === "object" ? self : this
+ // In sloppy mode, unbound `this` refers to the global object, fallback to
+ // Function constructor if we're in global strict mode. That is sadly a form
+ // of indirect eval which violates Content Security Policy.
+ (function() { return this })() || Function("return this")()
);