@bitfab/sdk 0.64.9 → 0.64.11
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-GGS5YCPE.js → chunk-3H3QMZBN.js} +6 -2
- package/dist/chunk-3H3QMZBN.js.map +1 -0
- package/dist/{chunk-FGGLYMZD.js → chunk-A6RYFTIX.js} +6 -2
- package/dist/chunk-A6RYFTIX.js.map +1 -0
- package/dist/{chunk-5VAPDLCY.js → chunk-DOKCUGYF.js} +6 -6
- package/dist/chunk-DOKCUGYF.js.map +1 -0
- package/dist/{chunk-Z3C5PXTK.js → chunk-TRI76PWA.js} +3 -3
- package/dist/{chunk-MGQ6V3CE.js → chunk-ZCT6YKKG.js} +2 -2
- package/dist/{http-WXBCXZ33.js → http-PXJMOXSK.js} +2 -2
- package/dist/{http-7K4MGDNE.js → http-QCQPXTCA.js} +2 -2
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/node.cjs +6 -2
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +3 -3
- package/dist/{replay-Q5W67C7L.js → replay-G265AWTA.js} +3 -3
- package/dist/replayCli.js +2 -2
- package/dist/seedCli.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-5VAPDLCY.js.map +0 -1
- package/dist/chunk-FGGLYMZD.js.map +0 -1
- package/dist/chunk-GGS5YCPE.js.map +0 -1
- /package/dist/{chunk-Z3C5PXTK.js.map → chunk-TRI76PWA.js.map} +0 -0
- /package/dist/{chunk-MGQ6V3CE.js.map → chunk-ZCT6YKKG.js.map} +0 -0
- /package/dist/{http-7K4MGDNE.js.map → http-PXJMOXSK.js.map} +0 -0
- /package/dist/{http-WXBCXZ33.js.map → http-QCQPXTCA.js.map} +0 -0
- /package/dist/{replay-Q5W67C7L.js.map → replay-G265AWTA.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1478,6 +1478,7 @@ type ExperimentTally = {
|
|
|
1478
1478
|
};
|
|
1479
1479
|
type ExperimentTotals = {
|
|
1480
1480
|
total: number;
|
|
1481
|
+
traces: number;
|
|
1481
1482
|
succeeded: number;
|
|
1482
1483
|
failed: number;
|
|
1483
1484
|
pending: number;
|
|
@@ -3994,7 +3995,7 @@ interface CommitRef {
|
|
|
3994
3995
|
/**
|
|
3995
3996
|
* SDK version from package.json (injected at build time)
|
|
3996
3997
|
*/
|
|
3997
|
-
declare const __version__ = "0.64.
|
|
3998
|
+
declare const __version__ = "0.64.11";
|
|
3998
3999
|
|
|
3999
4000
|
/**
|
|
4000
4001
|
* Constants for the Bitfab SDK.
|
package/dist/index.d.ts
CHANGED
|
@@ -1478,6 +1478,7 @@ type ExperimentTally = {
|
|
|
1478
1478
|
};
|
|
1479
1479
|
type ExperimentTotals = {
|
|
1480
1480
|
total: number;
|
|
1481
|
+
traces: number;
|
|
1481
1482
|
succeeded: number;
|
|
1482
1483
|
failed: number;
|
|
1483
1484
|
pending: number;
|
|
@@ -3994,7 +3995,7 @@ interface CommitRef {
|
|
|
3994
3995
|
/**
|
|
3995
3996
|
* SDK version from package.json (injected at build time)
|
|
3996
3997
|
*/
|
|
3997
|
-
declare const __version__ = "0.64.
|
|
3998
|
+
declare const __version__ = "0.64.11";
|
|
3998
3999
|
|
|
3999
4000
|
/**
|
|
4000
4001
|
* Constants for the Bitfab SDK.
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getCurrentTrace,
|
|
28
28
|
reseedFromRegistry,
|
|
29
29
|
seedFromRegistry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DOKCUGYF.js";
|
|
31
31
|
import "./chunk-YWXQM6J3.js";
|
|
32
32
|
import {
|
|
33
33
|
BITFAB_PROGRESS_PREFIX,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
ReplayError,
|
|
37
37
|
reportReplayProgress,
|
|
38
38
|
serializeReplayResult
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ZCT6YKKG.js";
|
|
40
40
|
import {
|
|
41
41
|
BitfabError,
|
|
42
42
|
DEFAULT_SERVICE_URL,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
MixedTracingError,
|
|
45
45
|
__version__,
|
|
46
46
|
flushTraces
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-A6RYFTIX.js";
|
|
48
48
|
import "./chunk-MT36GJMW.js";
|
|
49
49
|
export {
|
|
50
50
|
AssertionCategoriesClient,
|
package/dist/node.cjs
CHANGED
|
@@ -88,7 +88,7 @@ var __version__, __packageName__;
|
|
|
88
88
|
var init_version_generated = __esm({
|
|
89
89
|
"src/version.generated.ts"() {
|
|
90
90
|
"use strict";
|
|
91
|
-
__version__ = "0.64.
|
|
91
|
+
__version__ = "0.64.11";
|
|
92
92
|
__packageName__ = "@bitfab/sdk";
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -1063,7 +1063,7 @@ function recordedError(payload) {
|
|
|
1063
1063
|
const error = spanDataOf(payload)?.error;
|
|
1064
1064
|
return error !== void 0 && error !== null;
|
|
1065
1065
|
}
|
|
1066
|
-
var SIMULATION_PLAN_REFRESH_MS, SIMULATION_PLAN_RETRY_MS, SIMULATION_PLAN_READ_TIMEOUT_MS, SIMULATION_PLAN_MAX_HELD, DISABLE_SIMULATION_PLAN_ENV, ROOT_TRACE_FUNCTION_KEY_FIELD, DECLARED_NODE_FIELD, CONTENT_OFF_KEY, CONTENT_KEYS, SimulationPlan;
|
|
1066
|
+
var SIMULATION_PLAN_REFRESH_MS, SIMULATION_PLAN_RETRY_MS, SIMULATION_PLAN_READ_TIMEOUT_MS, SIMULATION_PLAN_MAX_HELD, DISABLE_SIMULATION_PLAN_ENV, NO_API_KEY_FOR_SIMULATION_PLAN, ROOT_TRACE_FUNCTION_KEY_FIELD, DECLARED_NODE_FIELD, CONTENT_OFF_KEY, CONTENT_KEYS, SimulationPlan;
|
|
1067
1067
|
var init_simulationPlan = __esm({
|
|
1068
1068
|
"src/simulationPlan.ts"() {
|
|
1069
1069
|
"use strict";
|
|
@@ -1077,6 +1077,7 @@ var init_simulationPlan = __esm({
|
|
|
1077
1077
|
SIMULATION_PLAN_READ_TIMEOUT_MS = 5e3;
|
|
1078
1078
|
SIMULATION_PLAN_MAX_HELD = 1e3;
|
|
1079
1079
|
DISABLE_SIMULATION_PLAN_ENV = "BITFAB_DISABLE_SIM_PLAN";
|
|
1080
|
+
NO_API_KEY_FOR_SIMULATION_PLAN = "no API key is set";
|
|
1080
1081
|
ROOT_TRACE_FUNCTION_KEY_FIELD = "rootTraceFunctionKey";
|
|
1081
1082
|
DECLARED_NODE_FIELD = "declaredNode";
|
|
1082
1083
|
CONTENT_OFF_KEY = "content_off_by_simulation_plan";
|
|
@@ -2723,6 +2724,9 @@ var init_http = __esm({
|
|
|
2723
2724
|
return this.request("/api/sdk/functions/lookup", { name });
|
|
2724
2725
|
}
|
|
2725
2726
|
async getSimulationPlan() {
|
|
2727
|
+
if (!this.hasApiKey()) {
|
|
2728
|
+
throw new BitfabError(NO_API_KEY_FOR_SIMULATION_PLAN);
|
|
2729
|
+
}
|
|
2726
2730
|
return this.get(
|
|
2727
2731
|
"/api/sdk/sim-plan",
|
|
2728
2732
|
SIMULATION_PLAN_READ_TIMEOUT_MS
|