forked from daren.hsu/line_push
update
This commit is contained in:
+3
-3
@@ -1,12 +1,12 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, global.Vuex = factory());
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
/**
|
||||
|
||||
+9
-5
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
'use strict';
|
||||
@@ -288,7 +288,11 @@ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
|
||||
var parent = this.get(path.slice(0, -1));
|
||||
var key = path[path.length - 1];
|
||||
|
||||
return parent.hasChild(key)
|
||||
if (parent) {
|
||||
return parent.hasChild(key)
|
||||
}
|
||||
|
||||
return false
|
||||
};
|
||||
|
||||
function update (path, targetModule, newModule) {
|
||||
@@ -963,7 +967,7 @@ var mapState = normalizeNamespace(function (namespace, states) {
|
||||
/**
|
||||
* Reduce the code which written in Vue.js for committing the mutation
|
||||
* @param {String} [namespace] - Module's namespace
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @return {Object}
|
||||
*/
|
||||
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
||||
@@ -1228,7 +1232,7 @@ function pad (num, maxLength) {
|
||||
var index_cjs = {
|
||||
Store: Store,
|
||||
install: install,
|
||||
version: '3.5.1',
|
||||
version: '3.6.2',
|
||||
mapState: mapState,
|
||||
mapMutations: mapMutations,
|
||||
mapGetters: mapGetters,
|
||||
|
||||
+9
-5
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
function applyMixin (Vue) {
|
||||
@@ -278,7 +278,11 @@ class ModuleCollection {
|
||||
const parent = this.get(path.slice(0, -1));
|
||||
const key = path[path.length - 1];
|
||||
|
||||
return parent.hasChild(key)
|
||||
if (parent) {
|
||||
return parent.hasChild(key)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -934,7 +938,7 @@ const mapState = normalizeNamespace((namespace, states) => {
|
||||
/**
|
||||
* Reduce the code which written in Vue.js for committing the mutation
|
||||
* @param {String} [namespace] - Module's namespace
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @return {Object}
|
||||
*/
|
||||
const mapMutations = normalizeNamespace((namespace, mutations) => {
|
||||
@@ -1183,7 +1187,7 @@ function pad (num, maxLength) {
|
||||
var index = {
|
||||
Store,
|
||||
install,
|
||||
version: '3.5.1',
|
||||
version: '3.6.2',
|
||||
mapState,
|
||||
mapMutations,
|
||||
mapGetters,
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+9
-5
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
function applyMixin (Vue) {
|
||||
@@ -286,7 +286,11 @@ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
|
||||
var parent = this.get(path.slice(0, -1));
|
||||
var key = path[path.length - 1];
|
||||
|
||||
return parent.hasChild(key)
|
||||
if (parent) {
|
||||
return parent.hasChild(key)
|
||||
}
|
||||
|
||||
return false
|
||||
};
|
||||
|
||||
function update (path, targetModule, newModule) {
|
||||
@@ -961,7 +965,7 @@ var mapState = normalizeNamespace(function (namespace, states) {
|
||||
/**
|
||||
* Reduce the code which written in Vue.js for committing the mutation
|
||||
* @param {String} [namespace] - Module's namespace
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @return {Object}
|
||||
*/
|
||||
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
||||
@@ -1226,7 +1230,7 @@ function pad (num, maxLength) {
|
||||
var index = {
|
||||
Store: Store,
|
||||
install: install,
|
||||
version: '3.5.1',
|
||||
version: '3.6.2',
|
||||
mapState: mapState,
|
||||
mapMutations: mapMutations,
|
||||
mapGetters: mapGetters,
|
||||
|
||||
+10
-6
@@ -1,12 +1,12 @@
|
||||
/*!
|
||||
* vuex v3.5.1
|
||||
* (c) 2020 Evan You
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, global.Vuex = factory());
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
function applyMixin (Vue) {
|
||||
@@ -292,7 +292,11 @@
|
||||
var parent = this.get(path.slice(0, -1));
|
||||
var key = path[path.length - 1];
|
||||
|
||||
return parent.hasChild(key)
|
||||
if (parent) {
|
||||
return parent.hasChild(key)
|
||||
}
|
||||
|
||||
return false
|
||||
};
|
||||
|
||||
function update (path, targetModule, newModule) {
|
||||
@@ -967,7 +971,7 @@
|
||||
/**
|
||||
* Reduce the code which written in Vue.js for committing the mutation
|
||||
* @param {String} [namespace] - Module's namespace
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
||||
* @return {Object}
|
||||
*/
|
||||
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
||||
@@ -1232,7 +1236,7 @@
|
||||
var index_cjs = {
|
||||
Store: Store,
|
||||
install: install,
|
||||
version: '3.5.1',
|
||||
version: '3.6.2',
|
||||
mapState: mapState,
|
||||
mapMutations: mapMutations,
|
||||
mapGetters: mapGetters,
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+26
@@ -0,0 +1,26 @@
|
||||
import Vuex from '../dist/vuex.common.js'
|
||||
|
||||
const {
|
||||
Store,
|
||||
install,
|
||||
version,
|
||||
mapState,
|
||||
mapMutations,
|
||||
mapGetters,
|
||||
mapActions,
|
||||
createNamespacedHelpers,
|
||||
createLogger
|
||||
} = Vuex
|
||||
|
||||
export {
|
||||
Vuex as default,
|
||||
Store,
|
||||
install,
|
||||
version,
|
||||
mapState,
|
||||
mapMutations,
|
||||
mapGetters,
|
||||
mapActions,
|
||||
createNamespacedHelpers,
|
||||
createLogger
|
||||
}
|
||||
Reference in New Issue
Block a user