wenum 1.81.0 → 1.81.1
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/r2.ts +1 -1
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 ImageVariant = 'thumbnail' | 'large';
|
|
266
|
-
declare function
|
|
266
|
+
declare function getR2CdnUrl(folderName: R2Folder, imageID: string, variant: ImageVariant): string;
|
|
267
267
|
|
|
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 ImageVariant, 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,
|
|
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 ImageVariant, 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 ImageVariant = 'thumbnail' | 'large';
|
|
266
|
-
declare function
|
|
266
|
+
declare function getR2CdnUrl(folderName: R2Folder, imageID: string, variant: ImageVariant): string;
|
|
267
267
|
|
|
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 ImageVariant, 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,
|
|
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 ImageVariant, 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
|
@@ -42,12 +42,12 @@ __export(index_exports, {
|
|
|
42
42
|
ZeroCollectionMeta: () => ZeroCollectionMeta,
|
|
43
43
|
ZeroGameMeta: () => ZeroGameMeta,
|
|
44
44
|
ZeroMarketOption: () => ZeroMarketOption,
|
|
45
|
-
getCdnUrl: () => getCdnUrl,
|
|
46
45
|
getCollectionAttributeLabel: () => getCollectionAttributeLabel,
|
|
47
46
|
getCommonAttributeLabel: () => getCommonAttributeLabel,
|
|
48
47
|
getNearbyIndex: () => getNearbyIndex,
|
|
49
48
|
getPIDPrefixByProfileType: () => getPIDPrefixByProfileType,
|
|
50
49
|
getProfileTypeByPID: () => getProfileTypeByPID,
|
|
50
|
+
getR2CdnUrl: () => getR2CdnUrl,
|
|
51
51
|
getUoiAttributeLabel: () => getUoiAttributeLabel,
|
|
52
52
|
isGamePID: () => isGamePID,
|
|
53
53
|
isLeaderboardPID: () => isLeaderboardPID,
|
|
@@ -320,7 +320,7 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
|
320
320
|
// src/r2.ts
|
|
321
321
|
var bucketName = "image";
|
|
322
322
|
var cdnBaseURL = "image.buddiesnearby.com";
|
|
323
|
-
function
|
|
323
|
+
function getR2CdnUrl(folderName, imageID, variant) {
|
|
324
324
|
return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${variant}.webp`;
|
|
325
325
|
}
|
|
326
326
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -347,12 +347,12 @@ function getCdnUrl(folderName, imageID, variant) {
|
|
|
347
347
|
ZeroCollectionMeta,
|
|
348
348
|
ZeroGameMeta,
|
|
349
349
|
ZeroMarketOption,
|
|
350
|
-
getCdnUrl,
|
|
351
350
|
getCollectionAttributeLabel,
|
|
352
351
|
getCommonAttributeLabel,
|
|
353
352
|
getNearbyIndex,
|
|
354
353
|
getPIDPrefixByProfileType,
|
|
355
354
|
getProfileTypeByPID,
|
|
355
|
+
getR2CdnUrl,
|
|
356
356
|
getUoiAttributeLabel,
|
|
357
357
|
isGamePID,
|
|
358
358
|
isLeaderboardPID,
|
package/dist/index.mjs
CHANGED
|
@@ -262,7 +262,7 @@ var ReactionType = /* @__PURE__ */ ((ReactionType2) => {
|
|
|
262
262
|
// src/r2.ts
|
|
263
263
|
var bucketName = "image";
|
|
264
264
|
var cdnBaseURL = "image.buddiesnearby.com";
|
|
265
|
-
function
|
|
265
|
+
function getR2CdnUrl(folderName, imageID, variant) {
|
|
266
266
|
return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${variant}.webp`;
|
|
267
267
|
}
|
|
268
268
|
export {
|
|
@@ -288,12 +288,12 @@ export {
|
|
|
288
288
|
ZeroCollectionMeta,
|
|
289
289
|
ZeroGameMeta,
|
|
290
290
|
ZeroMarketOption,
|
|
291
|
-
getCdnUrl,
|
|
292
291
|
getCollectionAttributeLabel,
|
|
293
292
|
getCommonAttributeLabel,
|
|
294
293
|
getNearbyIndex,
|
|
295
294
|
getPIDPrefixByProfileType,
|
|
296
295
|
getProfileTypeByPID,
|
|
296
|
+
getR2CdnUrl,
|
|
297
297
|
getUoiAttributeLabel,
|
|
298
298
|
isGamePID,
|
|
299
299
|
isLeaderboardPID,
|
package/package.json
CHANGED
package/src/r2.ts
CHANGED
|
@@ -6,6 +6,6 @@ const bucketName = "image"
|
|
|
6
6
|
|
|
7
7
|
const cdnBaseURL = "image.buddiesnearby.com"
|
|
8
8
|
|
|
9
|
-
export function
|
|
9
|
+
export function getR2CdnUrl(folderName: R2Folder, imageID: string, variant: ImageVariant): string {
|
|
10
10
|
return `https://${cdnBaseURL}/${bucketName}/${folderName}/${imageID}_${variant}.webp`;
|
|
11
11
|
}
|