@learnweb3dao/siws
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 SiwsMessage extends SiwxMessage<Uint8Array> { | ||
@@ -3,0 +3,0 @@ toMessage(): Uint8Array; |
@@ -16,6 +16,6 @@ "use strict"; | ||
exports.SiwsMessage = void 0; | ||
const common_1 = require("common"); | ||
const siwx_common_1 = require("@learnweb3dao/siwx-common"); | ||
const ed25519_1 = require("@noble/curves/ed25519"); | ||
const bs58_1 = __importDefault(require("bs58")); | ||
class SiwsMessage extends common_1.SiwxMessage { | ||
class SiwsMessage extends siwx_common_1.SiwxMessage { | ||
toMessage() { | ||
@@ -35,3 +35,3 @@ const messageStr = this._toMessage("Solana"); | ||
if (!verifyResult) { | ||
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}`); | ||
} | ||
@@ -38,0 +38,0 @@ return { |
{ | ||
"name": "@learnweb3dao/siws", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "", | ||
@@ -19,5 +19,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@learnweb3dao/siwx-common": "^0.1.0", | ||
"@noble/curves": "^1.0.0", | ||
"bs58": "^5.0.0", | ||
"common": "^0.1.0" | ||
"bs58": "^5.0.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "e786a65df9579f5ed414e81e93d0d126caee990a" | ||
"gitHead": "9433bb62f2f859c64c51a7d5c0f540ac9eda51dd" | ||
} |
@@ -7,3 +7,3 @@ import { | ||
VerifyParams, | ||
} from "common"; | ||
} from "@learnweb3dao/siwx-common"; | ||
import { ed25519 } from "@noble/curves/ed25519"; | ||
@@ -10,0 +10,0 @@ import base58 from "bs58"; |
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
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
42254
0
+ 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)