[Pkg-javascript-commits] [ltx] 384/469: update dependencies
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit b9018dbb46c38bccb3edab7ed05321d4caa26172
Author: Sonny Piers <sonny at fastmail.net>
Date: Wed Aug 26 16:10:22 2015 +0200
update dependencies
---
ltx-browser.js | 97 +++++++++++++++++++++++++++++++++++++---------------------
package.json | 10 +++---
2 files changed, 67 insertions(+), 40 deletions(-)
diff --git a/ltx-browser.js b/ltx-browser.js
index 693106a..2677c6e 100644
--- a/ltx-browser.js
+++ b/ltx-browser.js
@@ -1,4 +1,4 @@
-(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
+(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';
var util = require('util')
@@ -1196,46 +1196,72 @@ if (typeof Object.create === 'function') {
// shim for using process in browser
var process = module.exports = {};
+var queue = [];
+var draining = false;
+var currentQueue;
+var queueIndex = -1;
+
+function cleanUpNextTick() {
+ draining = false;
+ if (currentQueue.length) {
+ queue = currentQueue.concat(queue);
+ } else {
+ queueIndex = -1;
+ }
+ if (queue.length) {
+ drainQueue();
+ }
+}
-process.nextTick = (function () {
- var canSetImmediate = typeof window !== 'undefined'
- && window.setImmediate;
- var canPost = typeof window !== 'undefined'
- && window.postMessage && window.addEventListener
- ;
-
- if (canSetImmediate) {
- return function (f) { return window.setImmediate(f) };
- }
-
- if (canPost) {
- var queue = [];
- window.addEventListener('message', function (ev) {
- var source = ev.source;
- if ((source === window || source === null) && ev.data === 'process-tick') {
- ev.stopPropagation();
- if (queue.length > 0) {
- var fn = queue.shift();
- fn();
- }
- }
- }, true);
+function drainQueue() {
+ if (draining) {
+ return;
+ }
+ var timeout = setTimeout(cleanUpNextTick);
+ draining = true;
- return function nextTick(fn) {
- queue.push(fn);
- window.postMessage('process-tick', '*');
- };
+ var len = queue.length;
+ while(len) {
+ currentQueue = queue;
+ queue = [];
+ while (++queueIndex < len) {
+ currentQueue[queueIndex].run();
+ }
+ queueIndex = -1;
+ len = queue.length;
}
+ currentQueue = null;
+ draining = false;
+ clearTimeout(timeout);
+}
- return function nextTick(fn) {
- setTimeout(fn, 0);
- };
-})();
+process.nextTick = function (fun) {
+ var args = new Array(arguments.length - 1);
+ if (arguments.length > 1) {
+ for (var i = 1; i < arguments.length; i++) {
+ args[i - 1] = arguments[i];
+ }
+ }
+ queue.push(new Item(fun, args));
+ if (queue.length === 1 && !draining) {
+ setTimeout(drainQueue, 0);
+ }
+};
+// v8 likes predictible objects
+function Item(fun, array) {
+ this.fun = fun;
+ this.array = array;
+}
+Item.prototype.run = function () {
+ this.fun.apply(null, this.array);
+};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
+process.version = ''; // empty string to avoid regexp issues
+process.versions = {};
function noop() {}
@@ -1249,13 +1275,14 @@ process.emit = noop;
process.binding = function (name) {
throw new Error('process.binding is not supported');
-}
+};
// TODO(shtylman)
process.cwd = function () { return '/' };
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
+process.umask = function() { return 0; };
},{}],10:[function(require,module,exports){
module.exports = function isBuffer(arg) {
@@ -1853,5 +1880,5 @@ function hasOwnProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
-}).call(this,require("JkpR2F"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
-},{"./support/isBuffer":10,"JkpR2F":9,"inherits":8}]},{},[3])
\ No newline at end of file
+}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
+},{"./support/isBuffer":10,"_process":9,"inherits":8}]},{},[3]);
diff --git a/package.json b/package.json
index 13fb053..8e206b0 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"description": "<xml for=\"node.js\" browserify=\"too\">",
"author": "Astro",
"dependencies": {
- "sax": "~0.6.0",
+ "sax": "~1.1.1",
"node-expat": "~2.3.0"
},
"repository": {
@@ -40,14 +40,14 @@
"Strophe.js": "https://github.com/metajack/strophejs/tarball/master",
"easysax": ">=0.1.7",
"grunt": "~0.4.2",
- "grunt-browserify": "~1.3.1",
+ "grunt-browserify": "~4.0.0",
"grunt-cli": "~0.1.13",
- "grunt-contrib-clean": "~0.5.0",
- "grunt-contrib-jshint": "~0.8.0",
+ "grunt-contrib-clean": "~0.6.0",
+ "grunt-contrib-jshint": "~0.11.2",
"grunt-vows": "~0.4.0",
"node-xml": ">=1.0.1",
"request-animation-frame": ">=0.1.0",
- "vows": "~0.7.0"
+ "vows": "~0.8.1"
},
"scripts": {
"test": "./node_modules/.bin/grunt test"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list