socket.io-rails 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e39a5013196612b4a3c3c2be545e8b48bf6bf360
4
- data.tar.gz: e050626e88d5585dd97df357aad1927ceb20ac26
3
+ metadata.gz: 5a4067582296ae2d751c00dba35fe657c726be47
4
+ data.tar.gz: 3935ebbfaba6d4a17053cee54d85e805a2b8a50e
5
5
  SHA512:
6
- metadata.gz: cc0c22a11587f0079347178ba69fff514758f0f959ead124642bccda663225285b46f2db1a37092cbbc915bf0dcc17a59e50d72e8844067edaa39826ede95b56
7
- data.tar.gz: c7b0f9f4b2127d00dd09745fd1800bb52cd0b5103507a59d32d338bcbbe3ab30ada8cc71ace6cebe0b9f98b5ace284117ab983d632376e586360f93921cd9208
6
+ metadata.gz: b3d3fd0b965894a925198cbeeff72d96e1f10837fcf43d1c5cb94df32938db248c350784bbf684e6ffcbe55d584ac3c01135b6afab35bef8a09881fb91c4c666
7
+ data.tar.gz: 71bd9dff6dd8aa8a239523eb327d8218dd277c64f201aa4cb5bf518a1df46f56898d252dd9de3637bfa404dca9eef41ff74885d1f2854c6b018785fdfcc17ac6
@@ -1,5 +1,5 @@
1
1
  module Socketio
2
2
  module Rails
3
- VERSION = "1.7.2"
3
+ VERSION = "1.7.3"
4
4
  end
5
5
  end
@@ -252,45 +252,45 @@ return /******/ (function(modules) { // webpackBootstrap
252
252
  /* 2 */
253
253
  /***/ function(module, exports) {
254
254
 
255
- /**
256
- * Parses an URI
257
- *
258
- * @author Steven Levithan <stevenlevithan.com> (MIT license)
259
- * @api private
260
- */
261
-
262
- var re = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;
263
-
264
- var parts = [
265
- 'source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor'
266
- ];
267
-
268
- module.exports = function parseuri(str) {
269
- var src = str,
270
- b = str.indexOf('['),
271
- e = str.indexOf(']');
272
-
273
- if (b != -1 && e != -1) {
274
- str = str.substring(0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length);
275
- }
276
-
277
- var m = re.exec(str || ''),
278
- uri = {},
279
- i = 14;
280
-
281
- while (i--) {
282
- uri[parts[i]] = m[i] || '';
283
- }
284
-
285
- if (b != -1 && e != -1) {
286
- uri.source = src;
287
- uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':');
288
- uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/;/g, ':');
289
- uri.ipv6uri = true;
290
- }
291
-
292
- return uri;
293
- };
255
+ /**
256
+ * Parses an URI
257
+ *
258
+ * @author Steven Levithan <stevenlevithan.com> (MIT license)
259
+ * @api private
260
+ */
261
+
262
+ var re = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;
263
+
264
+ var parts = [
265
+ 'source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor'
266
+ ];
267
+
268
+ module.exports = function parseuri(str) {
269
+ var src = str,
270
+ b = str.indexOf('['),
271
+ e = str.indexOf(']');
272
+
273
+ if (b != -1 && e != -1) {
274
+ str = str.substring(0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length);
275
+ }
276
+
277
+ var m = re.exec(str || ''),
278
+ uri = {},
279
+ i = 14;
280
+
281
+ while (i--) {
282
+ uri[parts[i]] = m[i] || '';
283
+ }
284
+
285
+ if (b != -1 && e != -1) {
286
+ uri.source = src;
287
+ uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':');
288
+ uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/;/g, ':');
289
+ uri.ipv6uri = true;
290
+ }
291
+
292
+ return uri;
293
+ };
294
294
 
295
295
 
296
296
  /***/ },
