@worldcoin/minikit-js 0.0.29-internal-alpha → 0.0.30-internal-alpha
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/build/index.cjs +7 -2
- package/build/index.js +7 -2
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -477,8 +477,13 @@ var _MiniKit = class _MiniKit {
|
|
|
477
477
|
this.listeners[event](payload);
|
|
478
478
|
}
|
|
479
479
|
static commandsValid(input) {
|
|
480
|
-
return
|
|
481
|
-
(
|
|
480
|
+
return Object.entries(this.commandVersion).every(
|
|
481
|
+
([commandName, version]) => {
|
|
482
|
+
const commandInput = input.find(
|
|
483
|
+
(command) => command.name === commandName
|
|
484
|
+
);
|
|
485
|
+
return commandInput ? commandInput.supported_versions.includes(version) : false;
|
|
486
|
+
}
|
|
482
487
|
);
|
|
483
488
|
}
|
|
484
489
|
static install() {
|
package/build/index.js
CHANGED
|
@@ -430,8 +430,13 @@ var _MiniKit = class _MiniKit {
|
|
|
430
430
|
this.listeners[event](payload);
|
|
431
431
|
}
|
|
432
432
|
static commandsValid(input) {
|
|
433
|
-
return
|
|
434
|
-
(
|
|
433
|
+
return Object.entries(this.commandVersion).every(
|
|
434
|
+
([commandName, version]) => {
|
|
435
|
+
const commandInput = input.find(
|
|
436
|
+
(command) => command.name === commandName
|
|
437
|
+
);
|
|
438
|
+
return commandInput ? commandInput.supported_versions.includes(version) : false;
|
|
439
|
+
}
|
|
435
440
|
);
|
|
436
441
|
}
|
|
437
442
|
static install() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worldcoin/minikit-js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30-internal-alpha",
|
|
4
4
|
"homepage": "https://docs.worldcoin.org/id/minikit",
|
|
5
5
|
"description": "Internal Alpha: Mini-kit JS is a lightweight sdk for building mini-apps compatible with World App",
|
|
6
6
|
"license": "MIT",
|