@learnweb3dao/siwe
Advanced tools
Comparing version
@@ -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 @@ |
55498
0.17%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed