@nsshunt/stsobservability 1.0.113 → 1.0.114
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.
|
@@ -3886,6 +3886,8 @@
|
|
|
3886
3886
|
}
|
|
3887
3887
|
new TextDecoder();
|
|
3888
3888
|
class ExtData {
|
|
3889
|
+
type;
|
|
3890
|
+
data;
|
|
3889
3891
|
constructor(type, data) {
|
|
3890
3892
|
this.type = type;
|
|
3891
3893
|
this.data = data;
|
|
@@ -3999,11 +4001,18 @@
|
|
|
3999
4001
|
decode: decodeTimestampExtension
|
|
4000
4002
|
};
|
|
4001
4003
|
class ExtensionCodec {
|
|
4004
|
+
static defaultCodec = new ExtensionCodec();
|
|
4005
|
+
// ensures ExtensionCodecType<X> matches ExtensionCodec<X>
|
|
4006
|
+
// this will make type errors a lot more clear
|
|
4007
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
4008
|
+
__brand;
|
|
4009
|
+
// built-in extensions
|
|
4010
|
+
builtInEncoders = [];
|
|
4011
|
+
builtInDecoders = [];
|
|
4012
|
+
// custom extensions
|
|
4013
|
+
encoders = [];
|
|
4014
|
+
decoders = [];
|
|
4002
4015
|
constructor() {
|
|
4003
|
-
this.builtInEncoders = [];
|
|
4004
|
-
this.builtInDecoders = [];
|
|
4005
|
-
this.encoders = [];
|
|
4006
|
-
this.decoders = [];
|
|
4007
4016
|
this.register(timestampExtension);
|
|
4008
4017
|
}
|
|
4009
4018
|
register({ type, encode: encode2, decode }) {
|
|
@@ -4051,7 +4060,6 @@
|
|
|
4051
4060
|
}
|
|
4052
4061
|
}
|
|
4053
4062
|
}
|
|
4054
|
-
ExtensionCodec.defaultCodec = new ExtensionCodec();
|
|
4055
4063
|
function isArrayBufferLike(buffer) {
|
|
4056
4064
|
return buffer instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && buffer instanceof SharedArrayBuffer;
|
|
4057
4065
|
}
|
|
@@ -4069,8 +4077,20 @@
|
|
|
4069
4077
|
const DEFAULT_MAX_DEPTH = 100;
|
|
4070
4078
|
const DEFAULT_INITIAL_BUFFER_SIZE = 2048;
|
|
4071
4079
|
class Encoder {
|
|
4080
|
+
extensionCodec;
|
|
4081
|
+
context;
|
|
4082
|
+
useBigInt64;
|
|
4083
|
+
maxDepth;
|
|
4084
|
+
initialBufferSize;
|
|
4085
|
+
sortKeys;
|
|
4086
|
+
forceFloat32;
|
|
4087
|
+
ignoreUndefined;
|
|
4088
|
+
forceIntegerToFloat;
|
|
4089
|
+
pos;
|
|
4090
|
+
view;
|
|
4091
|
+
bytes;
|
|
4092
|
+
entered = false;
|
|
4072
4093
|
constructor(options) {
|
|
4073
|
-
this.entered = false;
|
|
4074
4094
|
this.extensionCodec = options?.extensionCodec ?? ExtensionCodec.defaultCodec;
|
|
4075
4095
|
this.context = options?.context;
|
|
4076
4096
|
this.useBigInt64 = options?.useBigInt64 ?? false;
|
|
@@ -4756,7 +4776,7 @@
|
|
|
4756
4776
|
return new PublishInstrumentController(options);
|
|
4757
4777
|
}
|
|
4758
4778
|
}
|
|
4759
|
-
const STSInstrumentControllerPluginKey = Symbol("instrumentController");
|
|
4779
|
+
const STSInstrumentControllerPluginKey = /* @__PURE__ */ Symbol("instrumentController");
|
|
4760
4780
|
const GetSTSInstrumentControllerPluginKey = () => STSInstrumentControllerPluginKey;
|
|
4761
4781
|
const CompareSTSInstrumentControllerPluginKey = (val) => val === STSInstrumentControllerPluginKey;
|
|
4762
4782
|
const useSTSInstrumentControllerPlugin = () => vue.inject(STSInstrumentControllerPluginKey);
|