@trackunit/filters-graphql-hook 1.9.42 → 1.9.45
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/index.cjs.js +1 -4
- package/index.esm.js +1 -4
- package/package.json +10 -10
package/index.cjs.js
CHANGED
|
@@ -77,7 +77,6 @@ values, outputTypeRecord) => {
|
|
|
77
77
|
if (!convertedValue) {
|
|
78
78
|
throw Error(`Unknown value: ${value} expect one of: ${JSON.stringify(Object.values(outputTypeRecord))}`);
|
|
79
79
|
}
|
|
80
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
81
80
|
return convertedValue;
|
|
82
81
|
});
|
|
83
82
|
return result.filter(sharedUtils.truthy);
|
|
@@ -88,7 +87,6 @@ values, outputTypeRecord) => {
|
|
|
88
87
|
if (!convertedValue) {
|
|
89
88
|
throw Error(`Unknown value: ${values} expect one of: ${JSON.stringify(Object.values(outputTypeRecord))}`);
|
|
90
89
|
}
|
|
91
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
92
90
|
return [convertedValue];
|
|
93
91
|
}
|
|
94
92
|
throw Error(`Unknown value: ${values} should be a string array`);
|
|
@@ -108,7 +106,6 @@ const fixType = (values, outputTypeRecord) => {
|
|
|
108
106
|
if (!convertedValue) {
|
|
109
107
|
throw Error(`Unknown value: ${values} expect one of: ${JSON.stringify(Object.values(outputTypeRecord))}`);
|
|
110
108
|
}
|
|
111
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
112
109
|
return convertedValue;
|
|
113
110
|
};
|
|
114
111
|
/**
|
|
@@ -144,7 +141,7 @@ value) => {
|
|
|
144
141
|
const isValueName = (value) => {
|
|
145
142
|
return (typeof value === "object" &&
|
|
146
143
|
value !== null &&
|
|
147
|
-
// eslint-disable-next-line
|
|
144
|
+
// eslint-disable-next-line local-rules/prefer-custom-object-keys
|
|
148
145
|
Object.keys(value).includes("name") &&
|
|
149
146
|
Object.keys(value).includes("value"));
|
|
150
147
|
};
|
package/index.esm.js
CHANGED
|
@@ -75,7 +75,6 @@ values, outputTypeRecord) => {
|
|
|
75
75
|
if (!convertedValue) {
|
|
76
76
|
throw Error(`Unknown value: ${value} expect one of: ${JSON.stringify(Object.values(outputTypeRecord))}`);
|
|
77
77
|
}
|
|
78
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
79
78
|
return convertedValue;
|
|
80
79
|
});
|
|
81
80
|
return result.filter(truthy);
|
|
@@ -86,7 +85,6 @@ values, outputTypeRecord) => {
|
|
|
86
85
|
if (!convertedValue) {
|
|
87
86
|
throw Error(`Unknown value: ${values} expect one of: ${JSON.stringify(Object.values(outputTypeRecord))}`);
|
|
88
87
|
}
|
|
89
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
90
88
|
return [convertedValue];
|
|
91
89
|
}
|
|
92
90
|
throw Error(`Unknown value: ${values} should be a string array`);
|
|
@@ -106,7 +104,6 @@ const fixType = (values, outputTypeRecord) => {
|
|
|
106
104
|
if (!convertedValue) {
|
|
107
105
|
throw Error(`Unknown value: ${values} expect one of: ${JSON.stringify(Object.values(outputTypeRecord))}`);
|
|
108
106
|
}
|
|
109
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
110
107
|
return convertedValue;
|
|
111
108
|
};
|
|
112
109
|
/**
|
|
@@ -142,7 +139,7 @@ value) => {
|
|
|
142
139
|
const isValueName = (value) => {
|
|
143
140
|
return (typeof value === "object" &&
|
|
144
141
|
value !== null &&
|
|
145
|
-
// eslint-disable-next-line
|
|
142
|
+
// eslint-disable-next-line local-rules/prefer-custom-object-keys
|
|
146
143
|
Object.keys(value).includes("name") &&
|
|
147
144
|
Object.keys(value).includes("value"));
|
|
148
145
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-graphql-hook",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.45",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"graphql": "^16.10.0",
|
|
14
14
|
"@apollo/client": "3.13.8",
|
|
15
15
|
"zod": "^3.23.8",
|
|
16
|
-
"@trackunit/iris-app-build-utilities": "1.6.
|
|
17
|
-
"@trackunit/filters-filter-bar": "1.7.
|
|
18
|
-
"@trackunit/shared-utils": "1.8.
|
|
19
|
-
"@trackunit/iris-app-api": "1.6.
|
|
20
|
-
"@trackunit/react-core-contexts-test": "1.6.
|
|
21
|
-
"@trackunit/i18n-library-translation": "1.6.
|
|
22
|
-
"@trackunit/react-core-contexts-api": "1.7.
|
|
23
|
-
"@trackunit/react-core-hooks": "1.6.
|
|
24
|
-
"@trackunit/react-test-setup": "1.3.
|
|
16
|
+
"@trackunit/iris-app-build-utilities": "1.6.27",
|
|
17
|
+
"@trackunit/filters-filter-bar": "1.7.45",
|
|
18
|
+
"@trackunit/shared-utils": "1.8.27",
|
|
19
|
+
"@trackunit/iris-app-api": "1.6.27",
|
|
20
|
+
"@trackunit/react-core-contexts-test": "1.6.29",
|
|
21
|
+
"@trackunit/i18n-library-translation": "1.6.30",
|
|
22
|
+
"@trackunit/react-core-contexts-api": "1.7.28",
|
|
23
|
+
"@trackunit/react-core-hooks": "1.6.29",
|
|
24
|
+
"@trackunit/react-test-setup": "1.3.27"
|
|
25
25
|
},
|
|
26
26
|
"module": "./index.esm.js",
|
|
27
27
|
"main": "./index.cjs.js",
|