@glasstrace/sdk 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/README.md +39 -0
- package/dist/{chunk-7PDDBLST.js → chunk-KE7MCPO5.js} +1 -1
- package/dist/chunk-KE7MCPO5.js.map +1 -0
- package/dist/{chunk-D3WYZBQA.js → chunk-MV3F7HVX.js} +6 -6
- package/dist/{chunk-BT2OCXCG.js → chunk-UGJ3X4CT.js} +1 -1
- package/dist/chunk-UGJ3X4CT.js.map +1 -0
- package/dist/cli/init.cjs +1 -1
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/node-entry.cjs +4 -4
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.js +3 -3
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.d.cts +109 -2
- package/dist/node-subpath.d.ts +109 -2
- package/dist/node-subpath.js +2 -2
- package/dist/{source-map-uploader-ZHA3B4GE.js → source-map-uploader-BJIXRLJ6.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-7PDDBLST.js.map +0 -1
- package/dist/chunk-BT2OCXCG.js.map +0 -1
- /package/dist/{chunk-D3WYZBQA.js.map → chunk-MV3F7HVX.js.map} +0 -0
- /package/dist/{source-map-uploader-ZHA3B4GE.js.map → source-map-uploader-BJIXRLJ6.js.map} +0 -0
package/dist/cli/init.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "../chunk-DO2YPMQ5.js";
|
|
8
8
|
import {
|
|
9
9
|
buildImportGraph
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-UGJ3X4CT.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig
|
|
13
13
|
} from "../chunk-VUZCLMIX.js";
|
|
@@ -610,7 +610,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
|
|
|
610
610
|
}
|
|
611
611
|
const baseConfig = resolveConfig({ apiKey: devKey });
|
|
612
612
|
const config = { ...baseConfig, apiKey: devKey };
|
|
613
|
-
const sdkVersion = true ? "1.0.
|
|
613
|
+
const sdkVersion = true ? "1.0.1" : "0.0.0-dev";
|
|
614
614
|
const result = await verifyInitReachable(config, anonKey, sdkVersion);
|
|
615
615
|
if (result.ok) {
|
|
616
616
|
return { outcome: "verified" };
|
package/dist/index.cjs
CHANGED
|
@@ -21821,7 +21821,7 @@ function registerGlasstrace(options) {
|
|
|
21821
21821
|
setCoreState(CoreState.REGISTERING);
|
|
21822
21822
|
startRuntimeStateWriter({
|
|
21823
21823
|
projectRoot: process.cwd(),
|
|
21824
|
-
sdkVersion: "1.0.
|
|
21824
|
+
sdkVersion: "1.0.1"
|
|
21825
21825
|
});
|
|
21826
21826
|
const config2 = resolveConfig(options);
|
|
21827
21827
|
if (config2.verbose) {
|
|
@@ -21987,8 +21987,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
21987
21987
|
if (config2.verbose) {
|
|
21988
21988
|
console.info("[glasstrace] Background init firing.");
|
|
21989
21989
|
}
|
|
21990
|
-
const healthReport = collectHealthReport("1.0.
|
|
21991
|
-
const initResult = await performInit(config2, anonKeyForInit, "1.0.
|
|
21990
|
+
const healthReport = collectHealthReport("1.0.1");
|
|
21991
|
+
const initResult = await performInit(config2, anonKeyForInit, "1.0.1", healthReport);
|
|
21992
21992
|
if (generation !== registrationGeneration) return;
|
|
21993
21993
|
const currentState = getCoreState();
|
|
21994
21994
|
if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
|
|
@@ -22011,7 +22011,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
22011
22011
|
}
|
|
22012
22012
|
maybeInstallConsoleCapture();
|
|
22013
22013
|
if (didLastInitSucceed()) {
|
|
22014
|
-
startHeartbeat(config2, anonKeyForInit, "1.0.
|
|
22014
|
+
startHeartbeat(config2, anonKeyForInit, "1.0.1", generation, (newApiKey, accountId) => {
|
|
22015
22015
|
setAuthState(AuthState.CLAIMING);
|
|
22016
22016
|
emitLifecycleEvent("auth:claim_started", { accountId });
|
|
22017
22017
|
setResolvedApiKey(newApiKey);
|