create-rca-client
Advanced tools
Comparing version 0.0.6 to 0.0.10
@@ -6,15 +6,15 @@ 'use strict'; | ||
}); | ||
exports.RouteHandler = exports.createRcaClient = undefined; | ||
var _react = require('react'); | ||
var _clientWrapper = require('./clientWrapper/clientWrapper'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _clientWrapper2 = _interopRequireDefault(_clientWrapper); | ||
var _RouteHandler2 = require('./RouteHandler/RouteHandler'); | ||
var _RouteHandler3 = _interopRequireDefault(_RouteHandler2); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var clientWrapper = function clientWrapper(RootComponent) { | ||
var props = document.getElementById('app-props').textContent; | ||
props = props.replace("<![CDATA[", "").replace("]]>", ""); // eslint-disable-line | ||
return _react2.default.createElement(RootComponent, JSON.parse(props)); | ||
}; | ||
exports.default = clientWrapper; | ||
exports.createRcaClient = _clientWrapper2.default; | ||
exports.RouteHandler = _RouteHandler3.default; |
{ | ||
"name": "create-rca-client", | ||
"version": "0.0.6", | ||
"version": "0.0.10", | ||
"main": "es/index.js", | ||
@@ -9,3 +9,4 @@ "repository": "git@git.realestate.com.au:craig-collie/create-rca-app.git", | ||
"react": "^15.6.1", | ||
"react-dom": "^15.6.1" | ||
"react-dom": "^15.6.1", | ||
"react-router-dom": "^4.1.2" | ||
}, | ||
@@ -12,0 +13,0 @@ "devDependencies": { |
@@ -1,11 +0,2 @@ | ||
import React from 'react'; | ||
const clientWrapper = (RootComponent) => { | ||
let props = document.getElementById('app-props').textContent; | ||
props = props.replace("<![CDATA[", "").replace("]]>", ""); // eslint-disable-line | ||
return ( | ||
<RootComponent {...JSON.parse(props)} /> | ||
); | ||
}; | ||
export default clientWrapper; | ||
export createRcaClient from './clientWrapper/clientWrapper'; | ||
export RouteHandler from './RouteHandler/RouteHandler'; |
Sorry, the diff of this file is not supported yet
85812
10
114
3
+ Addedreact-router-dom@^4.1.2
+ Added@babel/runtime@7.26.7(transitive)
+ Addedhistory@4.10.1(transitive)
+ Addedhoist-non-react-statics@2.5.5(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedpath-to-regexp@1.9.0(transitive)
+ Addedreact-router@4.3.1(transitive)
+ Addedreact-router-dom@4.3.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedresolve-pathname@3.0.0(transitive)
+ Addedtiny-invariant@1.3.3(transitive)
+ Addedtiny-warning@1.0.3(transitive)
+ Addedvalue-equal@1.0.1(transitive)
+ Addedwarning@4.0.3(transitive)