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

s-js

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s-js - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

bench/bench-after-default-compat.txt

0

dist/es/S.d.ts

@@ -0,0 +0,0 @@ export interface S {

6

dist/es/S.js

@@ -5,3 +5,3 @@ // Public interface

if (owner === null)
console.warn("computations created without a root or parent cannot be disposed");
console.warn("computations created without a root or parent will never be disposed");
var node = new ComputationNode(fn, value);

@@ -36,2 +36,4 @@ Owner = RunningNode = node;

};
// compatibility with commonjs systems that expect default export to be at require('s.js').default rather than just require('s-js')
Object.defineProperty(S, 'default', { value: S });
export default S;

@@ -182,3 +184,3 @@ S.root = function root(fn) {

else {
throw new Error("S.cleanup() must be called from within an S() computation. Cannot call it at toplevel.");
console.warn("cleanups created without a root or parent will never be run");
}

@@ -185,0 +187,0 @@ };

@@ -0,0 +0,0 @@ export interface S {

@@ -5,3 +5,3 @@ // Public interface

if (owner === null)
console.warn("computations created without a root or parent cannot be disposed");
console.warn("computations created without a root or parent will never be disposed");
var node = new ComputationNode(clock, fn, value);

@@ -73,2 +73,4 @@ Owner = RunningNode = node;

};
// compatibility with commonjs systems that expect default export to be at require('s.js').default rather than just require('s-js')
Object.defineProperty(S, 'default', { value: S });
export default S;

@@ -239,3 +241,3 @@ S.root = function root(fn) {

else {
throw new Error("S.cleanup() must be called from within an S() computation. Cannot call it at toplevel.");
console.warn("cleanups created without a root or parent will never be run");
}

@@ -289,5 +291,5 @@ };

};
Clock.count = 0;
return Clock;
}());
Clock.count = 0;
var DataNode = (function () {

@@ -294,0 +296,0 @@ function DataNode(clock, value) {

@@ -11,3 +11,3 @@ (function (global, factory) {

if (owner === null)
console.warn("computations created without a root or parent cannot be disposed");
console.warn("computations created without a root or parent will never be disposed");
var node = new ComputationNode(fn, value);

@@ -42,2 +42,4 @@ Owner = RunningNode = node;

};
// compatibility with commonjs systems that expect default export to be at require('s.js').default rather than just require('s-js')
Object.defineProperty(S, 'default', { value: S });
S.root = function root(fn) {

@@ -187,3 +189,3 @@ var owner = Owner, root = fn.length === 0 ? UNOWNED : new ComputationNode(null, null), result = undefined, disposer = fn.length === 0 ? null : function _dispose() {

else {
throw new Error("S.cleanup() must be called from within an S() computation. Cannot call it at toplevel.");
console.warn("cleanups created without a root or parent will never be run");
}

@@ -190,0 +192,0 @@ };

@@ -11,3 +11,3 @@ (function (global, factory) {

if (owner === null)
console.warn("computations created without a root or parent cannot be disposed");
console.warn("computations created without a root or parent will never be disposed");
var node = new ComputationNode(clock, fn, value);

@@ -79,2 +79,4 @@ Owner = RunningNode = node;

};
// compatibility with commonjs systems that expect default export to be at require('s.js').default rather than just require('s-js')
Object.defineProperty(S, 'default', { value: S });
S.root = function root(fn) {

@@ -244,3 +246,3 @@ var owner = Owner, root = fn.length === 0 ? UNOWNED : new ComputationNode(RunningClock || RootClock, null, null), result = undefined, disposer = fn.length === 0 ? null : function _dispose() {

else {
throw new Error("S.cleanup() must be called from within an S() computation. Cannot call it at toplevel.");
console.warn("cleanups created without a root or parent will never be run");
}

@@ -294,5 +296,5 @@ };

};
Clock.count = 0;
return Clock;
}());
Clock.count = 0;
var DataNode = (function () {

@@ -299,0 +301,0 @@ function DataNode(clock, value) {

{
"name": "s-js",
"version": "0.4.3",
"version": "0.4.4",
"description": "S.js - simple, clean, fast reactive programming in Javascript",

@@ -14,4 +14,4 @@ "main": "dist/S.js",

"karma-chrome-launcher": "^2.1.1",
"rollup": "^0.41.6",
"typescript": "^2.3.2"
"rollup": "^0.45.2",
"typescript": "^2.4.1"
},

@@ -18,0 +18,0 @@ "scripts": {

@@ -69,2 +69,5 @@

// compatibility with commonjs systems that expect default export to be at require('s.js').default rather than just require('s-js')
Object.defineProperty(S, 'default', { value : S });
export default S;

@@ -218,3 +221,3 @@

S.cleanup = function cleanup(fn : () => void) : void {
S.cleanup = function cleanup(fn : (final : boolean) => void) : void {
if (Owner !== null) {

@@ -221,0 +224,0 @@ if (Owner.cleanups === null) Owner.cleanups = [fn];

@@ -41,3 +41,3 @@

if (owner === null) console.warn("computations created without a root or parent cannot be disposed");
if (owner === null) console.warn("computations created without a root or parent will never be disposed");

@@ -112,2 +112,5 @@ var node = new ComputationNode(clock, fn, value);

// compatibility with commonjs systems that expect default export to be at require('s.js').default rather than just require('s-js')
Object.defineProperty(S, 'default', { value : S });
export default S;

@@ -282,3 +285,3 @@

S.cleanup = function cleanup(fn : () => void) : void {
S.cleanup = function cleanup(fn : (final : boolean) => void) : void {
if (Owner !== null) {

@@ -285,0 +288,0 @@ if (Owner.cleanups === null) Owner.cleanups = [fn];

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