Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reshow-runtime

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-runtime - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

8

es/helpers/inherits.js

@@ -1,5 +0,7 @@

import setPrototypeOf from "./setPrototypeOf";
import setPrototypeOf from './setPrototypeOf';
import { FUNCTION } from 'reshow-constant';
import typeIs from './getTypeOf';
export default function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
if (typeIs(superClass) !== FUNCTION && superClass !== null) {
throw new TypeError('Super must be null or a function');
}

@@ -6,0 +8,0 @@

@@ -1,4 +0,3 @@

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
import defineProperty from './defineProperty';
import typeIs from './getTypeOf';
import { FUNCTION } from 'reshow-constant';

@@ -10,3 +9,3 @@ export default function _objectSpread(target) {

if (_typeof(Object.getOwnPropertySymbols) === FUNCTION) {
if (typeIs(Object.getOwnPropertySymbols) === FUNCTION) {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {

@@ -13,0 +12,0 @@ return Object.getOwnPropertyDescriptor(source, sym).enumerable;

@@ -1,3 +0,1 @@

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
import { OBJECT, FUNCTION } from 'reshow-constant';

@@ -12,3 +10,3 @@ import typeIs from './getTypeOf';

var isObject = OBJECT === typeIs(call);
return call && (isObject || _typeof(call) === FUNCTION) ? call : self;
return call && (isObject || typeIs(call) === FUNCTION) ? call : self;
}

@@ -10,7 +10,11 @@ "use strict";

var _reshowConstant = require("reshow-constant");
var _getTypeOf = _interopRequireDefault(require("./getTypeOf"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
if ((0, _getTypeOf.default)(superClass) !== _reshowConstant.FUNCTION && superClass !== null) {
throw new TypeError('Super must be null or a function');
}

@@ -17,0 +21,0 @@

@@ -10,2 +10,4 @@ "use strict";

var _getTypeOf = _interopRequireDefault(require("./getTypeOf"));
var _reshowConstant = require("reshow-constant");

@@ -15,4 +17,2 @@

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _objectSpread(target) {

@@ -23,3 +23,3 @@ for (var i = 1; i < arguments.length; i++) {

if (_typeof(Object.getOwnPropertySymbols) === _reshowConstant.FUNCTION) {
if ((0, _getTypeOf.default)(Object.getOwnPropertySymbols) === _reshowConstant.FUNCTION) {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {

@@ -26,0 +26,0 @@ return Object.getOwnPropertyDescriptor(source, sym).enumerable;

@@ -16,4 +16,2 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _possibleConstructorReturn(self, call) {

@@ -25,5 +23,5 @@ if (!self) {

var isObject = _reshowConstant.OBJECT === (0, _getTypeOf.default)(call);
return call && (isObject || _typeof(call) === _reshowConstant.FUNCTION) ? call : self;
return call && (isObject || (0, _getTypeOf.default)(call) === _reshowConstant.FUNCTION) ? call : self;
}
module.exports = exports.default;
{
"name": "reshow-runtime",
"version": "0.1.8",
"version": "0.1.9",
"description": "Babel runtime alternative",

@@ -5,0 +5,0 @@ "repository": "react-atomic/reshow",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc