@formo/analytics 1.35.1 → 1.35.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/dist/cjs/src/FormoAnalytics.d.ts +134 -0
- package/dist/cjs/src/FormoAnalytics.js +636 -178
- package/dist/cjs/src/constants/base.d.ts +0 -1
- package/dist/cjs/src/constants/base.js +1 -3
- package/dist/cjs/src/event/EventFactory.js +1 -1
- package/dist/cjs/src/utils/mergeDeepRight.d.ts +22 -0
- package/dist/cjs/src/utils/mergeDeepRight.js +54 -0
- package/dist/cjs/src/version.d.ts +1 -1
- package/dist/cjs/src/version.js +1 -1
- package/dist/cjs/src/wagmi/WagmiEventHandler.d.ts +193 -1
- package/dist/cjs/src/wagmi/WagmiEventHandler.js +1317 -77
- package/dist/cjs/src/wagmi/types.d.ts +6 -0
- package/dist/esm/src/FormoAnalytics.d.ts +134 -0
- package/dist/esm/src/FormoAnalytics.js +636 -178
- package/dist/esm/src/constants/base.d.ts +0 -1
- package/dist/esm/src/constants/base.js +0 -2
- package/dist/esm/src/event/EventFactory.js +1 -1
- package/dist/esm/src/utils/mergeDeepRight.d.ts +22 -0
- package/dist/esm/src/utils/mergeDeepRight.js +51 -0
- package/dist/esm/src/version.d.ts +1 -1
- package/dist/esm/src/version.js +1 -1
- package/dist/esm/src/wagmi/WagmiEventHandler.d.ts +193 -1
- package/dist/esm/src/wagmi/WagmiEventHandler.js +1315 -76
- package/dist/esm/src/wagmi/types.d.ts +6 -0
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -10
- package/dist/cjs/src/ramda/internal/_curry1.d.ts +0 -10
- package/dist/cjs/src/ramda/internal/_curry1.js +0 -26
- package/dist/cjs/src/ramda/internal/_curry2.d.ts +0 -10
- package/dist/cjs/src/ramda/internal/_curry2.js +0 -43
- package/dist/cjs/src/ramda/internal/_curry3.d.ts +0 -10
- package/dist/cjs/src/ramda/internal/_curry3.js +0 -74
- package/dist/cjs/src/ramda/internal/_has.d.ts +0 -2
- package/dist/cjs/src/ramda/internal/_has.js +0 -7
- package/dist/cjs/src/ramda/internal/_isObject.d.ts +0 -2
- package/dist/cjs/src/ramda/internal/_isObject.js +0 -7
- package/dist/cjs/src/ramda/internal/_isPlaceholder.d.ts +0 -2
- package/dist/cjs/src/ramda/internal/_isPlaceholder.js +0 -7
- package/dist/cjs/src/ramda/mergeDeepRight.d.ts +0 -3
- package/dist/cjs/src/ramda/mergeDeepRight.js +0 -14
- package/dist/cjs/src/ramda/mergeDeepWithKey.d.ts +0 -3
- package/dist/cjs/src/ramda/mergeDeepWithKey.js +0 -20
- package/dist/cjs/src/ramda/mergeWithKey.d.ts +0 -3
- package/dist/cjs/src/ramda/mergeWithKey.js +0 -26
- package/dist/esm/src/ramda/internal/_curry1.d.ts +0 -10
- package/dist/esm/src/ramda/internal/_curry1.js +0 -20
- package/dist/esm/src/ramda/internal/_curry2.d.ts +0 -10
- package/dist/esm/src/ramda/internal/_curry2.js +0 -37
- package/dist/esm/src/ramda/internal/_curry3.d.ts +0 -10
- package/dist/esm/src/ramda/internal/_curry3.js +0 -68
- package/dist/esm/src/ramda/internal/_has.d.ts +0 -2
- package/dist/esm/src/ramda/internal/_has.js +0 -4
- package/dist/esm/src/ramda/internal/_isObject.d.ts +0 -2
- package/dist/esm/src/ramda/internal/_isObject.js +0 -4
- package/dist/esm/src/ramda/internal/_isPlaceholder.d.ts +0 -2
- package/dist/esm/src/ramda/internal/_isPlaceholder.js +0 -4
- package/dist/esm/src/ramda/mergeDeepRight.d.ts +0 -3
- package/dist/esm/src/ramda/mergeDeepRight.js +0 -9
- package/dist/esm/src/ramda/mergeDeepWithKey.d.ts +0 -3
- package/dist/esm/src/ramda/mergeDeepWithKey.js +0 -15
- package/dist/esm/src/ramda/mergeWithKey.d.ts +0 -3
- package/dist/esm/src/ramda/mergeWithKey.js +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formo/analytics",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.2",
|
|
4
4
|
"packageManager": "pnpm@11.1.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,29 +49,20 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@size-limit/esbuild": "^12.1.0",
|
|
51
51
|
"@size-limit/file": "^12.1.0",
|
|
52
|
-
"@testing-library/dom": "^10.4.1",
|
|
53
|
-
"@testing-library/react": "^16.3.2",
|
|
54
52
|
"@types/chai": "^4.3.20",
|
|
55
53
|
"@types/jsdom": "^21.1.7",
|
|
56
54
|
"@types/mocha": "^10.0.10",
|
|
57
55
|
"@types/node": "^26.1.1",
|
|
58
56
|
"@types/react": "^19.2.15",
|
|
59
57
|
"@types/sinon": "^21.0.1",
|
|
60
|
-
"@types/sinon-chai": "^3.2.12",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
62
|
-
"@typescript-eslint/parser": "^8.65.0",
|
|
63
58
|
"c8": "^11.0.0",
|
|
64
59
|
"chai": "^4.5.0",
|
|
65
60
|
"eslint": "^10.7.0",
|
|
66
|
-
"global-jsdom": "^8.8.0",
|
|
67
61
|
"jsdom": "^21.1.2",
|
|
68
62
|
"mocha": "^11.7.6",
|
|
69
63
|
"nodemon": "^3.1.14",
|
|
70
|
-
"prettier": "^3.9.5",
|
|
71
64
|
"react": "^19.2.6",
|
|
72
|
-
"react-dom": "^19.2.7",
|
|
73
65
|
"sinon": "^22.0.0",
|
|
74
|
-
"sinon-chai": "^3.7.0",
|
|
75
66
|
"size-limit": "^12.1.0",
|
|
76
67
|
"ts-loader": "^9.6.2",
|
|
77
68
|
"ts-node": "^10.8.2",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optimized internal one-arity curry function.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @category Function
|
|
6
|
-
* @param {Function} fn The function to curry.
|
|
7
|
-
* @return {Function} The curried function.
|
|
8
|
-
*/
|
|
9
|
-
export default function _curry1(fn: Function): (a: any) => any;
|
|
10
|
-
//# sourceMappingURL=_curry1.d.ts.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = _curry1;
|
|
7
|
-
var _isPlaceholder_1 = __importDefault(require("./_isPlaceholder"));
|
|
8
|
-
/**
|
|
9
|
-
* Optimized internal one-arity curry function.
|
|
10
|
-
*
|
|
11
|
-
* @private
|
|
12
|
-
* @category Function
|
|
13
|
-
* @param {Function} fn The function to curry.
|
|
14
|
-
* @return {Function} The curried function.
|
|
15
|
-
*/
|
|
16
|
-
function _curry1(fn) {
|
|
17
|
-
return function f1(a) {
|
|
18
|
-
if (arguments.length === 0 || (0, _isPlaceholder_1.default)(a)) {
|
|
19
|
-
return f1;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return fn.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=_curry1.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optimized internal two-arity curry function.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @category Function
|
|
6
|
-
* @param {Function} fn The function to curry.
|
|
7
|
-
* @return {Function} The curried function.
|
|
8
|
-
*/
|
|
9
|
-
export default function _curry2(fn: Function): (a: any, b: any) => any;
|
|
10
|
-
//# sourceMappingURL=_curry2.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = _curry2;
|
|
7
|
-
var _curry1_1 = __importDefault(require("./_curry1"));
|
|
8
|
-
var _isPlaceholder_1 = __importDefault(require("./_isPlaceholder"));
|
|
9
|
-
/**
|
|
10
|
-
* Optimized internal two-arity curry function.
|
|
11
|
-
*
|
|
12
|
-
* @private
|
|
13
|
-
* @category Function
|
|
14
|
-
* @param {Function} fn The function to curry.
|
|
15
|
-
* @return {Function} The curried function.
|
|
16
|
-
*/
|
|
17
|
-
function _curry2(fn) {
|
|
18
|
-
return function f2(a, b) {
|
|
19
|
-
switch (arguments.length) {
|
|
20
|
-
case 0:
|
|
21
|
-
return f2;
|
|
22
|
-
case 1:
|
|
23
|
-
return (0, _isPlaceholder_1.default)(a)
|
|
24
|
-
? f2
|
|
25
|
-
: (0, _curry1_1.default)(function (_b) {
|
|
26
|
-
return fn(a, _b);
|
|
27
|
-
});
|
|
28
|
-
default:
|
|
29
|
-
return (0, _isPlaceholder_1.default)(a) && (0, _isPlaceholder_1.default)(b)
|
|
30
|
-
? f2
|
|
31
|
-
: (0, _isPlaceholder_1.default)(a)
|
|
32
|
-
? (0, _curry1_1.default)(function (_a) {
|
|
33
|
-
return fn(_a, b);
|
|
34
|
-
})
|
|
35
|
-
: (0, _isPlaceholder_1.default)(b)
|
|
36
|
-
? (0, _curry1_1.default)(function (_b) {
|
|
37
|
-
return fn(a, _b);
|
|
38
|
-
})
|
|
39
|
-
: fn(a, b);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=_curry2.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optimized internal three-arity curry function.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @category Function
|
|
6
|
-
* @param {Function} fn The function to curry.
|
|
7
|
-
* @return {Function} The curried function.
|
|
8
|
-
*/
|
|
9
|
-
export default function _curry3(fn: Function): (a: any, b: any, c: any) => any;
|
|
10
|
-
//# sourceMappingURL=_curry3.d.ts.map
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = _curry3;
|
|
7
|
-
var _curry1_1 = __importDefault(require("./_curry1"));
|
|
8
|
-
var _curry2_1 = __importDefault(require("./_curry2"));
|
|
9
|
-
var _isPlaceholder_1 = __importDefault(require("./_isPlaceholder"));
|
|
10
|
-
/**
|
|
11
|
-
* Optimized internal three-arity curry function.
|
|
12
|
-
*
|
|
13
|
-
* @private
|
|
14
|
-
* @category Function
|
|
15
|
-
* @param {Function} fn The function to curry.
|
|
16
|
-
* @return {Function} The curried function.
|
|
17
|
-
*/
|
|
18
|
-
function _curry3(fn) {
|
|
19
|
-
return function f3(a, b, c) {
|
|
20
|
-
switch (arguments.length) {
|
|
21
|
-
case 0:
|
|
22
|
-
return f3;
|
|
23
|
-
case 1:
|
|
24
|
-
return (0, _isPlaceholder_1.default)(a)
|
|
25
|
-
? f3
|
|
26
|
-
: (0, _curry2_1.default)(function (_b, _c) {
|
|
27
|
-
return fn(a, _b, _c);
|
|
28
|
-
});
|
|
29
|
-
case 2:
|
|
30
|
-
return (0, _isPlaceholder_1.default)(a) && (0, _isPlaceholder_1.default)(b)
|
|
31
|
-
? f3
|
|
32
|
-
: (0, _isPlaceholder_1.default)(a)
|
|
33
|
-
? (0, _curry2_1.default)(function (_a, _c) {
|
|
34
|
-
return fn(_a, b, _c);
|
|
35
|
-
})
|
|
36
|
-
: (0, _isPlaceholder_1.default)(b)
|
|
37
|
-
? (0, _curry2_1.default)(function (_b, _c) {
|
|
38
|
-
return fn(a, _b, _c);
|
|
39
|
-
})
|
|
40
|
-
: (0, _curry1_1.default)(function (_c) {
|
|
41
|
-
return fn(a, b, _c);
|
|
42
|
-
});
|
|
43
|
-
default:
|
|
44
|
-
return (0, _isPlaceholder_1.default)(a) && (0, _isPlaceholder_1.default)(b) && (0, _isPlaceholder_1.default)(c)
|
|
45
|
-
? f3
|
|
46
|
-
: (0, _isPlaceholder_1.default)(a) && (0, _isPlaceholder_1.default)(b)
|
|
47
|
-
? (0, _curry2_1.default)(function (_a, _b) {
|
|
48
|
-
return fn(_a, _b, c);
|
|
49
|
-
})
|
|
50
|
-
: (0, _isPlaceholder_1.default)(a) && (0, _isPlaceholder_1.default)(c)
|
|
51
|
-
? (0, _curry2_1.default)(function (_a, _c) {
|
|
52
|
-
return fn(_a, b, _c);
|
|
53
|
-
})
|
|
54
|
-
: (0, _isPlaceholder_1.default)(b) && (0, _isPlaceholder_1.default)(c)
|
|
55
|
-
? (0, _curry2_1.default)(function (_b, _c) {
|
|
56
|
-
return fn(a, _b, _c);
|
|
57
|
-
})
|
|
58
|
-
: (0, _isPlaceholder_1.default)(a)
|
|
59
|
-
? (0, _curry1_1.default)(function (_a) {
|
|
60
|
-
return fn(_a, b, c);
|
|
61
|
-
})
|
|
62
|
-
: (0, _isPlaceholder_1.default)(b)
|
|
63
|
-
? (0, _curry1_1.default)(function (_b) {
|
|
64
|
-
return fn(a, _b, c);
|
|
65
|
-
})
|
|
66
|
-
: (0, _isPlaceholder_1.default)(c)
|
|
67
|
-
? (0, _curry1_1.default)(function (_c) {
|
|
68
|
-
return fn(a, b, _c);
|
|
69
|
-
})
|
|
70
|
-
: fn(a, b, c);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=_curry3.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = _isPlaceholder;
|
|
4
|
-
function _isPlaceholder(a) {
|
|
5
|
-
return (a != null && typeof a === "object" && a["@@functional/placeholder"] === true);
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=_isPlaceholder.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var _curry2_1 = __importDefault(require("./internal/_curry2"));
|
|
7
|
-
var mergeDeepWithKey_1 = __importDefault(require("./mergeDeepWithKey"));
|
|
8
|
-
var mergeDeepRight = (0, _curry2_1.default)(function mergeDeepRight(lObj, rObj) {
|
|
9
|
-
return (0, mergeDeepWithKey_1.default)(function (_, __, rVal) {
|
|
10
|
-
return rVal;
|
|
11
|
-
}, lObj, rObj);
|
|
12
|
-
});
|
|
13
|
-
exports.default = mergeDeepRight;
|
|
14
|
-
//# sourceMappingURL=mergeDeepRight.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var _curry3_1 = __importDefault(require("./internal/_curry3"));
|
|
7
|
-
var _isObject_1 = __importDefault(require("./internal/_isObject"));
|
|
8
|
-
var mergeWithKey_1 = __importDefault(require("./mergeWithKey"));
|
|
9
|
-
var mergeDeepWithKey = (0, _curry3_1.default)(function mergeDeepWithKey(fn, lObj, rObj) {
|
|
10
|
-
return (0, mergeWithKey_1.default)(function (k, lVal, rVal) {
|
|
11
|
-
if ((0, _isObject_1.default)(lVal) && (0, _isObject_1.default)(rVal)) {
|
|
12
|
-
return mergeDeepWithKey(fn, lVal, rVal);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return fn(k, lVal, rVal);
|
|
16
|
-
}
|
|
17
|
-
}, lObj, rObj);
|
|
18
|
-
});
|
|
19
|
-
exports.default = mergeDeepWithKey;
|
|
20
|
-
//# sourceMappingURL=mergeDeepWithKey.js.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var _curry3_1 = __importDefault(require("./internal/_curry3"));
|
|
7
|
-
var _has_1 = __importDefault(require("./internal/_has"));
|
|
8
|
-
var mergeWithKey = (0, _curry3_1.default)(function mergeWithKey(fn, l, r) {
|
|
9
|
-
var result = {};
|
|
10
|
-
var k;
|
|
11
|
-
l = l || {};
|
|
12
|
-
r = r || {};
|
|
13
|
-
for (k in l) {
|
|
14
|
-
if ((0, _has_1.default)(k, l)) {
|
|
15
|
-
result[k] = (0, _has_1.default)(k, r) ? fn(k, l[k], r[k]) : l[k];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
for (k in r) {
|
|
19
|
-
if ((0, _has_1.default)(k, r) && !(0, _has_1.default)(k, result)) {
|
|
20
|
-
result[k] = r[k];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return result;
|
|
24
|
-
});
|
|
25
|
-
exports.default = mergeWithKey;
|
|
26
|
-
//# sourceMappingURL=mergeWithKey.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optimized internal one-arity curry function.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @category Function
|
|
6
|
-
* @param {Function} fn The function to curry.
|
|
7
|
-
* @return {Function} The curried function.
|
|
8
|
-
*/
|
|
9
|
-
export default function _curry1(fn: Function): (a: any) => any;
|
|
10
|
-
//# sourceMappingURL=_curry1.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import _isPlaceholder from "./_isPlaceholder";
|
|
2
|
-
/**
|
|
3
|
-
* Optimized internal one-arity curry function.
|
|
4
|
-
*
|
|
5
|
-
* @private
|
|
6
|
-
* @category Function
|
|
7
|
-
* @param {Function} fn The function to curry.
|
|
8
|
-
* @return {Function} The curried function.
|
|
9
|
-
*/
|
|
10
|
-
export default function _curry1(fn) {
|
|
11
|
-
return function f1(a) {
|
|
12
|
-
if (arguments.length === 0 || _isPlaceholder(a)) {
|
|
13
|
-
return f1;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return fn.apply(this, arguments);
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=_curry1.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optimized internal two-arity curry function.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @category Function
|
|
6
|
-
* @param {Function} fn The function to curry.
|
|
7
|
-
* @return {Function} The curried function.
|
|
8
|
-
*/
|
|
9
|
-
export default function _curry2(fn: Function): (a: any, b: any) => any;
|
|
10
|
-
//# sourceMappingURL=_curry2.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import _curry1 from "./_curry1";
|
|
2
|
-
import _isPlaceholder from "./_isPlaceholder";
|
|
3
|
-
/**
|
|
4
|
-
* Optimized internal two-arity curry function.
|
|
5
|
-
*
|
|
6
|
-
* @private
|
|
7
|
-
* @category Function
|
|
8
|
-
* @param {Function} fn The function to curry.
|
|
9
|
-
* @return {Function} The curried function.
|
|
10
|
-
*/
|
|
11
|
-
export default function _curry2(fn) {
|
|
12
|
-
return function f2(a, b) {
|
|
13
|
-
switch (arguments.length) {
|
|
14
|
-
case 0:
|
|
15
|
-
return f2;
|
|
16
|
-
case 1:
|
|
17
|
-
return _isPlaceholder(a)
|
|
18
|
-
? f2
|
|
19
|
-
: _curry1(function (_b) {
|
|
20
|
-
return fn(a, _b);
|
|
21
|
-
});
|
|
22
|
-
default:
|
|
23
|
-
return _isPlaceholder(a) && _isPlaceholder(b)
|
|
24
|
-
? f2
|
|
25
|
-
: _isPlaceholder(a)
|
|
26
|
-
? _curry1(function (_a) {
|
|
27
|
-
return fn(_a, b);
|
|
28
|
-
})
|
|
29
|
-
: _isPlaceholder(b)
|
|
30
|
-
? _curry1(function (_b) {
|
|
31
|
-
return fn(a, _b);
|
|
32
|
-
})
|
|
33
|
-
: fn(a, b);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=_curry2.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optimized internal three-arity curry function.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @category Function
|
|
6
|
-
* @param {Function} fn The function to curry.
|
|
7
|
-
* @return {Function} The curried function.
|
|
8
|
-
*/
|
|
9
|
-
export default function _curry3(fn: Function): (a: any, b: any, c: any) => any;
|
|
10
|
-
//# sourceMappingURL=_curry3.d.ts.map
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import _curry1 from "./_curry1";
|
|
2
|
-
import _curry2 from "./_curry2";
|
|
3
|
-
import _isPlaceholder from "./_isPlaceholder";
|
|
4
|
-
/**
|
|
5
|
-
* Optimized internal three-arity curry function.
|
|
6
|
-
*
|
|
7
|
-
* @private
|
|
8
|
-
* @category Function
|
|
9
|
-
* @param {Function} fn The function to curry.
|
|
10
|
-
* @return {Function} The curried function.
|
|
11
|
-
*/
|
|
12
|
-
export default function _curry3(fn) {
|
|
13
|
-
return function f3(a, b, c) {
|
|
14
|
-
switch (arguments.length) {
|
|
15
|
-
case 0:
|
|
16
|
-
return f3;
|
|
17
|
-
case 1:
|
|
18
|
-
return _isPlaceholder(a)
|
|
19
|
-
? f3
|
|
20
|
-
: _curry2(function (_b, _c) {
|
|
21
|
-
return fn(a, _b, _c);
|
|
22
|
-
});
|
|
23
|
-
case 2:
|
|
24
|
-
return _isPlaceholder(a) && _isPlaceholder(b)
|
|
25
|
-
? f3
|
|
26
|
-
: _isPlaceholder(a)
|
|
27
|
-
? _curry2(function (_a, _c) {
|
|
28
|
-
return fn(_a, b, _c);
|
|
29
|
-
})
|
|
30
|
-
: _isPlaceholder(b)
|
|
31
|
-
? _curry2(function (_b, _c) {
|
|
32
|
-
return fn(a, _b, _c);
|
|
33
|
-
})
|
|
34
|
-
: _curry1(function (_c) {
|
|
35
|
-
return fn(a, b, _c);
|
|
36
|
-
});
|
|
37
|
-
default:
|
|
38
|
-
return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c)
|
|
39
|
-
? f3
|
|
40
|
-
: _isPlaceholder(a) && _isPlaceholder(b)
|
|
41
|
-
? _curry2(function (_a, _b) {
|
|
42
|
-
return fn(_a, _b, c);
|
|
43
|
-
})
|
|
44
|
-
: _isPlaceholder(a) && _isPlaceholder(c)
|
|
45
|
-
? _curry2(function (_a, _c) {
|
|
46
|
-
return fn(_a, b, _c);
|
|
47
|
-
})
|
|
48
|
-
: _isPlaceholder(b) && _isPlaceholder(c)
|
|
49
|
-
? _curry2(function (_b, _c) {
|
|
50
|
-
return fn(a, _b, _c);
|
|
51
|
-
})
|
|
52
|
-
: _isPlaceholder(a)
|
|
53
|
-
? _curry1(function (_a) {
|
|
54
|
-
return fn(_a, b, c);
|
|
55
|
-
})
|
|
56
|
-
: _isPlaceholder(b)
|
|
57
|
-
? _curry1(function (_b) {
|
|
58
|
-
return fn(a, _b, c);
|
|
59
|
-
})
|
|
60
|
-
: _isPlaceholder(c)
|
|
61
|
-
? _curry1(function (_c) {
|
|
62
|
-
return fn(a, b, _c);
|
|
63
|
-
})
|
|
64
|
-
: fn(a, b, c);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=_curry3.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _curry2 from "./internal/_curry2";
|
|
2
|
-
import mergeDeepWithKey from "./mergeDeepWithKey";
|
|
3
|
-
var mergeDeepRight = _curry2(function mergeDeepRight(lObj, rObj) {
|
|
4
|
-
return mergeDeepWithKey(function (_, __, rVal) {
|
|
5
|
-
return rVal;
|
|
6
|
-
}, lObj, rObj);
|
|
7
|
-
});
|
|
8
|
-
export default mergeDeepRight;
|
|
9
|
-
//# sourceMappingURL=mergeDeepRight.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import _curry3 from "./internal/_curry3";
|
|
2
|
-
import _isObject from "./internal/_isObject";
|
|
3
|
-
import mergeWithKey from "./mergeWithKey";
|
|
4
|
-
var mergeDeepWithKey = _curry3(function mergeDeepWithKey(fn, lObj, rObj) {
|
|
5
|
-
return mergeWithKey(function (k, lVal, rVal) {
|
|
6
|
-
if (_isObject(lVal) && _isObject(rVal)) {
|
|
7
|
-
return mergeDeepWithKey(fn, lVal, rVal);
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
return fn(k, lVal, rVal);
|
|
11
|
-
}
|
|
12
|
-
}, lObj, rObj);
|
|
13
|
-
});
|
|
14
|
-
export default mergeDeepWithKey;
|
|
15
|
-
//# sourceMappingURL=mergeDeepWithKey.js.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _curry3 from "./internal/_curry3";
|
|
2
|
-
import _has from "./internal/_has";
|
|
3
|
-
var mergeWithKey = _curry3(function mergeWithKey(fn, l, r) {
|
|
4
|
-
var result = {};
|
|
5
|
-
var k;
|
|
6
|
-
l = l || {};
|
|
7
|
-
r = r || {};
|
|
8
|
-
for (k in l) {
|
|
9
|
-
if (_has(k, l)) {
|
|
10
|
-
result[k] = _has(k, r) ? fn(k, l[k], r[k]) : l[k];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
for (k in r) {
|
|
14
|
-
if (_has(k, r) && !_has(k, result)) {
|
|
15
|
-
result[k] = r[k];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return result;
|
|
19
|
-
});
|
|
20
|
-
export default mergeWithKey;
|
|
21
|
-
//# sourceMappingURL=mergeWithKey.js.map
|