@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 CHANGED
@@ -162,7 +162,11 @@ function isBase64BytesPayload(value) {
162
162
  function decodeBase64BytesPayloads(value) {
163
163
  if (isBase64BytesPayload(value)) {
164
164
  try {
165
- return decodeBase64ToUint8Array(value.content);
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
- return decodeBase64ToUint8Array(value.content);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brixel_ai/artifact-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "SDK for building Brixel Artifacts - interactive React components that integrate with Brixel workflows",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",