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

aneop-store

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aneop-store - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0

20

CHANGELOG.md

@@ -6,2 +6,22 @@ # Change Log

# 6.5.0 (2021-08-22)
### Bug Fixes
* **aneop-store:** define export default ([ed94de3](https://gitlab.com/mercurio-ecommerce/aneop-libs/commit/ed94de33021122b7f5e3293516c2136899618f5b))
### Features
* **aneop-customers:** add redux store to module ([d75feab](https://gitlab.com/mercurio-ecommerce/aneop-libs/commit/d75feaba34836f0bd0aaacc421af7947df0c6c11))
* **aneop-store:** add AppService ([62ae6c3](https://gitlab.com/mercurio-ecommerce/aneop-libs/commit/62ae6c3d4ac1dc3e1f4ad4b1cafef3a10cdaee78))
* **aneop-store:** add dependencies to format code ([d270cb3](https://gitlab.com/mercurio-ecommerce/aneop-libs/commit/d270cb3a35dda24bf534d6cd839999e18e3b5138))
* **aneop-store:** add store dependency ([5e84d34](https://gitlab.com/mercurio-ecommerce/aneop-libs/commit/5e84d34581b39ca8fa3a8c9d9e024aefd05dae43))
* **aneop-store:** export clean store action ([7acde07](https://gitlab.com/mercurio-ecommerce/aneop-libs/commit/7acde07c99c0eff1db75be24b7bca2db32238dd5))
# [6.4.0](https://github.com/mancas/aneop-libs/compare/v6.3.0...v6.4.0) (2020-04-20)

@@ -8,0 +28,0 @@

61

es/AppService.js

@@ -1,33 +0,52 @@

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
export var CLEAR = 'CLEAR';
var AppService = function AppService(store, aneop) {
var _this = this;
var AppService = /*#__PURE__*/function () {
function AppService(store, aneop) {
var _this = this;
_classCallCheck(this, AppService);
_defineProperty(this, "store", null);
this.store = null;
this.aneop = null;
_defineProperty(this, "aneop", null);
this.dispatch = function (action) {
_this.store.dispatch(action);
};
_defineProperty(this, "dispatch", function (action) {
_this.store.dispatch(action);
});
this.getState = function () {
return _this.store.getState();
};
_defineProperty(this, "getState", function () {
return _this.store.getState();
});
this.clearStore = function () {
_this.store.dispatch({ type: CLEAR });
};
_defineProperty(this, "clearStore", function () {
_this.store.dispatch({
type: CLEAR
});
});
this.getAneopService = function () {
return _this.aneop;
};
_defineProperty(this, "getAneopService", function () {
return _this.aneop;
});
this.store = store;
this.aneop = aneop;
};
this.store = store;
this.aneop = aneop;
}
_createClass(AppService, [{
key: "selectors",
get: function get() {
return this._selectors;
},
set: function set(_) {
return;
}
}]);
return AppService;
}();
export default AppService;

@@ -1,12 +0,8 @@

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import { createStore, applyMiddleware, compose, combineReducers } from 'redux';
import AppService from './AppService';
import thunkMiddleware from 'redux-thunk';
export var CLEAN_ACTION = 'CONFIG_STORE/CLEAN_STORE';
var composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
var initialReducers = {};

@@ -17,9 +13,9 @@ var isInitialized = false;

if (isInitialized) {
console.error('Store is initialized you can\'t init two times');
console.error("Store is initialized you can't init two times");
return;
}
isInitialized = true;
initialReducers = reducers;
var store = createStore(initialReducersCombined ? initialReducersCombined : combineReducers(initialReducers), initialState, composeEnhancers(applyMiddleware(thunkMiddleware)));
store.asyncReducers = {};

@@ -29,7 +25,8 @@ return store;

function createReducer() {
var asyncReducers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
function createReducer(asyncReducers) {
if (asyncReducers === void 0) {
asyncReducers = {};
}
var appReducer = combineReducers(_extends({}, initialReducers, asyncReducers));
return function (state, action) {

@@ -36,0 +33,0 @@ if (action.type === CLEAN_ACTION) {

@@ -1,37 +0,59 @@

'use strict';
"use strict";
exports.__esModule = true;
exports["default"] = exports.CLEAR = void 0;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
var CLEAR = exports.CLEAR = 'CLEAR';
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
var AppService = function AppService(store, aneop) {
var _this = this;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
_classCallCheck(this, AppService);
var CLEAR = 'CLEAR';
exports.CLEAR = CLEAR;
this.store = null;
this.aneop = null;
var AppService = /*#__PURE__*/function () {
function AppService(store, aneop) {
var _this = this;
this.dispatch = function (action) {
_this.store.dispatch(action);
};
_defineProperty(this, "store", null);
this.getState = function () {
return _this.store.getState();
};
_defineProperty(this, "aneop", null);
this.clearStore = function () {
_this.store.dispatch({ type: CLEAR });
};
_defineProperty(this, "dispatch", function (action) {
_this.store.dispatch(action);
});
this.getAneopService = function () {
return _this.aneop;
};
_defineProperty(this, "getState", function () {
return _this.store.getState();
});
this.store = store;
this.aneop = aneop;
};
_defineProperty(this, "clearStore", function () {
_this.store.dispatch({
type: CLEAR
});
});
exports.default = AppService;
_defineProperty(this, "getAneopService", function () {
return _this.aneop;
});
this.store = store;
this.aneop = aneop;
}
_createClass(AppService, [{
key: "selectors",
get: function get() {
return this._selectors;
},
set: function set(_) {
return;
}
}]);
return AppService;
}();
var _default = AppService;
exports["default"] = _default;

@@ -1,24 +0,24 @@

'use strict';
"use strict";
exports.__esModule = true;
exports.AppService = exports.injectAsyncReducer = exports.createReducer = exports.configureStore = exports.CLEAN_ACTION = undefined;
exports.configureStore = configureStore;
exports.createReducer = createReducer;
exports.injectAsyncReducer = injectAsyncReducer;
exports.CLEAN_ACTION = void 0;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _redux = require("redux");
var _redux = require('redux');
var _AppService = _interopRequireDefault(require("./AppService"));
var _AppService = require('./AppService');
exports.AppService = _AppService["default"];
var _AppService2 = _interopRequireDefault(_AppService);
var _reduxThunk = _interopRequireDefault(require("redux-thunk"));
var _reduxThunk = require('redux-thunk');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _reduxThunk2 = _interopRequireDefault(_reduxThunk);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var CLEAN_ACTION = exports.CLEAN_ACTION = 'CONFIG_STORE/CLEAN_STORE';
var CLEAN_ACTION = 'CONFIG_STORE/CLEAN_STORE';
exports.CLEAN_ACTION = CLEAN_ACTION;
var composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || _redux.compose;
var initialReducers = {};

@@ -29,9 +29,9 @@ var isInitialized = false;

if (isInitialized) {
console.error('Store is initialized you can\'t init two times');
console.error("Store is initialized you can't init two times");
return;
}
isInitialized = true;
initialReducers = reducers;
var store = (0, _redux.createStore)(initialReducersCombined ? initialReducersCombined : (0, _redux.combineReducers)(initialReducers), initialState, composeEnhancers((0, _redux.applyMiddleware)(_reduxThunk2.default)));
var store = (0, _redux.createStore)(initialReducersCombined ? initialReducersCombined : (0, _redux.combineReducers)(initialReducers), initialState, composeEnhancers((0, _redux.applyMiddleware)(_reduxThunk["default"])));
store.asyncReducers = {};

@@ -41,7 +41,8 @@ return store;

function createReducer() {
var asyncReducers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
function createReducer(asyncReducers) {
if (asyncReducers === void 0) {
asyncReducers = {};
}
var appReducer = (0, _redux.combineReducers)(_extends({}, initialReducers, asyncReducers));
return function (state, action) {

@@ -59,7 +60,2 @@ if (action.type === CLEAN_ACTION) {

store.replaceReducer(createReducer(store.asyncReducers));
}
exports.configureStore = configureStore;
exports.createReducer = createReducer;
exports.injectAsyncReducer = injectAsyncReducer;
exports.AppService = _AppService2.default;
}
{
"name": "aneop-store",
"version": "6.4.0",
"version": "6.5.0",
"description": "Describe aneop-store here",

@@ -27,3 +27,3 @@ "main": "lib/index.js",

"lint-staged": "^10.0.7",
"nwb": "^0.23.0"
"nwb": "^0.25.2"
},

@@ -38,3 +38,3 @@ "author": "",

},
"gitHead": "54381d13f64616dd5cfcdfa94e6704ead52067de"
"gitHead": "c6d42d7671e78a8e145047a84e558c277e1c427f"
}
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