wenum 1.81.2 → 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.d.mts CHANGED
@@ -263,6 +263,6 @@ declare enum ReactionType {
263
263
 
264
264
  type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
265
265
  type ImageSize = 'sm' | 'md' | 'lg';
266
- declare function getR2CdnUrl(folderName: R2Folder, imageID: string, size: ImageSize): string;
266
+ declare function getR2CdnUrl(folderName: R2Folder, imageID: string, size?: ImageSize): string;
267
267
 
268
268
  export { type AccountStatus, AdminAccountStatus, AttachmentType, AttendanceStatus, AvatarType, BasketballPosition, type BroadcastType, type BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionAttributeType, type CollectionMetaProps, type CollectionMetaStatus, type CollectionOwnerStatus, type CollectionPetsAttributeType, type CollectionPrivacy, type CollectionStatus, type CollectionType, type CommonAttributeType, type CommonMarketType, type CoordinatesProps, type DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, HEADERQUARTER_LAT, HEADERQUARTER_LNG, type Handedness, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MarketsByTypeNearbyProps, type MemberingStatus, type MusicInterestType, type NearbyProps, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, type R2Folder, ReactionType, type SetCoordinatesFuncType, type SocialMediaType, type SportsInterestType, type SubjectType, type TennisBackhand, type TennisLevel, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, type UoiAttributeType, type UoiSportsAttributeType, type UoiSportsBasketballAttributeType, type UoiSportsTennisAttributeType, type UserPronoun, type WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.d.ts CHANGED
@@ -263,6 +263,6 @@ declare enum ReactionType {
263
263
 
264
264
  type R2Folder = 'collection' | 'post' | 'game' | 'uoi' | 'user' | 'team' | 'leaderboard' | 'arena' | 'event';
265
265
  type ImageSize = 'sm' | 'md' | 'lg';
266
- declare function getR2CdnUrl(folderName: R2Folder, imageID: string, size: ImageSize): string;
266
+ declare function getR2CdnUrl(folderName: R2Folder, imageID: string, size?: ImageSize): string;
267
267
 
268
268
  export { type AccountStatus, AdminAccountStatus, AttachmentType, AttendanceStatus, AvatarType, BasketballPosition, type BroadcastType, type BuddyingStatus, COLLECTION_ATTRIBUTE_LABEL, COLLECTION_PETS_ATTRIBUTE_LABEL, COMMON_ATTRIBUTE_LABEL, type CardGamesInterestType, type CategoryType, ChallengeStatus, type CollectionAttributeType, type CollectionMetaProps, type CollectionMetaStatus, type CollectionOwnerStatus, type CollectionPetsAttributeType, type CollectionPrivacy, type CollectionStatus, type CollectionType, type CommonAttributeType, type CommonMarketType, type CoordinatesProps, type DuelGameResultType, type EventsNearbyProps, FollowingStatus, type GameMetaProps, type GameType, type GamesByTypeNearbyProps, type GamesNearbyProps, type Gender, HEADERQUARTER_LAT, HEADERQUARTER_LNG, type Handedness, type ImageSize, type InterestNearbyProps, type InterestType, type LeaderboardType, type LeaderboardsByGameTypeNearbyProps, type LengthUnit, type LocationType, type MarketMetaProps, type MarketMetaStatus, type MarketType, type MarketsByTypeNearbyProps, type MemberingStatus, type MusicInterestType, type NearbyProps, type NotificationType, type PIDPrefixType, PID_LENGTH, PID_PREFIX_LENGTH, type PageType, type PetsInterestType, type PlayerType, type PostPrivacy, type ProfileJoiningType, type ProfilePermission, type ProfilePrivacy, type ProfileStatus, type ProfileType, type R2Folder, ReactionType, type SetCoordinatesFuncType, type SocialMediaType, type SportsInterestType, type SubjectType, type TennisBackhand, type TennisLevel, UOI_ATTRIBUTE_LABEL, UOI_SPORTS_ATTRIBUTE_LABEL, UOI_SPORTS_BASKETBALL_ATTRIBUTE_LABEL, UOI_SPORTS_TENNIS_ATTRIBUTE_LABEL, type UoiAttributeType, type UoiSportsAttributeType, type UoiSportsBasketballAttributeType, type UoiSportsTennisAttributeType, type UserPronoun, type WeightUnit, ZeroCollectionMeta, ZeroGameMeta, ZeroMarketOption, getCollectionAttributeLabel, getCommonAttributeLabel, getNearbyIndex, getPIDPrefixByProfileType, getProfileTypeByPID, getR2CdnUrl, getUoiAttributeLabel, isGamePID, isLeaderboardPID, isTeamPID, isUoiPID };
package/dist/index.js CHANGED
@@ -321,7 +321,9 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
321
321
  var bucketName = "image";
322
322
  var cdnBaseURL = "image.buddiesnearby.com";
323
323
  function getR2CdnUrl(folderName, imageID, size) {
324
- return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${size}.webp`;
324
+ let url = `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}`;
325
+ if (size) url = `${url}_${size}.webp`;
326
+ return url;
325
327
  }
326
328
  // Annotate the CommonJS export names for ESM import in node:
327
329
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -263,7 +263,9 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
263
263
  var bucketName = "image";
264
264
  var cdnBaseURL = "image.buddiesnearby.com";
265
265
  function getR2CdnUrl(folderName, imageID, size) {
266
- return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${size}.webp`;
266
+ let url = `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}`;
267
+ if (size) url = `${url}_${size}.webp`;
268
+ return url;
267
269
  }
268
270
  export {
269
271
  AdminAccountStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenum",
3
- "version": "1.81.2",
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
@@ -6,6 +6,8 @@ const bucketName = "image"
6
6
 
7
7
  const cdnBaseURL = "image.buddiesnearby.com"
8
8
 
9
- export function getR2CdnUrl(folderName: R2Folder, imageID: string, size: ImageSize): string {
10
- return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${size}.webp`;
9
+ export function getR2CdnUrl(folderName: R2Folder, imageID: string, size?: ImageSize): string {
10
+ let url = `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}`;
11
+ if (size) url = `${url}_${size}.webp`;
12
+ return url;
11
13
  }