diff options
author | Rebecca Turner <me@re-becca.org> | 2016-10-07 02:09:49 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2016-10-07 05:34:19 +0300 |
commit | 58b83db327dd87bf7cb5a7d503303537718f2f30 (patch) | |
tree | 887d746a45e26637e626406e4057e5000c305886 /node_modules/asap | |
parent | 4adbbffcf1a894e72447c52b1580829fd2b7626f (diff) |
asap@2.0.5
Fixed MutationObserver in envs w/o a `global` object.
Credit: @visortelle
PR-URL: https://github.com/kriskowal/asap/pull/68
Diffstat (limited to 'node_modules/asap')
-rw-r--r-- | node_modules/asap/CHANGES.md | 1 | ||||
-rw-r--r-- | node_modules/asap/LICENSE.md | 1 | ||||
-rw-r--r-- | node_modules/asap/README.md | 1 | ||||
-rw-r--r-- | node_modules/asap/asap.js | 1 | ||||
-rw-r--r-- | node_modules/asap/browser-raw.js | 7 | ||||
-rw-r--r-- | node_modules/asap/package.json | 63 |
6 files changed, 42 insertions, 32 deletions
diff --git a/node_modules/asap/CHANGES.md b/node_modules/asap/CHANGES.md index 8e6202305..e9ffa4626 100644 --- a/node_modules/asap/CHANGES.md +++ b/node_modules/asap/CHANGES.md @@ -61,3 +61,4 @@ Integration][]. ![Compatibility in Web Workers](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-worker-results-matrix.svg) [Continuous Integration]: https://github.com/kriskowal/asap/blob/master/CONTRIBUTING.md + diff --git a/node_modules/asap/LICENSE.md b/node_modules/asap/LICENSE.md index 0d82d695f..ba18c6139 100644 --- a/node_modules/asap/LICENSE.md +++ b/node_modules/asap/LICENSE.md @@ -18,3 +18,4 @@ 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. + diff --git a/node_modules/asap/README.md b/node_modules/asap/README.md index d60a08a04..452fd8c20 100644 --- a/node_modules/asap/README.md +++ b/node_modules/asap/README.md @@ -234,3 +234,4 @@ browser-only implementation. Copyright 2009-2014 by Contributors MIT License (enclosed) + diff --git a/node_modules/asap/asap.js b/node_modules/asap/asap.js index 3a27c8cee..f04fcd58f 100644 --- a/node_modules/asap/asap.js +++ b/node_modules/asap/asap.js @@ -62,3 +62,4 @@ RawTask.prototype.call = function () { freeTasks.push(this); } }; + diff --git a/node_modules/asap/browser-raw.js b/node_modules/asap/browser-raw.js index 1cfd77293..9cee7e32e 100644 --- a/node_modules/asap/browser-raw.js +++ b/node_modules/asap/browser-raw.js @@ -76,9 +76,12 @@ function flush() { // Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that // have WebKitMutationObserver but not un-prefixed MutationObserver. -// Must use `global` instead of `window` to work in both frames and web +// Must use `global` or `self` instead of `window` to work in both frames and web // workers. `global` is a provision of Browserify, Mr, Mrs, or Mop. -var BrowserMutationObserver = global.MutationObserver || global.WebKitMutationObserver; + +/* globals self */ +var scope = typeof global !== "undefined" ? global : self; +var BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver; // MutationObservers are desirable because they have high priority and work // reliably everywhere they are implemented. diff --git a/node_modules/asap/package.json b/node_modules/asap/package.json index 9e796295d..0788655ec 100644 --- a/node_modules/asap/package.json +++ b/node_modules/asap/package.json @@ -2,48 +2,51 @@ "_args": [ [ { - "name": "asap", - "raw": "asap", - "rawSpec": "", + "raw": "asap@2.0.5", "scope": null, - "spec": "latest", - "type": "tag" + "escapedName": "asap", + "name": "asap", + "rawSpec": "2.0.5", + "spec": "2.0.5", + "type": "version" }, - "/Users/aleksey/npm" + "/Users/rebecca/code/npm" ] ], - "_from": "asap@latest", - "_id": "asap@2.0.4", + "_from": "asap@2.0.5", + "_id": "asap@2.0.5", "_inCache": true, - "_installable": true, "_location": "/asap", "_nodeVersion": "0.10.32", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/asap-2.0.4.tgz_1463764720924_0.3805790115147829" + "tmp": "tmp/asap-2.0.5.tgz_1474846549990_0.794441896257922" }, "_npmUser": { - "email": "kris.kowal@cixar.com", - "name": "kriskowal" + "name": "kriskowal", + "email": "kris.kowal@cixar.com" }, "_npmVersion": "2.14.7", "_phantomChildren": {}, "_requested": { - "name": "asap", - "raw": "asap", - "rawSpec": "", + "raw": "asap@2.0.5", "scope": null, - "spec": "latest", - "type": "tag" + "escapedName": "asap", + "name": "asap", + "rawSpec": "2.0.5", + "spec": "2.0.5", + "type": "version" }, "_requiredBy": [ - "/" + "#USER", + "/", + "/dezalgo" ], - "_resolved": "https://unpm.uberinternal.com/asap/-/asap-2.0.4.tgz", - "_shasum": "b391bf7f6bfbc65706022fec8f49c4b07fecf589", + "_resolved": "https://registry.npmjs.org/asap/-/asap-2.0.5.tgz", + "_shasum": "522765b50c3510490e52d7dcfe085ef9ba96958f", "_shrinkwrap": null, - "_spec": "asap", - "_where": "/Users/aleksey/npm", + "_spec": "asap@2.0.5", + "_where": "/Users/rebecca/code/npm", "browser": { "./asap": "./browser-asap.js", "./asap.js": "./browser-asap.js", @@ -71,8 +74,8 @@ }, "directories": {}, "dist": { - "shasum": "b391bf7f6bfbc65706022fec8f49c4b07fecf589", - "tarball": "https://unpm.uberinternal.com/asap/-/asap-2.0.4.tgz" + "shasum": "522765b50c3510490e52d7dcfe085ef9ba96958f", + "tarball": "https://registry.npmjs.org/asap/-/asap-2.0.5.tgz" }, "files": [ "raw.js", @@ -80,7 +83,7 @@ "browser-raw.js", "browser-asap.js" ], - "gitHead": "26e815dafed7bc112924bf7a6be0d997abf1b407", + "gitHead": "e7f3d29eed4967ecfcaddbfc9542e2ee12b76227", "homepage": "https://github.com/kriskowal/asap#readme", "keywords": [ "event", @@ -91,12 +94,12 @@ "main": "./asap.js", "maintainers": [ { - "email": "kris.kowal@cixar.com", - "name": "kriskowal" + "name": "kriskowal", + "email": "kris.kowal@cixar.com" }, { - "email": "forbes@lindesay.co.uk", - "name": "forbeslindesay" + "name": "forbeslindesay", + "email": "forbes@lindesay.co.uk" } ], "name": "asap", @@ -119,5 +122,5 @@ "test-saucelabs-worker-all": "node scripts/saucelabs-worker-test.js scripts/saucelabs-all-configurations.json", "test-travis": "npm run lint && npm run test-node && npm run test-saucelabs && npm run test-saucelabs-worker" }, - "version": "2.0.4" + "version": "2.0.5" } |