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

webgl-raub

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webgl-raub - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

index.d.ts

2

install.js

@@ -7,4 +7,4 @@ 'use strict';

const prefix = 'https://github.com/node-3d/webgl-raub/releases/download';
const tag = process.env.npm_package_config_install;
const tag = 'v2.2.0-pre';
install(`${prefix}/${tag}`);

@@ -47,3 +47,3 @@ 'use strict';

const enforceBool = x => typeof x === 'boolean' ? (x ? 1 : 0) : x;
const unfoldBool = x => typeof x === 'boolean' ? (x ? 1 : 0) : x;

@@ -70,2 +70,7 @@

const _vertexAttribPointer = gl.vertexAttribPointer;
gl.vertexAttribPointer = (indx, size, type, normalized, stride, offset) => {
return _vertexAttribPointer(indx, size, type, !!normalized, stride, offset);
};
const _vertexAttrib1fv = gl.vertexAttrib1fv;

@@ -251,5 +256,5 @@ gl.vertexAttrib1fv = (indx, v) => {

const _texImage2D = gl.texImage2D;
gl.texImage2D = function (
gl.texImage2D = (
target, level, internalformat, width, height, border, format, type, pixels
) {
) => {

@@ -300,3 +305,3 @@ if (arguments.length === 6) {

gl.uniform1i = (location, x) => _uniform1i(
enforceId(location), enforceBool(x)
enforceId(location), unfoldBool(x)
);

@@ -359,3 +364,3 @@

gl.uniformMatrix2fv = (location, transpose, v) => {
return _uniformMatrix2fv(enforceId(location), transpose, enforceF32(v));
return _uniformMatrix2fv(enforceId(location), !!transpose, enforceF32(v));
};

@@ -365,3 +370,3 @@

gl.uniformMatrix3fv = (location, transpose, v) => {
return _uniformMatrix3fv(enforceId(location), transpose, enforceF32(v));
return _uniformMatrix3fv(enforceId(location), !!transpose, enforceF32(v));
};

@@ -371,3 +376,3 @@

gl.uniformMatrix4fv = (location, transpose, v) => {
return _uniformMatrix4fv(enforceId(location), transpose, enforceF32(v));
return _uniformMatrix4fv(enforceId(location), !!transpose, enforceF32(v));
};

@@ -418,13 +423,24 @@

const _getParameter = gl.getParameter;
gl.getParameter = pname => pname === gl.VERSION ? 'WebGL 1.0' : _getParameter(pname);
gl.getParameter = pname => {
if (pname === gl.VERSION) {
return 'WebGL 1.0';
}
return _getParameter(pname);
};
const _pixelStorei = gl.pixelStorei;
gl.pixelStorei = (pname, param) =>_pixelStorei(
pname, enforceBool(param)
pname, unfoldBool(param)
);
const _viewport = gl.viewport;
gl.viewport = (x, y, width, height) => _viewport(x, y, width, height);
const _colorMask = gl.colorMask;
gl.colorMask = (red, green, blue, alpha) =>_colorMask(!!red, !!green, !!blue, !!alpha);
const _depthMask = gl.depthMask;
gl.depthMask = flag =>_depthMask(!!flag);
const _sampleCoverage = gl.sampleCoverage;
gl.sampleCoverage = (value, invert) =>_sampleCoverage(value, !!invert);
Object.defineProperty(

@@ -431,0 +447,0 @@ gl, 'drawingBufferWidth', { get: () => gl.getParameter(gl.VIEWPORT)[2] }

{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "webgl-raub",
"version": "2.1.0",
"version": "2.2.0",
"description": "WebGL for Node.js",

@@ -24,2 +24,3 @@ "license": "MIT",

"index.js",
"index.d.ts",
"install.js",

@@ -31,10 +32,12 @@ "LICENSE",

"engines": {
"node": ">=12.13.0",
"npm": ">=6.12.0"
"node": ">=14.16.0",
"npm": ">=6.14.1"
},
"config": {
"install": "v2.1.0"
},
"scripts": {
"postinstall": "node install"
"postinstall": "node install",
"eslint": "eslint .",
"build": "cd src && node-gyp rebuild && cd ..",
"test": "jest --coverage=false --watch",
"test-ci": "jest --coverage=false --verbose",
"test-coverage": "rm -rf doc/jest && jest --coverage --silent"
},

@@ -46,6 +49,13 @@ "repository": {

"dependencies": {
"addon-tools-raub": "5.2.x",
"deps-opengl-raub": "3.0.x",
"segfault-raub": "1.1.x"
"addon-tools-raub": "5.3.x",
"deps-opengl-raub": "4.0.x",
"segfault-raub": "1.2.x"
},
"devDependencies": {
"eslint": "7.23.0",
"eslint-plugin-jest": "24.3.3",
"eslint-plugin-node": "11.1.0",
"jest": "26.6.3",
"typescript": "4.2.4"
}
}

@@ -6,7 +6,7 @@ # WebGL for Node.js

[![NPM](https://nodei.co/npm/webgl-raub.png?compact=true)](https://www.npmjs.com/package/webgl-raub)
[![Build Status](https://api.travis-ci.com/node-3d/webgl-raub.svg?branch=master)](https://travis-ci.com/node-3d/webgl-raub)
[![CodeFactor](https://www.codefactor.io/repository/github/node-3d/webgl-raub/badge)](https://www.codefactor.io/repository/github/node-3d/webgl-raub)
> npm i webgl-raub
```
npm i webgl-raub
```

@@ -13,0 +13,0 @@

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