@frondruntime/devtools 0.5.0 → 0.6.0-rc.0
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/index.d.ts +10 -4
- package/dist/index.js +494 -117
- package/dist/index.js.map +8 -8
- package/package.json +2 -2
- package/src/attach.ts +40 -6
- package/src/cause.ts +241 -64
- package/src/descriptors.ts +70 -3
- package/src/encode.ts +208 -80
- package/src/full.ts +327 -39
- package/src/shape.ts +71 -15
package/dist/index.d.ts
CHANGED
|
@@ -464,6 +464,11 @@ export declare type EncodePolicy = ValuePolicy;
|
|
|
464
464
|
* data. A signal's channel and name join them, on the reasoning
|
|
465
465
|
* `EncodedEventRecord` gives for the two fields. Only the event body goes
|
|
466
466
|
* through the value encoder.
|
|
467
|
+
*
|
|
468
|
+
* Built field by field rather than through a {@link ValueEncoder}: this runs
|
|
469
|
+
* once per runtime event, and on Hermes the encoder object, its closures, and
|
|
470
|
+
* an identity object spread into the record are a cost per event. One budget
|
|
471
|
+
* per record, as with an encoder.
|
|
467
472
|
*/
|
|
468
473
|
export declare function encodeRecord(record: Runtime.RuntimeEventRecord, policy: EncodePolicy): EncodedEventRecord;
|
|
469
474
|
|
|
@@ -1096,10 +1101,11 @@ export declare type StateQuery = typeof StateQuery.Type;
|
|
|
1096
1101
|
/**
|
|
1097
1102
|
* A policy, applied to one answer.
|
|
1098
1103
|
*
|
|
1099
|
-
* One of these per
|
|
1100
|
-
* is the thing worth bounding: what a single answer costs
|
|
1101
|
-
* with one enormous field should spend its own allowance
|
|
1102
|
-
* field by field, and two records should never be able
|
|
1104
|
+
* One of these per snapshot, and one budget per record in `encodeRecord`,
|
|
1105
|
+
* because the budget is the thing worth bounding: what a single answer costs
|
|
1106
|
+
* the wire. A record with one enormous field should spend its own allowance
|
|
1107
|
+
* rather than be judged field by field, and two records should never be able
|
|
1108
|
+
* to spend each other's.
|
|
1103
1109
|
*/
|
|
1104
1110
|
export declare type ValueEncoder = {
|
|
1105
1111
|
/** Ordinary app data, redacted according to the policy. */
|