@ideal-postcodes/address-finder
Advanced tools
Comparing version 4.6.1 to 4.6.2
@@ -29,3 +29,3 @@ "use strict"; | ||
const watch = (config, options = {}) => { | ||
const client = new core_axios_1.Client({ ...config, api_key: config.apiKey }); | ||
const client = new core_axios_1.Client({ ...controller_1.defaults, ...config, api_key: config.apiKey }); | ||
const { pageTest = isTrue } = options; | ||
@@ -32,0 +32,0 @@ if (!pageTest()) |
import { Client, checkKeyUsability } from "@ideal-postcodes/core-axios"; | ||
import { NOOP } from "./controller"; | ||
import { NOOP, defaults } from "./controller"; | ||
import { toContextMap } from "./contexts"; | ||
@@ -26,3 +26,3 @@ import { loaded, toArray, getParent, generateTimer, markLoaded, getScope, } from "@ideal-postcodes/jsutil"; | ||
export const watch = (config, options = {}) => { | ||
const client = new Client({ ...config, api_key: config.apiKey }); | ||
const client = new Client({ ...defaults, ...config, api_key: config.apiKey }); | ||
const { pageTest = isTrue } = options; | ||
@@ -29,0 +29,0 @@ if (!pageTest()) |
{ | ||
"name": "@ideal-postcodes/address-finder", | ||
"version": "4.6.1", | ||
"version": "4.6.2", | ||
"description": "Address Finder JS library backed by the Ideal Postcodes UK address search API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
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
252972