@@ -667,7 +667,7 @@ return /******/ (function(modules) { // webpackBootstrap
667
667
  /* 5 */
668
668
  /***/ function(module, exports, __webpack_require__) {
669
669
 
670
-
670
+
671
671
  /**
672
672
  * This is the common logic for both the Node.js and web browser
673
673
  * implementations of `debug()`.
@@ -1028,7 +1028,7 @@ return /******/ (function(modules) { // webpackBootstrap
1028
1028
  /* 7 */
1029
1029
  /***/ function(module, exports, __webpack_require__) {
1030
1030
 
1031
-
1031
+
1032
1032
  /**
1033
1033
  * Module dependencies.
1034
1034
  */
@@ -1365,7 +1365,7 @@ return /******/ (function(modules) { // webpackBootstrap
1365
1365
  } catch(e){
1366
1366
  return error();
1367
1367
  }
1368
- return p;
1368
+ return p;
1369
1369
  };
1370
1370
 
1371
1371
  /**
@@ -1438,7 +1438,7 @@ return /******/ (function(modules) { // webpackBootstrap
1438
1438
  /* 8 */
1439
1439
  /***/ function(module, exports, __webpack_require__) {
1440
1440
 
1441
-
1441
+
1442
1442
  /**
1443
1443
  * This is the web browser implementation of `debug()`.
1444
1444
  *
@@ -1612,7 +1612,7 @@ return /******/ (function(modules) { // webpackBootstrap
1612
1612
  /* 9 */
1613
1613
  /***/ function(module, exports, __webpack_require__) {
1614
1614
 
1615
-
1615
+
1616
1616
  /**
1617
1617
  * This is the common logic for both the Node.js and web browser
1618
1618
  * implementations of `debug()`.
@@ -2859,23 +2859,23 @@ return /******/ (function(modules) { // webpackBootstrap
2859
2859
  /* 12 */
2860
2860
  /***/ function(module, exports) {
2861
2861
 
2862
- module.exports = function(module) {
2863
- if(!module.webpackPolyfill) {
2864
- module.deprecate = function() {};
2865
- module.paths = [];
2866
- // module.parent = undefined by default
2867
- module.children = [];
2868
- module.webpackPolyfill = 1;
2869
- }
2870
- return module;
2871
- }
2862
+ module.exports = function(module) {
2863
+ if(!module.webpackPolyfill) {
2864
+ module.deprecate = function() {};
2865
+ module.paths = [];
2866
+ // module.parent = undefined by default
2867
+ module.children = [];
2868
+ module.webpackPolyfill = 1;
2869
+ }
2870
+ return module;
2871
+ }
2872
2872
 
2873
2873
 
2874
2874
  /***/ },
2875
2875
  /* 13 */
2876
2876
  /***/ function(module, exports) {
2877
2877
 
2878
-
2878
+
2879
2879
  /**
2880
2880
  * Expose `Emitter`.
2881
2881
  */
@@ -3789,7 +3789,7 @@ return /******/ (function(modules) { // webpackBootstrap
3789
3789
  /* 18 */
3790
3790
  /***/ function(module, exports, __webpack_require__) {
3791
3791
 
3792
-
3792
+
3793
3793
  module.exports = __webpack_require__(19);
3794
3794
 
3795
3795
 
@@ -3797,7 +3797,7 @@ return /******/ (function(modules) { // webpackBootstrap
3797
3797
  /* 19 */
3798
3798
  /***/ function(module, exports, __webpack_require__) {
3799
3799
 
3800
-
3800
+
3801
3801
  module.exports = __webpack_require__(20);
3802
3802
 
3803
3803
  /**
@@ -4662,7 +4662,7 @@ return /******/ (function(modules) { // webpackBootstrap
4662
4662
  /* 23 */
4663
4663
  /***/ function(module, exports) {
4664
4664
 
4665
-
4665
+
4666
4666
  /**
4667
4667
  * Module exports.
4668
4668
  *
@@ -6146,7 +6146,7 @@ return /******/ (function(modules) { // webpackBootstrap
6146
6146
  /* 28 */
6147
6147
  /***/ function(module, exports) {
6148
6148
 
6149
-
6149
+
6150
6150
  /**
6151
6151
  * Gets the keys for an object.
6152
6152
  *
@@ -6721,219 +6721,219 @@ return /******/ (function(modules) { // webpackBootstrap
6721
6721
  /* 35 */
6722
6722
  /***/ function(module, exports, __webpack_require__) {
6723
6723
 
6724
-
6725
- /**
6726
- * Expose `Emitter`.
6727
- */
6728
-
6729
- if (true) {
6730
- module.exports = Emitter;
6731
- }
6732
-
6733
- /**
6734
- * Initialize a new `Emitter`.
6735
- *
6736
- * @api public
6737
- */
6738
-
6739
- function Emitter(obj) {
6740
- if (obj) return mixin(obj);
6741
- };
6742
-
6743
- /**
6744
- * Mixin the emitter properties.
6745
- *
6746
- * @param {Object} obj
6747
- * @return {Object}
6748
- * @api private
6749
- */
6750
-
6751
- function mixin(obj) {
6752
- for (var key in Emitter.prototype) {
6753
- obj[key] = Emitter.prototype[key];
6754
- }
6755
- return obj;
6756
- }
6757
-
6758
- /**
6759
- * Listen on the given `event` with `fn`.
6760
- *
6761
- * @param {String} event
6762
- * @param {Function} fn
6763
- * @return {Emitter}
6764
- * @api public
6765
- */
6766
-
6767
- Emitter.prototype.on =
6768
- Emitter.prototype.addEventListener = function(event, fn){
6769
- this._callbacks = this._callbacks || {};
6770
- (this._callbacks['$' + event] = this._callbacks['$' + event] || [])
6771
- .push(fn);
6772
- return this;
6773
- };
6774
-
6775
- /**
6776
- * Adds an `event` listener that will be invoked a single
6777
- * time then automatically removed.
6778
- *
6779
- * @param {String} event
6780
- * @param {Function} fn
6781
- * @return {Emitter}
6782
- * @api public
6783
- */
6784
-
6785
- Emitter.prototype.once = function(event, fn){
6786
- function on() {
6787
- this.off(event, on);
6788
- fn.apply(this, arguments);
6789
- }
6790
-
6791
- on.fn = fn;
6792
- this.on(event, on);
6793
- return this;
6794
- };
6795
-
6796
- /**
6797
- * Remove the given callback for `event` or all
6798
- * registered callbacks.
6799
- *
6800
- * @param {String} event
6801
- * @param {Function} fn
6802
- * @return {Emitter}
6803
- * @api public
6804
- */
6805
-
6806
- Emitter.prototype.off =
6807
- Emitter.prototype.removeListener =
6808
- Emitter.prototype.removeAllListeners =
6809
- Emitter.prototype.removeEventListener = function(event, fn){
6810
- this._callbacks = this._callbacks || {};
6811
-
6812
- // all
6813
- if (0 == arguments.length) {
6814
- this._callbacks = {};
6815
- return this;
6816
- }
6817
-
6818
- // specific event
6819
- var callbacks = this._callbacks['$' + event];
6820
- if (!callbacks) return this;
6821
-
6822
- // remove all handlers
6823
- if (1 == arguments.length) {
6824
- delete this._callbacks['$' + event];
6825
- return this;
6826
- }
6827
-
6828
- // remove specific handler
6829
- var cb;
6830
- for (var i = 0; i < callbacks.length; i++) {
6831
- cb = callbacks[i];
6832
- if (cb === fn || cb.fn === fn) {
6833
- callbacks.splice(i, 1);
6834
- break;
6835
- }
6836
- }
6837
- return this;
6838
- };
6839
-
6840
- /**
6841
- * Emit `event` with the given args.
6842
- *
6843
- * @param {String} event
6844
- * @param {Mixed} ...
6845
- * @return {Emitter}
6846
- */
6847
-
6848
- Emitter.prototype.emit = function(event){
6849
- this._callbacks = this._callbacks || {};
6850
- var args = [].slice.call(arguments, 1)
6851
- , callbacks = this._callbacks['$' + event];
6852
-
6853
- if (callbacks) {
6854
- callbacks = callbacks.slice(0);
6855
- for (var i = 0, len = callbacks.length; i < len; ++i) {
6856
- callbacks[i].apply(this, args);
6857
- }
6858
- }
6859
-
6860
- return this;
6861
- };
6862
-
6863
- /**
6864
- * Return array of callbacks for `event`.
6865
- *
6866
- * @param {String} event
6867
- * @return {Array}
6868
- * @api public
6869
- */
6870
-
6871
- Emitter.prototype.listeners = function(event){
6872
- this._callbacks = this._callbacks || {};
6873
- return this._callbacks['$' + event] || [];
6874
- };
6875
-
6876
- /**
6877
- * Check if this emitter has `event` handlers.
6878
- *
6879
- * @param {String} event
6880
- * @return {Boolean}
6881
- * @api public
6882
- */
6883
-
6884
- Emitter.prototype.hasListeners = function(event){
6885
- return !! this.listeners(event).length;
6886
- };
6724
+
6725
+ /**
6726
+ * Expose `Emitter`.
6727
+ */
6728
+
6729
+ if (true) {
6730
+ module.exports = Emitter;
6731
+ }
6732
+
6733
+ /**
6734
+ * Initialize a new `Emitter`.
6735
+ *
6736
+ * @api public
6737
+ */
6738
+
6739
+ function Emitter(obj) {
6740
+ if (obj) return mixin(obj);
6741
+ };
6742
+
6743
+ /**
6744
+ * Mixin the emitter properties.
6745
+ *
6746
+ * @param {Object} obj
6747
+ * @return {Object}
6748
+ * @api private
6749
+ */
6750
+
6751
+ function mixin(obj) {
6752
+ for (var key in Emitter.prototype) {
6753
+ obj[key] = Emitter.prototype[key];
6754
+ }
6755
+ return obj;
6756
+ }
6757
+
6758
+ /**
6759
+ * Listen on the given `event` with `fn`.
6760
+ *
6761
+ * @param {String} event
6762
+ * @param {Function} fn
6763
+ * @return {Emitter}
6764
+ * @api public
6765
+ */
6766
+
6767
+ Emitter.prototype.on =
6768
+ Emitter.prototype.addEventListener = function(event, fn){
6769
+ this._callbacks = this._callbacks || {};
6770
+ (this._callbacks['$' + event] = this._callbacks['$' + event] || [])
6771
+ .push(fn);
6772
+ return this;
6773
+ };
6774
+
6775
+ /**
6776
+ * Adds an `event` listener that will be invoked a single
6777
+ * time then automatically removed.
6778
+ *
6779
+ * @param {String} event
6780
+ * @param {Function} fn
6781
+ * @return {Emitter}
6782
+ * @api public
6783
+ */
6784
+
6785
+ Emitter.prototype.once = function(event, fn){
6786
+ function on() {
6787
+ this.off(event, on);
6788
+ fn.apply(this, arguments);
6789
+ }
6790
+
6791
+ on.fn = fn;
6792
+ this.on(event, on);
6793
+ return this;
6794
+ };
6795
+
6796
+ /**
6797
+ * Remove the given callback for `event` or all
6798
+ * registered callbacks.
6799
+ *
6800
+ * @param {String} event
6801
+ * @param {Function} fn
6802
+ * @return {Emitter}
6803
+ * @api public
6804
+ */
6805
+
6806
+ Emitter.prototype.off =
6807
+ Emitter.prototype.removeListener =
6808
+ Emitter.prototype.removeAllListeners =
6809
+ Emitter.prototype.removeEventListener = function(event, fn){
6810
+ this._callbacks = this._callbacks || {};
6811
+
6812
+ // all
6813
+ if (0 == arguments.length) {
6814
+ this._callbacks = {};
6815
+ return this;
6816
+ }
6817
+
6818
+ // specific event
6819
+ var callbacks = this._callbacks['$' + event];
6820
+ if (!callbacks) return this;
6821
+
6822
+ // remove all handlers
6823
+ if (1 == arguments.length) {
6824
+ delete this._callbacks['$' + event];
6825
+ return this;
6826
+ }
6827
+
6828
+ // remove specific handler
6829
+ var cb;
6830
+ for (var i = 0; i < callbacks.length; i++) {
6831
+ cb = callbacks[i];
6832
+ if (cb === fn || cb.fn === fn) {
6833
+ callbacks.splice(i, 1);
6834
+ break;
6835
+ }
6836
+ }
6837
+ return this;
6838
+ };
6839
+
6840
+ /**
6841
+ * Emit `event` with the given args.
6842
+ *
6843
+ * @param {String} event
6844
+ * @param {Mixed} ...
6845
+ * @return {Emitter}
6846
+ */
6847
+
6848
+ Emitter.prototype.emit = function(event){
6849
+ this._callbacks = this._callbacks || {};
6850
+ var args = [].slice.call(arguments, 1)
6851
+ , callbacks = this._callbacks['$' + event];
6852
+
6853
+ if (callbacks) {
6854
+ callbacks = callbacks.slice(0);
6855
+ for (var i = 0, len = callbacks.length; i < len; ++i) {
6856
+ callbacks[i].apply(this, args);
6857
+ }
6858
+ }
6859
+
6860
+ return this;
6861
+ };
6862
+
6863
+ /**
6864
+ * Return array of callbacks for `event`.
6865
+ *
6866
+ * @param {String} event
6867
+ * @return {Array}
6868
+ * @api public
6869
+ */
6870
+
6871
+ Emitter.prototype.listeners = function(event){
6872
+ this._callbacks = this._callbacks || {};
6873
+ return this._callbacks['$' + event] || [];
6874
+ };
6875
+
6876
+ /**
6877
+ * Check if this emitter has `event` handlers.
6878
+ *
6879
+ * @param {String} event
6880
+ * @return {Boolean}
6881
+ * @api public
6882
+ */
6883
+
6884
+ Emitter.prototype.hasListeners = function(event){
6885
+ return !! this.listeners(event).length;
6886
+ };
6887
6887
 
6888
6888
 
6889
6889
  /***/ },
6890
6890
  /* 36 */
6891
6891
  /***/ function(module, exports) {
6892
6892
 
6893
- /**
6894
- * Compiles a querystring
6895
- * Returns string representation of the object
6896
- *
6897
- * @param {Object}
6898
- * @api private
6899
- */
6900
-
6901
- exports.encode = function (obj) {
6902
- var str = '';
6903
-
6904
- for (var i in obj) {
6905
- if (obj.hasOwnProperty(i)) {
6906
- if (str.length) str += '&';
6907
- str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]);
6908
- }
6909
- }
6910
-
6911
- return str;
6912
- };
6913
-
6914
- /**
6915
- * Parses a simple querystring into an object
6916
- *
6917
- * @param {String} qs
6918
- * @api private
6919
- */
6920
-
6921
- exports.decode = function(qs){
6922
- var qry = {};
6923
- var pairs = qs.split('&');
6924
- for (var i = 0, l = pairs.length; i < l; i++) {
6925
- var pair = pairs[i].split('=');
6926
- qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
6927
- }
6928
- return qry;
6929
- };
6893
+ /**
6894
+ * Compiles a querystring
6895
+ * Returns string representation of the object
6896
+ *
6897
+ * @param {Object}
6898
+ * @api private
6899
+ */
6900
+
6901
+ exports.encode = function (obj) {
6902
+ var str = '';
6903
+
6904
+ for (var i in obj) {
6905
+ if (obj.hasOwnProperty(i)) {
6906
+ if (str.length) str += '&';
6907
+ str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]);
6908
+ }
6909
+ }
6910
+
6911
+ return str;
6912
+ };
6913
+
6914
+ /**
6915
+ * Parses a simple querystring into an object
6916
+ *
6917
+ * @param {String} qs
6918
+ * @api private
6919
+ */
6920
+
6921
+ exports.decode = function(qs){
6922
+ var qry = {};
6923
+ var pairs = qs.split('&');
6924
+ for (var i = 0, l = pairs.length; i < l; i++) {
6925
+ var pair = pairs[i].split('=');
6926
+ qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
6927
+ }
6928
+ return qry;
6929
+ };
6930
6930
 
6931
6931
 
6932
6932
  /***/ },
6933
6933
  /* 37 */
6934
6934
  /***/ function(module, exports) {
6935
6935
 
6936
-
6936
+
6937
6937
  module.exports = function(a, b){
6938
6938
  var fn = function(){};
6939
6939
  fn.prototype = b.prototype;
@@ -7555,7 +7555,7 @@ return /******/ (function(modules) { // webpackBootstrap
7555
7555
  /* 42 */
7556
7556
  /***/ function(module, exports) {
7557
7557
 
7558
-
7558
+
7559
7559
  var indexOf = [].indexOf;
7560
7560
 
7561
7561
  module.exports = function(arr, obj){
@@ -7570,37 +7570,37 @@ return /******/ (function(modules) { // webpackBootstrap
7570
7570
  /* 43 */
7571
7571
  /***/ function(module, exports) {
7572
7572
 
7573
- /* WEBPACK VAR INJECTION */(function(global) {/**
7574
- * JSON parse.
7575
- *
7576
- * @see Based on jQuery#parseJSON (MIT) and JSON2
7577
- * @api private
7578
- */
7579
-
7580
- var rvalidchars = /^[\],:{}\s]*$/;
7581
- var rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g;
7582
- var rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g;
7583
- var rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g;
7584
- var rtrimLeft = /^\s+/;
7585
- var rtrimRight = /\s+$/;
7586
-
7587
- module.exports = function parsejson(data) {
7588
- if ('string' != typeof data || !data) {
7589
- return null;
7590
- }
7591
-
7592
- data = data.replace(rtrimLeft, '').replace(rtrimRight, '');
7593
-
7594
- // Attempt to parse using the native JSON parser first
7595
- if (global.JSON && JSON.parse) {
7596
- return JSON.parse(data);
7597
- }
7598
-
7599
- if (rvalidchars.test(data.replace(rvalidescape, '@')
7600
- .replace(rvalidtokens, ']')
7601
- .replace(rvalidbraces, ''))) {
7602
- return (new Function('return ' + data))();
7603
- }
7573
+ /* WEBPACK VAR INJECTION */(function(global) {/**
7574
+ * JSON parse.
7575
+ *
7576
+ * @see Based on jQuery#parseJSON (MIT) and JSON2
7577
+ * @api private
7578
+ */
7579
+
7580
+ var rvalidchars = /^[\],:{}\s]*$/;
7581
+ var rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g;
7582
+ var rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g;
7583
+ var rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g;
7584
+ var rtrimLeft = /^\s+/;
7585
+ var rtrimRight = /\s+$/;
7586
+
7587
+ module.exports = function parsejson(data) {
7588
+ if ('string' != typeof data || !data) {
7589
+ return null;
7590
+ }
7591
+
7592
+ data = data.replace(rtrimLeft, '').replace(rtrimRight, '');
7593
+
7594
+ // Attempt to parse using the native JSON parser first
7595
+ if (global.JSON && JSON.parse) {
7596
+ return JSON.parse(data);
7597
+ }
7598
+
7599
+ if (rvalidchars.test(data.replace(rvalidescape, '@')
7600
+ .replace(rvalidtokens, ']')
7601
+ .replace(rvalidbraces, ''))) {
7602
+ return (new Function('return ' + data))();
7603
+ }
7604
7604
  };
7605
7605
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
7606
7606
 
@@ -8107,7 +8107,7 @@ return /******/ (function(modules) { // webpackBootstrap
8107
8107
  /* 48 */
8108
8108
  /***/ function(module, exports) {
8109
8109
 
8110
-
8110
+
8111
8111
  /**
8112
8112
  * Expose `Backoff`.
8113
8113
  */