pepka 1.6.18 → 1.6.19
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/bundle.cjs +1 -1
- package/dist/bundle.mjs +1 -1
- package/package.json +1 -1
- package/src/curry.ts +1 -1
package/dist/bundle.cjs
CHANGED
|
@@ -50,7 +50,7 @@ const zero = 0;
|
|
|
50
50
|
function curry2(fn) {
|
|
51
51
|
function curried2(a, ...args) {
|
|
52
52
|
const withPlaceholder1 = a === __;
|
|
53
|
-
const aln =
|
|
53
|
+
const aln = args.length === 1;
|
|
54
54
|
if (aln && withPlaceholder1)
|
|
55
55
|
throw new Error('Senseless placeholder usage.');
|
|
56
56
|
return aln
|
package/dist/bundle.mjs
CHANGED
|
@@ -48,7 +48,7 @@ const zero = 0;
|
|
|
48
48
|
function curry2(fn) {
|
|
49
49
|
function curried2(a, ...args) {
|
|
50
50
|
const withPlaceholder1 = a === __;
|
|
51
|
-
const aln =
|
|
51
|
+
const aln = args.length === 1;
|
|
52
52
|
if (aln && withPlaceholder1)
|
|
53
53
|
throw new Error('Senseless placeholder usage.');
|
|
54
54
|
return aln
|
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"prod": "npm run gentypes && npm run prod:es && npm run prod:cjs",
|
|
42
42
|
"all": "npm run dev && npm run prod"
|
|
43
43
|
},
|
|
44
|
-
"version": "1.6.
|
|
44
|
+
"version": "1.6.19",
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
47
47
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
package/src/curry.ts
CHANGED
|
@@ -98,7 +98,7 @@ export function curry2<Func extends Func2>(fn: Func) {
|
|
|
98
98
|
function curried2(a: p0, b: p1): ReturnT
|
|
99
99
|
function curried2(a: p0 | Placeholder, ...args: [b?: p1]) {
|
|
100
100
|
const withPlaceholder1 = a===__
|
|
101
|
-
const aln =
|
|
101
|
+
const aln = args.length===1
|
|
102
102
|
if(aln && withPlaceholder1)
|
|
103
103
|
throw new Error('Senseless placeholder usage.')
|
|
104
104
|
return aln
|