Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-ago

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-ago - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

CHANGELOG.md

4

lib/index.d.ts

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc