@worldcoin/minikit-js 1.9.2 → 1.9.3
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.
|
@@ -782,7 +782,7 @@ var _MiniKit = class _MiniKit {
|
|
|
782
782
|
);
|
|
783
783
|
let isCommandValid = false;
|
|
784
784
|
if (!commandInput) {
|
|
785
|
-
console.
|
|
785
|
+
console.warn(
|
|
786
786
|
`Command ${minikitCommandName} is not supported by the app. Try updating the app version`
|
|
787
787
|
);
|
|
788
788
|
} else {
|
|
@@ -790,8 +790,8 @@ var _MiniKit = class _MiniKit {
|
|
|
790
790
|
_MiniKit.isCommandAvailable[minikitCommandName] = true;
|
|
791
791
|
isCommandValid = true;
|
|
792
792
|
} else {
|
|
793
|
-
console.
|
|
794
|
-
`Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}
|
|
793
|
+
console.warn(
|
|
794
|
+
`Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}. This is not an error, but it is recommended to update the World App version.`
|
|
795
795
|
);
|
|
796
796
|
_MiniKit.isCommandAvailable[minikitCommandName] = isCommandValid;
|
|
797
797
|
}
|
|
@@ -840,6 +840,7 @@ var _MiniKit = class _MiniKit {
|
|
|
840
840
|
errorMessage: MiniKitInstallErrorMessage["unknown" /* Unknown */]
|
|
841
841
|
};
|
|
842
842
|
}
|
|
843
|
+
_MiniKit.isReady = true;
|
|
843
844
|
if (!this.commandsValid(window.WorldApp.supported_commands)) {
|
|
844
845
|
return {
|
|
845
846
|
success: false,
|
|
@@ -847,7 +848,6 @@ var _MiniKit = class _MiniKit {
|
|
|
847
848
|
errorMessage: MiniKitInstallErrorMessage["app_out_of_date" /* AppOutOfDate */]
|
|
848
849
|
};
|
|
849
850
|
}
|
|
850
|
-
_MiniKit.isReady = true;
|
|
851
851
|
return { success: true };
|
|
852
852
|
}
|
|
853
853
|
static isInstalled(debug) {
|
package/build/index.cjs
CHANGED
|
@@ -834,7 +834,7 @@ var _MiniKit = class _MiniKit {
|
|
|
834
834
|
);
|
|
835
835
|
let isCommandValid = false;
|
|
836
836
|
if (!commandInput) {
|
|
837
|
-
console.
|
|
837
|
+
console.warn(
|
|
838
838
|
`Command ${minikitCommandName} is not supported by the app. Try updating the app version`
|
|
839
839
|
);
|
|
840
840
|
} else {
|
|
@@ -842,8 +842,8 @@ var _MiniKit = class _MiniKit {
|
|
|
842
842
|
_MiniKit.isCommandAvailable[minikitCommandName] = true;
|
|
843
843
|
isCommandValid = true;
|
|
844
844
|
} else {
|
|
845
|
-
console.
|
|
846
|
-
`Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}
|
|
845
|
+
console.warn(
|
|
846
|
+
`Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}. This is not an error, but it is recommended to update the World App version.`
|
|
847
847
|
);
|
|
848
848
|
_MiniKit.isCommandAvailable[minikitCommandName] = isCommandValid;
|
|
849
849
|
}
|
|
@@ -892,6 +892,7 @@ var _MiniKit = class _MiniKit {
|
|
|
892
892
|
errorMessage: MiniKitInstallErrorMessage["unknown" /* Unknown */]
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
+
_MiniKit.isReady = true;
|
|
895
896
|
if (!this.commandsValid(window.WorldApp.supported_commands)) {
|
|
896
897
|
return {
|
|
897
898
|
success: false,
|
|
@@ -899,7 +900,6 @@ var _MiniKit = class _MiniKit {
|
|
|
899
900
|
errorMessage: MiniKitInstallErrorMessage["app_out_of_date" /* AppOutOfDate */]
|
|
900
901
|
};
|
|
901
902
|
}
|
|
902
|
-
_MiniKit.isReady = true;
|
|
903
903
|
return { success: true };
|
|
904
904
|
}
|
|
905
905
|
static isInstalled(debug) {
|
package/build/index.js
CHANGED
|
@@ -361,7 +361,7 @@ var _MiniKit = class _MiniKit {
|
|
|
361
361
|
);
|
|
362
362
|
let isCommandValid = false;
|
|
363
363
|
if (!commandInput) {
|
|
364
|
-
console.
|
|
364
|
+
console.warn(
|
|
365
365
|
`Command ${minikitCommandName} is not supported by the app. Try updating the app version`
|
|
366
366
|
);
|
|
367
367
|
} else {
|
|
@@ -369,8 +369,8 @@ var _MiniKit = class _MiniKit {
|
|
|
369
369
|
_MiniKit.isCommandAvailable[minikitCommandName] = true;
|
|
370
370
|
isCommandValid = true;
|
|
371
371
|
} else {
|
|
372
|
-
console.
|
|
373
|
-
`Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}
|
|
372
|
+
console.warn(
|
|
373
|
+
`Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}. This is not an error, but it is recommended to update the World App version.`
|
|
374
374
|
);
|
|
375
375
|
_MiniKit.isCommandAvailable[minikitCommandName] = isCommandValid;
|
|
376
376
|
}
|
|
@@ -419,6 +419,7 @@ var _MiniKit = class _MiniKit {
|
|
|
419
419
|
errorMessage: MiniKitInstallErrorMessage["unknown" /* Unknown */]
|
|
420
420
|
};
|
|
421
421
|
}
|
|
422
|
+
_MiniKit.isReady = true;
|
|
422
423
|
if (!this.commandsValid(window.WorldApp.supported_commands)) {
|
|
423
424
|
return {
|
|
424
425
|
success: false,
|
|
@@ -426,7 +427,6 @@ var _MiniKit = class _MiniKit {
|
|
|
426
427
|
errorMessage: MiniKitInstallErrorMessage["app_out_of_date" /* AppOutOfDate */]
|
|
427
428
|
};
|
|
428
429
|
}
|
|
429
|
-
_MiniKit.isReady = true;
|
|
430
430
|
return { success: true };
|
|
431
431
|
}
|
|
432
432
|
static isInstalled(debug) {
|
package/package.json
CHANGED
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
"prettier": "^3.2.5",
|
|
15
15
|
"prettier-plugin-sort-imports-desc": "^1.0.0",
|
|
16
16
|
"react": "^17.0.0",
|
|
17
|
+
"siwe": "^3.0.0",
|
|
17
18
|
"ts-jest": "^29.2.5",
|
|
18
19
|
"ts-node": "^10.9.2",
|
|
19
20
|
"tsup": "^8.0.2",
|
|
21
|
+
"ethers": "^6.13.5",
|
|
20
22
|
"typescript": "^5.4.5",
|
|
21
23
|
"viem": "2.23.5"
|
|
22
24
|
},
|
|
@@ -72,7 +74,7 @@
|
|
|
72
74
|
]
|
|
73
75
|
}
|
|
74
76
|
},
|
|
75
|
-
"version": "1.9.
|
|
77
|
+
"version": "1.9.3",
|
|
76
78
|
"scripts": {
|
|
77
79
|
"build": "tsup",
|
|
78
80
|
"dev": "tsup --watch",
|