cordo 2.11.0 → 2.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordo",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "description": "A framework for handling complex discord api interactions",
5
5
  "exports": {
6
6
  ".": "./src/index.ts",
@@ -63,8 +63,8 @@ export namespace RoutingResolve {
63
63
 
64
64
  if (!lockfile)
65
65
  throw new MissingContextError('getRouteFromPath failed, no lockfile found in context.')
66
- if (!invoker)
67
- throw new MissingContextError('getRouteFromPath failed, no invoker found in context.')
66
+ if (!invoker && resolveRuntimeVars)
67
+ throw new MissingContextError('getRouteFromPath failed, no invoker found in context with resolveRuntimeVars enabled.')
68
68
 
69
69
  let startingPoint = currentRoute
70
70
  if (startingPoint.endsWith(DefaultFileName))