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

react-habitat

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-habitat - npm Package Compare versions

Comparing version 0.1.6-beta2 to 0.1.6-beta3

2

lib/classic/createBootstrapper.d.ts

@@ -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;
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