react-habitat
Advanced tools
Comparing version 0.1.6-beta2 to 0.1.6-beta3
@@ -7,4 +7,4 @@ import { Bootstrapper } from '../Bootstrapper'; | ||
} | ||
export declare var createBootstrapper: (spec: { | ||
export declare const createBootstrapper: (spec: { | ||
[id: string]: any; | ||
}) => _Mixin; |
@@ -34,3 +34,3 @@ /** | ||
var container = new Container_1.Container(); | ||
// Itterate the spec and register its components | ||
// Iterate the spec and register its components | ||
for (var _i = 0, _a = spec['container']; _i < _a.length; _i++) { | ||
@@ -37,0 +37,0 @@ var definition = _a[_i]; |
/// <reference path="../typings/main.d.ts" /> | ||
export { Bootstrapper } from './Bootstrapper'; | ||
export { Container } from './Container'; | ||
export { createBootstrapper } from './classic/createBootstrapper'; | ||
import { Bootstrapper } from './Bootstrapper'; | ||
import { Container } from './Container'; | ||
import { _Mixin } from './classic/createBootstrapper'; | ||
declare const ReactHabitat: { | ||
Bootstrapper: typeof Bootstrapper; | ||
Container: typeof Container; | ||
createBoostrapper: (spec: { | ||
[id: string]: any; | ||
}) => _Mixin; | ||
}; | ||
export default ReactHabitat; |
@@ -0,10 +1,14 @@ | ||
"use strict"; | ||
/// <reference path='../typings/main.d.ts'/> | ||
"use strict"; | ||
// Modern | ||
var Bootstrapper_1 = require('./Bootstrapper'); | ||
exports.Bootstrapper = Bootstrapper_1.Bootstrapper; | ||
var Container_1 = require('./Container'); | ||
exports.Container = Container_1.Container; | ||
// Classic | ||
var createBootstrapper_1 = require('./classic/createBootstrapper'); | ||
exports.createBootstrapper = createBootstrapper_1.createBootstrapper; | ||
var ReactHabitat = { | ||
// Modern | ||
Bootstrapper: Bootstrapper_1.Bootstrapper, | ||
Container: Container_1.Container, | ||
// Classic | ||
createBoostrapper: createBootstrapper_1.createBootstrapper | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = ReactHabitat; |
{ | ||
"name": "react-habitat", | ||
"version": "0.1.6-beta2", | ||
"version": "0.1.6-beta3", | ||
"description": "A React DOM Bootstrapper designed to harmonise a hybrid application", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -35,3 +35,3 @@ /** | ||
// Itterate the spec and register its components | ||
// Iterate the spec and register its components | ||
for(var definition of spec['container']) { | ||
@@ -53,4 +53,4 @@ container.registerComponent( | ||
*/ | ||
export var createBootstrapper = function(spec: {[id: string] : any}) { | ||
export const createBootstrapper = function(spec: {[id: string] : any}) { | ||
return new _Mixin(spec); | ||
} | ||
}; |
/// <reference path='../typings/main.d.ts'/> | ||
import { Bootstrapper } from './Bootstrapper'; | ||
import { Container } from './Container'; | ||
import { createBootstrapper, _Mixin } from './classic/createBootstrapper'; | ||
// Modern | ||
const ReactHabitat = { | ||
export {Bootstrapper} from './Bootstrapper'; | ||
export {Container} from './Container'; | ||
// Modern | ||
// Classic | ||
Bootstrapper: Bootstrapper, | ||
Container: Container, | ||
export {createBootstrapper} from './classic/createBootstrapper'; | ||
// Classic | ||
createBoostrapper: createBootstrapper | ||
}; | ||
export default ReactHabitat; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304164
6469