New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gl-wiretap

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-wiretap - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

1

index.d.ts

@@ -30,2 +30,3 @@ export interface IGLWiretapOptions {

toString(): string;
getContextVariableName(value: any): string;
}

@@ -32,0 +33,0 @@

@@ -34,2 +34,3 @@ /**

case 'toString': return toString;
case 'getContextVariableName': return getContextVariableName;
}

@@ -203,2 +204,10 @@ if (typeof gl[property] === 'function') {

}
function getContextVariableName(value) {
const i = contextVariables.indexOf(value);
if (i !== -1) {
return `${contextName}Variable${i}`;
}
return null;
}
}

@@ -205,0 +214,0 @@

2

package.json
{
"name": "gl-wiretap",
"version": "0.5.0",
"version": "0.6.0",
"description": "A gl debugger that listens and replays gl (WebGL, WebGL2, and HeadlessGL) gpu commands",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -68,2 +68,17 @@ # gl-wiretap

### glWiretap().getReadPixelsVariableName()
Gets the last internal variable name used as a target value for `gl.readPixels()`
### glWiretap().insertVariable(name, value)
Insert a value into the `glWiretap()` playback string.
### glWiretap().reset()
Reset the playback string.
### glWiretap().setIndent(spaces)
Set the playback indentation. Useful for formatting results.
### glWiretap().getContextVariableName(value)
Get a variable name from the context. Useful for adding additional functionality to, for example, textures, etc.
## glWiretap options

@@ -70,0 +85,0 @@ * contextName: String - A string that refers to the gl context for `glWiretap().toString()`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc