Comparing version 1.3.0 to 1.3.1
@@ -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 @@ } |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1005420
24052
1