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

react-manavify

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-manavify - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

184

index.js

@@ -1,98 +0,112 @@

Object.defineProperty(exports, "__esModule", {value: true});
// Object.defineProperty(exports, "__esModule", {value: true});
const _createClass = (() => {
function defineProperties(target, props) {
for (let i = 0; i < props.length; i++) {
const 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 (Constructor, protoProps, staticProps) => {
if (protoProps)
defineProperties(Constructor.prototype, protoProps);
if (staticProps)
defineProperties(Constructor, staticProps);
return Constructor;
};
})();
// const _createClass = (() => {
// function defineProperties(target, props) {
// for (let i = 0; i < props.length; i++) {
// const 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 (Constructor, protoProps, staticProps) => {
// if (protoProps)
// defineProperties(Constructor.prototype, protoProps);
// if (staticProps)
// defineProperties(Constructor, staticProps);
// return Constructor;
// };
// })();
import _react from 'react';
// import _react from 'react';
const _react2 = _interopRequireDefault(_react);
// const _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) {
return obj && obj.__esModule
? obj
: {
default: obj
};
}
// function _interopRequireDefault(obj) {
// return obj && obj.__esModule
// ? obj
// : {
// default: obj
// };
// }
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
// function _classCallCheck(instance, Constructor) {
// if (!(instance instanceof Constructor)) {
// throw new TypeError("Cannot call a class as a function");
// }
// }
function _possibleConstructorReturn(self, call) {
if (!self) {
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
}
return call && (typeof call === "object" || typeof call === "function")
? call
: self;
}
// function _possibleConstructorReturn(self, call) {
// if (!self) {
// throw new ReferenceError(
// "this hasn't been initialised - super() hasn't been called"
// );
// }
// return call && (typeof call === "object" || typeof call === "function")
// ? call
// : self;
// }
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError(
`Super expression must either be null or a function, not ${typeof superClass}`
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass)
Object.setPrototypeOf
? Object.setPrototypeOf(subClass, superClass)
: subClass.__proto__ = superClass;
}
// function _inherits(subClass, superClass) {
// if (typeof superClass !== "function" && superClass !== null) {
// throw new TypeError(
// `Super expression must either be null or a function, not ${typeof superClass}`
// );
// }
// subClass.prototype = Object.create(superClass && superClass.prototype, {
// constructor: {
// value: subClass,
// enumerable: false,
// writable: true,
// configurable: true
// }
// });
// if (superClass)
// Object.setPrototypeOf
// ? Object.setPrototypeOf(subClass, superClass)
// : subClass.__proto__ = superClass;
// }
const ReactHelloWorld = (_React$Component => {
_inherits(ReactHelloWorld, _React$Component);
// const ReactHelloWorld = (_React$Component => {
// _inherits(ReactHelloWorld, _React$Component);
function ReactHelloWorld(...args) {
_classCallCheck(this, ReactHelloWorld);
// function ReactHelloWorld(...args) {
// _classCallCheck(this, ReactHelloWorld);
return _possibleConstructorReturn(
this,
Object.getPrototypeOf(ReactHelloWorld).apply(this, args)
);
}
// return _possibleConstructorReturn(
// this,
// Object.getPrototypeOf(ReactHelloWorld).apply(this, args)
// );
// }
_createClass(ReactHelloWorld, [
{
key: 'render',
value: function render() {
return _react2
.default
.createElement('div', null, '**Hello world!! from react-manavify**');
}
}
]);
// _createClass(ReactHelloWorld, [
// {
// key: 'render',
// value: function render() {
// return _react2
// .default
// .createElement('div', null, '**Hello world!! from react-manavify**');
// }
// }
// ]);
return ReactHelloWorld;
})(_react2.default.Component);
// return ReactHelloWorld;
// })(_react2.default.Component);
export {ReactHelloWorld as default};
// export {ReactHelloWorld as default};
import React from 'react'
const HelloWorld = (props) => {
const children = props.children
? <span>{props.children}</span>
: false
return (
<div>
<h1>@@@ Hello World from react-manavify!</h1>
{children}
</div>
)
}
export default HelloWorld
{
"name": "react-manavify",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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