@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/index.js
CHANGED
package/dist/node-entry.cjs
CHANGED
|
@@ -21897,7 +21897,7 @@ function registerGlasstrace(options) {
|
|
|
21897
21897
|
setCoreState(CoreState.REGISTERING);
|
|
21898
21898
|
startRuntimeStateWriter({
|
|
21899
21899
|
projectRoot: process.cwd(),
|
|
21900
|
-
sdkVersion: "1.0.
|
|
21900
|
+
sdkVersion: "1.0.1"
|
|
21901
21901
|
});
|
|
21902
21902
|
const config2 = resolveConfig(options);
|
|
21903
21903
|
if (config2.verbose) {
|
|
@@ -22063,8 +22063,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
22063
22063
|
if (config2.verbose) {
|
|
22064
22064
|
console.info("[glasstrace] Background init firing.");
|
|
22065
22065
|
}
|
|
22066
|
-
const healthReport = collectHealthReport("1.0.
|
|
22067
|
-
const initResult = await performInit(config2, anonKeyForInit, "1.0.
|
|
22066
|
+
const healthReport = collectHealthReport("1.0.1");
|
|
22067
|
+
const initResult = await performInit(config2, anonKeyForInit, "1.0.1", healthReport);
|
|
22068
22068
|
if (generation !== registrationGeneration) return;
|
|
22069
22069
|
const currentState = getCoreState();
|
|
22070
22070
|
if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
|
|
@@ -22087,7 +22087,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
22087
22087
|
}
|
|
22088
22088
|
maybeInstallConsoleCapture();
|
|
22089
22089
|
if (didLastInitSucceed()) {
|
|
22090
|
-
startHeartbeat(config2, anonKeyForInit, "1.0.
|
|
22090
|
+
startHeartbeat(config2, anonKeyForInit, "1.0.1", generation, (newApiKey, accountId) => {
|
|
22091
22091
|
setAuthState(AuthState.CLAIMING);
|
|
22092
22092
|
emitLifecycleEvent("auth:claim_started", { accountId });
|
|
22093
22093
|
setResolvedApiKey(newApiKey);
|