Skip to content

Commit

Permalink
feat: use cross-fetch instead of XMLHttpRequest (#15)
Browse files Browse the repository at this point in the history
* feat: use axios instead of XMLHttpRequest to handle redirects

* bump version to publish dev version

* refactor: replace axios with cross-fetch

* style: remove some trailing commas

* chore: fix trailing comma auto-format
  • Loading branch information
mi-xu authored Oct 1, 2019
1 parent 10008a2 commit 4378c71
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 196 deletions.
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"jsxBracketSameLine": false,
"trailingComma": "all",
"tabWidth": 2,
"printWidth": 80,
"singleQuote": true,
Expand Down
134 changes: 32 additions & 102 deletions package-lock.json

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

12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{
"name": "web-did-resolver",
"version": "1.0.1",
"version": "1.0.2-dev.0",
"description": "Resolve DID documents from an https domain",
"main": "lib/resolver.js",
"types": "lib/resolver.d.ts",
"author": "Mike Xu <mike.xu@consensys.net>",
"license": "Apache-2.0",
"dependencies": {
"did-resolver": "1.0.0",
"xmlhttprequest": "^1.8.0"
"cross-fetch": "^3.0.4",
"did-resolver": "1.0.0"
},
"scripts": {
"build": "tsc",
"test": "jest",
"dev": "tsc --watch",
"format": "prettier"
},
"browser": {
"xmlhttprequest": false
},
"devDependencies": {
"@types/jest": "^23.3.10",
"jest": "^23.6.0",
Expand All @@ -28,8 +25,7 @@
"tslint": "^5.12.0",
"tslint-config-prettier": "^1.17.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^3.2.2",
"xhr-mock": "^2.4.1"
"typescript": "^3.2.2"
},
"jest": {
"transform": {
Expand Down
Loading

0 comments on commit 4378c71

Please sign in to comment.