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

dva

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dva - npm Package Compare versions

Comparing version 2.0.0-rc.1 to 2.0.0-rc.2

dynamic.js

18

lib/index.js

@@ -7,2 +7,6 @@ 'use strict';

var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _typeof2 = require('babel-runtime/helpers/typeof');

@@ -12,6 +16,2 @@

var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');

@@ -39,3 +39,5 @@

var oldAppStart = app.start;
return (0, _extends3.default)({}, app, { router: router, start: start });
app.router = router;
app.start = start;
return app;

@@ -54,6 +56,4 @@ function router(router) {

// container 必须有
(0, _invariant2.default)(container, '[app.start] container should be defined');
// 并且是 HTMLElement
(0, _invariant2.default)(isHTMLElement(container), '[app.start] container should be HTMLElement');
(0, _invariant2.default)(!container || isHTMLElement(container), '[app.start] container should be HTMLElement');

@@ -129,3 +129,3 @@ // 路由必须提前注册

function render(container, store, app, router) {
var ReactDOM = require('react-dom');
var ReactDOM = require('react-dom'); // eslint-disable-line
ReactDOM.render(_react2.default.createElement(getProvider(store, app, router)), container);

@@ -132,0 +132,0 @@ }

{
"name": "dva",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "React and redux based, lightweight and elm-style framework.",

@@ -12,6 +12,5 @@ "repository": {

"dva",
"ant",
"alibaba",
"react",
"react-native",
"mobile",
"redux",

@@ -32,10 +31,8 @@ "redux-saga",

"build": "ruban build",
"test": "ruban lint && ruban test",
"test": "ruban test",
"debug": "ruban debug",
"coveralls": "ruban coveralls",
"lint": "ruban lint",
"pub": "ruban pub"
"coveralls": "ruban coveralls"
},
"dependencies": {
"dva-core": "^0.2.0",
"dva-core": "^0.3.0",
"global": "^4.3.2",

@@ -55,16 +52,11 @@ "history": "^4.6.3",

},
"devDependencies": {
"expect": "^1.20.2",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"ruban": "^0.1.2"
},
"files": [
"lib",
"src",
"router.js",
"dynamic.js",
"fetch.js",
"index.js",
"router.js",
"saga.js"
]
}

@@ -32,3 +32,5 @@ import React from 'react';

const oldAppStart = app.start;
return { ...app, router, start };
app.router = router;
app.start = start;
return app;

@@ -53,10 +55,5 @@ function router(router) {

// container 必须有
invariant(
container,
`[app.start] container should be defined`,
);
// 并且是 HTMLElement
invariant(
isHTMLElement(container),
!container || isHTMLElement(container),
`[app.start] container should be HTMLElement`,

@@ -105,3 +102,3 @@ );

function render(container, store, app, router) {
const ReactDOM = require('react-dom');
const ReactDOM = require('react-dom'); // eslint-disable-line
ReactDOM.render(React.createElement(getProvider(store, app, router)), container);

@@ -108,0 +105,0 @@ }

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