@luma.gl/shadertools
Advanced tools
Comparing version 8.0.0-alpha.6 to 8.0.0-alpha.8
@@ -112,2 +112,3 @@ "use strict"; | ||
(0, _utils.assert)(typeof module !== 'string', "Shader module use by name is deprecated. Import shader module '".concat(module, "' and use it directly.")); | ||
(0, _utils.assert)(module.name, 'shader module has no name'); | ||
@@ -114,0 +115,0 @@ module = new _shaderModule["default"](module); |
@@ -55,2 +55,3 @@ import ShaderModule from './shader-module'; | ||
assert(typeof module !== 'string', "Shader module use by name is deprecated. Import shader module '".concat(module, "' and use it directly.")); | ||
assert(module.name, 'shader module has no name'); | ||
@@ -57,0 +58,0 @@ module = new ShaderModule(module); |
@@ -100,2 +100,3 @@ import ShaderModule from './shader-module'; | ||
assert(typeof module !== 'string', "Shader module use by name is deprecated. Import shader module '".concat(module, "' and use it directly.")); | ||
assert(module.name, 'shader module has no name'); | ||
@@ -102,0 +103,0 @@ module = new ShaderModule(module); |
{ | ||
"name": "@luma.gl/shadertools", | ||
"version": "8.0.0-alpha.6", | ||
"version": "8.0.0-alpha.8", | ||
"description": "Shader module system for luma.gl", | ||
@@ -42,3 +42,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "5176c2192744847c87fd282ddf41ea7c8b68c983" | ||
"gitHead": "021feb6bc03370c35cd7fd15e984989bacbe0a6c" | ||
} |
@@ -62,4 +62,2 @@ import ShaderModule from './shader-module'; | ||
// registers any supplied modules, resolves any names into modules | ||
// returns a list of modules | ||
function instantiateModules(modules, seen) { | ||
@@ -71,2 +69,6 @@ return modules.map(module => { | ||
assert( | ||
typeof module !== 'string', | ||
`Shader module use by name is deprecated. Import shader module '${module}' and use it directly.` | ||
); | ||
assert(module.name, 'shader module has no name'); | ||
@@ -73,0 +75,0 @@ |
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 not supported yet
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
1935411
25840