Skip to content

Commit

Permalink
Fix siwe-parser import (spruceid#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
w4ll3 authored May 9, 2022
1 parent 2c39555 commit 206a27b
Show file tree
Hide file tree
Showing 7 changed files with 1,931 additions and 1,661 deletions.
2,280 changes: 1,203 additions & 1,077 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "siwe",
"version": "1.1.3",
"version": "2.0.1",
"description": "Sign-In with Ethereum",
"main": "dist/siwe.js",
"types": "dist/siwe.d.ts",
Expand Down Expand Up @@ -30,4 +30,4 @@
"siwe": "file:packages/siwe",
"siwe-parser": "file:packages/siwe-parser"
}
}
}
16 changes: 8 additions & 8 deletions packages/siwe-parser/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/siwe-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spruceid/siwe-parser",
"version": "1.1.3",
"version": "2.0.0",
"description": "Parse Messages that conform to EIP-4361: Sign-In with Ethereum (SIWE)",
"main": "dist/parsers.js",
"types": "dist/parsers.d.ts",
Expand Down Expand Up @@ -36,4 +36,4 @@
"bugs": {
"url": "https://github.com/spruceid/siwe/issues"
}
}
}
4 changes: 2 additions & 2 deletions packages/siwe/lib/client.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// TODO: Figure out how to get types from this lib:
import { providers, utils } from "ethers";
import {
isEIP55Address, ParsedMessage, ParsedMessageRegExp
} from "siwe-parser";
} from "@spruceid/siwe-parser";
import { providers, utils } from "ethers";
import * as uri from "valid-url";
import { SiweError, SiweErrorType, SiweResponse, VerifyParams } from "./types";
import { checkContractWalletSignature, generateNonce } from "./utils";
Expand Down
Loading

0 comments on commit 206a27b

Please sign in to comment.