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

@threlte/core

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@threlte/core - npm Package Compare versions

Comparing version 5.0.5 to 5.0.6

6

dist/CHANGELOG.md
# @threlte/core
## 5.0.6
### Patch Changes
- 357bb54: fixes a bug where if the initial value was nullish, it wasn't reset
## 5.0.5

@@ -4,0 +10,0 @@

7

dist/three/lib/useAttach.js
import { onDestroy } from 'svelte';
import { useThrelte } from '../../hooks/useThrelte';
import { resolve } from './resolve';
const initialValueBeforeAttach = Symbol('initialValueBeforeAttach');
export const useAttach = () => {
const { invalidate } = useThrelte();
let isAttached = false;
let valueBeforeAttach;
let valueBeforeAttach = initialValueBeforeAttach;
let detachFn;

@@ -49,5 +50,5 @@ // the target that the object is attached to

}
else if (attachedTo && attachedKey && valueBeforeAttach) {
else if (attachedTo && attachedKey && valueBeforeAttach !== initialValueBeforeAttach) {
attachedTo[attachedKey] = valueBeforeAttach;
valueBeforeAttach = undefined;
valueBeforeAttach = initialValueBeforeAttach;
attachedTo = undefined;

@@ -54,0 +55,0 @@ attachedKey = undefined;

{
"name": "@threlte/core",
"version": "5.0.5",
"version": "5.0.6",
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",

@@ -5,0 +5,0 @@ "license": "MIT",

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