@faasjs/react 3.5.1 → 3.6.0
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/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -13,6 +13,8 @@ function useConstant(fn) {
|
|
|
13
13
|
return ref.current.v;
|
|
14
14
|
}
|
|
15
15
|
useConstant.whyDidYouRender = true;
|
|
16
|
+
var AsyncFunction = (async () => {
|
|
17
|
+
}).constructor;
|
|
16
18
|
function equal(a, b) {
|
|
17
19
|
if (a === b) return true;
|
|
18
20
|
if ((a === null || a === void 0) && (b === null || b === void 0))
|
|
@@ -37,6 +39,7 @@ function equal(a, b) {
|
|
|
37
39
|
return a.getTime() === b.getTime();
|
|
38
40
|
case RegExp:
|
|
39
41
|
case Function:
|
|
42
|
+
case AsyncFunction:
|
|
40
43
|
return a.toString() === b.toString();
|
|
41
44
|
case Map:
|
|
42
45
|
case Set:
|
package/dist/index.mjs
CHANGED
|
@@ -11,6 +11,8 @@ function useConstant(fn) {
|
|
|
11
11
|
return ref.current.v;
|
|
12
12
|
}
|
|
13
13
|
useConstant.whyDidYouRender = true;
|
|
14
|
+
var AsyncFunction = (async () => {
|
|
15
|
+
}).constructor;
|
|
14
16
|
function equal(a, b) {
|
|
15
17
|
if (a === b) return true;
|
|
16
18
|
if ((a === null || a === void 0) && (b === null || b === void 0))
|
|
@@ -35,6 +37,7 @@ function equal(a, b) {
|
|
|
35
37
|
return a.getTime() === b.getTime();
|
|
36
38
|
case RegExp:
|
|
37
39
|
case Function:
|
|
40
|
+
case AsyncFunction:
|
|
38
41
|
return a.toString() === b.toString();
|
|
39
42
|
case Map:
|
|
40
43
|
case Set:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
],
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "*",
|
|
38
|
-
"@faasjs/browser": "3.
|
|
38
|
+
"@faasjs/browser": "3.6.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/react": "*",
|
|
42
42
|
"react": "*",
|
|
43
|
-
"@faasjs/browser": "3.
|
|
43
|
+
"@faasjs/browser": "3.6.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=22.0.0",
|