Comparing version 0.1.0 to 0.2.0
@@ -1,2 +0,2 @@ | ||
import Fetch from './Fetch'; | ||
export default Fetch; | ||
import FetchAgo from './FetchAgo'; | ||
export default FetchAgo; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Fetch_1 = require("./Fetch"); | ||
exports.default = Fetch_1.default; | ||
var FetchAgo_1 = require("./FetchAgo"); | ||
exports.default = FetchAgo_1.default; |
{ | ||
"name": "fetch-ago", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
"description": "Class that wraps the fetch API", | ||
"description": "Class that wraps the node-fetch library", | ||
"author": "Eric Liu (https://github.com/metonym)", | ||
@@ -10,6 +10,8 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"start": "tsc -w", | ||
"develop": "tsc -w", | ||
"build": "rm -rf lib && tsc", | ||
"test": "jest", | ||
"prepublishOnly": "run-s test build" | ||
"lint": "tslint --fix -p . -c tslint.json", | ||
"test": "jest --coverage", | ||
"test:tdd": "jest --watch", | ||
"prepublishOnly": "yarn build" | ||
}, | ||
@@ -20,14 +22,51 @@ "dependencies": { | ||
"devDependencies": { | ||
"@types/jest": "24.0.13", | ||
"@types/node-fetch": "2.3.5", | ||
"jest": "24.8.0", | ||
"npm-run-all": "4.1.5", | ||
"ts-jest": "24.0.2", | ||
"typescript": "3.5.1" | ||
"@commitlint/cli": "^8.1.0", | ||
"@commitlint/config-conventional": "^8.1.0", | ||
"@types/jest": "^24.0.16", | ||
"@types/node-fetch": "^2.5.0", | ||
"husky": "^3.0.2", | ||
"jest": "^24.8.0", | ||
"prettier": "^1.18.2", | ||
"pretty-quick": "^1.11.1", | ||
"ts-jest": "^24.0.2", | ||
"tslint": "^5.18.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.5.3" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "yarn lint && pretty-quick --staged", | ||
"pre-push": "yarn test", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"prettier": { | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true | ||
}, | ||
"jest": { | ||
"preset": "ts-jest", | ||
"testEnvironment": "node", | ||
"globals": { | ||
"ts-jest": { | ||
"tsConfig": "tsconfig.test.json" | ||
} | ||
} | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"resolutions": { | ||
"**/**/lodash": "^4.17.12", | ||
"**/**/mixin-deep": "^2.0.1", | ||
"**/**/set-value": "^3.0.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/metonym/Fetch.git" | ||
"url": "https://github.com/metonym/fetch-ago.git" | ||
}, | ||
"homepage": "https://github.com/metonym/Fetch", | ||
"homepage": "https://github.com/metonym/fetch-ago", | ||
"keywords": [ | ||
@@ -41,3 +80,4 @@ "fetch", | ||
"lib/" | ||
] | ||
], | ||
"bugs": "https://github.com/metonym/fetch-ago/issues" | ||
} |
# fetch-ago | ||
> Class that wraps the fetch API | ||
[![NPM][npm]][npm-url] | ||
[![Build][build]][build-badge] | ||
[![Coverage][codecov-shield]][codecov] | ||
> Class that wraps the [node-fetch](https://github.com/bitinn/node-fetch) library. | ||
## Getting started | ||
```bash | ||
yarn add fetch-ago | ||
``` | ||
## Example | ||
```js | ||
import Fetch from 'fetch-ago'; | ||
import FetchAgo from 'fetch-ago'; | ||
(async () => { | ||
const http = new Fetch({ baseUri: '' }); | ||
const http = new FetchAgo({ baseUri: '' }); | ||
await http.get('/posts'); | ||
@@ -16,4 +26,13 @@ })(); | ||
## [Changelog](CHANGELOG.md) | ||
## License | ||
[MIT](LICENSE) | ||
[npm]: https://img.shields.io/npm/v/fetch-ago.svg?color=blue | ||
[npm-url]: https://npmjs.com/package/fetch-ago | ||
[build]: https://travis-ci.com/metonym/fetch-ago.svg?branch=master | ||
[build-badge]: https://travis-ci.com/metonym/fetch-ago | ||
[codecov]: https://codecov.io/gh/metonym/fetch-ago | ||
[codecov-shield]: https://img.shields.io/codecov/c/github/metonym/fetch-ago.svg |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11566
8
166
38
12
1