gl-wiretap
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -291,3 +291,3 @@ /** | ||
function argumentsToString(args, options) { | ||
const { variables } = options; | ||
const { variables, onUnrecognizedArgumentLookup } = options; | ||
return (Array.from(args).map((arg) => { | ||
@@ -304,2 +304,3 @@ const variableName = getVariableName(arg); | ||
for (const name in variables) { | ||
if (!variables.hasOwnProperty(name)) continue; | ||
if (variables[name] === value) { | ||
@@ -310,2 +311,5 @@ return name; | ||
} | ||
if (onUnrecognizedArgumentLookup) { | ||
return onUnrecognizedArgumentLookup(value); | ||
} | ||
return null; | ||
@@ -312,0 +316,0 @@ } |
{ | ||
"name": "gl-wiretap", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "A gl debugger that listens and replays gl (WebGL, WebGL2, and HeadlessGL) gpu commands", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
19891
392