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

patronum

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

patronum - npm Package Compare versions

Comparing version 0.105.3 to 0.106.0

34

babel-preset-plugins.json

@@ -6,7 +6,6 @@ [

"importName": "patronum",
"storeCreators": [
"attachCreators": [
"combineEvents",
"condition",
"debounce",
"debug",
"delay",

@@ -29,3 +28,3 @@ "every",

"importName": "patronum/combine-events",
"storeCreators": ["combineEvents"],
"attachCreators": ["combineEvents"],
"noDefaults": true

@@ -39,3 +38,3 @@ },

"importName": "patronum/condition",
"storeCreators": ["condition"],
"attachCreators": ["condition"],
"noDefaults": true

@@ -49,3 +48,3 @@ },

"importName": "patronum/debounce",
"storeCreators": ["debounce"],
"attachCreators": ["debounce"],
"noDefaults": true

@@ -58,13 +57,4 @@ },

{
"importName": "patronum/debug",
"storeCreators": ["debug"],
"noDefaults": true
},
"patronum/debug"
],
[
"effector/babel-plugin",
{
"importName": "patronum/delay",
"storeCreators": ["delay"],
"attachCreators": ["delay"],
"noDefaults": true

@@ -78,3 +68,3 @@ },

"importName": "patronum/every",
"storeCreators": ["every"],
"attachCreators": ["every"],
"noDefaults": true

@@ -88,3 +78,3 @@ },

"importName": "patronum/reshape",
"storeCreators": ["reshape"],
"attachCreators": ["reshape"],
"noDefaults": true

@@ -98,3 +88,3 @@ },

"importName": "patronum/some",
"storeCreators": ["some"],
"attachCreators": ["some"],
"noDefaults": true

@@ -108,3 +98,3 @@ },

"importName": "patronum/split-map",
"storeCreators": ["splitMap"],
"attachCreators": ["splitMap"],
"noDefaults": true

@@ -118,3 +108,3 @@ },

"importName": "patronum/spread",
"storeCreators": ["spread"],
"attachCreators": ["spread"],
"noDefaults": true

@@ -128,3 +118,3 @@ },

"importName": "patronum/status",
"storeCreators": ["status"],
"attachCreators": ["status"],
"noDefaults": true

@@ -138,3 +128,3 @@ },

"importName": "patronum/throttle",
"storeCreators": ["throttle"],
"attachCreators": ["throttle"],
"noDefaults": true

@@ -141,0 +131,0 @@ },

@@ -23,5 +23,5 @@ const {

target: givenTarget,
} = readConfig(argument, ['sid', 'loc', 'name', 'events', 'reset', 'target']);
} = readConfig(argument, ['loc', 'name', 'events', 'reset', 'target']);
const target = givenTarget || createEvent();
const target = givenTarget || createEvent({ name });

@@ -28,0 +28,0 @@ if (!is.unit(target)) throwError('target should be a unit');

@@ -11,7 +11,8 @@ const { is, guard, createEvent } = require('effector');

const {
source = createEvent(),
name = 'unknown',
source = createEvent({ name: `${name}Source` }),
if: test,
then: thenBranch = createEvent(),
else: elseBranch = createEvent(),
} = readConfig(argument, ['source', 'if', 'then', 'else']);
then: thenBranch,
else: elseBranch,
} = readConfig(argument, ['name', 'source', 'if', 'then', 'else']);

@@ -21,13 +22,17 @@ const checker =

guard({
source,
filter: checker,
target: thenBranch,
});
if (thenBranch) {
guard({
source,
filter: checker,
target: thenBranch,
});
}
guard({
source,
filter: inverse(checker),
target: elseBranch,
});
if (elseBranch) {
guard({
source,
filter: inverse(checker),
target: elseBranch,
});
}

@@ -34,0 +39,0 @@ return source;

@@ -32,3 +32,3 @@ const { is, createEffect, forward, createEvent } = require('effector');

const timerFx = createEffect({
name: `${actualName}ThrottleTimer`,
name: `${actualName}DebounceTimer`,
sid,

@@ -35,0 +35,0 @@ loc,

@@ -28,2 +28,4 @@ const { createEffect, createEvent, forward, is, sample } = require('effector');

sample({
// ms can be Store<number> | number
// sample calls combine() on source to convert object of stores or object of values to store
source: { milliseconds: ms },

@@ -30,0 +32,0 @@ clock: source,

{
"name": "patronum",
"version": "0.105.3",
"version": "0.106.0",
"description": "☄️ Effector utility library delivering modularity and convenience",

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

@@ -5,7 +5,10 @@ const { createStore } = require('effector');

function status(argument) {
const { effect, defaultValue = 'initial' } = readConfig(argument, [
'effect',
'defaultValue',
]);
const $status = createStore(defaultValue);
const {
sid,
name,
loc,
effect,
defaultValue = 'initial',
} = readConfig(argument, ['sid', 'name', 'loc', 'effect', 'defaultValue']);
const $status = createStore(defaultValue, { sid, loc, name });

@@ -12,0 +15,0 @@ $status

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