@series-inc/rundot-game-sdk 5.1.3 → 5.2.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.
@@ -1,15 +1,15 @@
1
1
  import { R as RundotGameAPI$1 } from '../AdsApi-Bzlbamms.js';
2
2
  export { B as BatchRecipeRequirementsResult, P as Profile, l as RecipeRequirementQuery, a as RecipeRequirementResult, o as RundotGameAvailableRecipe, p as RundotGameCollectRecipeResult, m as RundotGameExecuteRecipeOptions, q as RundotGameExecuteRecipeResult, n as RundotGameExecuteScopedRecipeOptions, r as RundotGameRoom, k as RundotGameSimulationConfig, i as RundotGameSimulationEffect, j as RundotGameSimulationRecipe, b as RundotGameSimulationStateResponse, e as SimulationActiveRunsUpdate, d as SimulationEntityUpdate, S as SimulationRunSummary, f as SimulationSnapshotUpdate, h as SimulationSubscribeOptions, g as SimulationUpdateData, c as SimulationUpdateType } from '../AdsApi-Bzlbamms.js';
3
3
 
4
- /**
5
- * TypeScript definitions for rundot-game-api
6
- *
7
- * This enables single-line imports with full type safety:
8
- * import RundotGameAPI from '../rundot-game-api/index.js';
9
- */
10
-
11
-
12
-
4
+ /**
5
+ * TypeScript definitions for rundot-game-api
6
+ *
7
+ * This enables single-line imports with full type safety:
8
+ * import RundotGameAPI from '../rundot-game-api/index.js';
9
+ */
10
+
11
+
12
+
13
13
  declare const RundotGameAPI: RundotGameAPI$1
14
14
 
15
15
  export { RundotGameAPI$1 as RundotGameAPI, RundotGameAPI as default };
@@ -1,6 +1,6 @@
1
- import { SDK_VERSION, createHost, initializeLeaderboard, initializeUgc, initializeImageGen, initializeSimulation, initializeSocial } from '../chunk-KDS2ISWM.js';
2
- import { initializeStorage, initializeRoomsApi, initializeAds, initializePopups, initializeAnalytics, initializeIap, initializeLocalNotifications, initializePreloader, initializeTime, initializeLifecycleApi, initializeHaptics, initializeCdn, initializeFeaturesApi, initializeLoggingApi, initializeProfile, initializeSystem, initializeAvatar3d, initializeStackNavigation, initializeAi } from '../chunk-UWRHIZXS.js';
3
- import { createProxiedObject, createProxiedMethod } from '../chunk-3GKY3LY5.js';
1
+ import { SDK_VERSION, createHost, initializeLeaderboard, initializeUgc, initializeImageGen, initializeSimulation, initializeSocial } from '../chunk-SUVDXAJ6.js';
2
+ import { initializeStorage, initializeRoomsApi, initializeAds, initializePopups, initializeAnalytics, initializeIap, initializeLocalNotifications, initializePreloader, initializeTime, initializeLifecycleApi, initializeHaptics, initializeCdn, initializeFeaturesApi, initializeLoggingApi, initializeProfile, initializeSystem, initializeAvatar3d, initializeStackNavigation, initializeAi } from '../chunk-4ROGEXJO.js';
3
+ import { createProxiedObject, createProxiedMethod } from '../chunk-CJU2J3S6.js';
4
4
 
5
5
  // src/rundot-game-api/systems/asset-loader.js
6
6
  var RundotGameAssetLoader = class {
@@ -1732,7 +1732,7 @@ function createNumbersAPI() {
1732
1732
  return numbersAPI;
1733
1733
  }
1734
1734
  async function initializeNumbers(rundotGameApiInstance) {
1735
- const { createProxiedObject: createProxiedObject2, createProxiedMethod: createProxiedMethod2 } = await import('../core-6DQFSOBL.js');
1735
+ const { createProxiedObject: createProxiedObject2, createProxiedMethod: createProxiedMethod2 } = await import('../core-Z4AOFL5J.js');
1736
1736
  const numbersAPI = createNumbersAPI();
1737
1737
  rundotGameApiInstance.numbers = createProxiedObject2.call(
1738
1738
  rundotGameApiInstance,
@@ -1988,6 +1988,12 @@ var RundotGameAPI2 = class {
1988
1988
  // BOOTSTRAP METHODS
1989
1989
  //---------------------------------------
1990
1990
  _detectHostedEnvironment() {
1991
+ const isLocalhost = typeof window !== "undefined" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "[::1]");
1992
+ if (isLocalhost) {
1993
+ console.log("[RUN.game SDK] Detected localhost");
1994
+ this._bootstrap.isInsideHostedEnvironment = false;
1995
+ return;
1996
+ }
1991
1997
  const isInIframe = window.self !== window.top;
1992
1998
  const hasReactNativeWebView = typeof window.ReactNativeWebView !== "undefined";
1993
1999
  this._bootstrap.isInsideHostedEnvironment = isInIframe || hasReactNativeWebView;