New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
2.6.1

lib/action.js.map

3

lib/action.js
"use strict";
var dispatch_1 = require('./dispatch');
var functionInternals_1 = require('./functionInternals');
function action(actionType, actionContext) {

@@ -11,2 +12,3 @@ return function action(target) {

};
functionInternals_1.setOriginalTarget(decoratedTarget, target);
return decoratedTarget;

@@ -17,1 +19,2 @@ };

exports.default = action;
//# sourceMappingURL=action.js.map
"use strict";
//# sourceMappingURL=ActionContext.js.map
"use strict";
//# sourceMappingURL=ActionFunction.js.map

@@ -29,1 +29,2 @@ "use strict";

}
//# sourceMappingURL=applyMiddleware.js.map

@@ -15,1 +15,2 @@ "use strict";

;
//# sourceMappingURL=createStore.js.map

@@ -21,1 +21,2 @@ "use strict";

});
//# sourceMappingURL=dispatch.js.map
"use strict";
//# sourceMappingURL=DispatchFunction.js.map

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

}
//# sourceMappingURL=globalContext.js.map

@@ -14,1 +14,2 @@ "use strict";

exports.select = select_1.default;
//# sourceMappingURL=index.js.map

@@ -13,1 +13,2 @@ "use strict";

exports.default = initializeState;
//# sourceMappingURL=initializeState.js.map
"use strict";
//# sourceMappingURL=Middleware.js.map

@@ -5,1 +5,2 @@ "use strict";

exports.default = globalContext_1.getGlobalContext().rootStore;
//# sourceMappingURL=rootStore.js.map
"use strict";
var mobx_1 = require('mobx');
var functionInternals_1 = require('./functionInternals');
function createCursorFromSelector(selector, args) {

@@ -18,2 +19,3 @@ var state = {};

Object.defineProperty(state, key, {
enumerable: true,
get: value.get.bind(observable),

@@ -30,2 +32,3 @@ set: value.set.bind(observable)

Object.defineProperty(state, key, {
enumerable: true,
get: function () { return selector[key].apply(null, args); },

@@ -38,2 +41,3 @@ set: function (value) { return parent_1[index_1] = value; }

Object.defineProperty(state, key, {
enumerable: true,
get: function () { return selector[key].apply(null, args); }

@@ -46,2 +50,3 @@ });

Object.defineProperty(state, key, {
enumerable: true,
get: function () { return selector[key].apply(null, args); }

@@ -61,6 +66,15 @@ });

var _this = this;
var argumentPosition = target.length - 1;
var actionTarget = functionInternals_1.getOriginalTarget(target);
if (actionTarget) {
argumentPosition = actionTarget.length - 1;
}
var returnValue = function () {
var state = createCursorFromSelector(selector, arguments);
[].push.call(arguments, state);
return target.apply(_this, arguments);
var args = Array.prototype.slice.call(arguments);
for (var i = args.length; i < argumentPosition; i++) {
args[i] = undefined;
}
args[argumentPosition] = state;
return target.apply(_this, args);
};

@@ -72,1 +86,2 @@ return returnValue;

exports.default = select;
//# sourceMappingURL=select.js.map

2

package.json
{
"name": "satcheljs",
"version": "2.6.0",
"version": "2.6.1",
"description": "Store implementation for functional reactive flux.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",