New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@modern-js-reduck/store

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modern-js-reduck/store - npm Package Compare versions

Comparing version 1.1.1-alpha.0 to 1.1.1

9

dist/js/modern/model/mountModel.js

@@ -60,11 +60,4 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }

return false;
} // const mountedModel = context.apis.getModelByName(modelDesc.name);
// // model has mounted
// if (mountedModel) {
// console.info(`model named ${modelDesc.name} has already mounted, so skip`);
// // context.apis.addModel(model, mountedModel);
// return false;
// }
}
return true;

@@ -71,0 +64,0 @@ };

5

dist/js/modern/store/context.js

@@ -44,3 +44,2 @@ import { combineReducers } from 'redux';

const getModel = model => {
// const mountedModel = mountedModels.get(model);
const mountedModel = getModelByName(model._name);

@@ -50,5 +49,4 @@

return null;
} // return mountedModel;
}
return {

@@ -123,3 +121,2 @@ name: mountedModel.name,

getModelSubscribe,
getModelByName,
mountingModel,

@@ -126,0 +123,0 @@ unmountModel

@@ -1,2 +0,2 @@

export const initializerSymbol = Symbol('model initializer');
export const initializerSymbol = Symbol.for('__reduck_model_initializer__');
export const getModelInitializer = _model => _model[initializerSymbol];

@@ -3,0 +3,0 @@ export const isModel = _model => _model && Boolean(getModelInitializer(_model));

@@ -72,11 +72,4 @@ "use strict";

return false;
} // const mountedModel = context.apis.getModelByName(modelDesc.name);
// // model has mounted
// if (mountedModel) {
// console.info(`model named ${modelDesc.name} has already mounted, so skip`);
// // context.apis.addModel(model, mountedModel);
// return false;
// }
}
return true;

@@ -83,0 +76,0 @@ };

@@ -55,3 +55,2 @@ "use strict";

const getModel = model => {
// const mountedModel = mountedModels.get(model);
const mountedModel = getModelByName(model._name);

@@ -61,5 +60,4 @@

return null;
} // return mountedModel;
}
return {

@@ -134,3 +132,2 @@ name: mountedModel.name,

getModelSubscribe,
getModelByName,
mountingModel,

@@ -137,0 +134,0 @@ unmountModel

@@ -7,3 +7,3 @@ "use strict";

exports.isModel = exports.initializerSymbol = exports.getStateType = exports.getModelInitializer = exports.getComputedDepModels = exports.StateType = void 0;
const initializerSymbol = Symbol('model initializer');
const initializerSymbol = Symbol.for('__reduck_model_initializer__');
exports.initializerSymbol = initializerSymbol;

@@ -10,0 +10,0 @@

@@ -59,11 +59,4 @@ import _extends from "@babel/runtime/helpers/esm/extends";

return false;
} // const mountedModel = context.apis.getModelByName(modelDesc.name);
// // model has mounted
// if (mountedModel) {
// console.info(`model named ${modelDesc.name} has already mounted, so skip`);
// // context.apis.addModel(model, mountedModel);
// return false;
// }
}
return true;

@@ -70,0 +63,0 @@ };

@@ -44,3 +44,2 @@ import { combineReducers } from 'redux';

const getModel = model => {
// const mountedModel = mountedModels.get(model);
const mountedModel = getModelByName(model._name);

@@ -50,5 +49,4 @@

return null;
} // return mountedModel;
}
return {

@@ -123,3 +121,2 @@ name: mountedModel.name,

getModelSubscribe,
getModelByName,
mountingModel,

@@ -126,0 +123,0 @@ unmountModel

@@ -1,2 +0,2 @@

export const initializerSymbol = Symbol('model initializer');
export const initializerSymbol = Symbol.for('__reduck_model_initializer__');
export const getModelInitializer = _model => _model[initializerSymbol];

@@ -3,0 +3,0 @@ export const isModel = _model => _model && Boolean(getModelInitializer(_model));

{
"name": "@modern-js-reduck/store",
"version": "1.1.1-alpha.0",
"version": "1.1.1",
"files": [

@@ -5,0 +5,0 @@ "dist"

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