From 05859e246342fb95b51d5bf7f06cec67fb642e05 Mon Sep 17 00:00:00 2001 From: Basile Bruneau Date: Wed, 6 May 2020 23:48:41 +0200 Subject: [PATCH] fix: cache --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index cd9d840..d993250 100644 --- a/index.js +++ b/index.js @@ -101,7 +101,7 @@ function DottedMap({ height = 0, width = 0, countries = [], region, grid = 'vert } } - CACHE[cacheKey] = points; + CACHE[cacheKey] = { ...points }; } return { diff --git a/package.json b/package.json index 700b6ed..6d92203 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dotted-map", - "version": "1.1.0", + "version": "1.1.1", "description": "", "main": "index.js", "scripts": {