wenum 1.81.3 → 1.82.0

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
@@ -322,7 +322,7 @@ var bucketName = "image";
322
322
  var cdnBaseURL = "image.buddiesnearby.com";
323
323
  function getR2CdnUrl(folderName, imageID, size) {
324
324
  let url = `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}`;
325
- if (size) url = `url_${size}.webp`;
325
+ if (size) url = `${url}_${size}.webp`;
326
326
  return url;
327
327
  }
328
328
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -264,7 +264,7 @@ var bucketName = "image";
264
264
  var cdnBaseURL = "image.buddiesnearby.com";
265
265
  function getR2CdnUrl(folderName, imageID, size) {
266
266
  let url = `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}`;
267
- if (size) url = `url_${size}.webp`;
267
+ if (size) url = `${url}_${size}.webp`;
268
268
  return url;
269
269
  }
270
270
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.81.3",
3
+ "version": "1.82.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/src/r2.ts CHANGED
@@ -8,6 +8,6 @@ const cdnBaseURL = "image.buddiesnearby.com"
8
8
 
9
9
  export function getR2CdnUrl(folderName: R2Folder, imageID: string, size?: ImageSize): string {
10
10
  let url = `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}`;
11
- if (size) url = `url_${size}.webp`;
11
+ if (size) url = `${url}_${size}.webp`;
12
12
  return url;
13
13
  }