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

fluidstate

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluidstate - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

1

api.d.ts

@@ -8,2 +8,3 @@ import { Configuration } from "./types";

configure: (newConfiguration: Partial<Configuration>) => void;
getConfiguration: () => Configuration;
createCustomObserved: <T_3>(inert: import("./types").InertControl<T_3>) => import("./types").Observed<T_3>;

@@ -10,0 +11,0 @@ createEmptyObserved: () => import("./types").Observed<void>;

4

api.js

@@ -15,3 +15,4 @@ "use strict";

configuration,
configure
configure,
getConfiguration
} = (0, _configuration.createConfiguration)(defaultConfiguration);

@@ -37,2 +38,3 @@ const nodeCollector = (0, _nodeCollector.createNodeCollector)();

configure,
getConfiguration,
createCustomObserved,

@@ -39,0 +41,0 @@ createEmptyObserved,

@@ -5,2 +5,3 @@ import { Configuration } from "./types";

configure: (newConfiguration: Partial<Configuration>) => void;
getConfiguration: () => Configuration;
};

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

const configuration = {
setCallback: null,
scheduleFunction: scheduleDefault,

@@ -23,5 +22,2 @@ cancelFunction: cancelDefault

const configure = newConfiguration => {
if (newConfiguration.setCallback !== undefined) {
configuration.setCallback = newConfiguration.setCallback;
}
if (newConfiguration.scheduleFunction !== undefined) {

@@ -37,7 +33,11 @@ configuration.scheduleFunction = newConfiguration.scheduleFunction;

}
const getConfiguration = () => {
return configuration;
};
return {
configuration,
configure
configure,
getConfiguration
};
}
//# sourceMappingURL=configuration.js.map

@@ -8,2 +8,3 @@ import { createApi } from "./api";

configure: (newConfiguration: Partial<import("./types").Configuration>) => void;
getConfiguration: () => import("./types").Configuration;
createCustomObserved: <T_3>(inert: import("./types").InertControl<T_3>) => import("./types").Observed<T_3>;

@@ -28,3 +29,3 @@ createEmptyObserved: () => import("./types").Observed<void>;

};
declare const configure: (newConfiguration: Partial<import("./types").Configuration>) => void, batch: (update: () => void) => void, triggerUpdate: ({ shouldResolveImmediatelyAfterBatch, }?: {
declare const configure: (newConfiguration: Partial<import("./types").Configuration>) => void, getConfiguration: () => import("./types").Configuration, batch: (update: () => void) => void, triggerUpdate: ({ shouldResolveImmediatelyAfterBatch, }?: {
shouldResolveImmediatelyAfterBatch?: boolean | undefined;

@@ -41,2 +42,6 @@ }) => void;

/**
* Get current configuration of the default `fluidstate` instance
*/
getConfiguration,
/**
* Given a function, run it, while preventing recalculations and effects until

@@ -43,0 +48,0 @@ * the function finished running

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

});
exports.triggerUpdate = exports.getReactive = exports.getInert = exports.getComputedKeys = exports.defaultReactiveApi = exports.defaultApi = void 0;
exports.triggerUpdate = exports.getReactive = exports.getInert = exports.getConfiguration = exports.getComputedKeys = exports.defaultReactiveApi = exports.defaultApi = void 0;
var _api = require("./api");

@@ -30,2 +30,3 @@ var _reactiveApi = require("./reactive-api");

configure,
getConfiguration,
batch,

@@ -36,2 +37,3 @@ triggerUpdate

exports.batch = batch;
exports.getConfiguration = getConfiguration;
exports.configure = configure;

@@ -38,0 +40,0 @@ const {

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

const set = (node, newValue) => {
if (configuration.setCallback) {
configuration.setCallback(node, newValue);
}
updateManager.set(node, newValue);

@@ -54,0 +51,0 @@ };

{
"name": "fluidstate",
"version": "0.0.9",
"version": "0.0.10",
"description": "Library for fine-grained reactivity state management",

@@ -5,0 +5,0 @@ "repository": "https://gitlab.com/fluidstate/fluidstate",

@@ -22,3 +22,2 @@ export type ProxyApi = {

export type Configuration = {
setCallback: null | (<T>(node: Node<T>, value: T) => void);
scheduleFunction: (update: () => void) => any;

@@ -25,0 +24,0 @@ cancelFunction: (scheduledId: any) => void;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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