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

2gl

Package Overview
Dependencies
Maintainers
7
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

2gl - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1-webgl2-fix.0

.nyc_output/029f299ce5972ef676c8f77389be44d0.json

4

package.json
{
"name": "2gl",
"version": "0.11.0",
"version": "0.11.1-webgl2-fix.0",
"description": "WebGL library for 2GIS projects",

@@ -33,3 +33,3 @@ "repository": {

"eslint": "^4.5.0",
"jsdoc": "^3.6.0",
"jsdoc": "git://github.com/jsdoc3/jsdoc.git",
"minami": "git://github.com/Trufi/minami.git",

@@ -36,0 +36,0 @@ "mocha": "^3.5.0",

@@ -91,3 +91,3 @@ /**

const ext = this._ext;
if (gl instanceof WebGL2RenderingContext) {
if (this._isWebGL2(gl)) {
return gl.createVertexArray();

@@ -102,3 +102,3 @@ } else if (ext) {

const ext = this._ext;
if (gl instanceof WebGL2RenderingContext) {
if (this._isWebGL2(gl)) {
gl.bindVertexArray(vao);

@@ -116,3 +116,3 @@ } else if (ext) {

const ext = this._ext;
if (gl instanceof WebGL2RenderingContext) {
if (this._isWebGL2(gl)) {
gl.deleteVertexArray(vao);

@@ -123,4 +123,8 @@ } else if (ext) {

}
_isWebGL2 (gl) {
return 'WebGL2RenderingContext' in window && gl instanceof WebGL2RenderingContext
}
}
export default Vao;

@@ -90,3 +90,3 @@ /**

const ext = this._ext;
if (gl instanceof WebGL2RenderingContext) {
if (this._isWebGL2(gl)) {
return gl.createVertexArray();

@@ -101,3 +101,3 @@ } else if (ext) {

const ext = this._ext;
if (gl instanceof WebGL2RenderingContext) {
if (this._isWebGL2(gl)) {
gl.bindVertexArray(vao);

@@ -115,3 +115,3 @@ } else if (ext) {

const ext = this._ext;
if (gl instanceof WebGL2RenderingContext) {
if (this._isWebGL2(gl)) {
gl.deleteVertexArray(vao);

@@ -122,5 +122,9 @@ } else if (ext) {

}
_isWebGL2(gl) {
return 'WebGL2RenderingContext' in window && gl instanceof WebGL2RenderingContext;
}
}
export default Vao;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9WYW8uanMiXSwibmFtZXMiOlsiVmFvIiwiY29uc3RydWN0b3IiLCJzaGFkZXJQcm9ncmFtIiwiYXR0cmlidXRlcyIsIl92YW8iLCJfYXR0cmlidXRlcyIsIl9zaGFkZXJQcm9ncmFtIiwiX2V4dCIsImJpbmQiLCJzdGF0ZSIsImV4dCIsImV4dGVuc2lvbnMiLCJPRVNfdmVydGV4X2FycmF5X29iamVjdCIsIl9iaW5kIiwiZ2wiLCJ1bmJpbmQiLCJfZ2xCaW5kVmVydGV4QXJyYXkiLCJyZW1vdmUiLCJfZ2xEZWxldGVWZXJ0ZXhBcnJheSIsInVuZGVmaW5lZCIsIl9wcmVwYXJlIiwiX2dsIiwiX2dsQ3JlYXRlVmVydGV4QXJyYXkiLCJzaGFkZXJBdHRyaWJ1dGVzIiwibmFtZSIsInNoYWRlckF0dHJpYnV0ZSIsImluZGV4IiwiZW5hYmxlVmVydGV4QXR0cmliQXJyYXkiLCJsb2NhdGlvbiIsIldlYkdMMlJlbmRlcmluZ0NvbnRleHQiLCJjcmVhdGVWZXJ0ZXhBcnJheSIsImNyZWF0ZVZlcnRleEFycmF5T0VTIiwidmFvIiwiYmluZFZlcnRleEFycmF5IiwiYmluZFZlcnRleEFycmF5T0VTIiwiZGVsZXRlVmVydGV4QXJyYXkiLCJkZWxldGVWZXJ0ZXhBcnJheU9FUyJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7OztBQVNBLE1BQU1BLEdBQU4sQ0FBVTtBQUNOQyxnQkFBWUMsYUFBWixFQUEyQkMsYUFBYSxFQUF4QyxFQUE0QztBQUN4QyxhQUFLQyxJQUFMLEdBQVksSUFBWjtBQUNBLGFBQUtDLFdBQUwsR0FBbUJ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yYXkodmFvKTtcbiAgICAgICAgfSBlbHNlIGlmIChleHQpIHtcbiAgICAgICAgICAgIGV4dC5iaW5kVmVydGV4QXJyYXlPRVModmFvKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIC8vINCSINGB0LvRg9GH0LDQtSDRhNC+0LvQu9Cx0LXQutCwIC0g0LHQuNC90LTQuNC8INCw0YLRgNC40LHRg9GC0Ysg0L/RgNGP0LzQviDQuNC3INGI0LXQudC00LXRgNC90L7QuSDQv9GA0L7Qs9GA0LDQvNC80YtcbiAgICAgICAgICAgIHRoaXMuX3NoYWRlclByb2dyYW0uYmluZChnbCwgbnVsbCwgdGhpcy5fYXR0cmlidXRlcyk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBfZ2xEZWxldGVWZXJ0ZXhBcnJheSh2YW8pIHtcbiAgICAgICAgY29uc3QgZ2wgPSB0aGlzLl9nbDtcbiAgICAgICAgY29uc3QgZXh0ID0gdGhpcy5fZXh0O1xuICAgICAgICBpZiAodGhpcy5faXNXZWJHTDIoZ2wpKSB7XG4gICAgICAgICAgICBnbC5kZWxldGVWZXJ0ZXhBcnJheSh2YW8pO1xuICAgICAgICB9IGVsc2UgaWYgKGV4dCkge1xuICAgICAgICAgICAgZXh0LmRlbGV0ZVZlcnRleEFycmF5T0VTKHZhbyk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBfaXNXZWJHTDIgKGdsKSB7XG4gICAgICAgIHJldHVybiAnV2ViR0wyUmVuZGVyaW5nQ29udGV4dCcgaW4gd2luZG93ICYmIGdsIGluc3RhbmNlb2YgV2ViR0wyUmVuZGVyaW5nQ29udGV4dFxuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgVmFvO1xuIl19

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

Sorry, the diff of this file is not supported yet

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