@hyve-sdk/js 2.14.0-canary.0 → 2.14.0-canary.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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/react.d.mts +6 -0
- package/dist/react.d.ts +6 -0
- package/dist/react.js +2 -0
- package/dist/react.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -538,6 +538,12 @@ interface HyveClientConfig extends TelemetryConfig {
|
|
|
538
538
|
* when omitted.
|
|
539
539
|
*/
|
|
540
540
|
partnerApiBaseUrl?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Game ID for externally-hosted builds (e.g. CrazyGames) whose URL carries
|
|
543
|
+
* no `game-id` parameter or hyve JWT. Used for storage key namespacing and
|
|
544
|
+
* telemetry. A `game-id` URL parameter still takes precedence when present.
|
|
545
|
+
*/
|
|
546
|
+
gameId?: string;
|
|
541
547
|
}
|
|
542
548
|
/**
|
|
543
549
|
* HyveClient provides telemetry and authentication functionality for Hyve games
|
package/dist/index.d.ts
CHANGED
|
@@ -538,6 +538,12 @@ interface HyveClientConfig extends TelemetryConfig {
|
|
|
538
538
|
* when omitted.
|
|
539
539
|
*/
|
|
540
540
|
partnerApiBaseUrl?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Game ID for externally-hosted builds (e.g. CrazyGames) whose URL carries
|
|
543
|
+
* no `game-id` parameter or hyve JWT. Used for storage key namespacing and
|
|
544
|
+
* telemetry. A `game-id` URL parameter still takes precedence when present.
|
|
545
|
+
*/
|
|
546
|
+
gameId?: string;
|
|
541
547
|
}
|
|
542
548
|
/**
|
|
543
549
|
* HyveClient provides telemetry and authentication functionality for Hyve games
|
package/dist/index.js
CHANGED
|
@@ -2380,6 +2380,7 @@ var HyveClient = class {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
this.partnerApiKey = config?.partnerApiKey ?? null;
|
|
2382
2382
|
this.partnerApiBaseUrl = config?.partnerApiBaseUrl ?? null;
|
|
2383
|
+
this.gameId = config?.gameId ?? null;
|
|
2383
2384
|
if (typeof window !== "undefined" && CrazyGamesService.isCrazyGamesDomain()) {
|
|
2384
2385
|
this.crazyGamesService = new CrazyGamesService();
|
|
2385
2386
|
this.crazyGamesStorageAdapter = new CrazyGamesStorageAdapter(this.crazyGamesService);
|
|
@@ -2424,6 +2425,7 @@ var HyveClient = class {
|
|
|
2424
2425
|
!!config?.billing && Object.keys(config.billing).length > 0
|
|
2425
2426
|
);
|
|
2426
2427
|
logger.info("Storage mode:", this.storageMode);
|
|
2428
|
+
logger.info("Game ID:", this.gameId ?? "not set");
|
|
2427
2429
|
logger.info("Authenticated:", this.jwtToken !== null);
|
|
2428
2430
|
logger.debug("Config:", {
|
|
2429
2431
|
isDev: this.telemetryConfig.isDev,
|
package/dist/index.mjs
CHANGED
|
@@ -2339,6 +2339,7 @@ var HyveClient = class {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
this.partnerApiKey = config?.partnerApiKey ?? null;
|
|
2341
2341
|
this.partnerApiBaseUrl = config?.partnerApiBaseUrl ?? null;
|
|
2342
|
+
this.gameId = config?.gameId ?? null;
|
|
2342
2343
|
if (typeof window !== "undefined" && CrazyGamesService.isCrazyGamesDomain()) {
|
|
2343
2344
|
this.crazyGamesService = new CrazyGamesService();
|
|
2344
2345
|
this.crazyGamesStorageAdapter = new CrazyGamesStorageAdapter(this.crazyGamesService);
|
|
@@ -2383,6 +2384,7 @@ var HyveClient = class {
|
|
|
2383
2384
|
!!config?.billing && Object.keys(config.billing).length > 0
|
|
2384
2385
|
);
|
|
2385
2386
|
logger.info("Storage mode:", this.storageMode);
|
|
2387
|
+
logger.info("Game ID:", this.gameId ?? "not set");
|
|
2386
2388
|
logger.info("Authenticated:", this.jwtToken !== null);
|
|
2387
2389
|
logger.debug("Config:", {
|
|
2388
2390
|
isDev: this.telemetryConfig.isDev,
|
package/dist/react.d.mts
CHANGED
|
@@ -269,6 +269,12 @@ interface HyveClientConfig extends TelemetryConfig {
|
|
|
269
269
|
* when omitted.
|
|
270
270
|
*/
|
|
271
271
|
partnerApiBaseUrl?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Game ID for externally-hosted builds (e.g. CrazyGames) whose URL carries
|
|
274
|
+
* no `game-id` parameter or hyve JWT. Used for storage key namespacing and
|
|
275
|
+
* telemetry. A `game-id` URL parameter still takes precedence when present.
|
|
276
|
+
*/
|
|
277
|
+
gameId?: string;
|
|
272
278
|
}
|
|
273
279
|
/**
|
|
274
280
|
* HyveClient provides telemetry and authentication functionality for Hyve games
|
package/dist/react.d.ts
CHANGED
|
@@ -269,6 +269,12 @@ interface HyveClientConfig extends TelemetryConfig {
|
|
|
269
269
|
* when omitted.
|
|
270
270
|
*/
|
|
271
271
|
partnerApiBaseUrl?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Game ID for externally-hosted builds (e.g. CrazyGames) whose URL carries
|
|
274
|
+
* no `game-id` parameter or hyve JWT. Used for storage key namespacing and
|
|
275
|
+
* telemetry. A `game-id` URL parameter still takes precedence when present.
|
|
276
|
+
*/
|
|
277
|
+
gameId?: string;
|
|
272
278
|
}
|
|
273
279
|
/**
|
|
274
280
|
* HyveClient provides telemetry and authentication functionality for Hyve games
|
package/dist/react.js
CHANGED
|
@@ -2331,6 +2331,7 @@ var HyveClient = class {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
this.partnerApiKey = config?.partnerApiKey ?? null;
|
|
2333
2333
|
this.partnerApiBaseUrl = config?.partnerApiBaseUrl ?? null;
|
|
2334
|
+
this.gameId = config?.gameId ?? null;
|
|
2334
2335
|
if (typeof window !== "undefined" && CrazyGamesService.isCrazyGamesDomain()) {
|
|
2335
2336
|
this.crazyGamesService = new CrazyGamesService();
|
|
2336
2337
|
this.crazyGamesStorageAdapter = new CrazyGamesStorageAdapter(this.crazyGamesService);
|
|
@@ -2375,6 +2376,7 @@ var HyveClient = class {
|
|
|
2375
2376
|
!!config?.billing && Object.keys(config.billing).length > 0
|
|
2376
2377
|
);
|
|
2377
2378
|
logger.info("Storage mode:", this.storageMode);
|
|
2379
|
+
logger.info("Game ID:", this.gameId ?? "not set");
|
|
2378
2380
|
logger.info("Authenticated:", this.jwtToken !== null);
|
|
2379
2381
|
logger.debug("Config:", {
|
|
2380
2382
|
isDev: this.telemetryConfig.isDev,
|
package/dist/react.mjs
CHANGED
|
@@ -2309,6 +2309,7 @@ var HyveClient = class {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
this.partnerApiKey = config?.partnerApiKey ?? null;
|
|
2311
2311
|
this.partnerApiBaseUrl = config?.partnerApiBaseUrl ?? null;
|
|
2312
|
+
this.gameId = config?.gameId ?? null;
|
|
2312
2313
|
if (typeof window !== "undefined" && CrazyGamesService.isCrazyGamesDomain()) {
|
|
2313
2314
|
this.crazyGamesService = new CrazyGamesService();
|
|
2314
2315
|
this.crazyGamesStorageAdapter = new CrazyGamesStorageAdapter(this.crazyGamesService);
|
|
@@ -2353,6 +2354,7 @@ var HyveClient = class {
|
|
|
2353
2354
|
!!config?.billing && Object.keys(config.billing).length > 0
|
|
2354
2355
|
);
|
|
2355
2356
|
logger.info("Storage mode:", this.storageMode);
|
|
2357
|
+
logger.info("Game ID:", this.gameId ?? "not set");
|
|
2356
2358
|
logger.info("Authenticated:", this.jwtToken !== null);
|
|
2357
2359
|
logger.debug("Config:", {
|
|
2358
2360
|
isDev: this.telemetryConfig.isDev,
|