reshow-runtime
Advanced tools
Comparing version 0.16.3 to 0.16.4
@@ -1,9 +0,9 @@ | ||
import _typeof from "reshow-runtime/es/helpers/typeof"; | ||
import { FUNCTION, UNDEFINED } from "reshow-constant"; | ||
import setPrototypeOf from "./setPrototypeOf"; | ||
import typeIs from "./getTypeOf"; | ||
function isNativeReflectConstruct() { | ||
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === UNDEFINED || !Reflect.construct) return false; | ||
if (typeIs(Reflect) === UNDEFINED || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if ((typeof Proxy === "undefined" ? "undefined" : _typeof(Proxy)) === FUNCTION) return true; | ||
if (typeIs(Proxy) === FUNCTION) return true; | ||
@@ -10,0 +10,0 @@ try { |
@@ -1,9 +0,9 @@ | ||
import _typeof from "reshow-runtime/es/helpers/typeof"; | ||
import { NUMBER, UNDEFINED, T_NULL, IS_ARRAY } from "reshow-constant"; | ||
import unsupportedIterableToArray, { NonIterableError } from "./unsupportedIterableToArray"; | ||
import typeIs from "./getTypeOf"; | ||
export default function _createForOfIteratorHelper(o, allowArrayLike) { | ||
var it; | ||
if ((typeof Symbol === "undefined" ? "undefined" : _typeof(Symbol)) === UNDEFINED || o[Symbol.iterator] == T_NULL) { | ||
if (IS_ARRAY(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && _typeof(o.length) === NUMBER) { | ||
if (typeIs(Symbol) === UNDEFINED || o[Symbol.iterator] == T_NULL) { | ||
if (IS_ARRAY(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeIs(o.length) === NUMBER) { | ||
if (it) o = it; | ||
@@ -10,0 +10,0 @@ var i = 0; |
@@ -1,9 +0,9 @@ | ||
import _typeof from "reshow-runtime/es/helpers/typeof"; | ||
import { NUMBER, UNDEFINED, T_NULL, IS_ARRAY } from "reshow-constant"; | ||
import unsupportedIterableToArray, { NonIterableError } from "./unsupportedIterableToArray"; | ||
import typeIs from "./getTypeOf"; | ||
export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
var it; | ||
if ((typeof Symbol === "undefined" ? "undefined" : _typeof(Symbol)) === UNDEFINED || o[Symbol.iterator] == T_NULL) { | ||
if (IS_ARRAY(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && _typeof(o.length) === NUMBER) { | ||
if (typeIs(Symbol) === UNDEFINED || o[Symbol.iterator] == T_NULL) { | ||
if (IS_ARRAY(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeIs(o.length) === NUMBER) { | ||
if (it) o = it; | ||
@@ -10,0 +10,0 @@ var i = 0; |
@@ -1,7 +0,7 @@ | ||
import _typeof from "reshow-runtime/es/helpers/typeof"; | ||
import { FUNCTION, UNDEFINED } from "reshow-constant"; | ||
import typeIs from "./getTypeOf"; | ||
export default function _isNativeReflectConstruct() { | ||
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === UNDEFINED || !Reflect.construct) return false; | ||
if (typeIs(Reflect) === UNDEFINED || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if ((typeof Proxy === "undefined" ? "undefined" : _typeof(Proxy)) === FUNCTION) return true; | ||
if (typeIs(Proxy) === FUNCTION) return true; | ||
@@ -8,0 +8,0 @@ try { |
@@ -10,4 +10,2 @@ "use strict"; | ||
var _typeof2 = _interopRequireDefault(require("reshow-runtime/helpers/typeof")); | ||
var _reshowConstant = require("reshow-constant"); | ||
@@ -17,6 +15,8 @@ | ||
var _getTypeOf = _interopRequireDefault(require("./getTypeOf")); | ||
function isNativeReflectConstruct() { | ||
if ((typeof Reflect === "undefined" ? "undefined" : (0, _typeof2["default"])(Reflect)) === _reshowConstant.UNDEFINED || !Reflect.construct) return false; | ||
if ((0, _getTypeOf["default"])(Reflect) === _reshowConstant.UNDEFINED || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if ((typeof Proxy === "undefined" ? "undefined" : (0, _typeof2["default"])(Proxy)) === _reshowConstant.FUNCTION) return true; | ||
if ((0, _getTypeOf["default"])(Proxy) === _reshowConstant.FUNCTION) return true; | ||
@@ -23,0 +23,0 @@ try { |
"use strict"; | ||
var _interopRequireDefault = require("reshow-runtime/helpers/interopRequireDefault"); | ||
var _interopRequireWildcard = require("reshow-runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("reshow-runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -12,4 +12,2 @@ value: true | ||
var _typeof2 = _interopRequireDefault(require("reshow-runtime/helpers/typeof")); | ||
var _reshowConstant = require("reshow-constant"); | ||
@@ -19,7 +17,9 @@ | ||
var _getTypeOf = _interopRequireDefault(require("./getTypeOf")); | ||
function _createForOfIteratorHelper(o, allowArrayLike) { | ||
var it; | ||
if ((typeof Symbol === "undefined" ? "undefined" : (0, _typeof2["default"])(Symbol)) === _reshowConstant.UNDEFINED || o[Symbol.iterator] == _reshowConstant.T_NULL) { | ||
if ((0, _reshowConstant.IS_ARRAY)(o) || (it = (0, _unsupportedIterableToArray["default"])(o)) || allowArrayLike && o && (0, _typeof2["default"])(o.length) === _reshowConstant.NUMBER) { | ||
if ((0, _getTypeOf["default"])(Symbol) === _reshowConstant.UNDEFINED || o[Symbol.iterator] == _reshowConstant.T_NULL) { | ||
if ((0, _reshowConstant.IS_ARRAY)(o) || (it = (0, _unsupportedIterableToArray["default"])(o)) || allowArrayLike && o && (0, _getTypeOf["default"])(o.length) === _reshowConstant.NUMBER) { | ||
if (it) o = it; | ||
@@ -26,0 +26,0 @@ var i = 0; |
"use strict"; | ||
var _interopRequireDefault = require("reshow-runtime/helpers/interopRequireDefault"); | ||
var _interopRequireWildcard = require("reshow-runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("reshow-runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -12,4 +12,2 @@ value: true | ||
var _typeof2 = _interopRequireDefault(require("reshow-runtime/helpers/typeof")); | ||
var _reshowConstant = require("reshow-constant"); | ||
@@ -19,7 +17,9 @@ | ||
var _getTypeOf = _interopRequireDefault(require("./getTypeOf")); | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
var it; | ||
if ((typeof Symbol === "undefined" ? "undefined" : (0, _typeof2["default"])(Symbol)) === _reshowConstant.UNDEFINED || o[Symbol.iterator] == _reshowConstant.T_NULL) { | ||
if ((0, _reshowConstant.IS_ARRAY)(o) || (it = (0, _unsupportedIterableToArray["default"])(o)) || allowArrayLike && o && (0, _typeof2["default"])(o.length) === _reshowConstant.NUMBER) { | ||
if ((0, _getTypeOf["default"])(Symbol) === _reshowConstant.UNDEFINED || o[Symbol.iterator] == _reshowConstant.T_NULL) { | ||
if ((0, _reshowConstant.IS_ARRAY)(o) || (it = (0, _unsupportedIterableToArray["default"])(o)) || allowArrayLike && o && (0, _getTypeOf["default"])(o.length) === _reshowConstant.NUMBER) { | ||
if (it) o = it; | ||
@@ -26,0 +26,0 @@ var i = 0; |
@@ -10,10 +10,10 @@ "use strict"; | ||
var _typeof2 = _interopRequireDefault(require("reshow-runtime/helpers/typeof")); | ||
var _reshowConstant = require("reshow-constant"); | ||
var _getTypeOf = _interopRequireDefault(require("./getTypeOf")); | ||
function _isNativeReflectConstruct() { | ||
if ((typeof Reflect === "undefined" ? "undefined" : (0, _typeof2["default"])(Reflect)) === _reshowConstant.UNDEFINED || !Reflect.construct) return false; | ||
if ((0, _getTypeOf["default"])(Reflect) === _reshowConstant.UNDEFINED || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if ((typeof Proxy === "undefined" ? "undefined" : (0, _typeof2["default"])(Proxy)) === _reshowConstant.FUNCTION) return true; | ||
if ((0, _getTypeOf["default"])(Proxy) === _reshowConstant.FUNCTION) return true; | ||
@@ -20,0 +20,0 @@ try { |
{ | ||
"name": "reshow-runtime", | ||
"version": "0.16.3", | ||
"version": "0.16.4", | ||
"description": "Babel runtime alternative", | ||
@@ -5,0 +5,0 @@ "repository": "react-atomic/reshow", |
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
57628