@worldcoin/minikit-js 1.9.2 → 1.9.4

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.error(
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,9 @@ var _MiniKit = class _MiniKit {
790
790
  _MiniKit.isCommandAvailable[minikitCommandName] = true;
791
791
  isCommandValid = true;
792
792
  } else {
793
- console.error(
794
- `Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}`
793
+ isCommandValid = true;
794
+ console.warn(
795
+ `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
796
  );
796
797
  _MiniKit.isCommandAvailable[minikitCommandName] = isCommandValid;
797
798
  }
@@ -840,6 +841,7 @@ var _MiniKit = class _MiniKit {
840
841
  errorMessage: MiniKitInstallErrorMessage["unknown" /* Unknown */]
841
842
  };
842
843
  }
844
+ _MiniKit.isReady = true;
843
845
  if (!this.commandsValid(window.WorldApp.supported_commands)) {
844
846
  return {
845
847
  success: false,
@@ -847,7 +849,6 @@ var _MiniKit = class _MiniKit {
847
849
  errorMessage: MiniKitInstallErrorMessage["app_out_of_date" /* AppOutOfDate */]
848
850
  };
849
851
  }
850
- _MiniKit.isReady = true;
851
852
  return { success: true };
852
853
  }
853
854
  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.error(
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,9 @@ var _MiniKit = class _MiniKit {
842
842
  _MiniKit.isCommandAvailable[minikitCommandName] = true;
843
843
  isCommandValid = true;
844
844
  } else {
845
- console.error(
846
- `Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}`
845
+ isCommandValid = true;
846
+ console.warn(
847
+ `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
848
  );
848
849
  _MiniKit.isCommandAvailable[minikitCommandName] = isCommandValid;
849
850
  }
@@ -892,6 +893,7 @@ var _MiniKit = class _MiniKit {
892
893
  errorMessage: MiniKitInstallErrorMessage["unknown" /* Unknown */]
893
894
  };
894
895
  }
896
+ _MiniKit.isReady = true;
895
897
  if (!this.commandsValid(window.WorldApp.supported_commands)) {
896
898
  return {
897
899
  success: false,
@@ -899,7 +901,6 @@ var _MiniKit = class _MiniKit {
899
901
  errorMessage: MiniKitInstallErrorMessage["app_out_of_date" /* AppOutOfDate */]
900
902
  };
901
903
  }
902
- _MiniKit.isReady = true;
903
904
  return { success: true };
904
905
  }
905
906
  static isInstalled(debug) {
package/build/index.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  parseSiweMessage,
35
35
  tokenToDecimals,
36
36
  verifySiweMessage
37
- } from "./chunk-ERUOM2FB.js";
37
+ } from "./chunk-VOZXVH3R.js";
38
38
 
39
39
  // index.ts
40
40
  import { VerificationLevel } from "@worldcoin/idkit-core";
@@ -361,7 +361,7 @@ var _MiniKit = class _MiniKit {
361
361
  );
362
362
  let isCommandValid = false;
363
363
  if (!commandInput) {
364
- console.error(
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,9 @@ var _MiniKit = class _MiniKit {
369
369
  _MiniKit.isCommandAvailable[minikitCommandName] = true;
370
370
  isCommandValid = true;
371
371
  } else {
372
- console.error(
373
- `Command ${minikitCommandName} version ${version} is not supported by the app. Supported versions: ${commandInput.supported_versions.join(", ")}`
372
+ isCommandValid = true;
373
+ console.warn(
374
+ `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
375
  );
375
376
  _MiniKit.isCommandAvailable[minikitCommandName] = isCommandValid;
376
377
  }
@@ -419,6 +420,7 @@ var _MiniKit = class _MiniKit {
419
420
  errorMessage: MiniKitInstallErrorMessage["unknown" /* Unknown */]
420
421
  };
421
422
  }
423
+ _MiniKit.isReady = true;
422
424
  if (!this.commandsValid(window.WorldApp.supported_commands)) {
423
425
  return {
424
426
  success: false,
@@ -426,7 +428,6 @@ var _MiniKit = class _MiniKit {
426
428
  errorMessage: MiniKitInstallErrorMessage["app_out_of_date" /* AppOutOfDate */]
427
429
  };
428
430
  }
429
- _MiniKit.isReady = true;
430
431
  return { success: true };
431
432
  }
432
433
  static isInstalled(debug) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  MiniKit
4
- } from "./chunk-ERUOM2FB.js";
4
+ } from "./chunk-VOZXVH3R.js";
5
5
 
6
6
  // minikit-provider.tsx
7
7
  import {
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.2",
77
+ "version": "1.9.4",
76
78
  "scripts": {
77
79
  "build": "tsup",
78
80
  "dev": "tsup --watch",