Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gl-util

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-util - npm Package Compare versions

Comparing version 3.0.7 to 3.0.8

3

context.js

@@ -8,2 +8,3 @@ /** @module gl-util/context */

if (!o) o = {}
else if (typeof o === 'string') o = {container: o}

@@ -44,3 +45,3 @@ // HTMLCanvasElement

var c = document.querySelector(o.container)
if (!o.container) throw Error('Element ' + o.container + ' is not found')
if (!c) throw Error('Element ' + o.container + ' is not found')
o.container = c

@@ -47,0 +48,0 @@ }

{
"name": "gl-util",
"version": "3.0.7",
"version": "3.0.8",
"description": "Set of practical webgl utils",

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

@@ -13,1 +13,11 @@ 'use strict'

})
t('context container as string', t => {
let canvas = document.body.appendChild(document.createElement('canvas'))
canvas.id = 'canvas'
let gl = context('#canvas')
document.body.removeChild(canvas)
t.end()
})
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