@ideal-postcodes/jsutil
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -0,1 +1,8 @@ | ||
## [7.0.2](https://github.com/ideal-postcodes/jsutil/compare/7.0.1...7.0.2) (2024-03-07) | ||
### Bug Fixes | ||
* **MutateAddress:** Simplify options ([54a8d8c](https://github.com/ideal-postcodes/jsutil/commit/54a8d8c8f7d2bc3c3e82aa2b575b6366fe363cf5)) | ||
## [7.0.1](https://github.com/ideal-postcodes/jsutil/compare/7.0.0...7.0.1) (2024-03-07) | ||
@@ -2,0 +9,0 @@ |
@@ -27,3 +27,2 @@ import { AnyAddress, GbrAddress } from "./types"; | ||
populateCounty?: boolean; | ||
populateOrganisation?: boolean; | ||
} | ||
@@ -37,6 +36,4 @@ export interface PopulateAddressOptions { | ||
} | ||
export interface MutateConfig extends MaxLineConfig { | ||
removeOrganisation?: boolean; | ||
export interface MutateConfig extends MaxLineConfig, Pick<PopulateConfig, "removeOrganisation" | "populateCounty"> { | ||
populateCounty?: boolean; | ||
populateOrganisation?: boolean; | ||
} | ||
@@ -53,3 +50,3 @@ export interface MutateAddressOptions { | ||
interface MutateAddress { | ||
(options: PopulateAddressOptions): AnyAddress; | ||
(options: MutateAddressOptions): AnyAddress; | ||
} | ||
@@ -56,0 +53,0 @@ export declare const mutateAddress: MutateAddress; |
@@ -45,3 +45,2 @@ import { components } from "@ideal-postcodes/openapi"; | ||
apiKey: string; | ||
populateOrganisation: boolean; | ||
populateCounty: boolean; | ||
@@ -48,0 +47,0 @@ autocomplete: boolean; |
@@ -37,3 +37,2 @@ "use strict"; | ||
apiKey: "", | ||
populateOrganisation: true, | ||
populateCounty: false, | ||
@@ -40,0 +39,0 @@ autocomplete: true, |
@@ -27,3 +27,2 @@ import { AnyAddress, GbrAddress } from "./types"; | ||
populateCounty?: boolean; | ||
populateOrganisation?: boolean; | ||
} | ||
@@ -37,6 +36,4 @@ export interface PopulateAddressOptions { | ||
} | ||
export interface MutateConfig extends MaxLineConfig { | ||
removeOrganisation?: boolean; | ||
export interface MutateConfig extends MaxLineConfig, Pick<PopulateConfig, "removeOrganisation" | "populateCounty"> { | ||
populateCounty?: boolean; | ||
populateOrganisation?: boolean; | ||
} | ||
@@ -53,3 +50,3 @@ export interface MutateAddressOptions { | ||
interface MutateAddress { | ||
(options: PopulateAddressOptions): AnyAddress; | ||
(options: MutateAddressOptions): AnyAddress; | ||
} | ||
@@ -56,0 +53,0 @@ export declare const mutateAddress: MutateAddress; |
@@ -45,3 +45,2 @@ import { components } from "@ideal-postcodes/openapi"; | ||
apiKey: string; | ||
populateOrganisation: boolean; | ||
populateCounty: boolean; | ||
@@ -48,0 +47,0 @@ autocomplete: boolean; |
@@ -32,3 +32,2 @@ import { toHtmlElem, getAnchors, getParent } from "./dom"; | ||
apiKey: "", | ||
populateOrganisation: true, | ||
populateCounty: false, | ||
@@ -35,0 +34,0 @@ autocomplete: true, |
{ | ||
"name": "@ideal-postcodes/jsutil", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "Browser Address Autocomplete for api.ideal-postcodes.co.uk", | ||
@@ -5,0 +5,0 @@ "author": { |
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
109974
2601