@cross-deck/web 1.4.2 → 1.5.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/CHANGELOG.md +74 -0
- package/README.md +94 -0
- package/dist/contracts 2.json +378 -0
- package/dist/contracts.json +378 -0
- package/dist/crossdeck.umd.min 2.js +3 -0
- package/dist/crossdeck.umd.min.js +2 -2
- package/dist/crossdeck.umd.min.js 2.map +1 -0
- package/dist/crossdeck.umd.min.js.map +1 -1
- package/dist/error-codes 2.json +196 -0
- package/dist/error-codes.json +1 -1
- package/dist/index 2.cjs +4778 -0
- package/dist/index 2.mjs +4742 -0
- package/dist/index.cjs +457 -0
- package/dist/index.cjs 2.map +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d 2.mts +938 -0
- package/dist/index.d 2.ts +938 -0
- package/dist/index.d.mts +174 -1
- package/dist/index.d.ts +174 -1
- package/dist/index.mjs +456 -0
- package/dist/index.mjs 2.map +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/react 2.cjs +4220 -0
- package/dist/react 2.mjs +4193 -0
- package/dist/react.cjs +31 -0
- package/dist/react.cjs 2.map +1 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d 2.mts +91 -0
- package/dist/react.d 2.ts +91 -0
- package/dist/react.mjs +31 -0
- package/dist/react.mjs 2.map +1 -0
- package/dist/react.mjs.map +1 -1
- package/dist/types-Bu3jbmdq.d 2.mts +314 -0
- package/dist/types-Bu3jbmdq.d 2.ts +314 -0
- package/dist/vue 2.cjs +4185 -0
- package/dist/vue 2.mjs +4159 -0
- package/dist/vue.cjs +31 -0
- package/dist/vue.cjs 2.map +1 -0
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.d 2.mts +37 -0
- package/dist/vue.d 2.ts +37 -0
- package/dist/vue.mjs +31 -0
- package/dist/vue.mjs 2.map +1 -0
- package/dist/vue.mjs.map +1 -1
- package/package.json +3 -2
package/dist/vue.cjs
CHANGED
|
@@ -3701,6 +3701,37 @@ var CrossdeckClient = class {
|
|
|
3701
3701
|
* trip happens in the background. To flush before the page unloads,
|
|
3702
3702
|
* call flush().
|
|
3703
3703
|
*/
|
|
3704
|
+
/**
|
|
3705
|
+
* Emit `crossdeck.contract_failed` with the canonical property
|
|
3706
|
+
* shape (`contract_id`, `sdk_version`, `sdk_platform`,
|
|
3707
|
+
* `failure_reason`, `run_context`, `run_id`). Goes through the
|
|
3708
|
+
* standard track() pipeline — same consent gate, same queue,
|
|
3709
|
+
* same ingest, no new endpoint.
|
|
3710
|
+
*
|
|
3711
|
+
* Wire the call from a test hook, dogfood failure path, or
|
|
3712
|
+
* customer contract-verification harness; see
|
|
3713
|
+
* `contracts/README.md` for the per-test-framework hook recipes.
|
|
3714
|
+
*/
|
|
3715
|
+
reportContractFailure(input) {
|
|
3716
|
+
const props = {
|
|
3717
|
+
contract_id: input.contractId,
|
|
3718
|
+
sdk_version: SDK_VERSION,
|
|
3719
|
+
sdk_platform: "web",
|
|
3720
|
+
failure_reason: input.failureReason,
|
|
3721
|
+
run_context: input.runContext,
|
|
3722
|
+
run_id: input.runId
|
|
3723
|
+
};
|
|
3724
|
+
if (input.testRef) {
|
|
3725
|
+
props.test_file = input.testRef.file;
|
|
3726
|
+
props.test_name = input.testRef.name;
|
|
3727
|
+
}
|
|
3728
|
+
if (input.extra) {
|
|
3729
|
+
for (const [k, v] of Object.entries(input.extra)) {
|
|
3730
|
+
if (props[k] === void 0) props[k] = v;
|
|
3731
|
+
}
|
|
3732
|
+
}
|
|
3733
|
+
this.track("crossdeck.contract_failed", props);
|
|
3734
|
+
}
|
|
3704
3735
|
track(name, properties) {
|
|
3705
3736
|
const s = this.requireStarted();
|
|
3706
3737
|
if (!name) {
|