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

@metamask/polling-controller

Package Overview
Dependencies
Maintainers
12
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/polling-controller - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

10

CHANGELOG.md

@@ -9,2 +9,9 @@ # Changelog

## [5.0.0]
### Changed
- **BREAKING:** Bump `@metamask/network-controller` peer dependency to `^17.2.0` ([#3821](https://github.com/MetaMask/core/pull/3821))
- Bump `@metamask/utils` to `^8.3.0` ([#3769](https://github.com/MetaMask/core/pull/3769))
- Bump `@metamask/base-controller` to `^4.1.1` ([#3760](https://github.com/MetaMask/core/pull/3760), [#3821](https://github.com/MetaMask/core/pull/3821))
- Bump `@metamask/controller-utils` to `^8.0.2` ([#3821](https://github.com/MetaMask/core/pull/3821))
## [4.0.0]

@@ -63,3 +70,4 @@ ### Changed

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@4.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@5.0.0...HEAD
[5.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@4.0.0...@metamask/polling-controller@5.0.0
[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@3.0.0...@metamask/polling-controller@4.0.0

@@ -66,0 +74,0 @@ [3.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@2.0.0...@metamask/polling-controller@3.0.0

4

dist/AbstractPollingController.d.ts

@@ -22,4 +22,4 @@ import type { NetworkClientId } from '@metamask/network-controller';

export declare function AbstractPollingControllerBaseMixin<TBase extends Constructor>(Base: TBase): (abstract new (...args: any[]) => {
readonly "__#93085@#pollingTokenSets": Map<PollingTokenSetId, Set<string>>;
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#97100@#pollingTokenSets": Map<PollingTokenSetId, Set<string>>;
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
_executePoll(networkClientId: NetworkClientId, options: Json): Promise<void>;

@@ -26,0 +26,0 @@ _startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void;

@@ -8,8 +8,8 @@ import { BaseController, BaseControllerV1 } from '@metamask/base-controller';

export declare const BlockTrackerPollingControllerOnly: (abstract new (...args: any[]) => {
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>;
"__#97101@#activeListeners": Record<string, (options: Json) => Promise<void>>;
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void;
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
_executePoll(networkClientId: string, options: Json): Promise<void>;

@@ -22,8 +22,8 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string;

export declare const BlockTrackerPollingController: (abstract new (...args: any[]) => {
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>;
"__#97101@#activeListeners": Record<string, (options: Json) => Promise<void>>;
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void;
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
_executePoll(networkClientId: string, options: Json): Promise<void>;

@@ -36,8 +36,8 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string;

export declare const BlockTrackerPollingControllerV1: (abstract new (...args: any[]) => {
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>;
"__#97101@#activeListeners": Record<string, (options: Json) => Promise<void>>;
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void;
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
_executePoll(networkClientId: string, options: Json): Promise<void>;

@@ -44,0 +44,0 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string;

@@ -13,4 +13,4 @@ /// <reference types="node" />

export declare const StaticIntervalPollingControllerOnly: (abstract new (...args: any[]) => {
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93087@#intervalLength": number | undefined;
readonly "__#97102@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#97102@#intervalLength": number | undefined;
setIntervalLength(intervalLength: number): void;

@@ -20,4 +20,4 @@ getIntervalLength(): number | undefined;

_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
_executePoll(networkClientId: string, options: Json): Promise<void>;

@@ -30,4 +30,4 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string;

export declare const StaticIntervalPollingController: (abstract new (...args: any[]) => {
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93087@#intervalLength": number | undefined;
readonly "__#97102@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#97102@#intervalLength": number | undefined;
setIntervalLength(intervalLength: number): void;

@@ -37,4 +37,4 @@ getIntervalLength(): number | undefined;

_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
_executePoll(networkClientId: string, options: Json): Promise<void>;

@@ -47,4 +47,4 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string;

export declare const StaticIntervalPollingControllerV1: (abstract new (...args: any[]) => {
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93087@#intervalLength": number | undefined;
readonly "__#97102@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#97102@#intervalLength": number | undefined;
setIntervalLength(intervalLength: number): void;

@@ -54,4 +54,4 @@ getIntervalLength(): number | undefined;

_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#97100@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#97100@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
_executePoll(networkClientId: string, options: Json): Promise<void>;

@@ -58,0 +58,0 @@ startPollingByNetworkClientId(networkClientId: string, options?: Json): string;

{
"name": "@metamask/polling-controller",
"version": "4.0.0",
"version": "5.0.0",
"description": "Polling Controller is the base for controllers that polling by networkClientId",

@@ -34,6 +34,6 @@ "keywords": [

"dependencies": {
"@metamask/base-controller": "^4.0.1",
"@metamask/controller-utils": "^8.0.1",
"@metamask/network-controller": "^17.1.0",
"@metamask/utils": "^8.2.0",
"@metamask/base-controller": "^4.1.1",
"@metamask/controller-utils": "^8.0.2",
"@metamask/network-controller": "^17.2.0",
"@metamask/utils": "^8.3.0",
"@types/uuid": "^8.3.0",

@@ -55,3 +55,3 @@ "fast-json-stable-stringify": "^2.1.0",

"peerDependencies": {
"@metamask/network-controller": "^17.1.0"
"@metamask/network-controller": "^17.2.0"
},

@@ -58,0 +58,0 @@ "engines": {

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