Update bower dependencies.
This commit is contained in:
parent
818bdad5af
commit
2beab45f32
185 changed files with 21480 additions and 8110 deletions
10
app/bower_components/es5-shim/.bower.json
vendored
10
app/bower_components/es5-shim/.bower.json
vendored
|
@ -30,14 +30,14 @@
|
|||
"bower_components",
|
||||
"tests"
|
||||
],
|
||||
"version": "4.5.9",
|
||||
"_release": "4.5.9",
|
||||
"version": "4.5.12",
|
||||
"_release": "4.5.12",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v4.5.9",
|
||||
"commit": "de7aa6ea2b58b1e3839438d04c023ddf3600c35a"
|
||||
"tag": "v4.5.12",
|
||||
"commit": "508dcbe79446cb7fce3400674b57719bd1cf6e11"
|
||||
},
|
||||
"_source": "https://github.com/es-shims/es5-shim.git",
|
||||
"_target": "4.5.9",
|
||||
"_target": "4.5.12",
|
||||
"_originalSource": "es5-shim"
|
||||
}
|
21
app/bower_components/es5-shim/CHANGES
vendored
21
app/bower_components/es5-shim/CHANGES
vendored
|
@ -1,3 +1,24 @@
|
|||
4.5.12
|
||||
- [meta] republish broken 4.5.11
|
||||
|
||||
4.5.11
|
||||
- [Fix] sync Object.keys excluded list from object-keys (#456)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `jasmine-node`, `replace`, `semver`
|
||||
- [Tests] pin jasmine-node to ~1.13
|
||||
|
||||
4.5.10
|
||||
- [Fix] Safari 11 throws on `.sort({})`, but not on `.sort(null)`
|
||||
- [Fix] ensure the shimmed parseInt throws with Symbols (#450)
|
||||
- [Fix] skip over `localStorage`, which can’t be accessed on file://
|
||||
- [Fix] Accessing window.top.{constructor|prototype} throws error in iOS (#445)
|
||||
- [Fix] avoid `width` and `height` on `window`, to prevent reflow (https://github.com/ljharb/object-keys/issues/31)
|
||||
- [Fix] ensure minified literal of `1000000000000000128` stays as that literal (#441)
|
||||
- [Robustness] always prefer `String(x)` over `x.toString()`
|
||||
- [Tests] up to `node` `v9.3`, `v8.9`, `v7.10`, `v6.12`, `v5.12`, `v4.8`; improve test matrix; use `nvm install-latest-npm`; comment out OS X builds; pin included builds to LTS
|
||||
- [Tests] `parseInt`: add another test for NaN parsing (#433)
|
||||
- [Dev Deps] `uglify-js`: add `--support-ie8` and peg to v2.7.x since it doesn’t follow semver
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `jscs`, `uglify-js`, `semver`; remove `concurrently` (#421)
|
||||
|
||||
4.5.9
|
||||
- [Fix] parseInt and parseFloat should both accept null/undefined (#402)
|
||||
- [Tests] up to `node` `v6.2`
|
||||
|
|
2
app/bower_components/es5-shim/README.md
vendored
2
app/bower_components/es5-shim/README.md
vendored
|
@ -1,4 +1,4 @@
|
|||
#es5-shim <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
|
||||
# es5-shim <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
|
||||
|
||||
[![npm badge][npm-badge-png]][npm-url]
|
||||
|
||||
|
|
27
app/bower_components/es5-shim/es5-sham.js
vendored
27
app/bower_components/es5-shim/es5-sham.js
vendored
|
@ -42,12 +42,12 @@
|
|||
var lookupSetter;
|
||||
var supportsAccessors = owns(prototypeOfObject, '__defineGetter__');
|
||||
if (supportsAccessors) {
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
/* eslint-disable no-underscore-dangle, no-restricted-properties */
|
||||
defineGetter = call.bind(prototypeOfObject.__defineGetter__);
|
||||
defineSetter = call.bind(prototypeOfObject.__defineSetter__);
|
||||
lookupGetter = call.bind(prototypeOfObject.__lookupGetter__);
|
||||
lookupSetter = call.bind(prototypeOfObject.__lookupSetter__);
|
||||
/* eslint-enable no-underscore-dangle */
|
||||
/* eslint-enable no-underscore-dangle, no-restricted-properties */
|
||||
}
|
||||
|
||||
var isPrimitive = function isPrimitive(o) {
|
||||
|
@ -65,9 +65,8 @@
|
|||
// ... this will nerever possibly return null
|
||||
// ... Opera Mini breaks here with infinite loops
|
||||
Object.getPrototypeOf = function getPrototypeOf(object) {
|
||||
/* eslint-disable no-proto */
|
||||
// eslint-disable-next-line no-proto
|
||||
var proto = object.__proto__;
|
||||
/* eslint-enable no-proto */
|
||||
if (proto || proto === null) {
|
||||
return proto;
|
||||
} else if (toStr(object.constructor) === '[object Function]') {
|
||||
|
@ -99,8 +98,8 @@
|
|||
// check whether getOwnPropertyDescriptor works if it's given. Otherwise, shim partially.
|
||||
if (Object.defineProperty) {
|
||||
var getOwnPropertyDescriptorWorksOnObject = doesGetOwnPropertyDescriptorWork({});
|
||||
var getOwnPropertyDescriptorWorksOnDom = typeof document === 'undefined' ||
|
||||
doesGetOwnPropertyDescriptorWork(document.createElement('div'));
|
||||
var getOwnPropertyDescriptorWorksOnDom = typeof document === 'undefined'
|
||||
|| doesGetOwnPropertyDescriptorWork(document.createElement('div'));
|
||||
if (!getOwnPropertyDescriptorWorksOnDom || !getOwnPropertyDescriptorWorksOnObject) {
|
||||
var getOwnPropertyDescriptorFallback = Object.getOwnPropertyDescriptor;
|
||||
}
|
||||
|
@ -201,9 +200,9 @@
|
|||
// Contributed by Brandon Benvie, October, 2012
|
||||
var createEmpty;
|
||||
var supportsProto = !({ __proto__: null } instanceof Object);
|
||||
// the following produces false positives
|
||||
// in Opera Mini => not a reliable check
|
||||
// Object.prototype.__proto__ === null
|
||||
// the following produces false positives
|
||||
// in Opera Mini => not a reliable check
|
||||
// Object.prototype.__proto__ === null
|
||||
|
||||
// Check for document.domain and active x support
|
||||
// No need to use active x approach when document.domain is not set
|
||||
|
@ -252,9 +251,8 @@
|
|||
|
||||
iframe.style.display = 'none';
|
||||
parent.appendChild(iframe);
|
||||
/* eslint-disable no-script-url */
|
||||
// eslint-disable-next-line no-script-url
|
||||
iframe.src = 'javascript:';
|
||||
/* eslint-enable no-script-url */
|
||||
|
||||
empty = iframe.contentWindow.Object.prototype;
|
||||
parent.removeChild(iframe);
|
||||
|
@ -319,9 +317,8 @@
|
|||
// neither `__proto__`, but this manually setting `__proto__` will
|
||||
// guarantee that `Object.getPrototypeOf` will work as expected with
|
||||
// objects created using `Object.create`
|
||||
/* eslint-disable no-proto */
|
||||
// eslint-disable-next-line no-proto
|
||||
object.__proto__ = prototype;
|
||||
/* eslint-enable no-proto */
|
||||
}
|
||||
|
||||
if (properties !== void 0) {
|
||||
|
@ -357,8 +354,8 @@
|
|||
// shim partially.
|
||||
if (Object.defineProperty) {
|
||||
var definePropertyWorksOnObject = doesDefinePropertyWork({});
|
||||
var definePropertyWorksOnDom = typeof document === 'undefined' ||
|
||||
doesDefinePropertyWork(document.createElement('div'));
|
||||
var definePropertyWorksOnDom = typeof document === 'undefined'
|
||||
|| doesDefinePropertyWork(document.createElement('div'));
|
||||
if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {
|
||||
var definePropertyFallback = Object.defineProperty,
|
||||
definePropertiesFallback = Object.defineProperties;
|
||||
|
|
2
app/bower_components/es5-shim/es5-sham.map
vendored
2
app/bower_components/es5-shim/es5-sham.map
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
303
app/bower_components/es5-shim/es5-shim.js
vendored
303
app/bower_components/es5-shim/es5-shim.js
vendored
|
@ -340,6 +340,26 @@
|
|||
var toStr = call.bind(ObjectPrototype.toString);
|
||||
var arraySlice = call.bind(array_slice);
|
||||
var arraySliceApply = apply.bind(array_slice);
|
||||
/* globals document */
|
||||
if (typeof document === 'object' && document && document.documentElement) {
|
||||
try {
|
||||
arraySlice(document.documentElement.childNodes);
|
||||
} catch (e) {
|
||||
var origArraySlice = arraySlice;
|
||||
var origArraySliceApply = arraySliceApply;
|
||||
arraySlice = function arraySliceIE(arr) {
|
||||
var r = [];
|
||||
var i = arr.length;
|
||||
while (i-- > 0) {
|
||||
r[i] = arr[i];
|
||||
}
|
||||
return origArraySliceApply(r, origArraySlice(arguments, 1));
|
||||
};
|
||||
arraySliceApply = function arraySliceApplyIE(arr, args) {
|
||||
return origArraySliceApply(arraySlice(arr), args);
|
||||
};
|
||||
}
|
||||
}
|
||||
var strSlice = call.bind(StringPrototype.slice);
|
||||
var strSplit = call.bind(StringPrototype.split);
|
||||
var strIndexOf = call.bind(StringPrototype.indexOf);
|
||||
|
@ -933,10 +953,14 @@
|
|||
var sortIgnoresNonFunctions = (function () {
|
||||
try {
|
||||
[1, 2].sort(null);
|
||||
[1, 2].sort({});
|
||||
return true;
|
||||
} catch (e) {}
|
||||
return false;
|
||||
} catch (e) {
|
||||
try {
|
||||
[1, 2].sort({});
|
||||
} catch (e2) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}());
|
||||
var sortThrowsOnRegex = (function () {
|
||||
// this is a problem in Firefox 4, in which `typeof /a/ === 'function'`
|
||||
|
@ -975,24 +999,40 @@
|
|||
// http://es5.github.com/#x15.2.3.14
|
||||
|
||||
// http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
|
||||
var hasDontEnumBug = !isEnum({ 'toString': null }, 'toString');
|
||||
var hasDontEnumBug = !isEnum({ 'toString': null }, 'toString'); // jscs:ignore disallowQuotedKeysInObjects
|
||||
var hasProtoEnumBug = isEnum(function () {}, 'prototype');
|
||||
var hasStringEnumBug = !owns('x', '0');
|
||||
var equalsConstructorPrototype = function (o) {
|
||||
var ctor = o.constructor;
|
||||
return ctor && ctor.prototype === o;
|
||||
};
|
||||
var blacklistedKeys = {
|
||||
$window: true,
|
||||
var excludedKeys = {
|
||||
$applicationCache: true,
|
||||
$console: true,
|
||||
$parent: true,
|
||||
$self: true,
|
||||
$external: true,
|
||||
$frame: true,
|
||||
$frames: true,
|
||||
$frameElement: true,
|
||||
$frames: true,
|
||||
$innerHeight: true,
|
||||
$innerWidth: true,
|
||||
$outerHeight: true,
|
||||
$outerWidth: true,
|
||||
$pageXOffset: true,
|
||||
$pageYOffset: true,
|
||||
$parent: true,
|
||||
$scrollLeft: true,
|
||||
$scrollTop: true,
|
||||
$scrollX: true,
|
||||
$scrollY: true,
|
||||
$self: true,
|
||||
$webkitIndexedDB: true,
|
||||
$webkitStorageInfo: true,
|
||||
$external: true
|
||||
$window: true,
|
||||
|
||||
$width: true,
|
||||
$height: true,
|
||||
$top: true,
|
||||
$localStorage: true
|
||||
};
|
||||
var hasAutomationEqualityBug = (function () {
|
||||
/* globals window */
|
||||
|
@ -1001,7 +1041,7 @@
|
|||
}
|
||||
for (var k in window) {
|
||||
try {
|
||||
if (!blacklistedKeys['$' + k] && owns(window, k) && window[k] !== null && typeof window[k] === 'object') {
|
||||
if (!excludedKeys['$' + k] && owns(window, k) && window[k] !== null && typeof window[k] === 'object') {
|
||||
equalsConstructorPrototype(window[k]);
|
||||
}
|
||||
} catch (e) {
|
||||
|
@ -1037,12 +1077,12 @@
|
|||
return toStr(value) === '[object Arguments]';
|
||||
};
|
||||
var isLegacyArguments = function isArguments(value) {
|
||||
return value !== null &&
|
||||
typeof value === 'object' &&
|
||||
typeof value.length === 'number' &&
|
||||
value.length >= 0 &&
|
||||
!isArray(value) &&
|
||||
isCallable(value.callee);
|
||||
return value !== null
|
||||
&& typeof value === 'object'
|
||||
&& typeof value.length === 'number'
|
||||
&& value.length >= 0
|
||||
&& !isArray(value)
|
||||
&& isCallable(value.callee);
|
||||
};
|
||||
var isArguments = isStandardArguments(arguments) ? isStandardArguments : isLegacyArguments;
|
||||
|
||||
|
@ -1119,10 +1159,10 @@
|
|||
var timeZoneOffset = aNegativeTestDate.getTimezoneOffset();
|
||||
if (timeZoneOffset < -720) {
|
||||
hasToDateStringFormatBug = aNegativeTestDate.toDateString() !== 'Tue Jan 02 -45875';
|
||||
hasToStringFormatBug = !(/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/).test(aPositiveTestDate.toString());
|
||||
hasToStringFormatBug = !(/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/).test(String(aPositiveTestDate));
|
||||
} else {
|
||||
hasToDateStringFormatBug = aNegativeTestDate.toDateString() !== 'Mon Jan 01 -45875';
|
||||
hasToStringFormatBug = !(/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/).test(aPositiveTestDate.toString());
|
||||
hasToStringFormatBug = !(/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/).test(String(aPositiveTestDate));
|
||||
}
|
||||
|
||||
var originalGetFullYear = call.bind(Date.prototype.getFullYear);
|
||||
|
@ -1231,13 +1271,13 @@
|
|||
var hour = originalGetUTCHours(this);
|
||||
var minute = originalGetUTCMinutes(this);
|
||||
var second = originalGetUTCSeconds(this);
|
||||
return dayName[day] + ', ' +
|
||||
(date < 10 ? '0' + date : date) + ' ' +
|
||||
monthName[month] + ' ' +
|
||||
year + ' ' +
|
||||
(hour < 10 ? '0' + hour : hour) + ':' +
|
||||
(minute < 10 ? '0' + minute : minute) + ':' +
|
||||
(second < 10 ? '0' + second : second) + ' GMT';
|
||||
return dayName[day] + ', '
|
||||
+ (date < 10 ? '0' + date : date) + ' '
|
||||
+ monthName[month] + ' '
|
||||
+ year + ' '
|
||||
+ (hour < 10 ? '0' + hour : hour) + ':'
|
||||
+ (minute < 10 ? '0' + minute : minute) + ':'
|
||||
+ (second < 10 ? '0' + second : second) + ' GMT';
|
||||
}
|
||||
}, hasNegativeMonthYearBug || hasToUTCStringFormatBug);
|
||||
|
||||
|
@ -1251,10 +1291,10 @@
|
|||
var date = this.getDate();
|
||||
var month = this.getMonth();
|
||||
var year = this.getFullYear();
|
||||
return dayName[day] + ' ' +
|
||||
monthName[month] + ' ' +
|
||||
(date < 10 ? '0' + date : date) + ' ' +
|
||||
year;
|
||||
return dayName[day] + ' '
|
||||
+ monthName[month] + ' '
|
||||
+ (date < 10 ? '0' + date : date) + ' '
|
||||
+ year;
|
||||
}
|
||||
}, hasNegativeMonthYearBug || hasToDateStringFormatBug);
|
||||
|
||||
|
@ -1274,16 +1314,16 @@
|
|||
var timezoneOffset = this.getTimezoneOffset();
|
||||
var hoursOffset = Math.floor(Math.abs(timezoneOffset) / 60);
|
||||
var minutesOffset = Math.floor(Math.abs(timezoneOffset) % 60);
|
||||
return dayName[day] + ' ' +
|
||||
monthName[month] + ' ' +
|
||||
(date < 10 ? '0' + date : date) + ' ' +
|
||||
year + ' ' +
|
||||
(hour < 10 ? '0' + hour : hour) + ':' +
|
||||
(minute < 10 ? '0' + minute : minute) + ':' +
|
||||
(second < 10 ? '0' + second : second) + ' GMT' +
|
||||
(timezoneOffset > 0 ? '-' : '+') +
|
||||
(hoursOffset < 10 ? '0' + hoursOffset : hoursOffset) +
|
||||
(minutesOffset < 10 ? '0' + minutesOffset : minutesOffset);
|
||||
return dayName[day] + ' '
|
||||
+ monthName[month] + ' '
|
||||
+ (date < 10 ? '0' + date : date) + ' '
|
||||
+ year + ' '
|
||||
+ (hour < 10 ? '0' + hour : hour) + ':'
|
||||
+ (minute < 10 ? '0' + minute : minute) + ':'
|
||||
+ (second < 10 ? '0' + second : second) + ' GMT'
|
||||
+ (timezoneOffset > 0 ? '-' : '+')
|
||||
+ (hoursOffset < 10 ? '0' + hoursOffset : hoursOffset)
|
||||
+ (minutesOffset < 10 ? '0' + minutesOffset : minutesOffset);
|
||||
};
|
||||
if (supportsDescriptors) {
|
||||
$Object.defineProperty(Date.prototype, 'toString', {
|
||||
|
@ -1303,7 +1343,7 @@
|
|||
// this object is not a finite Number a RangeError exception is thrown.
|
||||
var negativeDate = -62198755200000;
|
||||
var negativeYearString = '-000001';
|
||||
var hasNegativeDateBug = Date.prototype.toISOString && new Date(negativeDate).toISOString().indexOf(negativeYearString) === -1;
|
||||
var hasNegativeDateBug = Date.prototype.toISOString && new Date(negativeDate).toISOString().indexOf(negativeYearString) === -1; // eslint-disable-line max-len
|
||||
var hasSafari51DateBug = Date.prototype.toISOString && new Date(-1).toISOString() !== '1969-12-31T23:59:59.999Z';
|
||||
|
||||
var getTime = call.bind(Date.prototype.getTime);
|
||||
|
@ -1320,13 +1360,19 @@
|
|||
var month = originalGetUTCMonth(this);
|
||||
// see https://github.com/es-shims/es5-shim/issues/111
|
||||
year += Math.floor(month / 12);
|
||||
month = (month % 12 + 12) % 12;
|
||||
month = ((month % 12) + 12) % 12;
|
||||
|
||||
// the date time string format is specified in 15.9.1.15.
|
||||
var result = [month + 1, originalGetUTCDate(this), originalGetUTCHours(this), originalGetUTCMinutes(this), originalGetUTCSeconds(this)];
|
||||
var result = [
|
||||
month + 1,
|
||||
originalGetUTCDate(this),
|
||||
originalGetUTCHours(this),
|
||||
originalGetUTCMinutes(this),
|
||||
originalGetUTCSeconds(this)
|
||||
];
|
||||
year = (
|
||||
(year < 0 ? '-' : (year > 9999 ? '+' : '')) +
|
||||
strSlice('00000' + Math.abs(year), (0 <= year && year <= 9999) ? -4 : -6)
|
||||
(year < 0 ? '-' : (year > 9999 ? '+' : ''))
|
||||
+ strSlice('00000' + Math.abs(year), (0 <= year && year <= 9999) ? -4 : -6)
|
||||
);
|
||||
|
||||
for (var i = 0; i < result.length; ++i) {
|
||||
|
@ -1335,9 +1381,9 @@
|
|||
}
|
||||
// pad milliseconds to have three digits.
|
||||
return (
|
||||
year + '-' + arraySlice(result, 0, 2).join('-') +
|
||||
'T' + arraySlice(result, 2).join(':') + '.' +
|
||||
strSlice('000' + originalGetUTCMilliseconds(this), -3) + 'Z'
|
||||
year + '-' + arraySlice(result, 0, 2).join('-')
|
||||
+ 'T' + arraySlice(result, 2).join(':') + '.'
|
||||
+ strSlice('000' + originalGetUTCMilliseconds(this), -3) + 'Z'
|
||||
);
|
||||
}
|
||||
}, hasNegativeDateBug || hasSafari51DateBug);
|
||||
|
@ -1348,10 +1394,10 @@
|
|||
// JSON.stringify (15.12.3).
|
||||
var dateToJSONIsSupported = (function () {
|
||||
try {
|
||||
return Date.prototype.toJSON &&
|
||||
new Date(NaN).toJSON() === null &&
|
||||
new Date(negativeDate).toJSON().indexOf(negativeYearString) !== -1 &&
|
||||
Date.prototype.toJSON.call({ // generic
|
||||
return Date.prototype.toJSON
|
||||
&& new Date(NaN).toJSON() === null
|
||||
&& new Date(negativeDate).toJSON().indexOf(negativeYearString) !== -1
|
||||
&& Date.prototype.toJSON.call({ // generic
|
||||
toISOString: function () { return true; }
|
||||
});
|
||||
} catch (e) {
|
||||
|
@ -1405,13 +1451,10 @@
|
|||
// XXX global assignment won't work in embeddings that use
|
||||
// an alternate object for the context.
|
||||
/* global Date: true */
|
||||
/* eslint-disable no-undef */
|
||||
var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1;
|
||||
var hasSafariSignedIntBug = isActualNaN(new Date(1970, 0, 1, 0, 0, 0, maxSafeUnsigned32Bit + 1).getTime());
|
||||
/* eslint-disable no-implicit-globals */
|
||||
// eslint-disable-next-line no-implicit-globals, no-global-assign
|
||||
Date = (function (NativeDate) {
|
||||
/* eslint-enable no-implicit-globals */
|
||||
/* eslint-enable no-undef */
|
||||
// Date.length === 7
|
||||
var DateShim = function Date(Y, M, D, h, m, s, ms) {
|
||||
var length = arguments.length;
|
||||
|
@ -1426,19 +1469,19 @@
|
|||
seconds += sToShift;
|
||||
millis -= sToShift * 1e3;
|
||||
}
|
||||
date = length === 1 && $String(Y) === Y ? // isString(Y)
|
||||
date = length === 1 && $String(Y) === Y // isString(Y)
|
||||
// We explicitly pass it through parse:
|
||||
new NativeDate(DateShim.parse(Y)) :
|
||||
? new NativeDate(DateShim.parse(Y))
|
||||
// We have to manually make calls depending on argument
|
||||
// length here
|
||||
length >= 7 ? new NativeDate(Y, M, D, h, m, seconds, millis) :
|
||||
length >= 6 ? new NativeDate(Y, M, D, h, m, seconds) :
|
||||
length >= 5 ? new NativeDate(Y, M, D, h, m) :
|
||||
length >= 4 ? new NativeDate(Y, M, D, h) :
|
||||
length >= 3 ? new NativeDate(Y, M, D) :
|
||||
length >= 2 ? new NativeDate(Y, M) :
|
||||
length >= 1 ? new NativeDate(Y instanceof NativeDate ? +Y : Y) :
|
||||
new NativeDate();
|
||||
: length >= 7 ? new NativeDate(Y, M, D, h, m, seconds, millis)
|
||||
: length >= 6 ? new NativeDate(Y, M, D, h, m, seconds)
|
||||
: length >= 5 ? new NativeDate(Y, M, D, h, m)
|
||||
: length >= 4 ? new NativeDate(Y, M, D, h)
|
||||
: length >= 3 ? new NativeDate(Y, M, D)
|
||||
: length >= 2 ? new NativeDate(Y, M)
|
||||
: length >= 1 ? new NativeDate(Y instanceof NativeDate ? +Y : Y)
|
||||
: new NativeDate();
|
||||
} else {
|
||||
date = NativeDate.apply(this, arguments);
|
||||
}
|
||||
|
@ -1450,38 +1493,37 @@
|
|||
};
|
||||
|
||||
// 15.9.1.15 Date Time String Format.
|
||||
var isoDateExpression = new RegExp('^' +
|
||||
'(\\d{4}|[+-]\\d{6})' + // four-digit year capture or sign +
|
||||
// 6-digit extended year
|
||||
'(?:-(\\d{2})' + // optional month capture
|
||||
'(?:-(\\d{2})' + // optional day capture
|
||||
'(?:' + // capture hours:minutes:seconds.milliseconds
|
||||
'T(\\d{2})' + // hours capture
|
||||
':(\\d{2})' + // minutes capture
|
||||
'(?:' + // optional :seconds.milliseconds
|
||||
':(\\d{2})' + // seconds capture
|
||||
'(?:(\\.\\d{1,}))?' + // milliseconds capture
|
||||
')?' +
|
||||
'(' + // capture UTC offset component
|
||||
'Z|' + // UTC capture
|
||||
'(?:' + // offset specifier +/-hours:minutes
|
||||
'([-+])' + // sign capture
|
||||
'(\\d{2})' + // hours offset capture
|
||||
':(\\d{2})' + // minutes offset capture
|
||||
')' +
|
||||
')?)?)?)?' +
|
||||
'$');
|
||||
var isoDateExpression = new RegExp('^'
|
||||
+ '(\\d{4}|[+-]\\d{6})' // four-digit year capture or sign + 6-digit extended year
|
||||
+ '(?:-(\\d{2})' // optional month capture
|
||||
+ '(?:-(\\d{2})' // optional day capture
|
||||
+ '(?:' // capture hours:minutes:seconds.milliseconds
|
||||
+ 'T(\\d{2})' // hours capture
|
||||
+ ':(\\d{2})' // minutes capture
|
||||
+ '(?:' // optional :seconds.milliseconds
|
||||
+ ':(\\d{2})' // seconds capture
|
||||
+ '(?:(\\.\\d{1,}))?' // milliseconds capture
|
||||
+ ')?'
|
||||
+ '(' // capture UTC offset component
|
||||
+ 'Z|' // UTC capture
|
||||
+ '(?:' // offset specifier +/-hours:minutes
|
||||
+ '([-+])' // sign capture
|
||||
+ '(\\d{2})' // hours offset capture
|
||||
+ ':(\\d{2})' // minutes offset capture
|
||||
+ ')'
|
||||
+ ')?)?)?)?'
|
||||
+ '$');
|
||||
|
||||
var months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
|
||||
|
||||
var dayFromMonth = function dayFromMonth(year, month) {
|
||||
var t = month > 1 ? 1 : 0;
|
||||
return (
|
||||
months[month] +
|
||||
Math.floor((year - 1969 + t) / 4) -
|
||||
Math.floor((year - 1901 + t) / 100) +
|
||||
Math.floor((year - 1601 + t) / 400) +
|
||||
365 * (year - 1970)
|
||||
months[month]
|
||||
+ Math.floor((year - 1969 + t) / 4)
|
||||
- Math.floor((year - 1901 + t) / 100)
|
||||
+ Math.floor((year - 1601 + t) / 400)
|
||||
+ (365 * (year - 1970))
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -1511,9 +1553,7 @@
|
|||
UTC: NativeDate.UTC
|
||||
}, true);
|
||||
DateShim.prototype = NativeDate.prototype;
|
||||
defineProperties(DateShim.prototype, {
|
||||
constructor: DateShim
|
||||
}, true);
|
||||
defineProperties(DateShim.prototype, { constructor: DateShim }, true);
|
||||
|
||||
// Upgrade Date.parse to handle simplified ISO 8601 strings
|
||||
var parseShim = function parse(string) {
|
||||
|
@ -1539,22 +1579,22 @@
|
|||
result;
|
||||
var hasMinutesOrSecondsOrMilliseconds = minute > 0 || second > 0 || millisecond > 0;
|
||||
if (
|
||||
hour < (hasMinutesOrSecondsOrMilliseconds ? 24 : 25) &&
|
||||
minute < 60 && second < 60 && millisecond < 1000 &&
|
||||
month > -1 && month < 12 && hourOffset < 24 &&
|
||||
minuteOffset < 60 && // detect invalid offsets
|
||||
day > -1 &&
|
||||
day < (dayFromMonth(year, month + 1) - dayFromMonth(year, month))
|
||||
hour < (hasMinutesOrSecondsOrMilliseconds ? 24 : 25)
|
||||
&& minute < 60 && second < 60 && millisecond < 1000
|
||||
&& month > -1 && month < 12 && hourOffset < 24
|
||||
&& minuteOffset < 60 // detect invalid offsets
|
||||
&& day > -1
|
||||
&& day < (dayFromMonth(year, month + 1) - dayFromMonth(year, month))
|
||||
) {
|
||||
result = (
|
||||
(dayFromMonth(year, month) + day) * 24 +
|
||||
hour +
|
||||
hourOffset * signOffset
|
||||
((dayFromMonth(year, month) + day) * 24)
|
||||
+ hour
|
||||
+ (hourOffset * signOffset)
|
||||
) * 60;
|
||||
result = (
|
||||
(result + minute + minuteOffset * signOffset) * 60 +
|
||||
second
|
||||
) * 1000 + millisecond;
|
||||
result = ((
|
||||
((result + minute + (minuteOffset * signOffset)) * 60)
|
||||
+ second
|
||||
) * 1000) + millisecond;
|
||||
if (isLocalTime) {
|
||||
result = toUTC(result);
|
||||
}
|
||||
|
@ -1589,10 +1629,10 @@
|
|||
// ES5.1 15.7.4.5
|
||||
// http://es5.github.com/#x15.7.4.5
|
||||
var hasToFixedBugs = NumberPrototype.toFixed && (
|
||||
(0.00008).toFixed(3) !== '0.000' ||
|
||||
(0.9).toFixed(0) !== '1' ||
|
||||
(1.255).toFixed(2) !== '1.25' ||
|
||||
(1000000000000000128).toFixed(0) !== '1000000000000000128'
|
||||
(0.00008).toFixed(3) !== '0.000'
|
||||
|| (0.9).toFixed(0) !== '1'
|
||||
|| (1.255).toFixed(2) !== '1.25'
|
||||
|| (1000000000000000128).toFixed(0) !== '1000000000000000128'
|
||||
);
|
||||
|
||||
var toFixedHelpers = {
|
||||
|
@ -1770,12 +1810,12 @@
|
|||
// '.'.split(/()()/) should be ["."], not ["", "", "."]
|
||||
|
||||
if (
|
||||
'ab'.split(/(?:ab)*/).length !== 2 ||
|
||||
'.'.split(/(.?)(.?)/).length !== 4 ||
|
||||
'tesst'.split(/(s)*/)[1] === 't' ||
|
||||
'test'.split(/(?:)/, -1).length !== 4 ||
|
||||
''.split(/.?/).length ||
|
||||
'.'.split(/()()/).length > 1
|
||||
'ab'.split(/(?:ab)*/).length !== 2
|
||||
|| '.'.split(/(.?)(.?)/).length !== 4
|
||||
|| 'tesst'.split(/(s)*/)[1] === 't'
|
||||
|| 'test'.split(/(?:)/, -1).length !== 4
|
||||
|| ''.split(/.?/).length
|
||||
|| '.'.split(/()()/).length > 1
|
||||
) {
|
||||
(function () {
|
||||
var compliantExecNpcg = typeof (/()??/).exec('')[1] === 'undefined'; // NPCG: nonparticipating capturing group
|
||||
|
@ -1793,10 +1833,10 @@
|
|||
}
|
||||
|
||||
var output = [];
|
||||
var flags = (separator.ignoreCase ? 'i' : '') +
|
||||
(separator.multiline ? 'm' : '') +
|
||||
(separator.unicode ? 'u' : '') + // in ES6
|
||||
(separator.sticky ? 'y' : ''), // Firefox 3+ and ES6
|
||||
var flags = (separator.ignoreCase ? 'i' : '')
|
||||
+ (separator.multiline ? 'm' : '')
|
||||
+ (separator.unicode ? 'u' : '') // in ES6
|
||||
+ (separator.sticky ? 'y' : ''), // Firefox 3+ and ES6
|
||||
lastLastIndex = 0,
|
||||
// Make `global` and avoid `lastIndex` issues by working with a copy
|
||||
separator2, match, lastIndex, lastLength;
|
||||
|
@ -1921,9 +1961,9 @@
|
|||
|
||||
// ES5 15.5.4.20
|
||||
// whitespace from: http://es5.github.io/#x15.5.4.20
|
||||
var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
|
||||
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' +
|
||||
'\u2029\uFEFF';
|
||||
var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003'
|
||||
+ '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028'
|
||||
+ '\u2029\uFEFF';
|
||||
var zeroWidth = '\u200b';
|
||||
var wsRegexChars = '[' + ws + ']';
|
||||
var trimBeginRegexp = new RegExp('^' + wsRegexChars + wsRegexChars + '*');
|
||||
|
@ -1973,13 +2013,18 @@
|
|||
}, StringPrototype.lastIndexOf.length !== 1);
|
||||
|
||||
// ES-5 15.1.2.2
|
||||
/* eslint-disable radix */
|
||||
// eslint-disable-next-line radix
|
||||
if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22) {
|
||||
/* eslint-enable radix */
|
||||
/* global parseInt: true */
|
||||
parseInt = (function (origParseInt) {
|
||||
var hexRegex = /^[\-+]?0[xX]/;
|
||||
var hexRegex = /^[-+]?0[xX]/;
|
||||
return function parseInt(str, radix) {
|
||||
if (typeof str === 'symbol') {
|
||||
// handle Symbols in node 8.3/8.4
|
||||
// eslint-disable-next-line no-implicit-coercion, no-unused-expressions
|
||||
'' + str; // jscs:ignore disallowImplicitTypeConversion
|
||||
}
|
||||
|
||||
var string = trim(String(str));
|
||||
var defaultedRadix = $Number(radix) || (hexRegex.test(string) ? 16 : 10);
|
||||
return origParseInt(string, defaultedRadix);
|
||||
|
|
2
app/bower_components/es5-shim/es5-shim.map
vendored
2
app/bower_components/es5-shim/es5-shim.map
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
34
app/bower_components/es5-shim/package.json
vendored
34
app/bower_components/es5-shim/package.json
vendored
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "es5-shim",
|
||||
"version": "4.5.9",
|
||||
"version": "4.5.12",
|
||||
"description": "ECMAScript 5 compatibility shims for legacy JavaScript engines",
|
||||
"homepage": "http://github.com/es-shims/es5-shim/",
|
||||
"contributors": [
|
||||
|
@ -22,26 +22,26 @@
|
|||
"url": "http://github.com/es-shims/es5-shim.git"
|
||||
},
|
||||
"scripts": {
|
||||
"minify": "concurrently --raw 'npm run --silent minify-shim' 'npm run --silent minify-sham'",
|
||||
"minify-shim": "uglifyjs es5-shim.js --keep-fnames --comments --source-map=es5-shim.map -m -b ascii_only=true,beautify=false > es5-shim.min.js",
|
||||
"minify-sham": "uglifyjs es5-sham.js --keep-fnames --comments --source-map=es5-sham.map -m -b ascii_only=true,beautify=false > es5-sham.min.js",
|
||||
"prepublish": "npm run minify",
|
||||
"minify": "npm run --silent minify-shim && npm run --silent minify-sham",
|
||||
"minify-shim": "uglifyjs es5-shim.js --support-ie8 --keep-fnames --comments --source-map=es5-shim.map -m -b ascii_only=true,beautify=false | sed 's/0xde0b6b3a7640080/1000000000000000128/' > es5-shim.min.js",
|
||||
"minify-sham": "uglifyjs es5-sham.js --support-ie8 --keep-fnames --comments --source-map=es5-sham.map -m -b ascii_only=true,beautify=false > es5-sham.min.js",
|
||||
"pretest": "npm run --silent lint",
|
||||
"test": "npm run --silent tests-only",
|
||||
"tests-only": "jasmine-node --matchall ./ tests/spec/",
|
||||
"test-native": "jasmine-node --matchall tests/spec/",
|
||||
"lint": "concurrently --raw 'npm run --silent jscs' 'npm run --silent eslint'",
|
||||
"lint": "npm run --silent jscs && npm run --silent eslint",
|
||||
"eslint": "eslint tests/helpers/*.js tests/spec/*.js es5-shim.js es5-sham.js",
|
||||
"jscs": "jscs tests/helpers/*.js tests/spec/*.js es5-shim.js es5-sham.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^2.12.0",
|
||||
"@ljharb/eslint-config": "^5.0.0",
|
||||
"jasmine-node": "^1.14.5",
|
||||
"jscs": "^3.0.4",
|
||||
"uglify-js": "^2.6.2",
|
||||
"replace": "^0.3.0",
|
||||
"semver": "^5.1.0",
|
||||
"concurrently": "^2.1.0"
|
||||
"@ljharb/eslint-config": "^13.0.0",
|
||||
"eslint": "^5.5.0",
|
||||
"jasmine-node": "^1.13.1",
|
||||
"jscs": "^3.0.7",
|
||||
"replace": "^1.0.0",
|
||||
"semver": "^5.5.1",
|
||||
"uglify-js": "2.7.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.4.0"
|
||||
|
@ -70,6 +70,10 @@
|
|||
"javascript",
|
||||
"ecmascript",
|
||||
"polyfill"
|
||||
]
|
||||
],
|
||||
"greenkeeper": {
|
||||
"ignore": [
|
||||
"uglify-js"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue