@exodus/react-native-web
Advanced tools
@@ -35,3 +35,3 @@ "use strict"; | ||
get: function get(property, value) { | ||
if (cache[property] != null && cache[property].hasOwnProperty(value) && cache[property][value] != null) { | ||
if (cache[property] != null && Object.hasOwnProperty.call(cache[property], value) && cache[property][value] != null) { | ||
return cache[property][value]; | ||
@@ -42,3 +42,3 @@ } | ||
if (cache[property] == null) { | ||
cache[property] = {}; | ||
cache[property] = Object.create(null); | ||
} | ||
@@ -49,2 +49,3 @@ | ||
}; | ||
Object.setPrototypeOf(cache, null); | ||
/** | ||
@@ -51,0 +52,0 @@ * Compile style to atomic CSS rules. |
@@ -62,3 +62,3 @@ "use strict"; | ||
sheet = (0, _createOrderedCSSStyleSheet.default)((0, _createCSSStyleSheet.default)(_constants.STYLE_ELEMENT_ID)); | ||
cache = {}; | ||
cache = Object.create(null); | ||
(0, _modality.default)(function (rule) { | ||
@@ -77,3 +77,3 @@ return sheet.insert(rule, _constants.STYLE_GROUPS.modality); | ||
if (!cache[prop]) { | ||
cache[prop] = {}; | ||
cache[prop] = Object.create(null); | ||
} | ||
@@ -86,3 +86,3 @@ | ||
var val = (0, _compile.stringifyValueWithProperty)(value, prop); | ||
return cache[prop] && cache[prop].hasOwnProperty(val) && cache[prop][val]; | ||
return cache[prop] && Object.hasOwnProperty.call(cache[prop], val) && cache[prop][val]; | ||
} | ||
@@ -89,0 +89,0 @@ |
{ | ||
"name": "@exodus/react-native-web", | ||
"version": "0.17.5-exodus.1", | ||
"version": "0.17.5-exodus.2", | ||
"description": "React Native for Web", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
917405
0.01%21103
01
Infinity%