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

regl

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regl - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

6

browserify/transform.js

@@ -10,2 +10,5 @@ var Stream = require('stream')

'../regl.js'))
var REGL_MAIN_PATH = path.normalize(path.join(__dirname,
'../',
require('../package.json').main))
var UNCHECKED = fs.readFileSync(path.join(__dirname,

@@ -29,4 +32,5 @@ '../dist/regl.min.js')).toString()

module.exports = function (file, options) {
var nfile = path.normalize(file)
if ((options._flags && options._flags.debug) ||
path.normalize(file) !== REGL_PATH) {
(nfile !== REGL_PATH && nfile !== REGL_MAIN_PATH)) {
return new PassThrough()

@@ -33,0 +37,0 @@ }

6

lib/buffer.js

@@ -290,3 +290,5 @@ var check = require('./util/check')

buffer.bind()
if (Array.isArray(data)) {
if (isTypedArray(data)) {
setSubData(data, offset)
} else if (Array.isArray(data)) {
if (data.length > 0) {

@@ -307,4 +309,2 @@ if (typeof data[0] === 'number') {

}
} else if (isTypedArray(data)) {
setSubData(data, offset)
} else if (isNDArrayLike(data)) {

@@ -311,0 +311,0 @@ shape = data.shape

@@ -169,2 +169,6 @@ var check = require('./util/check')

check(
gl.getError() == 0,
'invalid render buffer format')
if (config.profile) {

@@ -198,2 +202,6 @@ renderbuffer.stats.size = getRenderbufferSize(renderbuffer.format, renderbuffer.width, renderbuffer.height)

check(
gl.getError() == 0,
'invalid render buffer format')
// also, recompute size.

@@ -200,0 +208,0 @@ if (config.profile) {

@@ -509,3 +509,3 @@ var check = require('./util/check')

this.unpackAlignment = 1
this.colorSpace = 0
this.colorSpace = GL_BROWSER_DEFAULT_WEBGL

@@ -512,0 +512,0 @@ // shape info

@@ -1,4 +0,13 @@

var dtypes = require('../constants/arraytypes.json')
module.exports = function (x) {
return Object.prototype.toString.call(x) in dtypes
return (
x instanceof Uint8Array ||
x instanceof Uint16Array ||
x instanceof Uint32Array ||
x instanceof Int8Array ||
x instanceof Int16Array ||
x instanceof Int32Array ||
x instanceof Float32Array ||
x instanceof Float64Array ||
x instanceof Uint8ClampedArray
)
}
{
"name": "regl",
"version": "1.3.0",
"version": "1.3.1",
"description": "regl is a fast functional WebGL framework.",

@@ -5,0 +5,0 @@ "main": "dist/regl.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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