@polka-codes/cli-shared 0.9.21 → 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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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.toBase64(),
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).toBase64(),
68391
+ base64Data: Buffer.from(data).toString("base64"),
68392
68392
  mediaType
68393
68393
  };
68394
68394
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli-shared",
3
- "version": "0.9.21",
3
+ "version": "0.9.22",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",