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

@0g/react

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0g/react - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

2

dist/hooks/useWatch.d.ts
import { ComponentInstance } from '0g';
export declare function useWatch<C extends ComponentInstance<unknown>>(component: C, onChange: (current: C) => any): void;
export declare function useWatch<C extends ComponentInstance>(component: C, onChange: (current: C) => any): void;

@@ -6,3 +6,3 @@ import { useFrame } from './useFrame.js';

useFrame(() => {
if (game.componentManager.wasChangedLastFrame(component.id)) {
if (game.componentManager.wasChangedLastFrame(component.$.id)) {
onChange(component);

@@ -9,0 +9,0 @@ }

{
"name": "@0g/react",
"version": "1.0.2",
"version": "2.0.0",
"description": "",

@@ -35,3 +35,3 @@ "type": "module",

"peerDependencies": {
"0g": "0.1.2",
"0g": "0.2.0",
"react": "^18.0.0"

@@ -47,3 +47,3 @@ },

"typescript": "5.4.5",
"0g": "0.1.2"
"0g": "0.2.0"
},

@@ -50,0 +50,0 @@ "dependencies": {},

@@ -5,3 +5,3 @@ import { ComponentInstance } from '0g';

export function useWatch<C extends ComponentInstance<unknown>>(
export function useWatch<C extends ComponentInstance>(
component: C,

@@ -12,3 +12,3 @@ onChange: (current: C) => any,

useFrame(() => {
if (game.componentManager.wasChangedLastFrame(component.id)) {
if (game.componentManager.wasChangedLastFrame(component.$.id)) {
onChange(component);

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

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