@polka-codes/cli-shared 0.9.20 → 0.9.22
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68377,7 +68377,7 @@ var getProvider = (_agentName, _config, options = {}) => {
|
|
|
68377
68377
|
const data2 = await readFile(resolvedPath);
|
|
68378
68378
|
const mediaType2 = $lookup(resolvedPath) || "application/octet-stream";
|
|
68379
68379
|
return {
|
|
68380
|
-
base64Data: data2.
|
|
68380
|
+
base64Data: data2.toString("base64"),
|
|
68381
68381
|
mediaType: mediaType2
|
|
68382
68382
|
};
|
|
68383
68383
|
}
|
|
@@ -68388,7 +68388,7 @@ var getProvider = (_agentName, _config, options = {}) => {
|
|
|
68388
68388
|
const data = await response.arrayBuffer();
|
|
68389
68389
|
const mediaType = $lookup(url3) || "application/octet-stream";
|
|
68390
68390
|
return {
|
|
68391
|
-
base64Data: Buffer.from(data).
|
|
68391
|
+
base64Data: Buffer.from(data).toString("base64"),
|
|
68392
68392
|
mediaType
|
|
68393
68393
|
};
|
|
68394
68394
|
},
|