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

signia

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signia - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13-canary.65fac1f

4

index.d.ts

@@ -18,3 +18,3 @@ /**

* ```ts
* cosnt name = atom('name', 'John')
* const name = atom('name', 'John')
*

@@ -640,3 +640,3 @@ * console.log(name.value) // 'John'

/**
* When writing incrementally-computed signals it is convenient (and usually more performant) to incrememtally compute the diff too.
* When writing incrementally-computed signals it is convenient (and usually more performant) to incrementally compute the diff too.
*

@@ -643,0 +643,0 @@ * You can use this function to wrap the return value of a computed signal function to indicate that the diff should be used instead of calculating a new one with [[AtomOptions.computeDiff]].

@@ -5,3 +5,3 @@ {

"description": "A tiny little drawing reactive state management library.",
"version": "0.0.12",
"version": "0.0.13-canary.65fac1f",
"author": "tldraw GB Ltd.",

@@ -41,3 +41,2 @@ "license": "MIT",

},
"gitHead": "f4641f847d91af543a10833dd48c7a197ce1e840",
"module": "dist/index.mjs",

@@ -44,0 +43,0 @@ "source": "src/index.ts",

@@ -45,3 +45,3 @@ import { ArraySet } from './ArraySet'

* ```ts
* cosnt name = atom('name', 'John')
* const name = atom('name', 'John')
*

@@ -48,0 +48,0 @@ * console.log(name.value) // 'John'

@@ -48,3 +48,3 @@ /* eslint-disable prefer-rest-params */

/**
* When writing incrementally-computed signals it is convenient (and usually more performant) to incrememtally compute the diff too.
* When writing incrementally-computed signals it is convenient (and usually more performant) to incrementally compute the diff too.
*

@@ -51,0 +51,0 @@ * You can use this function to wrap the return value of a computed signal function to indicate that the diff should be used instead of calculating a new one with [[AtomOptions.computeDiff]].

@@ -34,6 +34,6 @@ import { Child, Signal } from './types'

/**
* Detatch a child from a parent.
* Detach a child from a parent.
*
* @param parent The parent to detatch from.
* @param child The child to detatch.
* @param parent The parent to detach from.
* @param child The child to detach.
*/

@@ -46,3 +46,3 @@ export const detach = (parent: Signal<any>, child: Child) => {

// If the parent has no more children, then detatch the parent from its parents.
// If the parent has no more children, then detach the parent from its parents.
if (parent.children.isEmpty && isChild(parent)) {

@@ -49,0 +49,0 @@ for (let i = 0, n = parent.parents.length; i < n; i++) {

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

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