Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
feat: add ky-universal
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaski committed Feb 10, 2021
1 parent 190ea8a commit 457c1ce
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 18 deletions.
206 changes: 191 additions & 15 deletions package-lock.json

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev": "nodemon",
"build": "rimraf lib && tsc",
"test": "echo \"no tests\"",
"commit": "cz -S",
"commit": "git cz -S",
"prepare": "npm run build",
"prepublishOnly": "npm test"
},
Expand All @@ -32,7 +32,7 @@
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "^4.15.0",
"@typescript-eslint/parser": "^4.15.0",
"commitizen": "^4.2.2",
"commitizen": "4.2.2",
"dotenv": "^8.2.0",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
Expand All @@ -43,6 +43,10 @@
"ts-node": "^9.1.1",
"typescript": "^3.8.3"
},
"dependencies": {
"ky": "^0.17.0",
"ky-universal": "^0.8.2"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"root": true,
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
console.log("works!")
import ky from "ky-universal"

ky("https://httpbin.org/anything").json().then(console.log)

0 comments on commit 457c1ce

Please sign in to comment.