Update autosize, which should fix stack overflow error (#1560)
* Update to the latest version of autosize.js * gitignore: Restrict 'dist' matches to the root dist folder The global search for 'dist' caused problems when updateing bower components. * A couple minor version updates: ByteBuffer, filesize, intlTel moment-with-localse, ProtoBuf
This commit is contained in:
parent
3dc3667b45
commit
fb7701576e
10 changed files with 398 additions and 202 deletions
|
@ -959,7 +959,8 @@
|
|||
|
||||
/**
|
||||
* @license ByteBuffer.js (c) 2013-2014 Daniel Wirtz <dcode@dcode.io>
|
||||
* This version of ByteBuffer.js uses an ArrayBuffer (AB) as its backing buffer and is compatible with modern browsers.
|
||||
* This version of ByteBuffer.js uses an ArrayBuffer as its backing buffer which is accessed through a DataView and is
|
||||
* compatible with modern browsers.
|
||||
* Released under the Apache License, Version 2.0
|
||||
* see: https://github.com/dcodeIO/ByteBuffer.js for details
|
||||
*/ //
|
||||
|
@ -1059,7 +1060,7 @@
|
|||
* @const
|
||||
* @expose
|
||||
*/
|
||||
ByteBuffer.VERSION = "3.5.4";
|
||||
ByteBuffer.VERSION = "3.5.5";
|
||||
|
||||
/**
|
||||
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`.
|
||||
|
@ -1695,6 +1696,8 @@
|
|||
if (!this.noAssert) {
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value);
|
||||
else if (!(value && value instanceof Long))
|
||||
throw TypeError("Illegal value: "+value+" (not an integer or Long)");
|
||||
if (typeof offset !== 'number' || offset % 1 !== 0)
|
||||
|
@ -1705,6 +1708,8 @@
|
|||
}
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value);
|
||||
offset += 8;
|
||||
var capacity6 = this.buffer.byteLength;
|
||||
if (offset > capacity6)
|
||||
|
@ -1774,6 +1779,8 @@
|
|||
if (!this.noAssert) {
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value);
|
||||
else if (!(value && value instanceof Long))
|
||||
throw TypeError("Illegal value: "+value+" (not an integer or Long)");
|
||||
if (typeof offset !== 'number' || offset % 1 !== 0)
|
||||
|
@ -1784,6 +1791,8 @@
|
|||
}
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value);
|
||||
offset += 8;
|
||||
var capacity7 = this.buffer.byteLength;
|
||||
if (offset > capacity7)
|
||||
|
@ -2180,6 +2189,8 @@
|
|||
ByteBuffer.calculateVarint64 = function(value) {
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value);
|
||||
// ref: src/google/protobuf/io/coded_stream.cc
|
||||
var part0 = value.toInt() >>> 0,
|
||||
part1 = value.shiftRightUnsigned(28).toInt() >>> 0,
|
||||
|
@ -2209,6 +2220,8 @@
|
|||
ByteBuffer.zigZagEncode64 = function(value) {
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value, false);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value, false);
|
||||
else if (value.unsigned !== false) value = value.toSigned();
|
||||
// ref: src/google/protobuf/wire_format_lite.h
|
||||
return value.shiftLeft(1).xor(value.shiftRight(63)).toUnsigned();
|
||||
|
@ -2223,6 +2236,8 @@
|
|||
ByteBuffer.zigZagDecode64 = function(value) {
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value, false);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value, false);
|
||||
else if (value.unsigned !== false) value = value.toSigned();
|
||||
// ref: src/google/protobuf/wire_format_lite.h
|
||||
return value.shiftRightUnsigned(1).xor(value.and(Long.ONE).toSigned().negate()).toSigned();
|
||||
|
@ -2242,6 +2257,8 @@
|
|||
if (!this.noAssert) {
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value);
|
||||
else if (!(value && value instanceof Long))
|
||||
throw TypeError("Illegal value: "+value+" (not an integer or Long)");
|
||||
if (typeof offset !== 'number' || offset % 1 !== 0)
|
||||
|
@ -2252,6 +2269,8 @@
|
|||
}
|
||||
if (typeof value === 'number')
|
||||
value = Long.fromNumber(value, false);
|
||||
else if (typeof value === 'string')
|
||||
value = Long.fromString(value, false);
|
||||
else if (value.unsigned !== false) value = value.toSigned();
|
||||
var size = ByteBuffer.calculateVarint64(value),
|
||||
part0 = value.toInt() >>> 0,
|
||||
|
@ -2392,7 +2411,6 @@
|
|||
if (offset < 0 || offset + 0 > this.buffer.byteLength)
|
||||
throw RangeError("Illegal offset: 0 <= "+offset+" (+"+0+") <= "+this.buffer.byteLength);
|
||||
}
|
||||
var start = offset;
|
||||
// UTF8 strings do not contain zero bytes in between except for the zero character, so:
|
||||
k = utfx.calculateUTF16asUTF8(stringSource(str))[1];
|
||||
offset += k+1;
|
||||
|
@ -2405,7 +2423,7 @@
|
|||
}.bind(this));
|
||||
this.view.setUint8(offset++, 0);
|
||||
if (relative) {
|
||||
this.offset = offset - start;
|
||||
this.offset = offset;
|
||||
return this;
|
||||
}
|
||||
return k;
|
||||
|
@ -2844,8 +2862,8 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* Appends this ByteBuffer's contents to another ByteBuffer. This will overwrite any contents behind the specified
|
||||
* offset up to the length of this ByteBuffer's data.
|
||||
* Appends this ByteBuffer's contents to another ByteBuffer. This will overwrite any contents at and after the
|
||||
specified offset up to the length of this ByteBuffer's data.
|
||||
* @param {!ByteBuffer} target Target ByteBuffer
|
||||
* @param {number=} offset Offset to append to. Will use and increase {@link ByteBuffer#offset} by the number of bytes
|
||||
* read if omitted.
|
||||
|
@ -4257,7 +4275,7 @@
|
|||
* @const
|
||||
* @expose
|
||||
*/
|
||||
ProtoBuf.VERSION = "3.8.0";
|
||||
ProtoBuf.VERSION = "3.8.2";
|
||||
|
||||
/**
|
||||
* Wire types.
|
||||
|
@ -4621,7 +4639,7 @@
|
|||
ID: /^(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+)$/,
|
||||
NEGID: /^\-?(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+)$/,
|
||||
WHITESPACE: /\s/,
|
||||
STRING: /['"]([^'"\\]*(\\.[^"\\]*)*)['"]/g,
|
||||
STRING: /(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,
|
||||
BOOL: /^(?:true|false)$/i
|
||||
};
|
||||
|
||||
|
@ -4707,7 +4725,7 @@
|
|||
Lang.STRING.lastIndex = this.index-1; // Include the open quote
|
||||
var match;
|
||||
if ((match = Lang.STRING.exec(this.source)) !== null) {
|
||||
var s = match[1];
|
||||
var s = typeof match[1] !== 'undefined' ? match[1] : match[2];
|
||||
this.index = Lang.STRING.lastIndex;
|
||||
this.stack.push(this.stringEndsWith);
|
||||
return s;
|
||||
|
@ -8504,7 +8522,6 @@
|
|||
json = JSON.parse(json);
|
||||
builder["import"](json, filename);
|
||||
builder.resolveAll();
|
||||
builder.build();
|
||||
return builder;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue