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

satcheljs

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

satcheljs - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

.prettierrc

1

lib/actionCreator.d.ts

@@ -6,1 +6,2 @@ import ActionMessage from './interfaces/ActionMessage';

export declare function getPrivateActionId(target: any): any;
export declare function getPrivateActionType(target: any): string;

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

setPrivateActionId(decoratedTarget, actionId);
setActionType(decoratedTarget, actionType);
return decoratedTarget;

@@ -42,1 +43,8 @@ }

}
function getPrivateActionType(target) {
return target.__SATCHELJS_ACTION_TYPE || 'unknown action';
}
exports.getPrivateActionType = getPrivateActionType;
function setActionType(target, actionType) {
target.__SATCHELJS_ACTION_TYPE = actionType;
}

2

lib/mutator.js

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

}
var wrappedTarget = mobx_1.action(function (actionMessage) {
var wrappedTarget = mobx_1.action(actionCreator_1.getPrivateActionType(actionCreator), function (actionMessage) {
try {

@@ -15,0 +15,0 @@ globalContext_1.getGlobalContext().inMutator = true;

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

decorator(simpleActionCreator, function simpleSubscriberCallback(actionMessage) {
target.apply(null, actionMessage.args);
return target.apply(null, actionMessage.args);
});

@@ -16,0 +16,0 @@ return simpleActionCreator;

{
"name": "satcheljs",
"version": "4.0.1",
"version": "4.1.0",
"description": "Store implementation for functional reactive flux.",
"lint-staged": {
"*.{ts,tsx}": [
"prettier --tab-width 4 --print-width 100 --write --trailing-comma es5 --jsx-bracket-same-line --single-quote",
"prettier --write",
"git add"

@@ -37,3 +37,3 @@ ]

"npm-run-all": "^4.0.2",
"prettier": "~1.5.2",
"prettier": "^1.19.1",
"react": "15.4.2",

@@ -61,2 +61,2 @@ "react-addons-test-utils": "~15.4.0",

"license": "MIT"
}
}
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