Socket
Socket
Sign inDemoInstall

@ideal-postcodes/core-browser

Package Overview
Dependencies
2
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

7

CHANGELOG.md

@@ -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 @@

27

dist/agent.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc