[Pkg-javascript-commits] [sockjs-client] 273/350: [dist] 1.0.0-beta.7

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit d5db71471865f686aa5238298a9206749efa8a00
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Mon Dec 8 12:47:24 2014 -0500

    [dist] 1.0.0-beta.7
---
 Changelog.md                                       |  6 ++++
 ...ckjs-1.0.0-beta.6.js => sockjs-1.0.0-beta.7.js} | 34 ++++++++++++++++------
 ....0-beta.6.min.js => sockjs-1.0.0-beta.7.min.js} |  6 ++--
 lib/version.js                                     |  2 +-
 4 files changed, 35 insertions(+), 13 deletions(-)

diff --git a/Changelog.md b/Changelog.md
index fedbdf9..85973bb 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,3 +1,9 @@
+1.0.0-beta.7
+====
+
+ * Upgrade `url-parse` to 0.1.5 to fix #218
+ * Don't strip basic auth from url - #219
+
 1.0.0-beta.6
 ====
 
diff --git a/dist/sockjs-1.0.0-beta.6.js b/dist/sockjs-1.0.0-beta.7.js
old mode 100755
new mode 100644
similarity index 99%
rename from dist/sockjs-1.0.0-beta.6.js
rename to dist/sockjs-1.0.0-beta.7.js
index 7fa4016..8ebbfd2
--- a/dist/sockjs-1.0.0-beta.6.js
+++ b/dist/sockjs-1.0.0-beta.7.js
@@ -1,4 +1,4 @@
-/* sockjs-client v1.0.0-beta.6 | http://sockjs.org | MIT license */
+/* sockjs-client v1.0.0-beta.7 | http://sockjs.org | MIT license */
 !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.SockJS=e()}}(function(){var define,module,exports;return (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 fin [...]
 (function (global){
 'use strict';
@@ -685,8 +685,14 @@ function SockJS(url, protocols, options) {
   // remove the trailing slash
   parsedUrl.path = parsedUrl.pathname.replace(/[/]+$/, '') + (parsedUrl.query || '');
 
+  // basic authentication
+  parsedUrl.auth = parsedUrl.username
+    ? parsedUrl.username + ':' + parsedUrl.password + '@'
+    : '';
+
   // store the sanitized url
-  this.url = parsedUrl.protocol + '//' + parsedUrl.hostname + (parsedUrl.port ? (':' + parsedUrl.port) : '') + parsedUrl.path;
+  this.url = parsedUrl.protocol + '//' + parsedUrl.auth + parsedUrl.hostname +
+    (parsedUrl.port ? ':' + parsedUrl.port : '') + parsedUrl.path;
   debug('using url', this.url);
 
   // Step 7 - start connection in background
@@ -3626,7 +3632,7 @@ module.exports = {
 
 }).call(this,{ env: {} })
 },{"debug":53,"url-parse":58}],52:[function(require,module,exports){
-module.exports = '1.0.0-beta.6';
+module.exports = '1.0.0-beta.7';
 },{}],53:[function(require,module,exports){
 
 /**
@@ -5026,11 +5032,7 @@ var required = require('requires-port')
   , lolcation = require('./lolcation')
   , qs = require('querystringify');
 
-//
-// MOARE: Mother Of All Regular Expressions.
-//
-var regexp = /^(?:(?:(([^:\/#\?]+:)?(?:(?:\/\/)(?:(?:(?:([^:@\/#\?]+)(?:\:([^:@\/#\?]*))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/
-  , keys = ',,protocol,username,password,host,hostname,port,pathname,query,hash'.split(',')
+var keys = ',,protocol,username,password,host,hostname,port,pathname,query,hash'.split(',')
   , parts = keys.length;
 
 /**
@@ -5050,6 +5052,18 @@ function URL(address, location, parser) {
   }
 
   //
+  // Inline the massive regular expression because it causes issues in FireFox
+  // because our `exec` usage in this function. Normally there should be no side
+  // affects because we're not doing global matching so the lastIndex of regular
+  // expression should stay the same but it's causing `too much recursion`
+  // errors in FireFox when calling the parse method for a second time. Now,
+  // with great pleasure I introduce to you:
+  //
+  // MOARE: Mother Of All Regular Expressions.
+  //
+  var regexp = /^(?:(?:(([^:\/#\?]+:)?(?:(?:\/\/)(?:(?:(?:([^:@\/#\?]+)(?:\:([^:@\/#\?]*))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;
+
+  //
   // The following if statements allows this module two have compatibility with
   // 2 different API:
   //
@@ -5142,9 +5156,11 @@ URL.prototype.toString = function toString(stringify) {
 };
 
 //
-// Expose the URL parser.
+// Expose the URL parser and some additional properties that might be useful for
+// others.
 //
 URL.qs = qs;
+URL.location = lolcation;
 module.exports = URL;
 
 },{"./lolcation":59,"querystringify":60,"requires-port":61}],59:[function(require,module,exports){
diff --git a/dist/sockjs-1.0.0-beta.6.min.js b/dist/sockjs-1.0.0-beta.7.min.js
old mode 100755
new mode 100644
similarity index 56%
rename from dist/sockjs-1.0.0-beta.6.min.js
rename to dist/sockjs-1.0.0-beta.7.min.js
index db188d8..3ee30d1
--- a/dist/sockjs-1.0.0-beta.6.min.js
+++ b/dist/sockjs-1.0.0-beta.7.min.js
@@ -1,3 +1,3 @@
-/* sockjs-client v1.0.0-beta.6 | http://sockjs.org | MIT license */
-!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.SockJS=t()}}(function(){var t;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");th [...]
-},{"../../utils/browser":44,"../../utils/iframe":47,"../../utils/random":49,"../../utils/url":51,debug:void 0,events:3,inherits:53}],32:[function(t,e){"use strict";function n(t,e){i.call(this);var n=this;this.bufferPosition=0,this.xo=new e("POST",t,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(t,e){n._chunkHandler(t,e),n.xo=null;var r=200===t?"network":"permanent";n.emit("close",null,r),n._cleanup()})}var r=t("inherits"),i=t("events").EventEmitter [...]
\ No newline at end of file
+/* sockjs-client v1.0.0-beta.7 | http://sockjs.org | MIT license */
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.SockJS=t()}}(function(){var t;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");th [...]
+},{"../../utils/browser":44,"../../utils/iframe":47,"../../utils/random":49,"../../utils/url":51,debug:void 0,events:3,inherits:53}],32:[function(t,e){"use strict";function n(t,e){i.call(this);var n=this;this.bufferPosition=0,this.xo=new e("POST",t,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(t,e){n._chunkHandler(t,e),n.xo=null;var r=200===t?"network":"permanent";n.emit("close",null,r),n._cleanup()})}var r=t("inherits"),i=t("events").EventEmitter [...]
\ No newline at end of file
diff --git a/lib/version.js b/lib/version.js
index fc62300..b38e5d9 100644
--- a/lib/version.js
+++ b/lib/version.js
@@ -1 +1 @@
-module.exports = '1.0.0-beta.6';
\ No newline at end of file
+module.exports = '1.0.0-beta.7';
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list