@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 CHANGED
@@ -16,7 +16,7 @@
16
16
  ]
17
17
  },
18
18
  "name": "@kaspernj/api-maker",
19
- "version": "1.0.140",
19
+ "version": "1.0.141",
20
20
  "description": "",
21
21
  "main": "index.js",
22
22
  "repository": {
@@ -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
- return digg(args, digg(pathPart, "count"))
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
  }