oc-react-component
Advanced tools
Comparing version 0.0.9 to 0.0.10
import OpenComponent from './OpenComponent'; | ||
import OcClient from './OcClient'; | ||
export { OcClient }; | ||
export default OpenComponent; |
@@ -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", |
3
5975
6
69