common-fp 0.1.6 → 0.2.1

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.
@@ -3,7 +3,7 @@ const assertArgIsType = require('@common-fp/shared-internals/assert-arg-is-type'
3
3
  const invokeWith =
4
4
  (...args) =>
5
5
  fn => {
6
- assertArgIsType(fn, 'fn', 'function', 'invoke')
6
+ assertArgIsType(fn, 'fn', 'function', 'invokeWith')
7
7
 
8
8
  return fn(...args)
9
9
  }
@@ -3,7 +3,7 @@ import assertArgIsType from '@common-fp/shared-internals/assert-arg-is-type'
3
3
  const invokeWith =
4
4
  (...args) =>
5
5
  fn => {
6
- assertArgIsType(fn, 'fn', 'function', 'invoke')
6
+ assertArgIsType(fn, 'fn', 'function', 'invokeWith')
7
7
 
8
8
  return fn(...args)
9
9
  }
@@ -1,7 +1,7 @@
1
1
  const assertArgIsType = require('@common-fp/shared-internals/assert-arg-is-type')
2
2
 
3
3
  const mAppendOne = value => anArray => {
4
- assertArgIsType(anArray, 'anArray', 'array', 'mAppend')
4
+ assertArgIsType(anArray, 'anArray', 'array', 'mAppendOne')
5
5
 
6
6
  anArray.push(value)
7
7
  return anArray
@@ -1,7 +1,7 @@
1
1
  import assertArgIsType from '@common-fp/shared-internals/assert-arg-is-type'
2
2
 
3
3
  const mAppendOne = value => anArray => {
4
- assertArgIsType(anArray, 'anArray', 'array', 'mAppend')
4
+ assertArgIsType(anArray, 'anArray', 'array', 'mAppendOne')
5
5
 
6
6
  anArray.push(value)
7
7
  return anArray
@@ -1,7 +1,7 @@
1
1
  const assertArgIsArrayOfType = require('@common-fp/shared-internals/assert-arg-is-array-of-type')
2
2
 
3
- const compose = fnArray => {
4
- assertArgIsArrayOfType(fnArray, 'fnArray', 'function', 'compose')
3
+ const pCompose = fnArray => {
4
+ assertArgIsArrayOfType(fnArray, 'fnArray', 'function', 'pCompose')
5
5
 
6
6
  return async (...args) => {
7
7
  if (!fnArray.length) return args[0]
@@ -15,4 +15,4 @@ const compose = fnArray => {
15
15
  }
16
16
  }
17
17
 
18
- module.exports = compose
18
+ module.exports = pCompose
@@ -1,7 +1,7 @@
1
1
  import assertArgIsArrayOfType from '@common-fp/shared-internals/assert-arg-is-array-of-type'
2
2
 
3
- const compose = fnArray => {
4
- assertArgIsArrayOfType(fnArray, 'fnArray', 'function', 'compose')
3
+ const pCompose = fnArray => {
4
+ assertArgIsArrayOfType(fnArray, 'fnArray', 'function', 'pCompose')
5
5
 
6
6
  return async (...args) => {
7
7
  if (!fnArray.length) return args[0]
@@ -15,4 +15,4 @@ const compose = fnArray => {
15
15
  }
16
16
  }
17
17
 
18
- export default compose
18
+ export default pCompose
package/license.txt CHANGED
@@ -1,9 +1,9 @@
1
- You can choose between either of the two licenses listed below
1
+ You can choose one of the two licenses below
2
2
 
3
- WTFNMF
3
+ WTFNMFPL
4
4
  Zero-Clause BSD
5
5
 
6
- This choice is offered since WTFNMF is not OSI approved.
6
+ This choice is offered since WTFNMFPL is not OSI approved.
7
7
 
8
8
  --------------------
9
9
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "common-fp",
3
3
  "description": "FP utilities for the commoner",
4
4
  "private": false,
5
- "version": "0.1.6",
5
+ "version": "0.2.1",
6
6
  "sideEffects": false,
7
7
  "files": [
8
8
  "dist",
@@ -53,10 +53,10 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@common-fp/shared-internals": "^0.1.3"
56
+ "@common-fp/shared-internals": "^0.2.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "common-fp-types": "^0.1.4"
59
+ "common-fp-types": "^0.2.0"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">=20"