@ideal-postcodes/jsutil
Advanced tools
Comparing version 4.3.1 to 4.3.2
@@ -0,1 +1,8 @@ | ||
## [4.3.2](https://github.com/ideal-postcodes/jsutil/compare/4.3.1...4.3.2) (2021-02-09) | ||
### Bug Fixes | ||
* **State:** Rename global to idpcState ([08fadd9](https://github.com/ideal-postcodes/jsutil/commit/08fadd9456a852c22e700b12eeb01ca9914e8e37)) | ||
## [4.3.1](https://github.com/ideal-postcodes/jsutil/compare/4.3.0...4.3.1) (2021-02-05) | ||
@@ -2,0 +9,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.idGen = void 0; | ||
const global_1 = require("./global"); | ||
const store_1 = require("./store"); | ||
/** | ||
@@ -9,3 +9,3 @@ * Generates a globally unique ID | ||
const idGen = (prefix = "idpc_") => () => { | ||
const g = global_1.global(); | ||
const g = store_1.idpcState(); | ||
if (!g.idGen) | ||
@@ -12,0 +12,0 @@ g.idGen = {}; |
@@ -8,3 +8,3 @@ export * from "./util"; | ||
export * from "./input"; | ||
export * from "./global"; | ||
export * from "./store"; | ||
export * from "./id"; | ||
@@ -11,0 +11,0 @@ export * from "./address"; |
@@ -20,3 +20,3 @@ "use strict"; | ||
__exportStar(require("./input"), exports); | ||
__exportStar(require("./global"), exports); | ||
__exportStar(require("./store"), exports); | ||
__exportStar(require("./id"), exports); | ||
@@ -23,0 +23,0 @@ __exportStar(require("./address"), exports); |
@@ -1,2 +0,2 @@ | ||
import { global } from "./global"; | ||
import { idpcState } from "./store"; | ||
/** | ||
@@ -6,3 +6,3 @@ * Generates a globally unique ID | ||
export const idGen = (prefix = "idpc_") => () => { | ||
const g = global(); | ||
const g = idpcState(); | ||
if (!g.idGen) | ||
@@ -9,0 +9,0 @@ g.idGen = {}; |
@@ -8,3 +8,3 @@ export * from "./util"; | ||
export * from "./input"; | ||
export * from "./global"; | ||
export * from "./store"; | ||
export * from "./id"; | ||
@@ -11,0 +11,0 @@ export * from "./address"; |
@@ -8,3 +8,3 @@ export * from "./util"; | ||
export * from "./input"; | ||
export * from "./global"; | ||
export * from "./store"; | ||
export * from "./id"; | ||
@@ -11,0 +11,0 @@ export * from "./address"; |
{ | ||
"name": "@ideal-postcodes/jsutil", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "Browser Address Autocomplete for api.ideal-postcodes.co.uk", | ||
@@ -109,6 +109,6 @@ "author": { | ||
"@types/chai": "~4.2.11", | ||
"@types/karma": "~5.0.0", | ||
"@types/karma": "~6.1.0", | ||
"@types/mocha": "~8.2.0", | ||
"@types/node": "~14.14.0", | ||
"@types/prettier": "~2.1.0", | ||
"@types/prettier": "~2.2.0", | ||
"@types/puppeteer": "~5.4.0", | ||
@@ -118,3 +118,3 @@ "@typescript-eslint/eslint-plugin": "~4.0.0", | ||
"babel": "~6.23.0", | ||
"chai": "~4.2.0", | ||
"chai": "~4.3.0", | ||
"codecov": "~3.8.0", | ||
@@ -121,0 +121,0 @@ "core-js": "~3.8.0", |
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
97989