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

@khanacademy/wonder-blocks-timing

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-timing - npm Package Compare versions

Comparing version 0.0.0-PR2414-20241220221259 to 0.0.0-PR2455-20250203223602

8

CHANGELOG.md
# @khanacademy/wonder-blocks-timing
## 0.0.0-PR2414-20241220221259
## 0.0.0-PR2455-20250203223602
### Major Changes
- 21a24a93: Fix bug with `useTimeout` and `useInterval` `clear` function where it didn't use the provided ClearPolicy
## 6.0.1
### Patch Changes

@@ -6,0 +12,0 @@

8

dist/es/index.js

@@ -252,3 +252,3 @@ import * as React from 'react';

},
clear: policy => {
clear: (policy = clearPolicy) => {
var _intervalRef$current4;

@@ -261,3 +261,3 @@ (_intervalRef$current4 = intervalRef.current) == null ? void 0 : _intervalRef$current4.clear(policy);

}
}), []);
}), [clearPolicy]);
return externalApi;

@@ -299,3 +299,3 @@ }

},
clear: policy => {
clear: (policy = clearPolicy) => {
var _timeoutRef$current4;

@@ -308,3 +308,3 @@ (_timeoutRef$current4 = timeoutRef.current) == null ? void 0 : _timeoutRef$current4.clear(policy);

}
}), []);
}), [clearPolicy]);
return externalApi;

@@ -311,0 +311,0 @@ }

@@ -28,4 +28,6 @@ import type { IInterval, HookOptions } from "../util/types";

* API is a no-op if called when not mounted. This means that any calls prior
* to mounting or after unmounting will not have any effect.
* to mounting or after unmounting will not have any effect. This API is
* not reactive, so do not deconstruct the return value, but instead
* dereference it at the time of use.
*/
export declare function useInterval(action: () => unknown, intervalMs: number, options?: HookOptions): IInterval;

@@ -28,4 +28,6 @@ import type { ITimeout, HookOptions } from "../util/types";

* API is a no-op if called when not mounted. This means that any calls prior
* to mounting or after unmounting will not have any effect.
* to mounting or after unmounting will not have any effect. This API is
* not reactive, so do not deconstruct the return value, but instead
* dereference it at the time of use.
*/
export declare function useTimeout(action: () => unknown, timeoutMs: number, options?: HookOptions): ITimeout;

@@ -275,3 +275,3 @@ 'use strict';

},
clear: policy => {
clear: (policy = clearPolicy) => {
var _intervalRef$current4;

@@ -284,3 +284,3 @@ (_intervalRef$current4 = intervalRef.current) == null ? void 0 : _intervalRef$current4.clear(policy);

}
}), []);
}), [clearPolicy]);
return externalApi;

@@ -322,3 +322,3 @@ }

},
clear: policy => {
clear: (policy = clearPolicy) => {
var _timeoutRef$current4;

@@ -331,3 +331,3 @@ (_timeoutRef$current4 = timeoutRef.current) == null ? void 0 : _timeoutRef$current4.clear(policy);

}
}), []);
}), [clearPolicy]);
return externalApi;

@@ -334,0 +334,0 @@ }

{
"name": "@khanacademy/wonder-blocks-timing",
"private": false,
"version": "0.0.0-PR2414-20241220221259",
"version": "0.0.0-PR2455-20250203223602",
"design": "v1",

@@ -22,3 +22,3 @@ "publishConfig": {

"@khanacademy/wb-dev-build-settings": "^2.0.0",
"@khanacademy/wonder-blocks-testing-core": "0.0.0-PR2414-20241220221259"
"@khanacademy/wonder-blocks-testing-core": "^2.0.1"
},

@@ -25,0 +25,0 @@ "author": "",

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