@coaction/solid 1.0.1 → 1.2.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 -3
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var createAutoSelector = (store, getVersion) => {
|
|
|
38
38
|
if (!store.isSliceStore) {
|
|
39
39
|
const autoSelector2 = {};
|
|
40
40
|
const descriptors = Object.getOwnPropertyDescriptors(state);
|
|
41
|
-
for (const key
|
|
41
|
+
for (const key of Object.keys(descriptors)) {
|
|
42
42
|
const descriptor = descriptors[key];
|
|
43
43
|
if (typeof descriptor.value === "function") {
|
|
44
44
|
autoSelector2[key] = descriptor.value.bind(state);
|
|
@@ -52,14 +52,14 @@ var createAutoSelector = (store, getVersion) => {
|
|
|
52
52
|
return autoSelector2;
|
|
53
53
|
}
|
|
54
54
|
const autoSelector = {};
|
|
55
|
-
for (const sliceKey
|
|
55
|
+
for (const sliceKey of Object.keys(state)) {
|
|
56
56
|
const slice = state[sliceKey];
|
|
57
57
|
if (typeof slice !== "object" || slice === null) {
|
|
58
58
|
continue;
|
|
59
59
|
}
|
|
60
60
|
const sliceAutoSelector = {};
|
|
61
61
|
const descriptors = Object.getOwnPropertyDescriptors(slice);
|
|
62
|
-
for (const key
|
|
62
|
+
for (const key of Object.keys(descriptors)) {
|
|
63
63
|
const descriptor = descriptors[key];
|
|
64
64
|
if (typeof descriptor.value === "function") {
|
|
65
65
|
sliceAutoSelector[key] = descriptor.value.bind(slice);
|
package/dist/index.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var createAutoSelector = (store, getVersion) => {
|
|
|
36
36
|
if (!store.isSliceStore) {
|
|
37
37
|
const autoSelector2 = {};
|
|
38
38
|
const descriptors = Object.getOwnPropertyDescriptors(state);
|
|
39
|
-
for (const key
|
|
39
|
+
for (const key of Object.keys(descriptors)) {
|
|
40
40
|
const descriptor = descriptors[key];
|
|
41
41
|
if (typeof descriptor.value === "function") {
|
|
42
42
|
autoSelector2[key] = descriptor.value.bind(state);
|
|
@@ -50,14 +50,14 @@ var createAutoSelector = (store, getVersion) => {
|
|
|
50
50
|
return autoSelector2;
|
|
51
51
|
}
|
|
52
52
|
const autoSelector = {};
|
|
53
|
-
for (const sliceKey
|
|
53
|
+
for (const sliceKey of Object.keys(state)) {
|
|
54
54
|
const slice = state[sliceKey];
|
|
55
55
|
if (typeof slice !== "object" || slice === null) {
|
|
56
56
|
continue;
|
|
57
57
|
}
|
|
58
58
|
const sliceAutoSelector = {};
|
|
59
59
|
const descriptors = Object.getOwnPropertyDescriptors(slice);
|
|
60
|
-
for (const key
|
|
60
|
+
for (const key of Object.keys(descriptors)) {
|
|
61
61
|
const descriptor = descriptors[key];
|
|
62
62
|
if (typeof descriptor.value === "function") {
|
|
63
63
|
sliceAutoSelector[key] = descriptor.value.bind(slice);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coaction/solid",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A Coaction integration tool for Solid",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"state",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"url": "https://github.com/unadlib/coaction/issues"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"coaction": "^1.0
|
|
41
|
+
"coaction": "^1.2.0",
|
|
42
42
|
"solid-js": "^1.8.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
53
|
+
"solid-js": "^1.9.10",
|
|
54
|
+
"coaction": "1.2.0"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public",
|