@brixel_ai/artifact-sdk 1.0.5 → 1.0.6
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.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -162,7 +162,11 @@ function isBase64BytesPayload(value) {
|
|
|
162
162
|
function decodeBase64BytesPayloads(value) {
|
|
163
163
|
if (isBase64BytesPayload(value)) {
|
|
164
164
|
try {
|
|
165
|
-
|
|
165
|
+
const { encoding: _encoding, ...payloadWithoutEncoding } = value;
|
|
166
|
+
return {
|
|
167
|
+
...payloadWithoutEncoding,
|
|
168
|
+
content: decodeBase64ToUint8Array(value.content)
|
|
169
|
+
};
|
|
166
170
|
} catch {
|
|
167
171
|
return value;
|
|
168
172
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -127,7 +127,11 @@ function isBase64BytesPayload(value) {
|
|
|
127
127
|
function decodeBase64BytesPayloads(value) {
|
|
128
128
|
if (isBase64BytesPayload(value)) {
|
|
129
129
|
try {
|
|
130
|
-
|
|
130
|
+
const { encoding: _encoding, ...payloadWithoutEncoding } = value;
|
|
131
|
+
return {
|
|
132
|
+
...payloadWithoutEncoding,
|
|
133
|
+
content: decodeBase64ToUint8Array(value.content)
|
|
134
|
+
};
|
|
131
135
|
} catch {
|
|
132
136
|
return value;
|
|
133
137
|
}
|
package/package.json
CHANGED