Comparing version 0.0.11 to 0.0.12
@@ -29,2 +29,11 @@ "use strict"; | ||
var import_helpers = require("./helpers"); | ||
const signiaKey = Symbol.for("__signia__"); | ||
const global = globalThis; | ||
if (global[signiaKey]) { | ||
console.error( | ||
'Multiple versions of signia detected. This will cause unexpected behavior. Please add "resolutions" (yarn/pnpm) or "overrides" (npm) in your package.json to ensure only one version of signia is loaded.' | ||
); | ||
} else { | ||
global[signiaKey] = true; | ||
} | ||
class CaptureStackFrame { | ||
@@ -31,0 +40,0 @@ constructor(below, child) { |
@@ -5,3 +5,3 @@ { | ||
"description": "A tiny little drawing reactive state management library.", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"author": "tldraw GB Ltd.", | ||
@@ -41,3 +41,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "3875fe6eb82158af8ff01ff62c208be76b54c8fd", | ||
"gitHead": "f4641f847d91af543a10833dd48c7a197ce1e840", | ||
"module": "dist/index.mjs", | ||
@@ -44,0 +44,0 @@ "source": "src/index.ts", |
import { attach, detach } from './helpers' | ||
import { Child, Signal } from './types' | ||
const signiaKey = Symbol.for('__signia__') | ||
const global = globalThis as { [signiaKey]?: true } | ||
if (global[signiaKey]) { | ||
console.error( | ||
'Multiple versions of signia detected. This will cause unexpected behavior. Please add "resolutions" (yarn/pnpm) or "overrides" (npm) in your package.json to ensure only one version of signia is loaded.' | ||
) | ||
} else { | ||
global[signiaKey] = true | ||
} | ||
class CaptureStackFrame { | ||
@@ -5,0 +16,0 @@ offset = 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
302506
5705