@lowdefy/helpers 4.0.0-alpha.6 → 4.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,9 +12,9 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ function cachedPromises(getter) {
15
+ */ function createCachedPromises(getter) {
16
16
  const cache = new Map();
17
- function getCachedPromise(key) {
17
+ function cachedPromises(key) {
18
18
  if (cache.has(key)) {
19
19
  return Promise.resolve(cache.get(key));
20
20
  }
@@ -22,6 +22,6 @@
22
22
  cache.set(key, promise);
23
23
  return Promise.resolve(promise);
24
24
  }
25
- return getCachedPromise;
25
+ return cachedPromises;
26
26
  }
27
- export default cachedPromises;
27
+ export default createCachedPromises;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/helpers",
3
- "version": "4.0.0-alpha.6",
3
+ "version": "4.0.0-alpha.7",
4
4
  "licence": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -39,17 +39,17 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "lodash.merge": "4.6.2",
42
- "query-string": "7.0.1"
42
+ "query-string": "7.1.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@swc/cli": "0.1.55",
46
- "@swc/core": "1.2.130",
46
+ "@swc/core": "1.2.135",
47
47
  "@swc/jest": "0.2.17",
48
- "jest": "27.3.1",
49
- "jest-diff": "27.3.1"
48
+ "jest": "27.5.1",
49
+ "jest-diff": "27.5.1"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "2530e31af795b6a3c75ac8f72c8dbe0ab5d1251b"
54
+ "gitHead": "52ec14639d00de910cf9b8ab25bf933ca891cff5"
55
55
  }