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

oc-react-component

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oc-react-component - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

3

es/index.js
import OpenComponent from './OpenComponent';
import OcClient from './OcClient';
export { OcClient };
export default OpenComponent;

9

es/OpenComponent.js

@@ -19,2 +19,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

OpenComponent.prototype.componentDidMount = function componentDidMount() {
var script = document.createElement("script");
script.src = this.props.registryBase + 'oc-client/client.js';
script.async = true;
document.body.appendChild(script);
};
OpenComponent.prototype.render = function render() {

@@ -21,0 +30,0 @@ var href = this.props.registryBase + this.props.name;

'use strict';
exports.__esModule = true;
exports.OcClient = undefined;

@@ -10,9 +9,5 @@ var _OpenComponent = require('./OpenComponent');

var _OcClient = require('./OcClient');
var _OcClient2 = _interopRequireDefault(_OcClient);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.OcClient = _OcClient2.default;
exports.default = _OpenComponent2.default;
exports.default = _OpenComponent2.default;
module.exports = exports['default'];

@@ -30,2 +30,11 @@ 'use strict';

OpenComponent.prototype.componentDidMount = function componentDidMount() {
var script = document.createElement("script");
script.src = this.props.registryBase + 'oc-client/client.js';
script.async = true;
document.body.appendChild(script);
};
OpenComponent.prototype.render = function render() {

@@ -32,0 +41,0 @@ var href = this.props.registryBase + this.props.name;

{
"name": "oc-react-component",
"version": "0.0.9",
"version": "0.0.10",
"description": "oc-react-component React component",

@@ -5,0 +5,0 @@ "main": "lib/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