@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.
- package/README.md +32 -32
- package/dist/{SandboxHost-5K4EMDXV.js → SandboxHost-OSPEPZ37.js} +4 -4
- package/dist/SandboxHost-OSPEPZ37.js.map +1 -0
- package/dist/{chunk-UWRHIZXS.js → chunk-4ROGEXJO.js} +4 -4
- package/dist/chunk-4ROGEXJO.js.map +1 -0
- package/dist/chunk-7J5IQAUF.js +12 -0
- package/dist/chunk-7J5IQAUF.js.map +1 -0
- package/dist/{chunk-3GKY3LY5.js → chunk-CJU2J3S6.js} +2 -2
- package/dist/chunk-CJU2J3S6.js.map +1 -0
- package/dist/{chunk-KDS2ISWM.js → chunk-SUVDXAJ6.js} +8 -6
- package/dist/chunk-SUVDXAJ6.js.map +1 -0
- package/dist/core-Z4AOFL5J.js +3 -0
- package/dist/{core-6DQFSOBL.js.map → core-Z4AOFL5J.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/rundot-game-api/index.d.ts +9 -9
- package/dist/rundot-game-api/index.js +10 -4
- package/dist/rundot-game-api/index.js.map +1 -1
- package/dist/vite/index.css +1 -1
- package/dist/vite/index.css.map +1 -1
- package/dist/vite/index.js +2 -2
- package/dist/vite/index.js.map +1 -1
- package/dist/webview/index.js +1 -1
- package/package.json +79 -79
- package/scripts/postinstall.mjs +377 -377
- package/dist/SandboxHost-5K4EMDXV.js.map +0 -1
- package/dist/chunk-3GKY3LY5.js.map +0 -1
- package/dist/chunk-74OSND3B.js +0 -12
- package/dist/chunk-74OSND3B.js.map +0 -1
- package/dist/chunk-KDS2ISWM.js.map +0 -1
- package/dist/chunk-UWRHIZXS.js.map +0 -1
- package/dist/core-6DQFSOBL.js +0 -3
|
@@ -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-
|
|
2
|
-
import { initializeStorage, initializeRoomsApi, initializeAds, initializePopups, initializeAnalytics, initializeIap, initializeLocalNotifications, initializePreloader, initializeTime, initializeLifecycleApi, initializeHaptics, initializeCdn, initializeFeaturesApi, initializeLoggingApi, initializeProfile, initializeSystem, initializeAvatar3d, initializeStackNavigation, initializeAi } from '../chunk-
|
|
3
|
-
import { createProxiedObject, createProxiedMethod } from '../chunk-
|
|
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-
|
|
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;
|