Skip to content

Commit 5460a35

Browse files
committed
Update the stackgl bundle
1 parent 2d3bdfc commit 5460a35

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

stackgl_modules/index.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ var __webpack_unused_export__;
3737

3838

3939

40-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4140
var base64 = __webpack_require__(7507);
4241
var ieee754 = __webpack_require__(3778);
4342
var customInspectSymbol = typeof Symbol === 'function' && typeof Symbol['for'] === 'function' // eslint-disable-line dot-notation
@@ -72,7 +71,7 @@ function typedArraySupport() {
7271
try {
7372
var arr = new Uint8Array(1);
7473
var proto = {
75-
foo: function foo() {
74+
foo: function () {
7675
return 42;
7776
}
7877
};
@@ -85,14 +84,14 @@ function typedArraySupport() {
8584
}
8685
Object.defineProperty(Buffer.prototype, 'parent', {
8786
enumerable: true,
88-
get: function get() {
87+
get: function () {
8988
if (!Buffer.isBuffer(this)) return undefined;
9089
return this.buffer;
9190
}
9291
});
9392
Object.defineProperty(Buffer.prototype, 'offset', {
9493
enumerable: true,
95-
get: function get() {
94+
get: function () {
9695
if (!Buffer.isBuffer(this)) return undefined;
9796
return this.byteOffset;
9897
}
@@ -137,7 +136,7 @@ function from(value, encodingOrOffset, length) {
137136
return fromArrayView(value);
138137
}
139138
if (value == null) {
140-
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + _typeof(value));
139+
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + typeof value);
141140
}
142141
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
143142
return fromArrayBuffer(value, encodingOrOffset, length);
@@ -157,7 +156,7 @@ function from(value, encodingOrOffset, length) {
157156
if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === 'function') {
158157
return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length);
159158
}
160-
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + _typeof(value));
159+
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + typeof value);
161160
}
162161

163162
/**
@@ -391,7 +390,7 @@ function byteLength(string, encoding) {
391390
return string.byteLength;
392391
}
393392
if (typeof string !== 'string') {
394-
throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + 'Received type ' + _typeof(string));
393+
throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + 'Received type ' + typeof string);
395394
}
396395
var len = string.length;
397396
var mustMatch = arguments.length > 2 && arguments[2] === true;
@@ -559,7 +558,7 @@ Buffer.prototype.compare = function compare(target, start, end, thisStart, thisE
559558
target = Buffer.from(target, target.offset, target.byteLength);
560559
}
561560
if (!Buffer.isBuffer(target)) {
562-
throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. ' + 'Received type ' + _typeof(target));
561+
throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. ' + 'Received type ' + typeof target);
563562
}
564563
if (start === undefined) {
565564
start = 0;
@@ -1547,18 +1546,18 @@ var hexSliceLookupTable = function () {
15471546
module.exports = isMobile;
15481547
module.exports.isMobile = isMobile;
15491548
module.exports["default"] = isMobile;
1550-
var mobileRE = /(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i;
1551-
var notMobileRE = /CrOS/;
1552-
var tabletRE = /android|ipad|playbook|silk/i;
1549+
const mobileRE = /(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i;
1550+
const notMobileRE = /CrOS/;
1551+
const tabletRE = /android|ipad|playbook|silk/i;
15531552
function isMobile(opts) {
15541553
if (!opts) opts = {};
1555-
var ua = opts.ua;
1554+
let ua = opts.ua;
15561555
if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent;
15571556
if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {
15581557
ua = ua.headers['user-agent'];
15591558
}
15601559
if (typeof ua !== 'string') return false;
1561-
var result = mobileRE.test(ua) && !notMobileRE.test(ua) || !!opts.tablet && tabletRE.test(ua);
1560+
let result = mobileRE.test(ua) && !notMobileRE.test(ua) || !!opts.tablet && tabletRE.test(ua);
15621561
if (!result && opts.tablet && opts.featureDetect && navigator && navigator.maxTouchPoints > 1 && ua.indexOf('Macintosh') !== -1 && ua.indexOf('Safari') !== -1) {
15631562
result = true;
15641563
}

0 commit comments

Comments
 (0)