@luma.gl/webgl2-polyfill
Advanced tools
Comparing version 7.3.0-beta.2 to 7.3.0-beta.3
@@ -30,7 +30,6 @@ import assert from './assert'; | ||
function installOverrides(gl, _ref) { | ||
let { | ||
target, | ||
target2 | ||
} = _ref; | ||
function installOverrides(gl, { | ||
target, | ||
target2 | ||
}) { | ||
Object.keys(WEBGL2_CONTEXT_OVERRIDES).forEach(key => { | ||
@@ -58,8 +57,7 @@ if (typeof WEBGL2_CONTEXT_OVERRIDES[key] === 'function') { | ||
function polyfillExtension(gl, _ref2) { | ||
let { | ||
extension, | ||
target, | ||
target2 | ||
} = _ref2; | ||
function polyfillExtension(gl, { | ||
extension, | ||
target, | ||
target2 | ||
}) { | ||
const defaults = WEBGL2_CONTEXT_POLYFILLS[extension]; | ||
@@ -80,5 +78,3 @@ assert(defaults); | ||
if (key === 'meta') {} else if (typeof gl[key] === 'function') {} else if (ext && typeof ext[extKey] === 'function') { | ||
polyfill = function polyfill() { | ||
return ext[extKey](...arguments); | ||
}; | ||
polyfill = (...args) => ext[extKey](...args); | ||
} else if (typeof defaults[key] === 'function') { | ||
@@ -85,0 +81,0 @@ polyfill = defaults[key].bind(target); |
{ | ||
"name": "@luma.gl/webgl2-polyfill", | ||
"version": "7.3.0-beta.2", | ||
"version": "7.3.0-beta.3", | ||
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext", | ||
@@ -29,5 +29,5 @@ "license": "MIT", | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "7.3.0-beta.2" | ||
"@luma.gl/constants": "7.3.0-beta.3" | ||
}, | ||
"gitHead": "f58d82d7793207d8d6c35e8e5a5af915ffcf2bbb" | ||
"gitHead": "077b3766e4a572a51d459fb7e392918fcc75ab8f" | ||
} |
Sorry, the diff of this file is not supported yet
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
208424
2603
+ Added@luma.gl/constants@7.3.0-beta.3(transitive)
- Removed@luma.gl/constants@7.3.0-beta.2(transitive)