promise-logic 2.4.6 → 2.4.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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -45,7 +45,7 @@ npm install promise-logic
45
45
 
46
46
  #### Example: Primary/Backup Service Call (XOR Scenario)
47
47
  ```javascript
48
- import PromiseLogic from 'promise-logic';
48
+ import { PromiseLogic } from 'promise-logic';
49
49
 
50
50
  // Primary service call
51
51
  const primary = fetch('https://api.main.com/data');
@@ -68,7 +68,7 @@ PromiseLogic.xor([primary, backup])
68
68
 
69
69
  #### Example: Majority Decision (Majority Scenario)
70
70
  ```javascript
71
- import PromiseLogic from 'promise-logic';
71
+ import { PromiseLogic } from 'promise-logic';
72
72
 
73
73
  const services = [
74
74
  fetch('https://api.node1.com/vote'),
@@ -86,7 +86,7 @@ PromiseLogic.majority(services)
86
86
  ```
87
87
 
88
88
  ```typescript
89
- import PromiseLogic from 'promise-logic/typescript';
89
+ import { PromiseLogic } from 'promise-logic/typescript';
90
90
 
91
91
  const services = [
92
92
  fetch('https://api.node1.com/vote'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promise-logic",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "description": "Compose promises with logic gate semantics (AND, OR, XOR, NAND, NOR, XNOR, Majority). Forget APIs, remember logic.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -9,8 +9,8 @@
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./dist/index.esm.js",
12
- "require": "./dist/v1/index.cjs.js",
13
- "types": "./dist/types/v1/index.d.ts"
12
+ "require": "./dist/index.cjs.js",
13
+ "types": "./dist/types/index.d.ts"
14
14
  },
15
15
  "./factory": {
16
16
  "import": "./dist/factory.esm.js",
@@ -18,9 +18,9 @@
18
18
  "types": "./dist/types/factory.d.ts"
19
19
  },
20
20
  "./typescript": {
21
- "import": "./dist/index.esm.js",
22
- "require": "./dist/index.cjs.js",
23
- "types": "./dist/types/v2/index.d.ts"
21
+ "import": "./dist/v2/index.esm.js",
22
+ "require": "./dist/v2/index.cjs.js",
23
+ "types": "./dist/v2/types/index.d.ts"
24
24
  }
25
25
  },
26
26
  "files": [