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.2.3 to 4.2.4

.github/workflows/ci.yml

1

lib/actionCreator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPrivateActionType = exports.getPrivateActionId = exports.action = exports.actionCreator = void 0;
var dispatcher_1 = require("./dispatcher");

@@ -4,0 +5,0 @@ var createActionId_1 = require("./createActionId");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.finalDispatch = exports.dispatch = exports.subscribe = void 0;
var mobx_1 = require("mobx");

@@ -4,0 +5,0 @@ var actionCreator_1 = require("./actionCreator");

14

lib/globalContext.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGlobalContext = exports.ensureGlobalContextSchemaVersion = exports.__resetGlobalContext = void 0;
var mobx_1 = require("mobx");
var schemaVersion = 3;
var globalObject = (typeof globalThis !== 'undefined'
? globalThis
: typeof window !== 'undefined'
? window
: global);
function __resetGlobalContext() {
global.__satchelGlobalContext = {
globalObject.__satchelGlobalContext = {
schemaVersion: schemaVersion,

@@ -20,3 +26,3 @@ rootStore: mobx_1.observable.map({}),

function ensureGlobalContextSchemaVersion() {
if (schemaVersion != global.__satchelGlobalContext.schemaVersion) {
if (schemaVersion != globalObject.__satchelGlobalContext.schemaVersion) {
throw new Error('Detected incompatible SatchelJS versions loaded.');

@@ -27,6 +33,6 @@ }

function getGlobalContext() {
return global.__satchelGlobalContext;
return globalObject.__satchelGlobalContext;
}
exports.getGlobalContext = getGlobalContext;
if (!global.__satchelGlobalContext) {
if (!globalObject.__satchelGlobalContext) {
__resetGlobalContext();

@@ -33,0 +39,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.orchestrator = exports.flow = exports.useStrict = exports.mutatorAction = exports.getRootStore = exports.mutator = exports.dispatch = exports.createStore = exports.applyMiddleware = exports.actionCreator = exports.action = void 0;
var useStrict_1 = require("./useStrict");
exports.useStrict = useStrict_1.default;
var actionCreator_1 = require("./actionCreator");
exports.action = actionCreator_1.action;
exports.actionCreator = actionCreator_1.actionCreator;
Object.defineProperty(exports, "action", { enumerable: true, get: function () { return actionCreator_1.action; } });
Object.defineProperty(exports, "actionCreator", { enumerable: true, get: function () { return actionCreator_1.actionCreator; } });
var applyMiddleware_1 = require("./applyMiddleware");
exports.applyMiddleware = applyMiddleware_1.default;
Object.defineProperty(exports, "applyMiddleware", { enumerable: true, get: function () { return applyMiddleware_1.default; } });
var createStore_1 = require("./createStore");
exports.createStore = createStore_1.default;
Object.defineProperty(exports, "createStore", { enumerable: true, get: function () { return createStore_1.default; } });
var dispatcher_1 = require("./dispatcher");
exports.dispatch = dispatcher_1.dispatch;
Object.defineProperty(exports, "dispatch", { enumerable: true, get: function () { return dispatcher_1.dispatch; } });
var mutator_1 = require("./mutator");
exports.mutator = mutator_1.default;
Object.defineProperty(exports, "mutator", { enumerable: true, get: function () { return mutator_1.default; } });
var orchestrator_1 = require("./orchestrator");
exports.orchestrator = orchestrator_1.default;
Object.defineProperty(exports, "orchestrator", { enumerable: true, get: function () { return orchestrator_1.default; } });
var getRootStore_1 = require("./getRootStore");
exports.getRootStore = getRootStore_1.default;
Object.defineProperty(exports, "getRootStore", { enumerable: true, get: function () { return getRootStore_1.default; } });
var simpleSubscribers_1 = require("./simpleSubscribers");
exports.mutatorAction = simpleSubscribers_1.mutatorAction;
Object.defineProperty(exports, "mutatorAction", { enumerable: true, get: function () { return simpleSubscribers_1.mutatorAction; } });
exports.flow = orchestrator_1.default;
useStrict_1.default(true);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getActionType = exports.setActionType = exports.getOriginalTarget = exports.setOriginalTarget = void 0;
function setOriginalTarget(decoratedTarget, originalTarget) {

@@ -4,0 +5,0 @@ decoratedTarget.__SATCHELJS_ORIGINAL_TARGET = originalTarget;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetTestMode = exports.initializeTestMode = exports.getActionType = exports.createUndo = exports.select = exports.action = exports.legacyApplyMiddleware = void 0;
var legacyApplyMiddleware_1 = require("./legacyApplyMiddleware");
exports.legacyApplyMiddleware = legacyApplyMiddleware_1.default;
Object.defineProperty(exports, "legacyApplyMiddleware", { enumerable: true, get: function () { return legacyApplyMiddleware_1.default; } });
var action_1 = require("./action");
exports.action = action_1.default;
Object.defineProperty(exports, "action", { enumerable: true, get: function () { return action_1.default; } });
var select_1 = require("./select");
exports.select = select_1.default;
Object.defineProperty(exports, "select", { enumerable: true, get: function () { return select_1.default; } });
var createUndo_1 = require("./createUndo");
exports.createUndo = createUndo_1.default;
Object.defineProperty(exports, "createUndo", { enumerable: true, get: function () { return createUndo_1.default; } });
var functionInternals_1 = require("./functionInternals");
exports.getActionType = functionInternals_1.getActionType;
Object.defineProperty(exports, "getActionType", { enumerable: true, get: function () { return functionInternals_1.getActionType; } });
var testMode_1 = require("./testMode");
exports.initializeTestMode = testMode_1.initializeTestMode;
exports.resetTestMode = testMode_1.resetTestMode;
Object.defineProperty(exports, "initializeTestMode", { enumerable: true, get: function () { return testMode_1.initializeTestMode; } });
Object.defineProperty(exports, "resetTestMode", { enumerable: true, get: function () { return testMode_1.resetTestMode; } });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dispatchWithMiddleware = void 0;
var globalContext_1 = require("../globalContext");

@@ -4,0 +5,0 @@ function applyMiddleware() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapCatch = exports.wrapThen = void 0;
var action_1 = require("../action");

@@ -4,0 +5,0 @@ var promiseMiddleware_1 = require("./promiseMiddleware");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.promiseMiddleware = void 0;
var promiseMiddleware_1 = require("./promiseMiddleware");
exports.promiseMiddleware = promiseMiddleware_1.promiseMiddleware;
Object.defineProperty(exports, "promiseMiddleware", { enumerable: true, get: function () { return promiseMiddleware_1.promiseMiddleware; } });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.promiseMiddleware = exports.getCurrentAction = void 0;
var install_1 = require("./install");

@@ -4,0 +5,0 @@ var actionStack = [];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reactive = void 0;
var reactive_1 = require("./reactive");
exports.reactive = reactive_1.default;
Object.defineProperty(exports, "reactive", { enumerable: true, get: function () { return reactive_1.default; } });

@@ -6,6 +6,8 @@ "use strict";

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -12,0 +14,0 @@ function __() { this.constructor = d; }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.raiseAction = exports.raise = exports.subscribe = exports.stitch = void 0;
var stitch_1 = require("./stitch");
exports.stitch = stitch_1.stitch;
exports.subscribe = stitch_1.subscribe;
exports.raise = stitch_1.raise;
exports.raiseAction = stitch_1.raiseAction;
Object.defineProperty(exports, "stitch", { enumerable: true, get: function () { return stitch_1.stitch; } });
Object.defineProperty(exports, "subscribe", { enumerable: true, get: function () { return stitch_1.subscribe; } });
Object.defineProperty(exports, "raise", { enumerable: true, get: function () { return stitch_1.raise; } });
Object.defineProperty(exports, "raiseAction", { enumerable: true, get: function () { return stitch_1.raiseAction; } });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.raiseAction = exports.raise = exports.subscribe = exports.stitch = void 0;
var action_1 = require("../action");

@@ -4,0 +5,0 @@ var handlers = {};

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetTestMode = exports.initializeTestMode = void 0;
var globalContext_1 = require("../globalContext");

@@ -4,0 +5,0 @@ function initializeTestMode() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.trace = void 0;
var trace_1 = require("./trace");
exports.trace = trace_1.default;
Object.defineProperty(exports, "trace", { enumerable: true, get: function () { return trace_1.default; } });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mutatorAction = exports.createSimpleSubscriber = void 0;
var actionCreator_1 = require("./actionCreator");

@@ -4,0 +5,0 @@ var mutator_1 = require("./mutator");

{
"name": "satcheljs",
"version": "4.2.3",
"version": "4.2.4",
"description": "Store implementation for functional reactive flux.",

@@ -46,3 +46,3 @@ "lint-staged": {

"tslint-microsoft-contrib": "~5.0.1",
"typescript": "~3.3.4000"
"typescript": "^4.3.2"
},

@@ -49,0 +49,0 @@ "peerDependencies": {

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