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

@alwatr/fetch

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/fetch - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

50

CHANGELOG.md

@@ -6,17 +6,20 @@ # Change Log

# [0.11.0](https://github.com/AliMD/alwatr/compare/v0.10.1...v0.11.0) (2022-04-16)
# [0.12.0](https://github.com/AliMD/alwatr/compare/v0.11.0...v0.12.0) (2022-07-22)
**Note:** Version bump only for package @alwatr/fetch
### Bug Fixes
* **fetch:** compatible with new ts types AbortSignal ([949655a](https://github.com/AliMD/alwatr/commit/949655a257852aaaaa311e32603ecc0819eedf51))
# [0.10.0](https://github.com/AliMD/alwatr/compare/v0.9.0...v0.10.0) (2022-04-02)
**Note:** Version bump only for package @alwatr/fetch
# [0.11.0](https://github.com/AliMD/alwatr/compare/v0.10.1...v0.11.0) (2022-04-16)
**Note:** Version bump only for package @alwatr/fetch
# [0.10.0](https://github.com/AliMD/alwatr/compare/v0.9.0...v0.10.0) (2022-04-02)
**Note:** Version bump only for package @alwatr/fetch

@@ -27,6 +30,2 @@ # [0.9.0](https://github.com/AliMD/alwatr/compare/v0.8.0...v0.9.0) (2022-03-22)

# [0.8.0](https://github.com/AliMD/alwatr/compare/v0.7.2...v0.8.0) (2022-03-14)

@@ -36,6 +35,2 @@

## [0.7.2](https://github.com/AliMD/alwatr/compare/v0.7.1...v0.7.2) (2022-03-12)

@@ -45,6 +40,2 @@

# [0.7.0](https://github.com/AliMD/alwatr/compare/v0.6.1...v0.7.0) (2022-03-12)

@@ -54,18 +45,9 @@

# [0.6.0](https://github.com/AliMD/alwatr/compare/v0.5.0...v0.6.0) (2022-03-11)
### Bug Fixes
* alalwatr ([898aa6e](https://github.com/AliMD/alwatr/commit/898aa6ed0888eab9265c83b96a50f1b8c216d143))
* **packages:** duplicate alwatr keyword ([77d4aa2](https://github.com/AliMD/alwatr/commit/77d4aa2105ad47515c3eee251fd6b8c281d0d1fc))
- alalwatr ([898aa6e](https://github.com/AliMD/alwatr/commit/898aa6ed0888eab9265c83b96a50f1b8c216d143))
- **packages:** duplicate alwatr keyword ([77d4aa2](https://github.com/AliMD/alwatr/commit/77d4aa2105ad47515c3eee251fd6b8c281d0d1fc))
# [0.5.0](https://github.com/AliMD/alwatr/compare/v0.4.0...v0.5.0) (2022-03-11)

@@ -79,3 +61,3 @@

* **fetch:** build issue [#73](https://github.com/AliMD/alwatr/issues/73) ([fb74463](https://github.com/AliMD/alwatr/commit/fb74463d367393706d16e482488a565bdfef70a1))
- **fetch:** build issue [#73](https://github.com/AliMD/alwatr/issues/73) ([fb74463](https://github.com/AliMD/alwatr/commit/fb74463d367393706d16e482488a565bdfef70a1))

@@ -94,10 +76,10 @@ # [0.3.0](https://github.com/AliMD/alwatr/compare/v0.2.1...v0.3.0) (2022-03-06)

* **fetch:** error codes ([4e0be80](https://github.com/AliMD/alwatr/commit/4e0be80786b6667035ae82750f2351bd2da4f341))
- **fetch:** error codes ([4e0be80](https://github.com/AliMD/alwatr/commit/4e0be80786b6667035ae82750f2351bd2da4f341))
### Features
* **fetch:** add getData ([4a627c4](https://github.com/AliMD/alwatr/commit/4a627c43d2ad07acb340f058f02d41ce57288405))
* **fetch:** add postData and fetchJson ([b0262b8](https://github.com/AliMD/alwatr/commit/b0262b83b5b7d8b7c376dce68aae3e16bd8e2610))
* **fetch:** base fetch api ([925cdab](https://github.com/AliMD/alwatr/commit/925cdab8700ffb801e1d836ffc5d3245b66815cf))
* **fetch:** FetchOptions type ([dd2d141](https://github.com/AliMD/alwatr/commit/dd2d1418d090387e1afa8277f78ae88ace17fd17))
* **fetch:** new enhanced fetch package ([7e90472](https://github.com/AliMD/alwatr/commit/7e904720c983372317358ce107f6ad0f79c65647))
- **fetch:** add getData ([4a627c4](https://github.com/AliMD/alwatr/commit/4a627c43d2ad07acb340f058f02d41ce57288405))
- **fetch:** add postData and fetchJson ([b0262b8](https://github.com/AliMD/alwatr/commit/b0262b83b5b7d8b7c376dce68aae3e16bd8e2610))
- **fetch:** base fetch api ([925cdab](https://github.com/AliMD/alwatr/commit/925cdab8700ffb801e1d836ffc5d3245b66815cf))
- **fetch:** FetchOptions type ([dd2d141](https://github.com/AliMD/alwatr/commit/dd2d1418d090387e1afa8277f78ae88ace17fd17))
- **fetch:** new enhanced fetch package ([7e90472](https://github.com/AliMD/alwatr/commit/7e904720c983372317358ce107f6ad0f79c65647))

@@ -5,5 +5,2 @@ declare global {

}
interface AbortSignal {
reason?: string;
}
}

@@ -10,0 +7,0 @@ export interface FetchOptions extends RequestInit {

@@ -24,2 +24,3 @@ import { createLogger, alwatrRegisteredList } from '@alwatr/logger';

if (options.queryParameters != null) {
// prettier-ignore
const queryArray = Object

@@ -50,3 +51,6 @@ .keys(options.queryParameters)

abortController.signal.addEventListener('abort', () => {
logger.incident('fetch', 'abort_signal', 'abort signal received', { url, reason: abortController.signal.reason });
logger.incident('fetch', 'abort_signal', 'abort signal received', {
url,
reason: abortController.signal.reason,
});
});

@@ -53,0 +57,0 @@ options.signal = abortController.signal;

{
"name": "@alwatr/fetch",
"version": "0.11.0",
"version": "0.12.0",
"description": "Enhanced fetch api with timeout, helper methods and types written in tiny TypeScript module.",

@@ -28,5 +28,5 @@ "keywords": [

"url": "https://github.com/AliMD/alwatr",
"directory": "package/fetch"
"directory": "packages/core/fetch"
},
"homepage": "https://github.com/AliMD/alwatr/tree/main/package/fetch#readme",
"homepage": "https://github.com/AliMD/alwatr/tree/main/packages/core/fetch#readme",
"bugs": {

@@ -36,6 +36,6 @@ "url": "https://github.com/AliMD/alwatr/issues"

"dependencies": {
"@alwatr/logger": "^0.11.0",
"@alwatr/logger": "^0.12.0",
"tslib": "^2.3.1"
},
"gitHead": "7d734c552f37d65998f2f8bd57db7a64998dc9e4"
"gitHead": "2da92e22ea946abf6155122d0a28674dd4c0308b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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