@learnweb3dao/siwe
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -1,2 +0,2 @@ | ||
import { SiwxMessage, VerificationResponse, VerifyParams } from "common"; | ||
import { SiwxMessage, VerificationResponse, VerifyParams } from "@learnweb3dao/siwx-common"; | ||
export declare class SiweMessage extends SiwxMessage<string> { | ||
@@ -3,0 +3,0 @@ toMessage(): string; |
@@ -13,5 +13,5 @@ "use strict"; | ||
exports.SiweMessage = void 0; | ||
const common_1 = require("common"); | ||
const siwx_common_1 = require("@learnweb3dao/siwx-common"); | ||
const ethers_1 = require("ethers"); | ||
class SiweMessage extends common_1.SiwxMessage { | ||
class SiweMessage extends siwx_common_1.SiwxMessage { | ||
toMessage() { | ||
@@ -28,3 +28,3 @@ return this._toMessage("Ethereum"); | ||
if (recoveredAddress !== this.address) { | ||
throw new common_1.SiwxError(common_1.SiwxErrorTypes.INVALID_SIGNATURE, `Signature does not match address ${this.address}`); | ||
throw new siwx_common_1.SiwxError(siwx_common_1.SiwxErrorTypes.INVALID_SIGNATURE, `Signature does not match address ${this.address}`); | ||
} | ||
@@ -31,0 +31,0 @@ return { |
{ | ||
"name": "@learnweb3dao/siwe", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "", | ||
@@ -19,3 +19,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"common": "^0.1.0", | ||
"@learnweb3dao/siwx-common": "^0.1.0", | ||
"ethers": "5" | ||
@@ -32,3 +32,3 @@ }, | ||
}, | ||
"gitHead": "e786a65df9579f5ed414e81e93d0d126caee990a" | ||
"gitHead": "9433bb62f2f859c64c51a7d5c0f540ac9eda51dd" | ||
} |
@@ -7,3 +7,3 @@ import { | ||
VerifyParams, | ||
} from "common"; | ||
} from "@learnweb3dao/siwx-common"; | ||
import { utils } from "ethers"; | ||
@@ -10,0 +10,0 @@ |
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
@web3modal/siwe |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55498
1
+ Added@learnweb3dao/siwx-common@0.1.4(transitive)
+ Added@stablelib/binary@1.0.1(transitive)
+ Added@stablelib/int@1.0.1(transitive)
+ Added@stablelib/random@1.0.2(transitive)
+ Added@stablelib/wipe@1.0.1(transitive)
+ Addedvalid-url@1.0.9(transitive)
- Removedcommon@^0.1.0
- Removedcommon@0.1.4(transitive)