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

create-app

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-app - npm Package Compare versions

Comparing version 0.1.6 to 0.2.0

11

lib/client/createApp.js

@@ -109,13 +109,4 @@ 'use strict';

var initController = createInitController(location);
var Controller = loader(controller, location, context);
var Controller = null;
if (controllerType === 'string') {
Controller = loader(controller, location);
} else if (controllerType === 'function') {
Controller = controller(location, loader);
} else {
throw new Error('controller must be string or function');
}
if (_.isThenable(Controller)) {

@@ -122,0 +113,0 @@ return Controller.then(initController);

@@ -125,12 +125,3 @@ 'use strict';

var controllerType = typeof controller === 'undefined' ? 'undefined' : _typeof(controller);
var Controller = null;
if (controllerType === 'string') {
Controller = loader(controller, location);
} else if (controllerType === 'function') {
Controller = controller(location, loader);
} else {
throw new Error('controller must be string or function');
}
var Controller = loader(controller, location, context);
var finalContext = _extends({}, context, injectContext);

@@ -137,0 +128,0 @@

5

lib/share/constant.js

@@ -15,3 +15,6 @@ 'use strict';

context: {},
type: 'createHistory'
type: 'createHashHistory',
loader: function loader(value) {
return value;
}
};
{
"name": "create-app",
"version": "0.1.6",
"version": "0.2.0",
"description": "configuring once, rendering both client and server.",

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