@ideal-postcodes/core-browser
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,1 +1,8 @@ | ||
## [2.0.3](https://github.com/ideal-postcodes/core-browser/compare/2.0.2...2.0.3) (2021-07-23) | ||
### Bug Fixes | ||
* **Tsconfig:** Fix target to ES2020 ([c42cfe7](https://github.com/ideal-postcodes/core-browser/commit/c42cfe76edd04887974375ccedfdec1791ca120f)) | ||
## [2.0.2](https://github.com/ideal-postcodes/core-browser/compare/2.0.1...2.0.2) (2021-07-23) | ||
@@ -2,0 +9,0 @@ |
@@ -67,18 +67,17 @@ "use strict"; | ||
class Agent { | ||
config; | ||
/** | ||
* Default config using RequestInit interface from DOM specification | ||
*/ | ||
defaultConfig = { | ||
// The cache mode you want to use for the request | ||
cache: "no-cache", | ||
// The request credentials you want to use for the request: omit, same-origin, or include. The default is same-origin | ||
credentials: "omit", | ||
// The mode you want to use for the request, e.g., cors, no-cors, same-origin, or navigate. The default is cors | ||
mode: "cors", | ||
// redirect: The redirect mode to use: follow, error, or manual. The default is follow | ||
redirect: "follow", | ||
}; | ||
constructor(config = {}) { | ||
this.config = config; | ||
/** | ||
* Default config using RequestInit interface from DOM specification | ||
*/ | ||
this.defaultConfig = { | ||
// The cache mode you want to use for the request | ||
cache: "no-cache", | ||
// The request credentials you want to use for the request: omit, same-origin, or include. The default is same-origin | ||
credentials: "omit", | ||
// The mode you want to use for the request, e.g., cors, no-cors, same-origin, or navigate. The default is cors | ||
mode: "cors", | ||
// redirect: The redirect mode to use: follow, error, or manual. The default is follow | ||
redirect: "follow", | ||
}; | ||
} | ||
@@ -85,0 +84,0 @@ // Return AbortController instance if present |
@@ -61,18 +61,17 @@ import { errors, } from "@ideal-postcodes/core-interface"; | ||
export class Agent { | ||
config; | ||
/** | ||
* Default config using RequestInit interface from DOM specification | ||
*/ | ||
defaultConfig = { | ||
// The cache mode you want to use for the request | ||
cache: "no-cache", | ||
// The request credentials you want to use for the request: omit, same-origin, or include. The default is same-origin | ||
credentials: "omit", | ||
// The mode you want to use for the request, e.g., cors, no-cors, same-origin, or navigate. The default is cors | ||
mode: "cors", | ||
// redirect: The redirect mode to use: follow, error, or manual. The default is follow | ||
redirect: "follow", | ||
}; | ||
constructor(config = {}) { | ||
this.config = config; | ||
/** | ||
* Default config using RequestInit interface from DOM specification | ||
*/ | ||
this.defaultConfig = { | ||
// The cache mode you want to use for the request | ||
cache: "no-cache", | ||
// The request credentials you want to use for the request: omit, same-origin, or include. The default is same-origin | ||
credentials: "omit", | ||
// The mode you want to use for the request, e.g., cors, no-cors, same-origin, or navigate. The default is cors | ||
mode: "cors", | ||
// redirect: The redirect mode to use: follow, error, or manual. The default is follow | ||
redirect: "follow", | ||
}; | ||
} | ||
@@ -79,0 +78,0 @@ // Return AbortController instance if present |
{ | ||
"name": "@ideal-postcodes/core-browser", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Browser javascript client for api.ideal-postcodes.co.uk", | ||
@@ -5,0 +5,0 @@ "author": { |
30714
516