fnts 3.0.1 → 3.0.2

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/README.md CHANGED
@@ -5,13 +5,13 @@
5
5
 
6
6
  <p align="center">
7
7
  <a href="https://github.com/drizzer14/fnts/blob/main/LICENSE">
8
- <img src="https://img.shields.io/github/license/drizzer14/fnts" />
8
+ <img src="https://img.shields.io/github/license/drizzer14/fnts?color=blue&style=for-the-badge" />
9
9
  </a>
10
- <a href="https://travis-ci.com/github/drizzer14/fnts">
11
- <img src="https://img.shields.io/travis/com/drizzer14/fnts" />
10
+ <a href="https://github.com/drizzer14/fnts/actions/workflows/workflow.yml">
11
+ <img src="https://img.shields.io/github/actions/workflow/status/drizzer14/fnts/workflow.yml?color=blue&style=for-the-badge" />
12
12
  </a>
13
13
  <a href="https://www.npmjs.com/package/fnts">
14
- <img src="https://img.shields.io/npm/v/fnts" />
14
+ <img src="https://img.shields.io/npm/v/fnts?color=blue&style=for-the-badge" />
15
15
  </a>
16
16
  </p>
17
17
 
package/either/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './operators/index.js';
1
2
  export { default, Either } from './either.js';
2
3
  export { default as left, Left } from './left.js';
3
4
  export { default as right, Right } from './right.js';
package/either/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './operators/index.js';
1
2
  export { default } from './either.js';
2
3
  export { default as left } from './left.js';
3
4
  export { default as right } from './right.js';
package/lens/lens.js CHANGED
@@ -12,6 +12,7 @@ export default function lens(source) {
12
12
  const setter = set(source);
13
13
  // @ts-ignore
14
14
  return (...args) => {
15
+ // @ts-ignore
15
16
  return args.length === 1 ? getter(args[0]) : setter(args[0], args[1]);
16
17
  };
17
18
  }
package/maybe/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './operators/index.js';
1
2
  export { default, Maybe } from './maybe.js';
2
3
  export { default as just, Just } from './just.js';
3
4
  export { default as nothing, Nothing } from './nothing.js';
package/maybe/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './operators/index.js';
1
2
  export { default } from './maybe.js';
2
3
  export { default as just } from './just.js';
3
4
  export { default as nothing } from './nothing.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fnts",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "license": "MIT",
5
5
  "author": "Dmytro Vasylkivskyi",
6
6
  "description": "TypeScript / JavaScript FP utilities",
@@ -15,19 +15,31 @@
15
15
  "homepage": "https://drizzer14.github.io/fnts",
16
16
  "repository": "https://github.com/drizzer14/fnts",
17
17
  "type": "module",
18
- "module": "index.js",
19
- "types": "index.d.ts",
20
- "sideEffects": false,
21
- "engines": {
22
- "node": ">=20.13.1",
23
- "npm": ">=10.5.2"
24
- },
25
18
  "peerDependencies": {
26
- "typescript": ">=5.0"
19
+ "typescript": ">=5.0 <=5.3.3"
27
20
  },
28
21
  "peerDependenciesMeta": {
29
22
  "typescript": {
30
23
  "optional": true
31
24
  }
25
+ },
26
+ "module": "index.js",
27
+ "types": "index.d.ts",
28
+ "sideEffects": false,
29
+ "exports": {
30
+ ".": "./index.js",
31
+ "./apply": "./apply.js",
32
+ "./compose": "./compose.js",
33
+ "./curry": "./curry.js",
34
+ "./guard": "./guard.js",
35
+ "./identity": "./identity.js",
36
+ "./inject": "./inject.js",
37
+ "./pipe": "./pipe.js",
38
+ "./rethrow": "./rethrow.js",
39
+ "./tap": "./tap.js",
40
+ "./either": "./either/index.js",
41
+ "./lens": "./lens/index.js",
42
+ "./maybe": "./maybe/index.js",
43
+ "./permutation": "./permutation/index.js"
32
44
  }
33
45
  }
package/tsconfig.json CHANGED
@@ -21,6 +21,7 @@
21
21
  "strictFunctionTypes": true,
22
22
  "strictBindCallApply": true,
23
23
  "allowUnreachableCode": false,
24
- "forceConsistentCasingInFileNames": true
24
+ "forceConsistentCasingInFileNames": true,
25
+ "ignoreDeprecations": "5.0"
25
26
  }
26
27
  }