New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tldraw/state

Package Overview
Dependencies
Maintainers
4
Versions
1750
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tldraw/state - npm Package Compare versions

Comparing version 2.0.0-canary.c5fe3998429c to 2.0.0-canary.c893a02878ad

13

CHANGELOG.md

@@ -0,1 +1,14 @@

# v2.0.0-alpha.13 (Wed Jun 28 2023)
#### 🔩 Dependency Updates
- Incorporate signia as @tldraw/state [#1620](https://github.com/tldraw/tldraw/pull/1620) ([@steveruizok](https://github.com/steveruizok) [@ds300](https://github.com/ds300))
#### Authors: 2
- David Sheldrick ([@ds300](https://github.com/ds300))
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
---
# v2.0.0-alpha.12 (Mon Apr 03 2023)

@@ -2,0 +15,0 @@

8

dist-cjs/lib/core/capture.js

@@ -29,5 +29,5 @@ "use strict";

var import_helpers = require("./helpers");
const globalKey = Symbol.for("__@tldraw/state__");
const global = globalThis;
if (global[globalKey]) {
const tldrawStateGlobalKey = Symbol.for("__@tldraw/state__");
const tldrawStateGlobal = globalThis;
if (tldrawStateGlobal[tldrawStateGlobalKey]) {
console.error(

@@ -37,3 +37,3 @@ 'Multiple versions of @tldraw/state detected. This will cause unexpected behavior. Please add "resolutions" (yarn/pnpm) or "overrides" (npm) in your package.json to ensure only one version of @tldraw/state is loaded.'

} else {
global[globalKey] = true;
tldrawStateGlobal[tldrawStateGlobalKey] = true;
}

@@ -40,0 +40,0 @@ class CaptureStackFrame {

{
"name": "@tldraw/state",
"description": "A tiny little drawing app (state).",
"version": "2.0.0-canary.c5fe3998429c",
"version": "2.0.0-canary.c893a02878ad",
"packageManager": "yarn@3.5.0",

@@ -6,0 +6,0 @@ "author": {

import { attach, detach } from './helpers'
import { Child, Signal } from './types'
const globalKey = Symbol.for('__@tldraw/state__')
const global = globalThis as { [globalKey]?: true }
const tldrawStateGlobalKey = Symbol.for('__@tldraw/state__')
const tldrawStateGlobal = globalThis as { [tldrawStateGlobalKey]?: true }
if (global[globalKey]) {
if (tldrawStateGlobal[tldrawStateGlobalKey]) {
console.error(

@@ -12,3 +12,3 @@ 'Multiple versions of @tldraw/state detected. This will cause unexpected behavior. Please add "resolutions" (yarn/pnpm) or "overrides" (npm) in your package.json to ensure only one version of @tldraw/state is loaded.'

} else {
global[globalKey] = true
tldrawStateGlobal[tldrawStateGlobalKey] = true
}

@@ -15,0 +15,0 @@

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