Created
November 16, 2017 14:33
-
-
Save juliandescottes/0cbbd1274b89a56127ca72008f3e9235 to your computer and use it in GitHub Desktop.
rebase_imm_url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch | |
# User Julian Descottes <[email protected]> | |
# Date 1510842810 -3600 | |
# Thu Nov 16 15:33:30 2017 +0100 | |
# Node ID deacda5f42976afc0d3fe144bf5ac132a6fdce3b | |
# Parent f41930a869a84af81df1a88d8e82323ff3a6509a | |
rebase_imm_url | |
MozReview-Commit-ID: 5kMaUi7rQGf | |
diff --git a/devtools/client/debugger/new/debugger.js b/devtools/client/debugger/new/debugger.js | |
--- a/devtools/client/debugger/new/debugger.js | |
+++ b/devtools/client/debugger/new/debugger.js | |
@@ -3648,17 +3648,17 @@ function isObjectLike(value) { | |
} | |
return ii; | |
}; | |
ArraySeq.prototype.__iterator = function(type, reverse) { | |
var array = this._array; | |
var maxIndex = array.length - 1; | |
var ii = 0; | |
- return new Iterator(function() | |
+ return new Iterator(function() | |
{return ii > maxIndex ? | |
iteratorDone() : | |
iteratorValue(type, ii, array[reverse ? maxIndex - ii++ : ii++])} | |
); | |
}; | |
@@ -4119,17 +4119,17 @@ function isObjectLike(value) { | |
return ii + 1; | |
} | |
} | |
return ii; | |
}; | |
Repeat.prototype.__iterator = function(type, reverse) {var this$0 = this; | |
var ii = 0; | |
- return new Iterator(function() | |
+ return new Iterator(function() | |
{return ii < this$0.size ? iteratorValue(type, ii++, this$0._value) : iteratorDone()} | |
); | |
}; | |
Repeat.prototype.equals = function(other) { | |
return other instanceof Repeat ? | |
is(this._value, other._value) : | |
deepEqual(other); | |
@@ -6317,17 +6317,17 @@ function isObjectLike(value) { | |
reversedSequence.reverse = function() {return iterable}; | |
if (iterable.flip) { | |
reversedSequence.flip = function () { | |
var flipSequence = flipFactory(iterable); | |
flipSequence.reverse = function() {return iterable.flip()}; | |
return flipSequence; | |
}; | |
} | |
- reversedSequence.get = function(key, notSetValue) | |
+ reversedSequence.get = function(key, notSetValue) | |
{return iterable.get(useKeys ? key : -1 - key, notSetValue)}; | |
reversedSequence.has = function(key ) | |
{return iterable.has(useKeys ? key : -1 - key)}; | |
reversedSequence.includes = function(value ) {return iterable.includes(value)}; | |
reversedSequence.cacheResult = cacheResultThrough; | |
reversedSequence.__iterate = function (fn, reverse) {var this$0 = this; | |
return iterable.__iterate(function(v, k) {return fn(v, k, this$0)}, !reverse); | |
}; | |
@@ -6516,17 +6516,17 @@ function isObjectLike(value) { | |
function takeWhileFactory(iterable, predicate, context) { | |
var takeSequence = makeSequence(iterable); | |
takeSequence.__iterateUncached = function(fn, reverse) {var this$0 = this; | |
if (reverse) { | |
return this.cacheResult().__iterate(fn, reverse); | |
} | |
var iterations = 0; | |
- iterable.__iterate(function(v, k, c) | |
+ iterable.__iterate(function(v, k, c) | |
{return predicate.call(context, v, k, c) && ++iterations && fn(v, k, this$0)} | |
); | |
return iterations; | |
}; | |
takeSequence.__iteratorUncached = function(type, reverse) {var this$0 = this; | |
if (reverse) { | |
return this.cacheResult().__iterator(type, reverse); | |
} | |
@@ -6707,17 +6707,17 @@ function isObjectLike(value) { | |
} | |
function interposeFactory(iterable, separator) { | |
var interposedSequence = makeSequence(iterable); | |
interposedSequence.size = iterable.size && iterable.size * 2 -1; | |
interposedSequence.__iterateUncached = function(fn, reverse) {var this$0 = this; | |
var iterations = 0; | |
- iterable.__iterate(function(v, k) | |
+ iterable.__iterate(function(v, k) | |
{return (!iterations || fn(separator, iterations++, this$0) !== false) && | |
fn(v, iterations++, this$0) !== false}, | |
reverse | |
); | |
return iterations; | |
}; | |
interposedSequence.__iteratorUncached = function(type, reverse) { | |
var iterator = iterable.__iterator(ITERATE_VALUES, reverse); | |
@@ -9932,17 +9932,17 @@ module.exports = function() { | |
/** | |
* Copyright (c) 2013-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. | |
* | |
- * | |
+ * | |
*/ | |
function makeEmptyFunction(arg) { | |
return function () { | |
return arg; | |
}; | |
} | |
@@ -10306,176 +10306,176 @@ if (prefs.debuggerPrefsSchemaVersion !== | |
/***/ (function(module, exports) { | |
module.exports = "<svg viewBox=\"0 0 256 272\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid\"><g><path d=\"M0.0996108949,45.522179 L125.908171,0.697276265 L255.103502,44.7252918 L234.185214,211.175097 L125.908171,271.140856 L19.3245136,211.971984 L0.0996108949,45.522179 Z\" fill=\"#E23237\"></path><path d=\"M255.103502,44.7252918 L125.908171,0.697276265 L125.908171,271.140856 L234.185214,211.274708 L255.103502,44.7252918 L255.103502,44.7252918 Z\" fill=\"#B52E31\"></path><path d=\"M126.107393,32.27393 L126.107393,32.27393 L47.7136187,206.692607 L76.9992218,206.194553 L92.7377432,166.848249 L126.207004,166.848249 L126.306615,166.848249 L163.063035,166.848249 L180.29572,206.692607 L208.286381,207.190661 L126.107393,32.27393 L126.107393,32.27393 Z M126.306615,88.155642 L152.803113,143.5393 L127.402335,143.5393 L126.107393,143.5393 L102.997665,143.5393 L126.306615,88.155642 L126.306615,88.155642 Z\" fill=\"#FFFFFF\"></path></g></svg>" | |
/***/ }), | |
/* 248 */ | |
/***/ (function(module, exports, __webpack_require__) { | |
-(function(){ | |
- var crypt = __webpack_require__(249), | |
- utf8 = __webpack_require__(250).utf8, | |
- isBuffer = __webpack_require__(251), | |
- bin = __webpack_require__(250).bin, | |
- | |
- // The core | |
- md5 = function (message, options) { | |
- // Convert to byte array | |
- if (message.constructor == String) | |
- if (options && options.encoding === 'binary') | |
- message = bin.stringToBytes(message); | |
- else | |
- message = utf8.stringToBytes(message); | |
- else if (isBuffer(message)) | |
- message = Array.prototype.slice.call(message, 0); | |
- else if (!Array.isArray(message)) | |
- message = message.toString(); | |
- // else, assume byte array already | |
- | |
- var m = crypt.bytesToWords(message), | |
- l = message.length * 8, | |
- a = 1732584193, | |
- b = -271733879, | |
- c = -1732584194, | |
- d = 271733878; | |
- | |
- // Swap endian | |
- for (var i = 0; i < m.length; i++) { | |
- m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF | | |
- ((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00; | |
- } | |
- | |
- // Padding | |
- m[l >>> 5] |= 0x80 << (l % 32); | |
- m[(((l + 64) >>> 9) << 4) + 14] = l; | |
- | |
- // Method shortcuts | |
- var FF = md5._ff, | |
- GG = md5._gg, | |
- HH = md5._hh, | |
- II = md5._ii; | |
- | |
- for (var i = 0; i < m.length; i += 16) { | |
- | |
- var aa = a, | |
- bb = b, | |
- cc = c, | |
- dd = d; | |
- | |
- a = FF(a, b, c, d, m[i+ 0], 7, -680876936); | |
- d = FF(d, a, b, c, m[i+ 1], 12, -389564586); | |
- c = FF(c, d, a, b, m[i+ 2], 17, 606105819); | |
- b = FF(b, c, d, a, m[i+ 3], 22, -1044525330); | |
- a = FF(a, b, c, d, m[i+ 4], 7, -176418897); | |
- d = FF(d, a, b, c, m[i+ 5], 12, 1200080426); | |
- c = FF(c, d, a, b, m[i+ 6], 17, -1473231341); | |
- b = FF(b, c, d, a, m[i+ 7], 22, -45705983); | |
- a = FF(a, b, c, d, m[i+ 8], 7, 1770035416); | |
- d = FF(d, a, b, c, m[i+ 9], 12, -1958414417); | |
- c = FF(c, d, a, b, m[i+10], 17, -42063); | |
- b = FF(b, c, d, a, m[i+11], 22, -1990404162); | |
- a = FF(a, b, c, d, m[i+12], 7, 1804603682); | |
- d = FF(d, a, b, c, m[i+13], 12, -40341101); | |
- c = FF(c, d, a, b, m[i+14], 17, -1502002290); | |
- b = FF(b, c, d, a, m[i+15], 22, 1236535329); | |
- | |
- a = GG(a, b, c, d, m[i+ 1], 5, -165796510); | |
- d = GG(d, a, b, c, m[i+ 6], 9, -1069501632); | |
- c = GG(c, d, a, b, m[i+11], 14, 643717713); | |
- b = GG(b, c, d, a, m[i+ 0], 20, -373897302); | |
- a = GG(a, b, c, d, m[i+ 5], 5, -701558691); | |
- d = GG(d, a, b, c, m[i+10], 9, 38016083); | |
- c = GG(c, d, a, b, m[i+15], 14, -660478335); | |
- b = GG(b, c, d, a, m[i+ 4], 20, -405537848); | |
- a = GG(a, b, c, d, m[i+ 9], 5, 568446438); | |
- d = GG(d, a, b, c, m[i+14], 9, -1019803690); | |
- c = GG(c, d, a, b, m[i+ 3], 14, -187363961); | |
- b = GG(b, c, d, a, m[i+ 8], 20, 1163531501); | |
- a = GG(a, b, c, d, m[i+13], 5, -1444681467); | |
- d = GG(d, a, b, c, m[i+ 2], 9, -51403784); | |
- c = GG(c, d, a, b, m[i+ 7], 14, 1735328473); | |
- b = GG(b, c, d, a, m[i+12], 20, -1926607734); | |
- | |
- a = HH(a, b, c, d, m[i+ 5], 4, -378558); | |
- d = HH(d, a, b, c, m[i+ 8], 11, -2022574463); | |
- c = HH(c, d, a, b, m[i+11], 16, 1839030562); | |
- b = HH(b, c, d, a, m[i+14], 23, -35309556); | |
- a = HH(a, b, c, d, m[i+ 1], 4, -1530992060); | |
- d = HH(d, a, b, c, m[i+ 4], 11, 1272893353); | |
- c = HH(c, d, a, b, m[i+ 7], 16, -155497632); | |
- b = HH(b, c, d, a, m[i+10], 23, -1094730640); | |
- a = HH(a, b, c, d, m[i+13], 4, 681279174); | |
- d = HH(d, a, b, c, m[i+ 0], 11, -358537222); | |
- c = HH(c, d, a, b, m[i+ 3], 16, -722521979); | |
- b = HH(b, c, d, a, m[i+ 6], 23, 76029189); | |
- a = HH(a, b, c, d, m[i+ 9], 4, -640364487); | |
- d = HH(d, a, b, c, m[i+12], 11, -421815835); | |
- c = HH(c, d, a, b, m[i+15], 16, 530742520); | |
- b = HH(b, c, d, a, m[i+ 2], 23, -995338651); | |
- | |
- a = II(a, b, c, d, m[i+ 0], 6, -198630844); | |
- d = II(d, a, b, c, m[i+ 7], 10, 1126891415); | |
- c = II(c, d, a, b, m[i+14], 15, -1416354905); | |
- b = II(b, c, d, a, m[i+ 5], 21, -57434055); | |
- a = II(a, b, c, d, m[i+12], 6, 1700485571); | |
- d = II(d, a, b, c, m[i+ 3], 10, -1894986606); | |
- c = II(c, d, a, b, m[i+10], 15, -1051523); | |
- b = II(b, c, d, a, m[i+ 1], 21, -2054922799); | |
- a = II(a, b, c, d, m[i+ 8], 6, 1873313359); | |
- d = II(d, a, b, c, m[i+15], 10, -30611744); | |
- c = II(c, d, a, b, m[i+ 6], 15, -1560198380); | |
- b = II(b, c, d, a, m[i+13], 21, 1309151649); | |
- a = II(a, b, c, d, m[i+ 4], 6, -145523070); | |
- d = II(d, a, b, c, m[i+11], 10, -1120210379); | |
- c = II(c, d, a, b, m[i+ 2], 15, 718787259); | |
- b = II(b, c, d, a, m[i+ 9], 21, -343485551); | |
- | |
- a = (a + aa) >>> 0; | |
- b = (b + bb) >>> 0; | |
- c = (c + cc) >>> 0; | |
- d = (d + dd) >>> 0; | |
- } | |
- | |
- return crypt.endian([a, b, c, d]); | |
- }; | |
- | |
- // Auxiliary functions | |
- md5._ff = function (a, b, c, d, x, s, t) { | |
- var n = a + (b & c | ~b & d) + (x >>> 0) + t; | |
- return ((n << s) | (n >>> (32 - s))) + b; | |
- }; | |
- md5._gg = function (a, b, c, d, x, s, t) { | |
- var n = a + (b & d | c & ~d) + (x >>> 0) + t; | |
- return ((n << s) | (n >>> (32 - s))) + b; | |
- }; | |
- md5._hh = function (a, b, c, d, x, s, t) { | |
- var n = a + (b ^ c ^ d) + (x >>> 0) + t; | |
- return ((n << s) | (n >>> (32 - s))) + b; | |
- }; | |
- md5._ii = function (a, b, c, d, x, s, t) { | |
- var n = a + (c ^ (b | ~d)) + (x >>> 0) + t; | |
- return ((n << s) | (n >>> (32 - s))) + b; | |
- }; | |
- | |
- // Package private blocksize | |
- md5._blocksize = 16; | |
- md5._digestsize = 16; | |
- | |
- module.exports = function (message, options) { | |
- if (message === undefined || message === null) | |
- throw new Error('Illegal argument ' + message); | |
- | |
- var digestbytes = crypt.wordsToBytes(md5(message, options)); | |
- return options && options.asBytes ? digestbytes : | |
- options && options.asString ? bin.bytesToString(digestbytes) : | |
- crypt.bytesToHex(digestbytes); | |
- }; | |
- | |
-})(); | |
+(function(){ | |
+ var crypt = __webpack_require__(249), | |
+ utf8 = __webpack_require__(250).utf8, | |
+ isBuffer = __webpack_require__(251), | |
+ bin = __webpack_require__(250).bin, | |
+ | |
+ // The core | |
+ md5 = function (message, options) { | |
+ // Convert to byte array | |
+ if (message.constructor == String) | |
+ if (options && options.encoding === 'binary') | |
+ message = bin.stringToBytes(message); | |
+ else | |
+ message = utf8.stringToBytes(message); | |
+ else if (isBuffer(message)) | |
+ message = Array.prototype.slice.call(message, 0); | |
+ else if (!Array.isArray(message)) | |
+ message = message.toString(); | |
+ // else, assume byte array already | |
+ | |
+ var m = crypt.bytesToWords(message), | |
+ l = message.length * 8, | |
+ a = 1732584193, | |
+ b = -271733879, | |
+ c = -1732584194, | |
+ d = 271733878; | |
+ | |
+ // Swap endian | |
+ for (var i = 0; i < m.length; i++) { | |
+ m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF | | |
+ ((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00; | |
+ } | |
+ | |
+ // Padding | |
+ m[l >>> 5] |= 0x80 << (l % 32); | |
+ m[(((l + 64) >>> 9) << 4) + 14] = l; | |
+ | |
+ // Method shortcuts | |
+ var FF = md5._ff, | |
+ GG = md5._gg, | |
+ HH = md5._hh, | |
+ II = md5._ii; | |
+ | |
+ for (var i = 0; i < m.length; i += 16) { | |
+ | |
+ var aa = a, | |
+ bb = b, | |
+ cc = c, | |
+ dd = d; | |
+ | |
+ a = FF(a, b, c, d, m[i+ 0], 7, -680876936); | |
+ d = FF(d, a, b, c, m[i+ 1], 12, -389564586); | |
+ c = FF(c, d, a, b, m[i+ 2], 17, 606105819); | |
+ b = FF(b, c, d, a, m[i+ 3], 22, -1044525330); | |
+ a = FF(a, b, c, d, m[i+ 4], 7, -176418897); | |
+ d = FF(d, a, b, c, m[i+ 5], 12, 1200080426); | |
+ c = FF(c, d, a, b, m[i+ 6], 17, -1473231341); | |
+ b = FF(b, c, d, a, m[i+ 7], 22, -45705983); | |
+ a = FF(a, b, c, d, m[i+ 8], 7, 1770035416); | |
+ d = FF(d, a, b, c, m[i+ 9], 12, -1958414417); | |
+ c = FF(c, d, a, b, m[i+10], 17, -42063); | |
+ b = FF(b, c, d, a, m[i+11], 22, -1990404162); | |
+ a = FF(a, b, c, d, m[i+12], 7, 1804603682); | |
+ d = FF(d, a, b, c, m[i+13], 12, -40341101); | |
+ c = FF(c, d, a, b, m[i+14], 17, -1502002290); | |
+ b = FF(b, c, d, a, m[i+15], 22, 1236535329); | |
+ | |
+ a = GG(a, b, c, d, m[i+ 1], 5, -165796510); | |
+ d = GG(d, a, b, c, m[i+ 6], 9, -1069501632); | |
+ c = GG(c, d, a, b, m[i+11], 14, 643717713); | |
+ b = GG(b, c, d, a, m[i+ 0], 20, -373897302); | |
+ a = GG(a, b, c, d, m[i+ 5], 5, -701558691); | |
+ d = GG(d, a, b, c, m[i+10], 9, 38016083); | |
+ c = GG(c, d, a, b, m[i+15], 14, -660478335); | |
+ b = GG(b, c, d, a, m[i+ 4], 20, -405537848); | |
+ a = GG(a, b, c, d, m[i+ 9], 5, 568446438); | |
+ d = GG(d, a, b, c, m[i+14], 9, -1019803690); | |
+ c = GG(c, d, a, b, m[i+ 3], 14, -187363961); | |
+ b = GG(b, c, d, a, m[i+ 8], 20, 1163531501); | |
+ a = GG(a, b, c, d, m[i+13], 5, -1444681467); | |
+ d = GG(d, a, b, c, m[i+ 2], 9, -51403784); | |
+ c = GG(c, d, a, b, m[i+ 7], 14, 1735328473); | |
+ b = GG(b, c, d, a, m[i+12], 20, -1926607734); | |
+ | |
+ a = HH(a, b, c, d, m[i+ 5], 4, -378558); | |
+ d = HH(d, a, b, c, m[i+ 8], 11, -2022574463); | |
+ c = HH(c, d, a, b, m[i+11], 16, 1839030562); | |
+ b = HH(b, c, d, a, m[i+14], 23, -35309556); | |
+ a = HH(a, b, c, d, m[i+ 1], 4, -1530992060); | |
+ d = HH(d, a, b, c, m[i+ 4], 11, 1272893353); | |
+ c = HH(c, d, a, b, m[i+ 7], 16, -155497632); | |
+ b = HH(b, c, d, a, m[i+10], 23, -1094730640); | |
+ a = HH(a, b, c, d, m[i+13], 4, 681279174); | |
+ d = HH(d, a, b, c, m[i+ 0], 11, -358537222); | |
+ c = HH(c, d, a, b, m[i+ 3], 16, -722521979); | |
+ b = HH(b, c, d, a, m[i+ 6], 23, 76029189); | |
+ a = HH(a, b, c, d, m[i+ 9], 4, -640364487); | |
+ d = HH(d, a, b, c, m[i+12], 11, -421815835); | |
+ c = HH(c, d, a, b, m[i+15], 16, 530742520); | |
+ b = HH(b, c, d, a, m[i+ 2], 23, -995338651); | |
+ | |
+ a = II(a, b, c, d, m[i+ 0], 6, -198630844); | |
+ d = II(d, a, b, c, m[i+ 7], 10, 1126891415); | |
+ c = II(c, d, a, b, m[i+14], 15, -1416354905); | |
+ b = II(b, c, d, a, m[i+ 5], 21, -57434055); | |
+ a = II(a, b, c, d, m[i+12], 6, 1700485571); | |
+ d = II(d, a, b, c, m[i+ 3], 10, -1894986606); | |
+ c = II(c, d, a, b, m[i+10], 15, -1051523); | |
+ b = II(b, c, d, a, m[i+ 1], 21, -2054922799); | |
+ a = II(a, b, c, d, m[i+ 8], 6, 1873313359); | |
+ d = II(d, a, b, c, m[i+15], 10, -30611744); | |
+ c = II(c, d, a, b, m[i+ 6], 15, -1560198380); | |
+ b = II(b, c, d, a, m[i+13], 21, 1309151649); | |
+ a = II(a, b, c, d, m[i+ 4], 6, -145523070); | |
+ d = II(d, a, b, c, m[i+11], 10, -1120210379); | |
+ c = II(c, d, a, b, m[i+ 2], 15, 718787259); | |
+ b = II(b, c, d, a, m[i+ 9], 21, -343485551); | |
+ | |
+ a = (a + aa) >>> 0; | |
+ b = (b + bb) >>> 0; | |
+ c = (c + cc) >>> 0; | |
+ d = (d + dd) >>> 0; | |
+ } | |
+ | |
+ return crypt.endian([a, b, c, d]); | |
+ }; | |
+ | |
+ // Auxiliary functions | |
+ md5._ff = function (a, b, c, d, x, s, t) { | |
+ var n = a + (b & c | ~b & d) + (x >>> 0) + t; | |
+ return ((n << s) | (n >>> (32 - s))) + b; | |
+ }; | |
+ md5._gg = function (a, b, c, d, x, s, t) { | |
+ var n = a + (b & d | c & ~d) + (x >>> 0) + t; | |
+ return ((n << s) | (n >>> (32 - s))) + b; | |
+ }; | |
+ md5._hh = function (a, b, c, d, x, s, t) { | |
+ var n = a + (b ^ c ^ d) + (x >>> 0) + t; | |
+ return ((n << s) | (n >>> (32 - s))) + b; | |
+ }; | |
+ md5._ii = function (a, b, c, d, x, s, t) { | |
+ var n = a + (c ^ (b | ~d)) + (x >>> 0) + t; | |
+ return ((n << s) | (n >>> (32 - s))) + b; | |
+ }; | |
+ | |
+ // Package private blocksize | |
+ md5._blocksize = 16; | |
+ md5._digestsize = 16; | |
+ | |
+ module.exports = function (message, options) { | |
+ if (message === undefined || message === null) | |
+ throw new Error('Illegal argument ' + message); | |
+ | |
+ var digestbytes = crypt.wordsToBytes(md5(message, options)); | |
+ return options && options.asBytes ? digestbytes : | |
+ options && options.asString ? bin.bytesToString(digestbytes) : | |
+ crypt.bytesToHex(digestbytes); | |
+ }; | |
+ | |
+})(); | |
/***/ }), | |
/* 249 */ | |
/***/ (function(module, exports) { | |
(function() { | |
var base64map | |
@@ -15354,36 +15354,36 @@ function wrapMapToPropsConstant(getConst | |
constantSelector.dependsOnOwnProps = false; | |
return constantSelector; | |
}; | |
} | |
// dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args | |
// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine | |
// whether mapToProps needs to be invoked when props have changed. | |
-// | |
+// | |
// A length of one signals that mapToProps does not depend on props from the parent component. | |
// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and | |
// therefore not reporting its length accurately.. | |
function getDependsOnOwnProps(mapToProps) { | |
return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1; | |
} | |
// Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction, | |
// this function wraps mapToProps in a proxy function which does several things: | |
-// | |
+// | |
// * Detects whether the mapToProps function being called depends on props, which | |
// is used by selectorFactory to decide if it should reinvoke on props changes. | |
-// | |
+// | |
// * On first call, handles mapToProps if returns another function, and treats that | |
// new function as the true mapToProps for subsequent calls. | |
-// | |
+// | |
// * On first call, verifies the first result is a plain object, in order to warn | |
// the developer that their mapToProps function is not returning a valid result. | |
-// | |
+// | |
function wrapMapToPropsFunc(mapToProps, methodName) { | |
return function initProxySelector(dispatch, _ref) { | |
var displayName = _ref.displayName; | |
var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) { | |
return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch); | |
}; | |
@@ -15706,17 +15706,17 @@ function _objectWithoutProperties(obj, k | |
/* | |
connect is a facade over connectAdvanced. It turns its args into a compatible | |
selectorFactory, which has the signature: | |
(dispatch, options) => (nextState, nextOwnProps) => nextFinalProps | |
- | |
+ | |
connect passes its args to connectAdvanced as options, which will in turn pass them to | |
selectorFactory each time a Connect component instance is instantiated or hot reloaded. | |
selectorFactory returns a final props selector from its mapStateToProps, | |
mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps, | |
mergePropsFactories, and pure args. | |
The resulting final props selector is called by the Connect component instance whenever | |
@@ -18739,31 +18739,33 @@ exports.isNotJavaScript = isNotJavaScrip | |
exports.isInvalidUrl = isInvalidUrl; | |
exports.partIsFile = partIsFile; | |
exports.createNode = createNode; | |
exports.createParentMap = createParentMap; | |
exports.getRelativePath = getRelativePath; | |
var _url = __webpack_require__(334); | |
+var _getURL = __webpack_require__(1405); | |
+ | |
var _source = __webpack_require__(1356); | |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ | |
const IGNORED_URLS = ["debugger eval code", "XStringBundle"]; | |
function nodeHasChildren(item) { | |
return Array.isArray(item.contents); | |
} | |
function isExactUrlMatch(pathPart, debuggeeUrl) { | |
// compare to hostname with an optional 'www.' prefix | |
- const { host } = (0, _url.parse)(debuggeeUrl); | |
+ const { host } = debuggeeUrl; | |
if (!host) { | |
return false; | |
} | |
return host.replace(/^www\./, "") === pathPart.replace(/^www\./, ""); | |
} | |
function isDirectory(url) { | |
const parts = url.path.split("/").filter(p => p !== ""); | |
@@ -18779,17 +18781,27 @@ function isNotJavaScript(source) { | |
return false; | |
} | |
const parsedExtension = parsedUrl.split(".").pop(); | |
return ["css", "svg", "png"].includes(parsedExtension); | |
} | |
function isInvalidUrl(url, source) { | |
- return IGNORED_URLS.indexOf(url) != -1 || !source.get("url") || source.get("loadedState") === "loading" || !url.group || (0, _source.isPretty)(source.toJS()) || isNotJavaScript(source.toJS()); | |
+ if (IGNORED_URLS.indexOf(url) != -1 || !source.get("url") || source.get("loadedState") === "loading") { | |
+ return null; | |
+ } | |
+ var url = (0, _getURL.getURL)(source.get("url")); | |
+ if (!url.group) { | |
+ return null; | |
+ } | |
+ if ((0, _source.isPretty)(source.toJS())) { | |
+ return null; | |
+ } | |
+ return url; | |
} | |
function partIsFile(index, parts, url) { | |
const isLastPart = index === parts.length - 1; | |
return !isDirectory(url) && isLastPart; | |
} | |
function createNode(name, path, contents) { | |
@@ -25539,23 +25551,22 @@ function addSourceToNode(node, url, sour | |
return contents; | |
} | |
/** | |
* @memberof utils/sources-tree | |
* @static | |
*/ | |
function addToTree(tree, source, debuggeeUrl, projectRoot) { | |
- const url = (0, _getURL.getURL)(source.get("url"), debuggeeUrl); | |
+ var url = (0, _utils.isInvalidUrl)(url, source); | |
+ if (!url) { | |
+ return; | |
+ } | |
+ | |
const debuggeeHost = (0, _treeOrder.getDomain)(debuggeeUrl); | |
- | |
- if ((0, _utils.isInvalidUrl)(url, source)) { | |
- return; | |
- } | |
- | |
const finalNode = traverseTree(url, tree, debuggeeHost); | |
finalNode.contents = addSourceToNode(finalNode, url, source); | |
} | |
/***/ }), | |
/* 1444 */ | |
/***/ (function(module, exports, __webpack_require__) { | |
@@ -33530,17 +33541,17 @@ const SplitBox = React.createClass({ | |
module.exports = SplitBox; | |
/***/ }), | |
/* 1537 */ | |
/***/ (function(module, exports, __webpack_require__) { | |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
- * License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
const React = __webpack_require__(0); | |
const ReactDOM = __webpack_require__(4); | |
const { DOM: dom, PropTypes } = React; | |
const Draggable = React.createClass({ | |
displayName: "Draggable", | |
@@ -35321,16 +35332,17 @@ var _devtoolsContextmenu = __webpack_req | |
var _clipboard = __webpack_require__(1388); | |
var _utils = __webpack_require__(1366); | |
var _prefs = __webpack_require__(226); | |
var _ui = __webpack_require__(1385); | |
+var _url = __webpack_require__(334); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
class SourcesTree extends _react.Component { | |
constructor(props) { | |
super(props); | |
this.state = (0, _sourcesTree.createTree)(this.props.sources, this.props.debuggeeUrl, this.props.projectRoot); | |
@@ -35392,19 +35404,38 @@ class SourcesTree extends _react.Compone | |
if (nextProps.sources.size === 0) { | |
// remove all sources | |
this.setState((0, _sourcesTree.createTree)(nextProps.sources, nextProps.debuggeeUrl, nextProps.projectRoot)); | |
return; | |
} | |
// TODO: do not run this every time a source is clicked, | |
// only when a new source is added | |
- const next = (0, _immutable.Set)(nextProps.sources.valueSeq()); | |
- const prev = (0, _immutable.Set)(this.props.sources.valueSeq()); | |
- const newSet = next.subtract(prev); | |
+ // const next = (0, _immutable.Set)(nextProps.sources.valueSeq()); | |
+ // const prev = (0, _immutable.Set)(this.props.sources.valueSeq()); | |
+ // const newSet = next.subtract(prev); | |
+ | |
+ // Cache the previously displayed sources | |
+ if (!this.prevSources) { | |
+ this.prevSources = new window.Set() | |
+ for (var source of this.props.sources.valueSeq().toJS()) { | |
+ if (!source || !source.id) continue; | |
+ this.prevSources.add(source.id); | |
+ } | |
+ } | |
+ // Compute the new sources by comparing the new versus the old | |
+ var newSet = new window.Set(); | |
+ let nextSources = nextProps.sources.valueSeq(); | |
+ for (var source of nextSources) { | |
+ let id = source.get("id"); | |
+ if (!this.prevSources.has(id)) { | |
+ newSet.add(source); | |
+ this.prevSources.add(id); | |
+ } | |
+ } | |
const uncollapsedTree = this.state.uncollapsedTree; | |
// TODO: recreating the tree every time messes with the expanded | |
// state of ManagedTree, because it depends on item instances | |
// being the same. The result is that if a source is added at a | |
// later time, all expanded state is lost. | |
let sourceTree = this.state.sourceTree; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment