Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blocksuite/global

Package Overview
Dependencies
Maintainers
0
Versions
1175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/global - npm Package Compare versions

Comparing version 0.0.0-canary-20241118001545 to 0.0.0-canary-20241119001457

2

CHANGELOG.md
# @blocksuite/global
## 0.0.0-canary-20241118001545
## 0.0.0-canary-20241119001457

@@ -5,0 +5,0 @@ ### Patch Changes

@@ -29,2 +29,3 @@ export declare function sleep(ms: number, signal?: AbortSignal): Promise<void>;

}) => T;
export declare function nextTick(): Promise<any>;
//# sourceMappingURL=function.d.ts.map

@@ -74,2 +74,15 @@ export async function sleep(ms, signal) {

};
export async function nextTick() {
// @ts-ignore
if ('scheduler' in window && 'yield' in window.scheduler) {
// @ts-ignore
return window.scheduler.yield();
}
else if (typeof requestIdleCallback !== 'undefined') {
return new Promise(resolve => requestIdleCallback(resolve));
}
else {
return new Promise(resolve => setTimeout(resolve, 0));
}
}
//# sourceMappingURL=function.js.map
{
"name": "@blocksuite/global",
"version": "0.0.0-canary-20241118001545",
"version": "0.0.0-canary-20241119001457",
"types": "./index.d.ts",

@@ -5,0 +5,0 @@ "type": "module",

@@ -115,1 +115,13 @@ export async function sleep(ms: number, signal?: AbortSignal): Promise<void> {

};
export async function nextTick() {
// @ts-ignore
if ('scheduler' in window && 'yield' in window.scheduler) {
// @ts-ignore
return window.scheduler.yield();
} else if (typeof requestIdleCallback !== 'undefined') {
return new Promise(resolve => requestIdleCallback(resolve));
} else {
return new Promise(resolve => setTimeout(resolve, 0));
}
}

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