0.3.3 外网下载修复
This commit is contained in:
+120
-120
@@ -13,7 +13,7 @@ const {
|
||||
}
|
||||
} = require('../utils/utils');
|
||||
|
||||
/* eslint-disable quote-props */
|
||||
|
||||
const SpecialValues = {
|
||||
true: true,
|
||||
false: false,
|
||||
@@ -258,7 +258,7 @@ module.exports = Anchor;
|
||||
},{"../utils/col-cache":19}],3:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
const colCache = require('../utils/col-cache');
|
||||
const _ = require('../utils/under-dash');
|
||||
const Enums = require('./enums');
|
||||
@@ -2127,7 +2127,7 @@ class Row {
|
||||
// Inform Streaming Writer that this row (and all rows before it) are complete
|
||||
// and ready to write. Has no effect on Worksheet document
|
||||
commit() {
|
||||
this._worksheet._commitRow(this); // eslint-disable-line no-underscore-dangle
|
||||
this._worksheet._commitRow(this);
|
||||
}
|
||||
|
||||
// helps GC by breaking cyclic references
|
||||
@@ -2189,12 +2189,12 @@ class Row {
|
||||
cDst = this.getCell(i);
|
||||
cDst.value = cSrc.value;
|
||||
cDst.style = cSrc.style;
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
|
||||
cDst._comment = cSrc._comment;
|
||||
} else if (cDst) {
|
||||
cDst.value = null;
|
||||
cDst.style = {};
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
|
||||
cDst._comment = undefined;
|
||||
}
|
||||
}
|
||||
@@ -2206,7 +2206,7 @@ class Row {
|
||||
cDst = this.getCell(i + nExpand);
|
||||
cDst.value = cSrc.value;
|
||||
cDst.style = cSrc.style;
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
|
||||
cDst._comment = cSrc._comment;
|
||||
} else {
|
||||
this._cells[i + nExpand - 1] = undefined;
|
||||
@@ -2219,7 +2219,7 @@ class Row {
|
||||
cDst = this.getCell(start + i);
|
||||
cDst.value = inserts[i];
|
||||
cDst.style = {};
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
|
||||
cDst._comment = undefined;
|
||||
}
|
||||
}
|
||||
@@ -2486,7 +2486,7 @@ module.exports = Row;
|
||||
},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
const colCache = require('../utils/col-cache');
|
||||
class Column {
|
||||
// wrapper around column model, allowing access and manipulation
|
||||
@@ -2500,7 +2500,7 @@ class Column {
|
||||
this.column[name] = value;
|
||||
}
|
||||
|
||||
/* eslint-disable lines-between-class-members */
|
||||
|
||||
get name() {
|
||||
return this.column.name;
|
||||
}
|
||||
@@ -2543,7 +2543,7 @@ class Column {
|
||||
set totalsRowFormula(value) {
|
||||
this._set('totalsRowFormula', value);
|
||||
}
|
||||
/* eslint-enable lines-between-class-members */
|
||||
|
||||
}
|
||||
|
||||
class Table {
|
||||
@@ -2861,7 +2861,7 @@ class Table {
|
||||
target[prop] = value;
|
||||
}
|
||||
|
||||
/* eslint-disable lines-between-class-members */
|
||||
|
||||
get ref() {
|
||||
return this.table.ref;
|
||||
}
|
||||
@@ -2922,7 +2922,7 @@ class Table {
|
||||
set showColumnStripes(value) {
|
||||
this.table.style.showColumnStripes = value;
|
||||
}
|
||||
/* eslint-enable lines-between-class-members */
|
||||
|
||||
}
|
||||
|
||||
module.exports = Table;
|
||||
@@ -2982,7 +2982,7 @@ class Workbook {
|
||||
// if options is a color, call it tabColor (and signal deprecated message)
|
||||
if (options) {
|
||||
if (typeof options === 'string') {
|
||||
// eslint-disable-next-line no-console
|
||||
|
||||
console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }');
|
||||
options = {
|
||||
properties: {
|
||||
@@ -2992,7 +2992,7 @@ class Workbook {
|
||||
}
|
||||
};
|
||||
} else if (options.argb || options.theme || options.indexed) {
|
||||
// eslint-disable-next-line no-console
|
||||
|
||||
console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }');
|
||||
options = {
|
||||
properties: {
|
||||
@@ -3276,7 +3276,7 @@ class Worksheet {
|
||||
throw new Error(`The first or last character of worksheet name cannot be a single quotation mark: ${name}`);
|
||||
}
|
||||
if (name && name.length > 31) {
|
||||
// eslint-disable-next-line no-console
|
||||
|
||||
console.warn(`Worksheet name ${name} exceeds 31 chars. This will be truncated`);
|
||||
name = name.substring(0, 31);
|
||||
}
|
||||
@@ -3378,12 +3378,12 @@ class Worksheet {
|
||||
// must iterate over all rows whether they exist yet or not
|
||||
for (let i = 0; i < nRows; i++) {
|
||||
const rowArguments = [start, count];
|
||||
// eslint-disable-next-line no-loop-func
|
||||
|
||||
inserts.forEach(insert => {
|
||||
rowArguments.push(insert[i] || null);
|
||||
});
|
||||
const row = this.getRow(i + 1);
|
||||
// eslint-disable-next-line prefer-spread
|
||||
|
||||
row.splice.apply(row, rowArguments);
|
||||
}
|
||||
} else {
|
||||
@@ -3559,7 +3559,7 @@ class Worksheet {
|
||||
const rSrc = this.getRow(src);
|
||||
const rDst = this.getRow(dest);
|
||||
rDst.style = copyStyle(rSrc.style);
|
||||
// eslint-disable-next-line no-loop-func
|
||||
|
||||
rSrc.eachCell({
|
||||
includeEmpty: styleEmpty
|
||||
}, (cell, colNumber) => {
|
||||
@@ -3581,7 +3581,7 @@ class Worksheet {
|
||||
const rDst = this._rows[rowNum + i];
|
||||
rDst.style = rSrc.style;
|
||||
rDst.height = rSrc.height;
|
||||
// eslint-disable-next-line no-loop-func
|
||||
|
||||
rSrc.eachCell({
|
||||
includeEmpty: true
|
||||
}, (cell, colNumber) => {
|
||||
@@ -3612,7 +3612,7 @@ class Worksheet {
|
||||
rDst.values = rSrc.values;
|
||||
rDst.style = rSrc.style;
|
||||
rDst.height = rSrc.height;
|
||||
// eslint-disable-next-line no-loop-func
|
||||
|
||||
rSrc.eachCell({
|
||||
includeEmpty: true
|
||||
}, (cell, colNumber) => {
|
||||
@@ -3632,7 +3632,7 @@ class Worksheet {
|
||||
rDst.values = rSrc.values;
|
||||
rDst.style = rSrc.style;
|
||||
rDst.height = rSrc.height;
|
||||
// eslint-disable-next-line no-loop-func
|
||||
|
||||
rSrc.eachCell({
|
||||
includeEmpty: true
|
||||
}, (cell, colNumber) => {
|
||||
@@ -3818,7 +3818,7 @@ class Worksheet {
|
||||
if (Array.isArray(results[0])) {
|
||||
getResult = (row, col) => results[row - top][col - left];
|
||||
} else {
|
||||
// eslint-disable-next-line no-mixed-operators
|
||||
|
||||
getResult = (row, col) => results[(row - top) * width + (col - left)];
|
||||
}
|
||||
} else {
|
||||
@@ -3937,12 +3937,12 @@ class Worksheet {
|
||||
// ===========================================================================
|
||||
// Deprecated
|
||||
get tabColor() {
|
||||
// eslint-disable-next-line no-console
|
||||
|
||||
console.trace('worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor');
|
||||
return this.properties.tabColor;
|
||||
}
|
||||
set tabColor(value) {
|
||||
// eslint-disable-next-line no-console
|
||||
|
||||
console.trace('worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor');
|
||||
this.properties.tabColor = value;
|
||||
}
|
||||
@@ -4034,7 +4034,7 @@ module.exports = Worksheet;
|
||||
},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable import/no-extraneous-dependencies,node/no-unpublished-require */
|
||||
/* eslint-disable node/no-unpublished-require */
|
||||
require('core-js/modules/es.promise');
|
||||
require('core-js/modules/es.promise.finally');
|
||||
require('core-js/modules/es.object.assign');
|
||||
@@ -4713,7 +4713,7 @@ module.exports = {
|
||||
(function (process,Buffer){(function (){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
const Stream = require('readable-stream');
|
||||
const utils = require('./utils');
|
||||
const StringBuf = require('./string-buf');
|
||||
@@ -4750,7 +4750,7 @@ class StringBufChunk {
|
||||
|
||||
// copy to target buffer
|
||||
copy(target, targetOffset, offset, length) {
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
|
||||
return this._data._buf.copy(target, targetOffset, offset, length);
|
||||
}
|
||||
toBuffer() {
|
||||
@@ -5123,7 +5123,7 @@ class StringBuf {
|
||||
if (this.length + inBuf.length > this.capacity) {
|
||||
this._grow(this.length + inBuf.length);
|
||||
}
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
|
||||
inBuf._buf.copy(this._buf, this._inPos, 0, inBuf.length);
|
||||
this._inPos += inBuf.length;
|
||||
}
|
||||
@@ -5277,7 +5277,7 @@ const _ = {
|
||||
const {
|
||||
length
|
||||
} = arguments;
|
||||
// eslint-disable-next-line one-var
|
||||
|
||||
let src, clone, copyIsArray;
|
||||
function assignValue(val, key) {
|
||||
src = target[key];
|
||||
@@ -5310,7 +5310,7 @@ const fs = require('fs');
|
||||
|
||||
// useful stuff
|
||||
const inherits = function (cls, superCtor, statics, prototype) {
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
|
||||
cls.super_ = superCtor;
|
||||
if (!prototype) {
|
||||
prototype = statics;
|
||||
@@ -5337,7 +5337,7 @@ const inherits = function (cls, superCtor, statics, prototype) {
|
||||
cls.prototype = Object.create(superCtor.prototype, properties);
|
||||
};
|
||||
|
||||
// eslint-disable-next-line no-control-regex
|
||||
|
||||
const xmlDecodeRegex = /[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/;
|
||||
const utils = {
|
||||
nop() {},
|
||||
@@ -5969,7 +5969,7 @@ const parseSax = require('../../utils/parse-sax');
|
||||
const XmlStream = require('../../utils/xml-stream');
|
||||
|
||||
/* 'virtual' methods used as a form of documentation */
|
||||
/* eslint-disable class-methods-use-this */
|
||||
|
||||
|
||||
// Base class for Xforms
|
||||
class BaseXform {
|
||||
@@ -7232,7 +7232,7 @@ module.exports = VmlTextboxXform;
|
||||
const BaseXform = require('./base-xform');
|
||||
|
||||
/* 'virtual' methods used as a form of documentation */
|
||||
/* eslint-disable class-methods-use-this */
|
||||
|
||||
|
||||
// base class for xforms that are composed of other xforms
|
||||
// offers some default implementations
|
||||
@@ -10169,7 +10169,7 @@ module.exports = DatabarXform;
|
||||
},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
const BaseXform = require('../../base-xform');
|
||||
const CompositeXform = require('../../composite-xform');
|
||||
class X14IdXform extends BaseXform {
|
||||
@@ -10697,7 +10697,7 @@ module.exports = DrawingXform;
|
||||
},{"../base-xform":32}],96:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
const CompositeXform = require('../composite-xform');
|
||||
const ConditionalFormattingsExt = require('./cf-ext/conditional-formattings-ext-xform');
|
||||
class ExtXform extends CompositeXform {
|
||||
@@ -13309,7 +13309,7 @@ module.exports = AlignmentXform;
|
||||
},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
const BaseXform = require('../base-xform');
|
||||
const utils = require('../../../utils/utils');
|
||||
const ColorXform = require('./color-xform');
|
||||
@@ -13669,7 +13669,7 @@ module.exports = DxfXform;
|
||||
},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
const BaseXform = require('../base-xform');
|
||||
const ColorXform = require('./color-xform');
|
||||
class StopXform extends BaseXform {
|
||||
@@ -14387,7 +14387,7 @@ module.exports = StyleXform;
|
||||
},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
const Enums = require('../../../doc/enums');
|
||||
const XmlStream = require('../../../utils/xml-stream');
|
||||
const BaseXform = require('../base-xform');
|
||||
@@ -15739,7 +15739,7 @@ class XLSX {
|
||||
};
|
||||
const zip = await JSZip.loadAsync(buffer);
|
||||
for (const entry of Object.values(zip.files)) {
|
||||
/* eslint-disable no-await-in-loop */
|
||||
|
||||
if (!entry.dir) {
|
||||
let entryName = entry.name;
|
||||
if (entryName[0] === '/') {
|
||||
@@ -16417,7 +16417,7 @@ class RowFormatter {
|
||||
}
|
||||
return Object.keys(row);
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||||
|
||||
static createTransform(transformFunction) {
|
||||
if (types_1.isSyncTransform(transformFunction)) {
|
||||
return (row, cb) => {
|
||||
@@ -16670,7 +16670,7 @@ exports.writeToPath = (path, rows, options) => {
|
||||
},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,"buffer":220,"fs":216,"stream":505,"util":527}],152:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
@@ -16723,7 +16723,7 @@ class CsvParserStream extends stream_1.Transform {
|
||||
this.rowTransformerValidator.rowValidator = validateFunction;
|
||||
return this;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
emit(event) {
|
||||
if (event === 'end') {
|
||||
if (!this.endEmitted) {
|
||||
@@ -16891,7 +16891,7 @@ class CsvParserStream extends stream_1.Transform {
|
||||
}
|
||||
static wrapDoneCallback(done) {
|
||||
let errorCalled = false;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
return function (err) {
|
||||
if (err) {
|
||||
if (errorCalled) {
|
||||
@@ -17726,7 +17726,7 @@ class HeaderTransformer {
|
||||
const header = headers[i];
|
||||
if (!lodash_isundefined_1.default(header)) {
|
||||
const val = row[i];
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
|
||||
if (lodash_isundefined_1.default(val)) {
|
||||
rowMap[header] = '';
|
||||
} else {
|
||||
@@ -17770,7 +17770,7 @@ class RowTransformerValidator {
|
||||
this._rowTransform = null;
|
||||
this._rowValidator = null;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||||
|
||||
static createTransform(transformFunction) {
|
||||
if (types_1.isSyncTransform(transformFunction)) {
|
||||
return (row, cb) => {
|
||||
@@ -27529,7 +27529,7 @@ module.exports = function xor(a, b) {
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
/* eslint-disable no-proto */
|
||||
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -27795,7 +27795,7 @@ function checked(length) {
|
||||
}
|
||||
function SlowBuffer(length) {
|
||||
if (+length != length) {
|
||||
// eslint-disable-line eqeqeq
|
||||
|
||||
length = 0;
|
||||
}
|
||||
return Buffer.alloc(+length);
|
||||
@@ -29015,7 +29015,7 @@ function isInstance(obj, type) {
|
||||
}
|
||||
function numberIsNaN(obj) {
|
||||
// For IE11 support
|
||||
return obj !== obj; // eslint-disable-line no-self-compare
|
||||
return obj !== obj;
|
||||
}
|
||||
|
||||
}).call(this)}).call(this,require("buffer").Buffer)
|
||||
@@ -29207,10 +29207,10 @@ var createMethod = function (IS_INCLUDES) {
|
||||
var index = toAbsoluteIndex(fromIndex, length);
|
||||
var value;
|
||||
// Array#includes uses SameValueZero equality algorithm
|
||||
// eslint-disable-next-line no-self-compare -- NaN check
|
||||
|
||||
if (IS_INCLUDES && el !== el) while (length > index) {
|
||||
value = O[index++];
|
||||
// eslint-disable-next-line no-self-compare -- NaN check
|
||||
|
||||
if (value !== value) return true;
|
||||
// Array#indexOf ignores holes, Array#includes - not
|
||||
} else for (;length > index; index++) {
|
||||
@@ -29385,7 +29385,7 @@ try {
|
||||
iteratorWithReturn[ITERATOR] = function () {
|
||||
return this;
|
||||
};
|
||||
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
||||
// eslint-disable-next-line es/no-array-from -- required for testing
|
||||
Array.from(iteratorWithReturn, function () { throw 2; });
|
||||
} catch (error) { /* empty */ }
|
||||
|
||||
@@ -29825,7 +29825,7 @@ var fails = require('../internals/fails');
|
||||
module.exports = !fails(function () {
|
||||
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
||||
var test = (function () { /* empty */ }).bind();
|
||||
// eslint-disable-next-line no-prototype-builtins -- safe
|
||||
|
||||
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
||||
});
|
||||
|
||||
@@ -29998,10 +29998,10 @@ module.exports =
|
||||
// eslint-disable-next-line es/no-global-this -- safe
|
||||
check(typeof globalThis == 'object' && globalThis) ||
|
||||
check(typeof window == 'object' && window) ||
|
||||
// eslint-disable-next-line no-restricted-globals -- safe
|
||||
|
||||
check(typeof self == 'object' && self) ||
|
||||
check(typeof global == 'object' && global) ||
|
||||
// eslint-disable-next-line no-new-func -- fallback
|
||||
|
||||
(function () { return this; })() || this || Function('return this')();
|
||||
|
||||
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
||||
@@ -30028,7 +30028,7 @@ module.exports = {};
|
||||
'use strict';
|
||||
module.exports = function (a, b) {
|
||||
try {
|
||||
// eslint-disable-next-line no-console -- safe
|
||||
|
||||
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
||||
} catch (error) { /* empty */ }
|
||||
};
|
||||
@@ -30065,7 +30065,7 @@ var split = uncurryThis(''.split);
|
||||
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
||||
module.exports = fails(function () {
|
||||
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
||||
// eslint-disable-next-line no-prototype-builtins -- safe
|
||||
|
||||
return !$Object('z').propertyIsEnumerable(0);
|
||||
}) ? function (it) {
|
||||
return classof(it) === 'String' ? split(it, '') : $Object(it);
|
||||
@@ -30119,7 +30119,7 @@ var getterFor = function (TYPE) {
|
||||
|
||||
if (NATIVE_WEAK_MAP || shared.state) {
|
||||
var store = shared.state || (shared.state = new WeakMap());
|
||||
/* eslint-disable no-self-assign -- prototype methods protection */
|
||||
|
||||
store.get = store.get;
|
||||
store.has = store.has;
|
||||
store.set = store.set;
|
||||
@@ -30669,7 +30669,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
||||
};
|
||||
|
||||
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
||||
// eslint-disable-next-line no-extend-native -- required
|
||||
|
||||
Function.prototype.toString = makeBuiltIn(function toString() {
|
||||
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
||||
}, 'toString');
|
||||
@@ -30845,7 +30845,7 @@ module.exports = !$assign || fails(function () {
|
||||
A[symbol] = 7;
|
||||
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
||||
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
||||
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
||||
}) ? function assign(target, source) {
|
||||
var T = toObject(target);
|
||||
var argumentsLength = arguments.length;
|
||||
var index = 1;
|
||||
@@ -31172,7 +31172,7 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
||||
|
||||
},{}],318:[function(require,module,exports){
|
||||
'use strict';
|
||||
/* eslint-disable no-proto -- safe */
|
||||
|
||||
var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');
|
||||
var anObject = require('../internals/an-object');
|
||||
var aPossiblePrototype = require('../internals/a-possible-prototype');
|
||||
@@ -31547,7 +31547,7 @@ module.exports = function () {
|
||||
if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {
|
||||
// `Symbol.prototype[@@toPrimitive]` method
|
||||
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
|
||||
// eslint-disable-next-line no-unused-vars -- required for .length
|
||||
|
||||
defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function (hint) {
|
||||
return call(valueOf, this);
|
||||
}, { arity: 1 });
|
||||
@@ -31713,7 +31713,7 @@ var trunc = require('../internals/math-trunc');
|
||||
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
||||
module.exports = function (argument) {
|
||||
var number = +argument;
|
||||
// eslint-disable-next-line no-self-compare -- NaN check
|
||||
|
||||
return number !== number || number === 0 ? 0 : trunc(number);
|
||||
};
|
||||
|
||||
@@ -32113,7 +32113,7 @@ if ($stringify) {
|
||||
// `JSON.stringify` method
|
||||
// https://tc39.es/ecma262/#sec-json.stringify
|
||||
$({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
||||
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
||||
|
||||
stringify: function stringify(it, replacer, space) {
|
||||
var args = arraySlice(arguments);
|
||||
var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
|
||||
@@ -32130,7 +32130,7 @@ var $ = require('../internals/export');
|
||||
// https://tc39.es/ecma262/#sec-number.isnan
|
||||
$({ target: 'Number', stat: true }, {
|
||||
isNaN: function isNaN(number) {
|
||||
// eslint-disable-next-line no-self-compare -- NaN check
|
||||
|
||||
return number !== number;
|
||||
}
|
||||
});
|
||||
@@ -32480,7 +32480,7 @@ if (FORCED_PROMISE_CONSTRUCTOR) {
|
||||
|
||||
PromisePrototype = PromiseConstructor.prototype;
|
||||
|
||||
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
||||
|
||||
Internal = function Promise(executor) {
|
||||
setInternalState(this, {
|
||||
type: PROMISE,
|
||||
@@ -32695,7 +32695,7 @@ var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;
|
||||
// `String.fromCodePoint` method
|
||||
// https://tc39.es/ecma262/#sec-string.fromcodepoint
|
||||
$({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
|
||||
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
||||
|
||||
fromCodePoint: function fromCodePoint(x) {
|
||||
var elements = [];
|
||||
var length = arguments.length;
|
||||
@@ -33204,7 +33204,7 @@ function ECDH(curve) {
|
||||
name: curve
|
||||
};
|
||||
}
|
||||
this.curve = new elliptic.ec(this.curveType.name); // eslint-disable-line new-cap
|
||||
this.curve = new elliptic.ec(this.curveType.name);
|
||||
this.keys = void 0;
|
||||
}
|
||||
ECDH.prototype.generateKeys = function (enc, format) {
|
||||
@@ -37967,7 +37967,7 @@ function functionBindPolyfill(context) {
|
||||
var Buffer = require('safe-buffer').Buffer;
|
||||
var MD5 = require('md5.js');
|
||||
|
||||
/* eslint-disable camelcase */
|
||||
|
||||
function EVP_BytesToKey(password, salt, keyBits, ivLen) {
|
||||
if (!Buffer.isBuffer(password)) password = Buffer.from(password, 'binary');
|
||||
if (salt) {
|
||||
@@ -49298,7 +49298,7 @@ var crypto = global.crypto || global.msCrypto;
|
||||
var kMaxUint32 = Math.pow(2, 32) - 1;
|
||||
function assertOffset(offset, length) {
|
||||
if (typeof offset !== 'number' || offset !== offset) {
|
||||
// eslint-disable-line no-self-compare
|
||||
|
||||
throw new TypeError('offset must be a number');
|
||||
}
|
||||
if (offset > kMaxUint32 || offset < 0) {
|
||||
@@ -49310,7 +49310,7 @@ function assertOffset(offset, length) {
|
||||
}
|
||||
function assertSize(size, offset, length) {
|
||||
if (typeof size !== 'number' || size !== size) {
|
||||
// eslint-disable-line no-self-compare
|
||||
|
||||
throw new TypeError('size must be a number');
|
||||
}
|
||||
if (size > kMaxUint32 || size < 0) {
|
||||
@@ -53275,13 +53275,13 @@ var NC_NAME_RE = NSed3.NC_NAME_RE;
|
||||
const XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
|
||||
const XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/";
|
||||
const rootNS = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
__proto__: null,
|
||||
xml: XML_NAMESPACE,
|
||||
xmlns: XMLNS_NAMESPACE
|
||||
};
|
||||
const XML_ENTITIES = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
__proto__: null,
|
||||
amp: "&",
|
||||
gt: ">",
|
||||
@@ -53446,11 +53446,11 @@ class SaxesParser {
|
||||
this.nameStartCheck = isNCNameStartChar;
|
||||
this.nameCheck = isNCNameChar;
|
||||
this.isName = isNCName;
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
|
||||
this.processAttribs = this.processAttribsNS;
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
|
||||
this.pushAttrib = this.pushAttribNS;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
this.ns = Object.assign({
|
||||
__proto__: null
|
||||
}, rootNS);
|
||||
@@ -53463,9 +53463,9 @@ class SaxesParser {
|
||||
this.nameStartCheck = isNameStartChar;
|
||||
this.nameCheck = isNameChar;
|
||||
this.isName = isName;
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
|
||||
this.processAttribs = this.processAttribsPlain;
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
|
||||
this.pushAttrib = this.pushAttribPlain;
|
||||
}
|
||||
//
|
||||
@@ -53473,7 +53473,7 @@ class SaxesParser {
|
||||
// numbers given to the states that correspond to the methods being recorded
|
||||
// here.
|
||||
//
|
||||
this.stateTable = [/* eslint-disable @typescript-eslint/unbound-method */
|
||||
this.stateTable = [
|
||||
this.sBegin, this.sBeginWhitespace, this.sDoctype, this.sDoctypeQuote, this.sDTD, this.sDTDQuoted, this.sDTDOpenWaka, this.sDTDOpenWakaBang, this.sDTDComment, this.sDTDCommentEnding, this.sDTDCommentEnded, this.sDTDPI, this.sDTDPIEnding, this.sText, this.sEntity, this.sOpenWaka, this.sOpenWakaBang, this.sComment, this.sCommentEnding, this.sCommentEnded, this.sCData, this.sCDataEnding, this.sCDataEnding2, this.sPIFirstChar, this.sPIRest, this.sPIBody, this.sPIEnding, this.sXMLDeclNameStart, this.sXMLDeclName, this.sXMLDeclEq, this.sXMLDeclValueStart, this.sXMLDeclValue, this.sXMLDeclSeparator, this.sXMLDeclEnding, this.sOpenTag, this.sOpenTagSlash, this.sAttrib, this.sAttribName, this.sAttribNameSawWhite, this.sAttribValue, this.sAttribValueQuoted, this.sAttribValueClosed, this.sAttribValueUnquoted, this.sCloseTag, this.sCloseTagSawWhite];
|
||||
this._init();
|
||||
}
|
||||
@@ -53536,7 +53536,7 @@ class SaxesParser {
|
||||
this.line = 1;
|
||||
this.column = 0;
|
||||
this.ENTITIES = Object.create(XML_ENTITIES);
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.readyHandler) === null || _a === void 0 ? void 0 : _a.call(this);
|
||||
}
|
||||
/**
|
||||
@@ -53574,7 +53574,7 @@ class SaxesParser {
|
||||
* @param handler The handler to set.
|
||||
*/
|
||||
on(name, handler) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
this[EVENT_NAME_TO_HANDLER_NAME[name]] = handler;
|
||||
}
|
||||
/**
|
||||
@@ -53583,7 +53583,7 @@ class SaxesParser {
|
||||
* @parma name The event to stop listening to.
|
||||
*/
|
||||
off(name) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
this[EVENT_NAME_TO_HANDLER_NAME[name]] = undefined;
|
||||
}
|
||||
/**
|
||||
@@ -53678,7 +53678,7 @@ class SaxesParser {
|
||||
this.chunk = chunk;
|
||||
this.i = 0;
|
||||
while (this.i < limit) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
stateTable[this.state].call(this);
|
||||
}
|
||||
this.chunkPosition += limit;
|
||||
@@ -53875,7 +53875,7 @@ class SaxesParser {
|
||||
const {
|
||||
chunk
|
||||
} = this;
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
const c = this.getCode();
|
||||
const isNLLike = c === NL_LIKE;
|
||||
@@ -53906,7 +53906,7 @@ class SaxesParser {
|
||||
const {
|
||||
chunk
|
||||
} = this;
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
let c = this.getCode();
|
||||
switch (c) {
|
||||
@@ -53939,7 +53939,7 @@ class SaxesParser {
|
||||
chunk,
|
||||
i: start
|
||||
} = this;
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
const c = this.getCode();
|
||||
if (c === EOC) {
|
||||
@@ -53961,7 +53961,7 @@ class SaxesParser {
|
||||
* instead.
|
||||
*/
|
||||
skipSpaces() {
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
const c = this.getCodeNorm();
|
||||
if (c === EOC || !isS(c)) {
|
||||
@@ -53971,7 +53971,7 @@ class SaxesParser {
|
||||
}
|
||||
setXMLVersion(version) {
|
||||
this.currentXMLVersion = version;
|
||||
/* eslint-disable @typescript-eslint/unbound-method */
|
||||
|
||||
if (version === "1.0") {
|
||||
this.isChar = isChar10;
|
||||
this.getCode = this.getCode10;
|
||||
@@ -54030,7 +54030,7 @@ class SaxesParser {
|
||||
switch (c) {
|
||||
case GREATER:
|
||||
{
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.doctypeHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.text);
|
||||
this.text = "";
|
||||
this.state = S_TEXT;
|
||||
@@ -54168,9 +54168,9 @@ class SaxesParser {
|
||||
const {
|
||||
chunk
|
||||
} = this;
|
||||
// eslint-disable-next-line no-labels, no-restricted-syntax
|
||||
|
||||
loop:
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
switch (this.getCode()) {
|
||||
case NL_LIKE:
|
||||
@@ -54195,12 +54195,12 @@ class SaxesParser {
|
||||
if (entityReturnState !== S_TEXT || this.textHandler !== undefined) {
|
||||
this.text += parsed;
|
||||
}
|
||||
// eslint-disable-next-line no-labels
|
||||
|
||||
break loop;
|
||||
}
|
||||
case EOC:
|
||||
this.entity += chunk.slice(start);
|
||||
// eslint-disable-next-line no-labels
|
||||
|
||||
break loop;
|
||||
default:
|
||||
}
|
||||
@@ -54282,7 +54282,7 @@ class SaxesParser {
|
||||
const c = this.getCodeNorm();
|
||||
if (c === MINUS) {
|
||||
this.state = S_COMMENT_ENDED;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.commentHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.text);
|
||||
this.text = "";
|
||||
} else {
|
||||
@@ -54322,7 +54322,7 @@ class SaxesParser {
|
||||
switch (c) {
|
||||
case GREATER:
|
||||
{
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.cdataHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.text);
|
||||
this.text = "";
|
||||
this.state = S_TEXT;
|
||||
@@ -54361,7 +54361,7 @@ class SaxesParser {
|
||||
chunk,
|
||||
i: start
|
||||
} = this;
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
const c = this.getCodeNorm();
|
||||
if (c === EOC) {
|
||||
@@ -54415,7 +54415,7 @@ class SaxesParser {
|
||||
if (piTarget.toLowerCase() === "xml") {
|
||||
this.fail("the XML declaration must appear at the start of the document.");
|
||||
}
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.piHandler) === null || _a === void 0 ? void 0 : _a.call(this, {
|
||||
target: piTarget,
|
||||
body: this.text
|
||||
@@ -54593,7 +54593,7 @@ class SaxesParser {
|
||||
} else if (this.name !== "version" && this.xmlDeclExpects.includes("version")) {
|
||||
this.fail("XML declaration must contain a version.");
|
||||
}
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.xmldeclHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.xmlDecl);
|
||||
this.name = "";
|
||||
this.piTarget = this.text = "";
|
||||
@@ -54620,7 +54620,7 @@ class SaxesParser {
|
||||
if (this.xmlnsOpt) {
|
||||
this.topNS = tag.ns = Object.create(null);
|
||||
}
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.openTagStartHandler) === null || _a === void 0 ? void 0 : _a.call(this, tag);
|
||||
this.sawRoot = true;
|
||||
if (!this.fragmentOpt && this.closedRoot) {
|
||||
@@ -54725,7 +54725,7 @@ class SaxesParser {
|
||||
let {
|
||||
i: start
|
||||
} = this;
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
switch (this.getCode()) {
|
||||
case q:
|
||||
@@ -54841,9 +54841,9 @@ class SaxesParser {
|
||||
chunk,
|
||||
textHandler: handler
|
||||
} = this;
|
||||
// eslint-disable-next-line no-labels, no-restricted-syntax
|
||||
|
||||
scanLoop:
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
switch (this.getCode()) {
|
||||
case LESS:
|
||||
@@ -54862,7 +54862,7 @@ class SaxesParser {
|
||||
}
|
||||
}
|
||||
forbiddenState = FORBIDDEN_START;
|
||||
// eslint-disable-next-line no-labels
|
||||
|
||||
break scanLoop;
|
||||
}
|
||||
case AMP:
|
||||
@@ -54872,7 +54872,7 @@ class SaxesParser {
|
||||
this.text += chunk.slice(start, this.prevI);
|
||||
}
|
||||
forbiddenState = FORBIDDEN_START;
|
||||
// eslint-disable-next-line no-labels
|
||||
|
||||
break scanLoop;
|
||||
case CLOSE_BRACKET:
|
||||
switch (forbiddenState) {
|
||||
@@ -54905,7 +54905,7 @@ class SaxesParser {
|
||||
if (handler !== undefined) {
|
||||
this.text += chunk.slice(start);
|
||||
}
|
||||
// eslint-disable-next-line no-labels
|
||||
|
||||
break scanLoop;
|
||||
default:
|
||||
forbiddenState = FORBIDDEN_START;
|
||||
@@ -54926,9 +54926,9 @@ class SaxesParser {
|
||||
textHandler: handler
|
||||
} = this;
|
||||
let nonSpace = false;
|
||||
// eslint-disable-next-line no-labels, no-restricted-syntax
|
||||
|
||||
outRootLoop:
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
|
||||
while (true) {
|
||||
const code = this.getCode();
|
||||
switch (code) {
|
||||
@@ -54947,7 +54947,7 @@ class SaxesParser {
|
||||
handler(slice);
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line no-labels
|
||||
|
||||
break outRootLoop;
|
||||
}
|
||||
case AMP:
|
||||
@@ -54957,7 +54957,7 @@ class SaxesParser {
|
||||
this.text += chunk.slice(start, this.prevI);
|
||||
}
|
||||
nonSpace = true;
|
||||
// eslint-disable-next-line no-labels
|
||||
|
||||
break outRootLoop;
|
||||
case NL_LIKE:
|
||||
if (handler !== undefined) {
|
||||
@@ -54969,7 +54969,7 @@ class SaxesParser {
|
||||
if (handler !== undefined) {
|
||||
this.text += chunk.slice(start);
|
||||
}
|
||||
// eslint-disable-next-line no-labels
|
||||
|
||||
break outRootLoop;
|
||||
default:
|
||||
if (!isS(code)) {
|
||||
@@ -55005,7 +55005,7 @@ class SaxesParser {
|
||||
value
|
||||
};
|
||||
this.attribList.push(attr);
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.attributeHandler) === null || _a === void 0 ? void 0 : _a.call(this, attr);
|
||||
if (prefix === "xmlns") {
|
||||
const trimmed = value.trim();
|
||||
@@ -55027,7 +55027,7 @@ class SaxesParser {
|
||||
value
|
||||
};
|
||||
this.attribList.push(attr);
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.attributeHandler) === null || _a === void 0 ? void 0 : _a.call(this, attr);
|
||||
}
|
||||
/**
|
||||
@@ -55055,12 +55055,12 @@ class SaxesParser {
|
||||
text
|
||||
} = this;
|
||||
if (text.length !== 0) {
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.textHandler) === null || _a === void 0 ? void 0 : _a.call(this, text);
|
||||
this.text = "";
|
||||
}
|
||||
this._closed = true;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_b = this.endHandler) === null || _b === void 0 ? void 0 : _b.call(this);
|
||||
this._init();
|
||||
return this;
|
||||
@@ -55187,7 +55187,7 @@ class SaxesParser {
|
||||
const {
|
||||
attribList
|
||||
} = this;
|
||||
// eslint-disable-next-line prefer-destructuring
|
||||
|
||||
const attributes = this.tag.attributes;
|
||||
for (const {
|
||||
name,
|
||||
@@ -55215,7 +55215,7 @@ class SaxesParser {
|
||||
tag.isSelfClosing = false;
|
||||
// There cannot be any pending text here due to the onopentagstart that was
|
||||
// necessarily emitted before we get here. So we do not check text.
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.openTagHandler) === null || _a === void 0 ? void 0 : _a.call(this, tag);
|
||||
tags.push(tag);
|
||||
this.state = S_TEXT;
|
||||
@@ -55236,9 +55236,9 @@ class SaxesParser {
|
||||
tag.isSelfClosing = true;
|
||||
// There cannot be any pending text here due to the onopentagstart that was
|
||||
// necessarily emitted before we get here. So we do not check text.
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_a = this.openTagHandler) === null || _a === void 0 ? void 0 : _a.call(this, tag);
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
(_b = this.closeTagHandler) === null || _b === void 0 ? void 0 : _b.call(this, tag);
|
||||
const top = this.tag = (_c = tags[tags.length - 1]) !== null && _c !== void 0 ? _c : null;
|
||||
if (top === null) {
|
||||
@@ -55271,7 +55271,7 @@ class SaxesParser {
|
||||
while (l-- > 0) {
|
||||
const tag = this.tag = tags.pop();
|
||||
this.topNS = tag.ns;
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
|
||||
handler === null || handler === void 0 ? void 0 : handler(tag);
|
||||
if (tag.name === name) {
|
||||
break;
|
||||
@@ -55294,7 +55294,7 @@ class SaxesParser {
|
||||
*/
|
||||
parseEntity(entity) {
|
||||
// startsWith would be significantly slower for this test.
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
|
||||
|
||||
if (entity[0] !== "#") {
|
||||
const defined = this.ENTITIES[entity];
|
||||
if (defined !== undefined) {
|
||||
@@ -59549,7 +59549,7 @@ function _default(name, version, hashfunc) {
|
||||
} // Function#name is not settable on some platforms (#270)
|
||||
|
||||
try {
|
||||
generateUUID.name = name; // eslint-disable-next-line no-empty
|
||||
generateUUID.name = name;
|
||||
} catch (err) {} // For CommonJS default export support
|
||||
|
||||
generateUUID.DNS = DNS;
|
||||
|
||||
@@ -160,7 +160,7 @@ function fromByteArray (uint8) {
|
||||
* @author Feross Aboukhadijeh <http://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
/* eslint-disable no-proto */
|
||||
|
||||
|
||||
'use strict'
|
||||
|
||||
@@ -478,7 +478,7 @@ function checked (length) {
|
||||
}
|
||||
|
||||
function SlowBuffer (length) {
|
||||
if (+length != length) { // eslint-disable-line eqeqeq
|
||||
if (+length != length) {
|
||||
length = 0
|
||||
}
|
||||
return Buffer.alloc(+length)
|
||||
@@ -1941,7 +1941,7 @@ function blitBuffer (src, dst, offset, length) {
|
||||
}
|
||||
|
||||
function isnan (val) {
|
||||
return val !== val // eslint-disable-line no-self-compare
|
||||
return val !== val
|
||||
}
|
||||
|
||||
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user