Agoric / ui-kit

Components and tools for building graphical UIs
https://ui-kit-dwm.pages.dev/
Apache License 2.0
3 stars 3 forks source link

feat(chainStorageWatcher): enable non-browser compatability #74

Closed 0xpatrickdev closed 5 months ago

0xpatrickdev commented 5 months ago

closes: #XXXX refs: #47

Description

Replaces window.(set|clear)Timeout() with globalThis.(set|clear)Timeout() so this export can be used in Node.js.

Security Considerations

This change might involve ambient authority (globalThis), but this authority was already present in the original implementation.

Scaling Considerations

N/A

Documentation Considerations

When #47 is closed, we should update docs to explain Node.js support.

Testing Considerations

Existing tests should cover these changes.