@emartech/me-idempotency 2.0.1 → 2.0.3

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.
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 18
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 2.0.3 (2023-08-16)
7
+
8
+ **Note:** Version bump only for package @emartech/me-idempotency
9
+
10
+
11
+
12
+
13
+
14
+ ## 2.0.2 (2021-06-11)
15
+
16
+ **Note:** Version bump only for package @emartech/me-idempotency
17
+
18
+
19
+
20
+
21
+
6
22
  ## [2.0.1](https://github.com/emartech/me-idempotency-js/compare/@emartech/me-idempotency@2.0.0...@emartech/me-idempotency@2.0.1) (2020-04-25)
7
23
 
8
24
 
package/README.md CHANGED
@@ -15,8 +15,6 @@ const { createRedisIdempotency, defaultIdempotencyKeyGenerator } = require('@ema
15
15
 
16
16
  const Idempotency = createRedisIdempotency(createClient())
17
17
  const key = defaultIdempotencyKeyGenerator(customerId, runId, pushToken)
18
- if (!Idempotency.get(key)) {
19
- const result = Idempotency.save(key)
20
- if (result) console.log('Idemp ok')
21
- }
18
+ const result = Idempotency.set(key)
19
+ if (result) console.log('Idemp ok')
22
20
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@emartech/me-idempotency",
3
3
  "description": "",
4
- "version": "2.0.1",
4
+ "version": "2.0.3",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  "url": "git+https://github.com/emartech/me-idempotency-js.git"
21
21
  },
22
22
  "engines": {
23
- "node": ">=10.x"
23
+ "node": ">=18.x"
24
24
  },
25
25
  "author": "",
26
26
  "license": "ISC",
@@ -51,8 +51,8 @@
51
51
  "tslint-no-unused-expression-chai": "^0.1.4"
52
52
  },
53
53
  "dependencies": {
54
- "redis": "3.0.2",
54
+ "redis": "^3.1.2",
55
55
  "typescript": "^3.8.3"
56
56
  },
57
- "gitHead": "e4eb0b6d409279042bf69cfb71adf0b194498410"
57
+ "gitHead": "b89922b2385d3f6ce07acc2c49b8767127abe9be"
58
58
  }