usegamigameapi 1.0.6 → 1.0.7
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 +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ var QuestionBridge = class {
|
|
|
68
68
|
var bridge = new QuestionBridge();
|
|
69
69
|
|
|
70
70
|
// src/useGameAPI.ts
|
|
71
|
+
console.log("useGameAPI-V1.0.6");
|
|
71
72
|
function useGameAPI({ onAnswerCorrect, onAnswerIncorrect }) {
|
|
72
73
|
const [currentQuestionIndex, setCurrentQuestionIndex] = (0, import_react.useState)(0);
|
|
73
74
|
const currentQuestionIndexRef = (0, import_react.useRef)(0);
|
package/dist/index.mjs
CHANGED
|
@@ -42,6 +42,7 @@ var QuestionBridge = class {
|
|
|
42
42
|
var bridge = new QuestionBridge();
|
|
43
43
|
|
|
44
44
|
// src/useGameAPI.ts
|
|
45
|
+
console.log("useGameAPI-V1.0.6");
|
|
45
46
|
function useGameAPI({ onAnswerCorrect, onAnswerIncorrect }) {
|
|
46
47
|
const [currentQuestionIndex, setCurrentQuestionIndex] = useState(0);
|
|
47
48
|
const currentQuestionIndexRef = useRef(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "usegamigameapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
12
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --clean --no-external react react-dom",
|
|
13
13
|
"publish": "npm run build && npm publish --access public"
|
|
14
14
|
},
|
|
15
|
-
"
|
|
16
|
-
"react": "
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"react": "^19.2.3",
|
|
17
|
+
"react-dom": "^19.2.3"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
|
-
"react": "^19.2.3",
|
|
20
20
|
"@types/react": "^19.2.8",
|
|
21
21
|
"tsup": "^8.5.1",
|
|
22
22
|
"typescript": "^5.9.3"
|
|
23
23
|
}
|
|
24
|
-
}
|
|
24
|
+
}
|