@devkitio/faultlens 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/{chunk-6LF3JLVG.js → chunk-DQD732MN.js} +1 -1
- package/dist/{chunk-ZUVQIOFO.js → chunk-YQKZEUXA.js} +1 -1
- package/dist/cli/index.js +8 -1
- package/dist/index.js +2 -2
- package/dist/node/index.js +1 -1
- package/dist/nuxt/runtime/nitro-plugin.js +1 -1
- package/dist/nuxt/runtime/plugin.js +2 -2
- package/dist/react/index.js +2 -2
- package/dist/testing/index.js +1 -1
- package/package.json +2 -2
|
@@ -411,7 +411,7 @@ function traceContextHeaders(context) {
|
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
// src/monitor.ts
|
|
414
|
-
var SDK_VERSION = "1.0.
|
|
414
|
+
var SDK_VERSION = "1.0.1";
|
|
415
415
|
var PROTOCOL_VERSION = "1.0";
|
|
416
416
|
var REVOKED_CREDENTIAL_CODES = /* @__PURE__ */ new Set(["invalid_dsn", "relay_key_revoked", "credential_revoked"]);
|
|
417
417
|
function eventId() {
|
package/dist/cli/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { realpathSync } from 'fs';
|
|
2
3
|
import { lstat, readdir, readFile, writeFile, unlink } from 'fs/promises';
|
|
3
4
|
import path from 'path';
|
|
4
5
|
import { fileURLToPath } from 'url';
|
|
@@ -219,7 +220,13 @@ async function runFaultLensCli(args, env = process.env) {
|
|
|
219
220
|
return verify(config, artifacts);
|
|
220
221
|
}
|
|
221
222
|
var currentFile = fileURLToPath(import.meta.url);
|
|
222
|
-
|
|
223
|
+
var invokedFile = "";
|
|
224
|
+
try {
|
|
225
|
+
invokedFile = process.argv[1] ? realpathSync(process.argv[1]) : "";
|
|
226
|
+
} catch {
|
|
227
|
+
invokedFile = process.argv[1] ? path.resolve(process.argv[1]) : "";
|
|
228
|
+
}
|
|
229
|
+
if (invokedFile === realpathSync(currentFile)) {
|
|
223
230
|
runFaultLensCli(process.argv.slice(2)).catch((error) => {
|
|
224
231
|
console.error(error instanceof Error ? error.message : "CLI \u6267\u884C\u5931\u8D25");
|
|
225
232
|
process.exitCode = 1;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createErrorMonitor, installFetchInstrumentation, installXhrInstrumentation } from './chunk-
|
|
2
|
-
export { FetchTelemetryTransport, formatTraceParent, parseTraceParent, traceContextHeaders } from './chunk-
|
|
1
|
+
export { createErrorMonitor, installFetchInstrumentation, installXhrInstrumentation } from './chunk-DQD732MN.js';
|
|
2
|
+
export { FetchTelemetryTransport, formatTraceParent, parseTraceParent, traceContextHeaders } from './chunk-YQKZEUXA.js';
|
package/dist/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseTransportResponse, parseRemoteSdkConfig, parseTelemetryTransportResponse, createMonitorRuntime } from '../chunk-
|
|
1
|
+
import { parseTransportResponse, parseRemoteSdkConfig, parseTelemetryTransportResponse, createMonitorRuntime } from '../chunk-YQKZEUXA.js';
|
|
2
2
|
import { createSignedRelayHeaders } from '../chunk-RXQF7F2E.js';
|
|
3
3
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
4
4
|
import { createDecipheriv, randomBytes, createCipheriv } from 'crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clientRedact, SDK_VERSION, parseErrorStack } from '../../chunk-
|
|
1
|
+
import { clientRedact, SDK_VERSION, parseErrorStack } from '../../chunk-YQKZEUXA.js';
|
|
2
2
|
import { createSignedRelayHeaders } from '../../chunk-RXQF7F2E.js';
|
|
3
3
|
import { randomUUID } from 'crypto';
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createErrorMonitor } from '../../chunk-
|
|
1
|
+
import { createErrorMonitor } from '../../chunk-DQD732MN.js';
|
|
2
2
|
import { installVueErrorMonitor } from '../../chunk-P6Q63P6L.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-YQKZEUXA.js';
|
|
4
4
|
import { defineNuxtPlugin, useRuntimeConfig } from '#app';
|
|
5
5
|
|
|
6
6
|
var plugin_default = defineNuxtPlugin({
|
package/dist/react/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createErrorMonitor } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { createErrorMonitor } from '../chunk-DQD732MN.js';
|
|
2
|
+
import '../chunk-YQKZEUXA.js';
|
|
3
3
|
import { Component, createElement } from 'react';
|
|
4
4
|
|
|
5
5
|
function createReactErrorMonitor(options) {
|
package/dist/testing/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devkitio/faultlens",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "FaultLens 的 Browser、Node、Vue、Nuxt、React 与 Web 框架错误采集 SDK",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"react": "19.1.1",
|
|
100
100
|
"tsup": "8.5.0",
|
|
101
101
|
"vue": "3.5.20",
|
|
102
|
-
"@faultlens/security": "1.0.
|
|
102
|
+
"@faultlens/security": "1.0.1"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"web-vitals": "6.2.0"
|