@hyve-sdk/js 2.1.1 → 2.1.2
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.js +4 -2
- package/dist/index.mjs +4 -2
- package/dist/react.js +4 -2
- package/dist/react.mjs +4 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1932,8 +1932,10 @@ var HyveClient = class {
|
|
|
1932
1932
|
* Returns the current game ID or throws if not available.
|
|
1933
1933
|
*/
|
|
1934
1934
|
requireGameId() {
|
|
1935
|
-
|
|
1936
|
-
|
|
1935
|
+
if (!this.gameId) {
|
|
1936
|
+
throw new Error("Game ID required. Ensure game-id URL parameter is set.");
|
|
1937
|
+
}
|
|
1938
|
+
return this.gameId;
|
|
1937
1939
|
}
|
|
1938
1940
|
/**
|
|
1939
1941
|
* Save persistent game data
|
package/dist/index.mjs
CHANGED
|
@@ -1892,8 +1892,10 @@ var HyveClient = class {
|
|
|
1892
1892
|
* Returns the current game ID or throws if not available.
|
|
1893
1893
|
*/
|
|
1894
1894
|
requireGameId() {
|
|
1895
|
-
|
|
1896
|
-
|
|
1895
|
+
if (!this.gameId) {
|
|
1896
|
+
throw new Error("Game ID required. Ensure game-id URL parameter is set.");
|
|
1897
|
+
}
|
|
1898
|
+
return this.gameId;
|
|
1897
1899
|
}
|
|
1898
1900
|
/**
|
|
1899
1901
|
* Save persistent game data
|
package/dist/react.js
CHANGED
|
@@ -1883,8 +1883,10 @@ var HyveClient = class {
|
|
|
1883
1883
|
* Returns the current game ID or throws if not available.
|
|
1884
1884
|
*/
|
|
1885
1885
|
requireGameId() {
|
|
1886
|
-
|
|
1887
|
-
|
|
1886
|
+
if (!this.gameId) {
|
|
1887
|
+
throw new Error("Game ID required. Ensure game-id URL parameter is set.");
|
|
1888
|
+
}
|
|
1889
|
+
return this.gameId;
|
|
1888
1890
|
}
|
|
1889
1891
|
/**
|
|
1890
1892
|
* Save persistent game data
|
package/dist/react.mjs
CHANGED
|
@@ -1862,8 +1862,10 @@ var HyveClient = class {
|
|
|
1862
1862
|
* Returns the current game ID or throws if not available.
|
|
1863
1863
|
*/
|
|
1864
1864
|
requireGameId() {
|
|
1865
|
-
|
|
1866
|
-
|
|
1865
|
+
if (!this.gameId) {
|
|
1866
|
+
throw new Error("Game ID required. Ensure game-id URL parameter is set.");
|
|
1867
|
+
}
|
|
1868
|
+
return this.gameId;
|
|
1867
1869
|
}
|
|
1868
1870
|
/**
|
|
1869
1871
|
* Save persistent game data
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyve-sdk/js",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Hyve SDK - TypeScript wrapper for Hyve game server integration",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@types/uuid": "^10.0.0",
|
|
69
69
|
"tsup": "^8.4.0",
|
|
70
70
|
"typescript": "^5.3.3",
|
|
71
|
-
"@repo/
|
|
72
|
-
"@repo/
|
|
71
|
+
"@repo/typescript-config": "0.0.0",
|
|
72
|
+
"@repo/eslint-config": "0.0.0"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"lint": "eslint . --max-warnings 0",
|