@dcloudio/uni-stacktracey 3.0.0-4000720240327002 → 3.0.0-4010420240430001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uni-stacktracey.cjs.js +12 -14
- package/dist/uni-stacktracey.es.js +15 -17
- package/package.json +1 -1
|
@@ -17,7 +17,9 @@ typeof window !== 'undefined' &&
|
|
|
17
17
|
/* eslint-disable */
|
|
18
18
|
window.window === window &&
|
|
19
19
|
/* eslint-disable */
|
|
20
|
-
window.navigator,
|
|
20
|
+
window.navigator,
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
nodeRequire = isBrowser ? null : module.require, // to prevent bundlers from expanding the require call
|
|
21
23
|
lastOf = (x) => x[x.length - 1], nixSlashes$1 = (x) => x.replace(/\\/g, '/'), pathRoot = isBrowser ? window.location.href : nixSlashes$1(process.cwd()) + '/';
|
|
22
24
|
/* ------------------------------------------------------------------------ */
|
|
23
25
|
class StackTracey {
|
|
@@ -94,7 +96,7 @@ class StackTracey {
|
|
|
94
96
|
result = externalDomainMatch ? externalDomainMatch[3] : result;
|
|
95
97
|
// if (!isBrowser) result = nodeRequire!('path').relative(pathRoot, result)
|
|
96
98
|
return [
|
|
97
|
-
nixSlashes$1(result).replace(/^.*\:\/\/?\/?/, ''),
|
|
99
|
+
nixSlashes$1(result).replace(/^.*\:\/\/?\/?/, ''), // cut webpack:/// and webpack:/ things
|
|
98
100
|
externalDomain,
|
|
99
101
|
];
|
|
100
102
|
}
|
|
@@ -204,8 +206,6 @@ function parseItem(e, maxColumnWidths, isMP) {
|
|
|
204
206
|
return new StackTracey(this.items[method].apply(this.items, arguments));
|
|
205
207
|
};
|
|
206
208
|
});
|
|
207
|
-
/* ------------------------------------------------------------------------ */
|
|
208
|
-
var StackTracey$1 = StackTracey;
|
|
209
209
|
|
|
210
210
|
var util$1 = {};
|
|
211
211
|
|
|
@@ -765,7 +765,7 @@ var util$1 = {};
|
|
|
765
765
|
|
|
766
766
|
return normalize(sourceURL)
|
|
767
767
|
}
|
|
768
|
-
exports.computeSourceURL = computeSourceURL;
|
|
768
|
+
exports.computeSourceURL = computeSourceURL;
|
|
769
769
|
} (util$1));
|
|
770
770
|
|
|
771
771
|
var arraySet = {};
|
|
@@ -990,14 +990,10 @@ var binarySearch$1 = {};
|
|
|
990
990
|
}
|
|
991
991
|
|
|
992
992
|
return index
|
|
993
|
-
};
|
|
993
|
+
};
|
|
994
994
|
} (binarySearch$1));
|
|
995
995
|
|
|
996
|
-
var
|
|
997
|
-
var readWasm$2 = {
|
|
998
|
-
get exports(){ return readWasmExports; },
|
|
999
|
-
set exports(v){ readWasmExports = v; },
|
|
1000
|
-
};
|
|
996
|
+
var readWasm$2 = {exports: {}};
|
|
1001
997
|
|
|
1002
998
|
/* Determine browser vs node environment by testing the default top level context. Solution courtesy of: https://stackoverflow.com/questions/17575790/environment-detection-node-js-or-browser */
|
|
1003
999
|
{
|
|
@@ -1023,13 +1019,15 @@ var readWasm$2 = {
|
|
|
1023
1019
|
})
|
|
1024
1020
|
};
|
|
1025
1021
|
|
|
1026
|
-
|
|
1022
|
+
readWasm$2.exports.initialize = (_) => {
|
|
1027
1023
|
console.debug(
|
|
1028
1024
|
'SourceMapConsumer.initialize is a no-op when running in node.js'
|
|
1029
1025
|
);
|
|
1030
1026
|
};
|
|
1031
1027
|
}
|
|
1032
1028
|
|
|
1029
|
+
var readWasmExports = readWasm$2.exports;
|
|
1030
|
+
|
|
1033
1031
|
const readWasm$1 = readWasmExports;
|
|
1034
1032
|
|
|
1035
1033
|
/**
|
|
@@ -2737,7 +2735,7 @@ function getConsumer(content) {
|
|
|
2737
2735
|
});
|
|
2738
2736
|
}
|
|
2739
2737
|
else {
|
|
2740
|
-
// @ts-
|
|
2738
|
+
// @ts-expect-error
|
|
2741
2739
|
const consumer = SourceMapConsumer(content);
|
|
2742
2740
|
resolve(consumer);
|
|
2743
2741
|
}
|
|
@@ -2854,7 +2852,7 @@ function uniStracktraceyPreset(opts) {
|
|
|
2854
2852
|
return Promise.resolve(getSourceMapContent(sourcemapUrl));
|
|
2855
2853
|
},
|
|
2856
2854
|
parseStacktrace(stacktrace) {
|
|
2857
|
-
stack = new StackTracey
|
|
2855
|
+
stack = new StackTracey(stacktrace, uniPlatform);
|
|
2858
2856
|
return stack;
|
|
2859
2857
|
},
|
|
2860
2858
|
asTableStacktrace({ maxColumnWidths, stacktrace, stack }) {
|
|
@@ -9,7 +9,9 @@ typeof window !== 'undefined' &&
|
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
window.window === window &&
|
|
11
11
|
/* eslint-disable */
|
|
12
|
-
window.navigator,
|
|
12
|
+
window.navigator,
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
nodeRequire = isBrowser ? null : module.require, // to prevent bundlers from expanding the require call
|
|
13
15
|
lastOf = (x) => x[x.length - 1], nixSlashes$1 = (x) => x.replace(/\\/g, '/'), pathRoot = isBrowser ? window.location.href : nixSlashes$1(process.cwd()) + '/';
|
|
14
16
|
/* ------------------------------------------------------------------------ */
|
|
15
17
|
class StackTracey {
|
|
@@ -86,7 +88,7 @@ class StackTracey {
|
|
|
86
88
|
result = externalDomainMatch ? externalDomainMatch[3] : result;
|
|
87
89
|
// if (!isBrowser) result = nodeRequire!('path').relative(pathRoot, result)
|
|
88
90
|
return [
|
|
89
|
-
nixSlashes$1(result).replace(/^.*\:\/\/?\/?/, ''),
|
|
91
|
+
nixSlashes$1(result).replace(/^.*\:\/\/?\/?/, ''), // cut webpack:/// and webpack:/ things
|
|
90
92
|
externalDomain,
|
|
91
93
|
];
|
|
92
94
|
}
|
|
@@ -196,8 +198,6 @@ function parseItem(e, maxColumnWidths, isMP) {
|
|
|
196
198
|
return new StackTracey(this.items[method].apply(this.items, arguments));
|
|
197
199
|
};
|
|
198
200
|
});
|
|
199
|
-
/* ------------------------------------------------------------------------ */
|
|
200
|
-
var StackTracey$1 = StackTracey;
|
|
201
201
|
|
|
202
202
|
var util$1 = {};
|
|
203
203
|
|
|
@@ -757,7 +757,7 @@ var util$1 = {};
|
|
|
757
757
|
|
|
758
758
|
return normalize(sourceURL)
|
|
759
759
|
}
|
|
760
|
-
exports.computeSourceURL = computeSourceURL;
|
|
760
|
+
exports.computeSourceURL = computeSourceURL;
|
|
761
761
|
} (util$1));
|
|
762
762
|
|
|
763
763
|
var arraySet = {};
|
|
@@ -982,14 +982,10 @@ var binarySearch$1 = {};
|
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
return index
|
|
985
|
-
};
|
|
985
|
+
};
|
|
986
986
|
} (binarySearch$1));
|
|
987
987
|
|
|
988
|
-
var
|
|
989
|
-
var readWasm$2 = {
|
|
990
|
-
get exports(){ return readWasmExports; },
|
|
991
|
-
set exports(v){ readWasmExports = v; },
|
|
992
|
-
};
|
|
988
|
+
var readWasm$2 = {exports: {}};
|
|
993
989
|
|
|
994
990
|
/* Determine browser vs node environment by testing the default top level context. Solution courtesy of: https://stackoverflow.com/questions/17575790/environment-detection-node-js-or-browser */
|
|
995
991
|
{
|
|
@@ -1012,9 +1008,11 @@ var readWasm$2 = {
|
|
|
1012
1008
|
)
|
|
1013
1009
|
};
|
|
1014
1010
|
|
|
1015
|
-
|
|
1011
|
+
readWasm$2.exports.initialize = (input) => (mappingsWasm = input);
|
|
1016
1012
|
}
|
|
1017
1013
|
|
|
1014
|
+
var readWasmExports = readWasm$2.exports;
|
|
1015
|
+
|
|
1018
1016
|
const readWasm$1 = readWasmExports;
|
|
1019
1017
|
|
|
1020
1018
|
/**
|
|
@@ -2625,11 +2623,11 @@ ${m.code}
|
|
|
2625
2623
|
});
|
|
2626
2624
|
}
|
|
2627
2625
|
|
|
2628
|
-
// @ts-
|
|
2626
|
+
// @ts-expect-error
|
|
2629
2627
|
{
|
|
2630
|
-
// @ts-
|
|
2628
|
+
// @ts-expect-error
|
|
2631
2629
|
if (SourceMapConsumer.initialize) {
|
|
2632
|
-
// @ts-
|
|
2630
|
+
// @ts-expect-error
|
|
2633
2631
|
SourceMapConsumer.initialize({
|
|
2634
2632
|
'lib/mappings.wasm': 'https://unpkg.com/source-map@0.7.3/lib/mappings.wasm',
|
|
2635
2633
|
});
|
|
@@ -2732,7 +2730,7 @@ function getConsumer(content) {
|
|
|
2732
2730
|
});
|
|
2733
2731
|
}
|
|
2734
2732
|
else {
|
|
2735
|
-
// @ts-
|
|
2733
|
+
// @ts-expect-error
|
|
2736
2734
|
const consumer = SourceMapConsumer(content);
|
|
2737
2735
|
resolve(consumer);
|
|
2738
2736
|
}
|
|
@@ -2849,7 +2847,7 @@ function uniStracktraceyPreset(opts) {
|
|
|
2849
2847
|
return Promise.resolve(getSourceMapContent(sourcemapUrl));
|
|
2850
2848
|
},
|
|
2851
2849
|
parseStacktrace(stacktrace) {
|
|
2852
|
-
stack = new StackTracey
|
|
2850
|
+
stack = new StackTracey(stacktrace, uniPlatform);
|
|
2853
2851
|
return stack;
|
|
2854
2852
|
},
|
|
2855
2853
|
asTableStacktrace({ maxColumnWidths, stacktrace, stack }) {
|
package/package.json
CHANGED