@lark-sentry/utils 1.0.0 → 1.0.1
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/index.cjs +10 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -228,10 +228,15 @@ function getCssSelectors(elem) {
|
|
|
228
228
|
return [idSelector, classSelector + attrSelector, elemSelector];
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
function
|
|
231
|
+
function getBaseData() {
|
|
232
232
|
return {
|
|
233
|
+
id: crypto.randomUUID(),
|
|
234
|
+
message: "",
|
|
235
|
+
timestamp: Date.now(),
|
|
233
236
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
234
|
-
|
|
237
|
+
name: "",
|
|
238
|
+
status: types.Status.OK,
|
|
239
|
+
type: types.EventType.Custom
|
|
235
240
|
};
|
|
236
241
|
}
|
|
237
242
|
|
|
@@ -1799,14 +1804,12 @@ function isIExtendedErrorEvent(err) {
|
|
|
1799
1804
|
function metric2perfData(metric) {
|
|
1800
1805
|
const { id, name, value, rating } = metric;
|
|
1801
1806
|
return {
|
|
1807
|
+
...getBaseData(),
|
|
1802
1808
|
id,
|
|
1803
1809
|
name,
|
|
1804
1810
|
value,
|
|
1805
1811
|
rating,
|
|
1806
|
-
|
|
1807
|
-
...getTime(),
|
|
1808
|
-
type: types.EventType.Performance,
|
|
1809
|
-
status: types.Status.OK
|
|
1812
|
+
type: types.EventType.Performance
|
|
1810
1813
|
};
|
|
1811
1814
|
}
|
|
1812
1815
|
|
|
@@ -1860,8 +1863,8 @@ exports.debounce = debounce;
|
|
|
1860
1863
|
exports.decorateProp = decorateProp;
|
|
1861
1864
|
exports.dom2str = dom2str;
|
|
1862
1865
|
exports.event2breadcrumb = event2breadcrumb;
|
|
1866
|
+
exports.getBaseData = getBaseData;
|
|
1863
1867
|
exports.getCssSelectors = getCssSelectors;
|
|
1864
|
-
exports.getTime = getTime;
|
|
1865
1868
|
exports.isError = isError;
|
|
1866
1869
|
exports.isErrorEvent = isErrorEvent;
|
|
1867
1870
|
exports.isExcludedApi = isExcludedApi;
|