@luma.gl/webgl2-polyfill
Advanced tools
Comparing version 7.3.0-alpha.7 to 7.3.0-alpha.8
@@ -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-alpha.7", | ||
"version": "7.3.0-alpha.8", | ||
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext", | ||
@@ -29,5 +29,5 @@ "license": "MIT", | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "7.3.0-alpha.7" | ||
"@luma.gl/constants": "7.3.0-alpha.8" | ||
}, | ||
"gitHead": "617b66df549e06e52105ceabfa9d135d5feccdcf" | ||
"gitHead": "24536152b5552e7c7b57a35464deb5164200d090" | ||
} |
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
208426
2603
+ Added@luma.gl/constants@7.3.0-alpha.8(transitive)
- Removed@luma.gl/constants@7.3.0-alpha.7(transitive)