react-esc-resolver
Advanced tools
Comparing version 1.3.1 to 1.4.0
{ | ||
"name": "react-esc-resolver", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Easy to use Client and Server Resolver", | ||
@@ -42,5 +42,5 @@ "homepage": "https://github.com/TriPSs/react-esc-resolver", | ||
"prop-types": "^15.6.0", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0" | ||
"react": "^16.x", | ||
"react-dom": "^16.x" | ||
} | ||
} |
@@ -9,2 +9,4 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -121,3 +123,3 @@ | ||
if (!state.resolved.hasOwnProperty(name) && !state.pending.hasOwnProperty(name) && !cached) { | ||
if (!state.resolved.hasOwnProperty(name) && !state.pending.hasOwnProperty(name) && !_this2.isValidCache(cached)) { | ||
nextState.pending[name] = resolve[name]; | ||
@@ -137,2 +139,7 @@ } else if (cached) { | ||
}, { | ||
key: 'isValidCache', | ||
value: function isValidCache(cache) { | ||
return cache !== null && typeof cache !== 'undefined' && ((typeof cache === 'undefined' ? 'undefined' : _typeof(cache)) !== 'object' || Object.keys(cache).length > 0) && (!Array.isArray(cache) || cache.length > 0); | ||
} | ||
}, { | ||
key: 'isPending', | ||
@@ -139,0 +146,0 @@ value: function isPending() { |
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
25524
428