@solana/kit 5.1.0 → 5.1.1-canary-20251216193810
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.development.js +16 -6
- package/dist/index.development.js.map +1 -1
- package/dist/index.production.min.js +171 -170
- package/package.json +21 -21
|
@@ -1131,6 +1131,20 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
1131
1131
|
function addCodecSizePrefix(codec, prefix) {
|
|
1132
1132
|
return combineCodec(addEncoderSizePrefix(codec, prefix), addDecoderSizePrefix(codec, prefix));
|
|
1133
1133
|
}
|
|
1134
|
+
function toArrayBuffer(bytes, offset, length) {
|
|
1135
|
+
const bytesOffset = bytes.byteOffset + (offset != null ? offset : 0);
|
|
1136
|
+
const bytesLength = length != null ? length : bytes.byteLength;
|
|
1137
|
+
let buffer;
|
|
1138
|
+
if (typeof SharedArrayBuffer === "undefined") {
|
|
1139
|
+
buffer = bytes.buffer;
|
|
1140
|
+
} else if (bytes.buffer instanceof SharedArrayBuffer) {
|
|
1141
|
+
buffer = new ArrayBuffer(bytes.length);
|
|
1142
|
+
new Uint8Array(buffer).set(new Uint8Array(bytes));
|
|
1143
|
+
} else {
|
|
1144
|
+
buffer = bytes.buffer;
|
|
1145
|
+
}
|
|
1146
|
+
return (bytesOffset === 0 || bytesOffset === -bytes.byteLength) && bytesLength === bytes.byteLength ? buffer : buffer.slice(bytesOffset, bytesOffset + bytesLength);
|
|
1147
|
+
}
|
|
1134
1148
|
function createDecoderThatConsumesEntireByteArray(decoder) {
|
|
1135
1149
|
return createDecoder({
|
|
1136
1150
|
...decoder,
|
|
@@ -2099,11 +2113,6 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
2099
2113
|
}
|
|
2100
2114
|
});
|
|
2101
2115
|
}
|
|
2102
|
-
function toArrayBuffer(bytes, offset, length) {
|
|
2103
|
-
const bytesOffset = bytes.byteOffset + (offset != null ? offset : 0);
|
|
2104
|
-
const bytesLength = length != null ? length : bytes.byteLength;
|
|
2105
|
-
return bytes.buffer.slice(bytesOffset, bytesOffset + bytesLength);
|
|
2106
|
-
}
|
|
2107
2116
|
var getF32Encoder = (config = {}) => numberEncoderFactory({
|
|
2108
2117
|
config,
|
|
2109
2118
|
name: "f32",
|
|
@@ -7065,7 +7074,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
7065
7074
|
...config.headers ? normalizeHeaders2(config.headers) : void 0,
|
|
7066
7075
|
...{
|
|
7067
7076
|
// Keep these headers lowercase so they will override any user-supplied headers above.
|
|
7068
|
-
"solana-client": `js/${"5.1.
|
|
7077
|
+
"solana-client": `js/${"5.1.1-canary-20251216193810"}`
|
|
7069
7078
|
}
|
|
7070
7079
|
}
|
|
7071
7080
|
}),
|
|
@@ -9717,6 +9726,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
9717
9726
|
exports.successfulSingleTransactionPlanResultFromSignature = successfulSingleTransactionPlanResultFromSignature;
|
|
9718
9727
|
exports.summarizeTransactionPlanResult = summarizeTransactionPlanResult;
|
|
9719
9728
|
exports.testnet = testnet;
|
|
9729
|
+
exports.toArrayBuffer = toArrayBuffer;
|
|
9720
9730
|
exports.transformChannelInboundMessages = transformChannelInboundMessages;
|
|
9721
9731
|
exports.transformChannelOutboundMessages = transformChannelOutboundMessages;
|
|
9722
9732
|
exports.transformCodec = transformCodec;
|