@@ -12749,6 +12749,213 @@ class Deprecation extends Error {
12749
12749
exports.Deprecation = Deprecation;
12750
12750
12751
12751
12752
+ /***/ }),
12753
+
12754
+ /***/ 9176:
12755
+ /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
12756
+
12757
+ (function(root, factory) {
12758
+ 'use strict';
12759
+ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.
12760
+
12761
+ /* istanbul ignore next */
12762
+ if (typeof define === 'function' && define.amd) {
12763
+ define('error-stack-parser', ['stackframe'], factory);
12764
+ } else if (true) {
12765
+ module.exports = factory(__nccwpck_require__(5046));
12766
+ } else {}
12767
+ }(this, function ErrorStackParser(StackFrame) {
12768
+ 'use strict';
12769
+
12770
+ var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+:\d+/;
12771
+ var CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m;
12772
+ var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code])?$/;
12773
+
12774
+ return {
12775
+ /**
12776
+ * Given an Error object, extract the most information from it.
12777
+ *
12778
+ * @param {Error} error object
12779
+ * @return {Array} of StackFrames
12780
+ */
12781
+ parse: function ErrorStackParser$$parse(error) {
12782
+ if (typeof error.stacktrace !== 'undefined' || typeof error['opera#sourceloc'] !== 'undefined') {
12783
+ return this.parseOpera(error);
12784
+ } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {
12785
+ return this.parseV8OrIE(error);
12786
+ } else if (error.stack) {
12787
+ return this.parseFFOrSafari(error);
12788
+ } else {
12789
+ throw new Error('Cannot parse given Error object');
12790
+ }
12791
+ },
12792
+
12793
+ // Separate line and column numbers from a string of the form: (URI:Line:Column)
12794
+ extractLocation: function ErrorStackParser$$extractLocation(urlLike) {
12795
+ // Fail-fast but return locations like "(native)"
12796
+ if (urlLike.indexOf(':') === -1) {
12797
+ return [urlLike];
12798
+ }
12799
+
12800
+ var regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
12801
+ var parts = regExp.exec(urlLike.replace(/[()]/g, ''));
12802
+ return [parts[1], parts[2] || undefined, parts[3] || undefined];
12803
+ },
12804
+
12805
+ parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) {
12806
+ var filtered = error.stack.split('\n').filter(function(line) {
12807
+ return !!line.match(CHROME_IE_STACK_REGEXP);
12808
+ }, this);
12809
+
12810
+ return filtered.map(function(line) {
12811
+ if (line.indexOf('(eval ') > -1) {
12812
+ // Throw away eval information until we implement stacktrace.js/stackframe#8
12813
+ line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(,.*$)/g, '');
12814
+ }
12815
+ var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '(').replace(/^.*?\s+/, '');
12816
+
12817
+ // capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in
12818
+ // case it has spaces in it, as the string is split on \s+ later on
12819
+ var location = sanitizedLine.match(/ (\(.+\)$)/);
12820
+
12821
+ // remove the parenthesized location from the line, if it was matched
12822
+ sanitizedLine = location ? sanitizedLine.replace(location[0], '') : sanitizedLine;
12823
+
12824
+ // if a location was matched, pass it to extractLocation() otherwise pass all sanitizedLine
12825
+ // because this line doesn't have function name
12826
+ var locationParts = this.extractLocation(location ? location[1] : sanitizedLine);
12827
+ var functionName = location && sanitizedLine || undefined;
12828
+ var fileName = ['eval', '<anonymous>'].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0];
12829
+
12830
+ return new StackFrame({
12831
+ functionName: functionName,
12832
+ fileName: fileName,
12833
+ lineNumber: locationParts[1],
12834
+ columnNumber: locationParts[2],
12835
+ source: line
12836
+ });
12837
+ }, this);
12838
+ },
12839
+
12840
+ parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) {
12841
+ var filtered = error.stack.split('\n').filter(function(line) {
12842
+ return !line.match(SAFARI_NATIVE_CODE_REGEXP);
12843
+ }, this);
12844
+
12845
+ return filtered.map(function(line) {
12846
+ // Throw away eval information until we implement stacktrace.js/stackframe#8
12847
+ if (line.indexOf(' > eval') > -1) {
12848
+ line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ':$1');
12849
+ }
12850
+
12851
+ if (line.indexOf('@') === -1 && line.indexOf(':') === -1) {
12852
+ // Safari eval frames only have function names and nothing else
12853
+ return new StackFrame({
12854
+ functionName: line
12855
+ });
12856
+ } else {
12857
+ var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;
12858
+ var matches = line.match(functionNameRegex);
12859
+ var functionName = matches && matches[1] ? matches[1] : undefined;
12860
+ var locationParts = this.extractLocation(line.replace(functionNameRegex, ''));
12861
+
12862
+ return new StackFrame({
12863
+ functionName: functionName,
12864
+ fileName: locationParts[0],
12865
+ lineNumber: locationParts[1],
12866
+ columnNumber: locationParts[2],
12867
+ source: line
12868
+ });
12869
+ }
12870
+ }, this);
12871
+ },
12872
+
12873
+ parseOpera: function ErrorStackParser$$parseOpera(e) {
12874
+ if (!e.stacktrace || (e.message.indexOf('\n') > -1 &&
12875
+ e.message.split('\n').length > e.stacktrace.split('\n').length)) {
12876
+ return this.parseOpera9(e);
12877
+ } else if (!e.stack) {
12878
+ return this.parseOpera10(e);
12879
+ } else {
12880
+ return this.parseOpera11(e);
12881
+ }
12882
+ },
12883
+
12884
+ parseOpera9: function ErrorStackParser$$parseOpera9(e) {
12885
+ var lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
12886
+ var lines = e.message.split('\n');
12887
+ var result = [];
12888
+
12889
+ for (var i = 2, len = lines.length; i < len; i += 2) {
12890
+ var match = lineRE.exec(lines[i]);
12891
+ if (match) {
12892
+ result.push(new StackFrame({
12893
+ fileName: match[2],
12894
+ lineNumber: match[1],
12895
+ source: lines[i]
12896
+ }));
12897
+ }
12898
+ }
12899
+
12900
+ return result;
12901
+ },
12902
+
12903
+ parseOpera10: function ErrorStackParser$$parseOpera10(e) {
12904
+ var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i;
12905
+ var lines = e.stacktrace.split('\n');
12906
+ var result = [];
12907
+
12908
+ for (var i = 0, len = lines.length; i < len; i += 2) {
12909
+ var match = lineRE.exec(lines[i]);
12910
+ if (match) {
12911
+ result.push(
12912
+ new StackFrame({
12913
+ functionName: match[3] || undefined,
12914
+ fileName: match[2],
12915
+ lineNumber: match[1],
12916
+ source: lines[i]
12917
+ })
12918
+ );
12919
+ }
12920
+ }
12921
+
12922
+ return result;
12923
+ },
12924
+
12925
+ // Opera 10.65+ Error.stack very similar to FF/Safari
12926
+ parseOpera11: function ErrorStackParser$$parseOpera11(error) {
12927
+ var filtered = error.stack.split('\n').filter(function(line) {
12928
+ return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/);
12929
+ }, this);
12930
+
12931
+ return filtered.map(function(line) {
12932
+ var tokens = line.split('@');
12933
+ var locationParts = this.extractLocation(tokens.pop());
12934
+ var functionCall = (tokens.shift() || '');
12935
+ var functionName = functionCall
12936
+ .replace(/<anonymous function(: (\w+))?>/, '$2')
12937
+ .replace(/\([^)]*\)/g, '') || undefined;
12938
+ var argsRaw;
12939
+ if (functionCall.match(/\(([^)]*)\)/)) {
12940
+ argsRaw = functionCall.replace(/^[^(]+\(([^)]*)\)$/, '$1');
12941
+ }
12942
+ var args = (argsRaw === undefined || argsRaw === '[arguments not available]') ?
12943
+ undefined : argsRaw.split(',');
12944
+
12945
+ return new StackFrame({
12946
+ functionName: functionName,
12947
+ args: args,
12948
+ fileName: locationParts[0],
12949
+ lineNumber: locationParts[1],
12950
+ columnNumber: locationParts[2],
12951
+ source: line
12952
+ });
12953
+ }, this);
12954
+ }
12955
+ };
12956
+ }));
12957
+
12958
+
12752
12959
/***/ }),
12753
12960
12754
12961
/***/ 1223:
@@ -12798,6 +13005,154 @@ function onceStrict (fn) {
12798
13005
}
12799
13006
12800
13007
13008
+ /***/ }),
13009
+
13010
+ /***/ 5046:
13011
+ /***/ (function(module) {
13012
+
13013
+ (function(root, factory) {
13014
+ 'use strict';
13015
+ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.
13016
+
13017
+ /* istanbul ignore next */
13018
+ if (typeof define === 'function' && define.amd) {
13019
+ define('stackframe', [], factory);
13020
+ } else if (true) {
13021
+ module.exports = factory();
13022
+ } else {}
13023
+ }(this, function() {
13024
+ 'use strict';
13025
+ function _isNumber(n) {
13026
+ return !isNaN(parseFloat(n)) && isFinite(n);
13027
+ }
13028
+
13029
+ function _capitalize(str) {
13030
+ return str.charAt(0).toUpperCase() + str.substring(1);
13031
+ }
13032
+
13033
+ function _getter(p) {
13034
+ return function() {
13035
+ return this[p];
13036
+ };
13037
+ }
13038
+
13039
+ var booleanProps = ['isConstructor', 'isEval', 'isNative', 'isToplevel'];
13040
+ var numericProps = ['columnNumber', 'lineNumber'];
13041
+ var stringProps = ['fileName', 'functionName', 'source'];
13042
+ var arrayProps = ['args'];
13043
+ var objectProps = ['evalOrigin'];
13044
+
13045
+ var props = booleanProps.concat(numericProps, stringProps, arrayProps, objectProps);
13046
+
13047
+ function StackFrame(obj) {
13048
+ if (!obj) return;
13049
+ for (var i = 0; i < props.length; i++) {
13050
+ if (obj[props[i]] !== undefined) {
13051
+ this['set' + _capitalize(props[i])](obj[props[i]]);
13052
+ }
13053
+ }
13054
+ }
13055
+
13056
+ StackFrame.prototype = {
13057
+ getArgs: function() {
13058
+ return this.args;
13059
+ },
13060
+ setArgs: function(v) {
13061
+ if (Object.prototype.toString.call(v) !== '[object Array]') {
13062
+ throw new TypeError('Args must be an Array');
13063
+ }
13064
+ this.args = v;
13065
+ },
13066
+
13067
+ getEvalOrigin: function() {
13068
+ return this.evalOrigin;
13069
+ },
13070
+ setEvalOrigin: function(v) {
13071
+ if (v instanceof StackFrame) {
13072
+ this.evalOrigin = v;
13073
+ } else if (v instanceof Object) {
13074
+ this.evalOrigin = new StackFrame(v);
13075
+ } else {
13076
+ throw new TypeError('Eval Origin must be an Object or StackFrame');
13077
+ }
13078
+ },
13079
+
13080
+ toString: function() {
13081
+ var fileName = this.getFileName() || '';
13082
+ var lineNumber = this.getLineNumber() || '';
13083
+ var columnNumber = this.getColumnNumber() || '';
13084
+ var functionName = this.getFunctionName() || '';
13085
+ if (this.getIsEval()) {
13086
+ if (fileName) {
13087
+ return '[eval] (' + fileName + ':' + lineNumber + ':' + columnNumber + ')';
13088
+ }
13089
+ return '[eval]:' + lineNumber + ':' + columnNumber;
13090
+ }
13091
+ if (functionName) {
13092
+ return functionName + ' (' + fileName + ':' + lineNumber + ':' + columnNumber + ')';
13093
+ }
13094
+ return fileName + ':' + lineNumber + ':' + columnNumber;
13095
+ }
13096
+ };
13097
+
13098
+ StackFrame.fromString = function StackFrame$$fromString(str) {
13099
+ var argsStartIndex = str.indexOf('(');
13100
+ var argsEndIndex = str.lastIndexOf(')');
13101
+
13102
+ var functionName = str.substring(0, argsStartIndex);
13103
+ var args = str.substring(argsStartIndex + 1, argsEndIndex).split(',');
13104
+ var locationString = str.substring(argsEndIndex + 1);
13105
+
13106
+ if (locationString.indexOf('@') === 0) {
13107
+ var parts = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(locationString, '');
13108
+ var fileName = parts[1];
13109
+ var lineNumber = parts[2];
13110
+ var columnNumber = parts[3];
13111
+ }
13112
+
13113
+ return new StackFrame({
13114
+ functionName: functionName,
13115
+ args: args || undefined,
13116
+ fileName: fileName,
13117
+ lineNumber: lineNumber || undefined,
13118
+ columnNumber: columnNumber || undefined
13119
+ });
13120
+ };
13121
+
13122
+ for (var i = 0; i < booleanProps.length; i++) {
13123
+ StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]);
13124
+ StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) {
13125
+ return function(v) {
13126
+ this[p] = Boolean(v);
13127
+ };
13128
+ })(booleanProps[i]);
13129
+ }
13130
+
13131
+ for (var j = 0; j < numericProps.length; j++) {
13132
+ StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]);
13133
+ StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) {
13134
+ return function(v) {
13135
+ if (!_isNumber(v)) {
13136
+ throw new TypeError(p + ' must be a Number');
13137
+ }
13138
+ this[p] = Number(v);
13139
+ };
13140
+ })(numericProps[j]);
13141
+ }
13142
+
13143
+ for (var k = 0; k < stringProps.length; k++) {
13144
+ StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]);
13145
+ StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) {
13146
+ return function(v) {
13147
+ this[p] = String(v);
13148
+ };
13149
+ })(stringProps[k]);
13150
+ }
13151
+
13152
+ return StackFrame;
13153
+ }));
13154
+
13155
+
12801
13156
/***/ }),
12802
13157
12803
13158
/***/ 4294:
@@ -36301,7 +36656,7 @@ module.exports = { getContext }
36301
36656
/***/ 1507:
36302
36657
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
36303
36658
36304
- const ErrorStackParser = __nccwpck_require__(8057 )
36659
+ const ErrorStackParser = __nccwpck_require__(9176 )
36305
36660
36306
36661
// Convert an Error's stack into `@actions/core` toolkit AnnotationProperties:
36307
36662
// https://github.com/actions/toolkit/blob/ef77c9d60bdb03700d7758b0d04b88446e72a896/packages/core/src/core.ts#L36-L71
@@ -36470,14 +36825,6 @@ function setPagesConfig({ staticSiteGenerator, generatorConfigFile, siteUrl }) {
36470
36825
module.exports = { getConfigParserSettings, setPagesConfig }
36471
36826
36472
36827
36473
- /***/ }),
36474
-
36475
- /***/ 8057:
36476
- /***/ ((module) => {
36477
-
36478
- module.exports = eval("require")("error-stack-parser");
36479
-
36480
-
36481
36828
/***/ }),
36482
36829
36483
36830
/***/ 9491:
0 commit comments