@graffy/link 0.15.21 → 0.15.22-alpha.1
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 +2 -0
- package/index.mjs +2 -0
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -185,6 +185,8 @@ function prepQueryLinks(rootQuery, defs) {
|
|
|
185
185
|
Object.defineProperty(pager, "toString", { value: () => key });
|
|
186
186
|
return pager;
|
|
187
187
|
}
|
|
188
|
+
if (!Array.isArray(query) || !query.length)
|
|
189
|
+
return [];
|
|
188
190
|
const [key, ...rest] = path;
|
|
189
191
|
if (rest.length === 0) {
|
|
190
192
|
if (key[0] === "$") {
|
package/index.mjs
CHANGED
|
@@ -180,6 +180,8 @@ function prepQueryLinks(rootQuery, defs) {
|
|
|
180
180
|
Object.defineProperty(pager, "toString", { value: () => key });
|
|
181
181
|
return pager;
|
|
182
182
|
}
|
|
183
|
+
if (!Array.isArray(query) || !query.length)
|
|
184
|
+
return [];
|
|
183
185
|
const [key, ...rest] = path;
|
|
184
186
|
if (rest.length === 0) {
|
|
185
187
|
if (key[0] === "$") {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graffy/link",
|
|
3
3
|
"description": "Graffy module for constructing links using an intuitive, declarative notation.",
|
|
4
4
|
"author": "aravind (https://github.com/aravindet)",
|
|
5
|
-
"version": "0.15.
|
|
5
|
+
"version": "0.15.22-alpha.1",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@graffy/common": "0.15.
|
|
19
|
+
"@graffy/common": "0.15.22-alpha.1",
|
|
20
20
|
"debug": "^4.3.3"
|
|
21
21
|
}
|
|
22
22
|
}
|