Skip to content

Commit

Permalink
feat: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
imtaotao committed Dec 16, 2019
1 parent 085844d commit bb53d9b
Show file tree
Hide file tree
Showing 8 changed files with 1,062 additions and 1,054 deletions.
8 changes: 5 additions & 3 deletions demo/store/mpstore.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Mpstore.js v0.1.10
* Mpstore.js v0.1.11
* (c) 2019-2019 Imtaotao
* Released under the MIT License.
*/
Expand Down Expand Up @@ -295,6 +295,8 @@ function mergeModule(module, partialModule, moduleName, createMsg) {
return createModule(Object.assign({}, module, partialModule));
}
function createModuleByNamespace(namespace, partialModule, rootModule, stringifyAction, createMsg) {
partialModule = partialModule || {};

if (!namespace) {
return mergeModule(rootModule, partialModule);
}
Expand Down Expand Up @@ -816,7 +818,7 @@ function () {
this.depComponents = [];
this.GLOBALWORD = 'global';
this.isDispatching = false;
this.version = '0.1.10';
this.version = '0.1.11';
this.state = Object.freeze(createModule({}));
this.middleware = new Middleware(this);
}
Expand Down Expand Up @@ -1080,7 +1082,7 @@ function () {
return Store;
}();

var version = '0.1.10';
var version = '0.1.11';
var nativePage = Page;
var nativeComponent = Component;

Expand Down
8 changes: 5 additions & 3 deletions dist/mpstore.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Mpstore.js v0.1.10
* Mpstore.js v0.1.11
* (c) 2019-2019 Imtaotao
* Released under the MIT License.
*/
Expand Down Expand Up @@ -299,6 +299,8 @@ function mergeModule(module, partialModule, moduleName, createMsg) {
return createModule(Object.assign({}, module, partialModule));
}
function createModuleByNamespace(namespace, partialModule, rootModule, stringifyAction, createMsg) {
partialModule = partialModule || {};

if (!namespace) {
return mergeModule(rootModule, partialModule);
}
Expand Down Expand Up @@ -820,7 +822,7 @@ function () {
this.depComponents = [];
this.GLOBALWORD = 'global';
this.isDispatching = false;
this.version = '0.1.10';
this.version = '0.1.11';
this.state = Object.freeze(createModule({}));
this.middleware = new Middleware(this);
}
Expand Down Expand Up @@ -1084,7 +1086,7 @@ function () {
return Store;
}();

var version = '0.1.10';
var version = '0.1.11';
var nativePage = Page;
var nativeComponent = Component;

Expand Down
7 changes: 4 additions & 3 deletions dist/mpstore.es6m.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Mpstore.js v0.1.10
* Mpstore.js v0.1.11
* (c) 2019-2019 Imtaotao
* Released under the MIT License.
*/
Expand Down Expand Up @@ -199,6 +199,7 @@ function mergeModule (module, partialModule, moduleName, createMsg) {
return createModule(Object.assign({}, module, partialModule))
}
function createModuleByNamespace (namespace, partialModule, rootModule, stringifyAction, createMsg) {
partialModule = partialModule || {};
if (!namespace) {
return mergeModule(rootModule, partialModule)
}
Expand Down Expand Up @@ -645,7 +646,7 @@ class Store {
this.depComponents = [];
this.GLOBALWORD = 'global';
this.isDispatching = false;
this.version = '0.1.10';
this.version = '0.1.11';
this.state = Object.freeze(createModule({}));
this.middleware = new Middleware(this);
}
Expand Down Expand Up @@ -886,7 +887,7 @@ class Store {
}
}

const version = '0.1.10';
const version = '0.1.11';
const nativePage = Page;
const nativeComponent = Component;
function expandConfig (config, expandMethods, isPage) {
Expand Down
8 changes: 5 additions & 3 deletions dist/mpstore.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Mpstore.js v0.1.10
* Mpstore.js v0.1.11
* (c) 2019-2019 Imtaotao
* Released under the MIT License.
*/
Expand Down Expand Up @@ -295,6 +295,8 @@ function mergeModule(module, partialModule, moduleName, createMsg) {
return createModule(Object.assign({}, module, partialModule));
}
function createModuleByNamespace(namespace, partialModule, rootModule, stringifyAction, createMsg) {
partialModule = partialModule || {};

if (!namespace) {
return mergeModule(rootModule, partialModule);
}
Expand Down Expand Up @@ -816,7 +818,7 @@ function () {
this.depComponents = [];
this.GLOBALWORD = 'global';
this.isDispatching = false;
this.version = '0.1.10';
this.version = '0.1.11';
this.state = Object.freeze(createModule({}));
this.middleware = new Middleware(this);
}
Expand Down Expand Up @@ -1080,7 +1082,7 @@ function () {
return Store;
}();

var version = '0.1.10';
var version = '0.1.11';
var nativePage = Page;
var nativeComponent = Component;

Expand Down
4 changes: 2 additions & 2 deletions dist/mpstore.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rustle/mp-store",
"version": "0.1.10",
"version": "0.1.11",
"description": "A lightweight wechat miniprogram state management library",
"main": "dist/mpstore.common.js",
"module": "dist/mpstore.esm.js",
Expand Down
Loading

0 comments on commit bb53d9b

Please sign in to comment.