@dmail/uneval
Advanced tools
Comparing version 5.2.0 to 5.3.0
@@ -569,5 +569,15 @@ 'use strict'; | ||
var mainIdentifier = param.mainIdentifier; | ||
var globalObject = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" ? window : global; | ||
var materials = {}; | ||
var materials = {}; // eslint-disable-next-line no-extend-native | ||
Object.defineProperty(Object.prototype, "__global__", { | ||
// eslint-disable-next-line object-shorthand | ||
get: function get() { | ||
return this; | ||
}, | ||
configurable: true | ||
}); // eslint-disable-next-line no-undef | ||
var globalObject = __global__; | ||
delete Object.prototype.__global__; | ||
function setupMaterial(recipe) { | ||
@@ -574,0 +584,0 @@ if (recipe.type === "primitive") return setupPrimitiveMaterial(recipe); |
@@ -569,5 +569,15 @@ var __dmail_uneval__ = function (exports) { | ||
var mainIdentifier = param.mainIdentifier; | ||
var globalObject = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" ? window : global; | ||
var materials = {}; | ||
var materials = {}; // eslint-disable-next-line no-extend-native | ||
Object.defineProperty(Object.prototype, "__global__", { | ||
// eslint-disable-next-line object-shorthand | ||
get: function get() { | ||
return this; | ||
}, | ||
configurable: true | ||
}); // eslint-disable-next-line no-undef | ||
var globalObject = __global__; | ||
delete Object.prototype.__global__; | ||
function setupMaterial(recipe) { | ||
@@ -574,0 +584,0 @@ if (recipe.type === "primitive") return setupPrimitiveMaterial(recipe); |
{ | ||
"name": "@dmail/uneval", | ||
"version": "5.2.0", | ||
"version": "5.3.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
export function recompose(param) { | ||
var recipeArray = param.recipeArray | ||
var mainIdentifier = param.mainIdentifier | ||
var globalObject = typeof window === "object" ? window : global | ||
var materials = {} | ||
// eslint-disable-next-line no-extend-native | ||
Object.defineProperty(Object.prototype, "__global__", { | ||
// eslint-disable-next-line object-shorthand | ||
get: function() { | ||
return this | ||
}, | ||
configurable: true, | ||
}) | ||
// eslint-disable-next-line no-undef | ||
var globalObject = __global__ | ||
delete Object.prototype.__global__ | ||
function setupMaterial(recipe) { | ||
@@ -8,0 +19,0 @@ if (recipe.type === "primitive") return setupPrimitiveMaterial(recipe) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
153809
1967
0