@kaspernj/api-maker 1.0.140 → 1.0.141
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/package.json +1 -1
- package/src/routes-native.cjs +2 -1
package/package.json
CHANGED
package/src/routes-native.cjs
CHANGED
|
@@ -97,7 +97,8 @@ module.exports = class ApiMakerRoutesNative {
|
|
|
97
97
|
if (pathPart.type == "pathPart") {
|
|
98
98
|
return pathPart.name
|
|
99
99
|
} else if (pathPart.type == "variable") {
|
|
100
|
-
|
|
100
|
+
// Args might not contain the right amount of variables, so dont change this to 'digg'
|
|
101
|
+
return dig(args, digg(pathPart, "count"))
|
|
101
102
|
} else {
|
|
102
103
|
throw new Error(`Unhandled path part type: ${pathPart.type}`)
|
|
103
104
|
}
|