common-fp 0.2.0 → 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.
- package/dist/invoke-with.cjs +1 -1
- package/dist/invoke-with.mjs +1 -1
- package/dist/m-append-one.cjs +1 -1
- package/dist/m-append-one.mjs +1 -1
- package/dist/p-compose.cjs +3 -3
- package/dist/p-compose.mjs +3 -3
- package/license.txt +3 -3
- package/package.json +1 -1
package/dist/invoke-with.cjs
CHANGED
package/dist/invoke-with.mjs
CHANGED
package/dist/m-append-one.cjs
CHANGED
|
@@ -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', '
|
|
4
|
+
assertArgIsType(anArray, 'anArray', 'array', 'mAppendOne')
|
|
5
5
|
|
|
6
6
|
anArray.push(value)
|
|
7
7
|
return anArray
|
package/dist/m-append-one.mjs
CHANGED
|
@@ -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', '
|
|
4
|
+
assertArgIsType(anArray, 'anArray', 'array', 'mAppendOne')
|
|
5
5
|
|
|
6
6
|
anArray.push(value)
|
|
7
7
|
return anArray
|
package/dist/p-compose.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const assertArgIsArrayOfType = require('@common-fp/shared-internals/assert-arg-is-array-of-type')
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
assertArgIsArrayOfType(fnArray, 'fnArray', 'function', '
|
|
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 =
|
|
18
|
+
module.exports = pCompose
|
package/dist/p-compose.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import assertArgIsArrayOfType from '@common-fp/shared-internals/assert-arg-is-array-of-type'
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
assertArgIsArrayOfType(fnArray, 'fnArray', 'function', '
|
|
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
|
|
18
|
+
export default pCompose
|
package/license.txt
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
You can choose
|
|
1
|
+
You can choose one of the two licenses below
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
WTFNMFPL
|
|
4
4
|
Zero-Clause BSD
|
|
5
5
|
|
|
6
|
-
This choice is offered since
|
|
6
|
+
This choice is offered since WTFNMFPL is not OSI approved.
|
|
7
7
|
|
|
8
8
|
--------------------
|
|
9
9
|
|