cordo 2.15.1 → 2.15.2-debug

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.15.1",
3
+ "version": "2.15.2-debug",
4
4
  "description": "A framework for handling complex discord api interactions",
5
5
  "exports": {
6
6
  ".": "./src/index.ts",
@@ -172,6 +172,12 @@ export namespace FunctCompiler {
172
172
  }
173
173
 
174
174
  const argRaw = argsRaw.shift()!
175
+ if (!argRaw) {
176
+ console.warn('Monkey alert!')
177
+ console.log(JSON.stringify({ id, header, routesRaw, argsRaw, parsedArguments }))
178
+ console.log(`>> ${id} <<`)
179
+ return path.join('/')
180
+ }
175
181
  const parsed = parseArg(argRaw, parsedArguments)
176
182
  path.push(parsed)
177
183
  parsedArguments.push(parsed)