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 3.0.0 to 4.0.0

9

CHANGELOG.md

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

## [4.0.0]
### Changed
- **BREAKING:** Bump `@metamask/network-controller` dependency and peer dependency from `^17.0.0` to `^17.1.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
- Bump `@metamask/base-controller` to `^4.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695))
- Bump `@metamask/controller-utils` to `^8.0.1` ([#3695](https://github.com/MetaMask/core/pull/3695), [#3678](https://github.com/MetaMask/core/pull/3678))
## [3.0.0]

@@ -57,3 +63,4 @@ ### Added

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

@@ -60,0 +67,0 @@ [2.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@1.0.2...@metamask/polling-controller@2.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 "__#93090@#pollingTokenSets": Map<PollingTokenSetId, Set<string>>;
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#93085@#pollingTokenSets": Map<PollingTokenSetId, Set<string>>;
"__#93085@#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[]) => {
"__#93091@#activeListeners": Record<string, (options: Json) => Promise<void>>;
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>;
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void;
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#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[]) => {
"__#93091@#activeListeners": Record<string, (options: Json) => Promise<void>>;
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>;
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void;
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#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[]) => {
"__#93091@#activeListeners": Record<string, (options: Json) => Promise<void>>;
"__#93086@#activeListeners": Record<string, (options: Json) => Promise<void>>;
_getNetworkClientById(networkClientId: NetworkClientId): NetworkClient | undefined;
_startPollingByNetworkClientId(networkClientId: NetworkClientId, options: Json): void;
_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#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 "__#93092@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93092@#intervalLength": number | undefined;
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93087@#intervalLength": number | undefined;
setIntervalLength(intervalLength: number): void;

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

_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#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 "__#93092@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93092@#intervalLength": number | undefined;
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93087@#intervalLength": number | undefined;
setIntervalLength(intervalLength: number): void;

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

_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#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 "__#93092@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93092@#intervalLength": number | undefined;
readonly "__#93087@#intervalIds": Record<PollingTokenSetId, NodeJS.Timeout>;
"__#93087@#intervalLength": number | undefined;
setIntervalLength(intervalLength: number): void;

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

_stopPollingByPollingTokenSetId(key: PollingTokenSetId): void;
readonly "__#93090@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93090@#callbacks": Map<`${string}:${string}`, Set<(PollingTokenSetId: `${string}:${string}`) => void>>;
readonly "__#93085@#pollingTokenSets": Map<`${string}:${string}`, Set<string>>;
"__#93085@#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": "3.0.0",
"version": "4.0.0",
"description": "Polling Controller is the base for controllers that polling by networkClientId",

@@ -25,2 +25,3 @@ "keywords": [

"build:docs": "typedoc",
"changelog:update": "../../scripts/update-changelog.sh @metamask/polling-controller",
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/polling-controller",

@@ -34,5 +35,5 @@ "publish:preview": "yarn npm publish --tag preview",

"dependencies": {
"@metamask/base-controller": "^4.0.0",
"@metamask/controller-utils": "^7.0.0",
"@metamask/network-controller": "^17.0.0",
"@metamask/base-controller": "^4.0.1",
"@metamask/controller-utils": "^8.0.1",
"@metamask/network-controller": "^17.1.0",
"@metamask/utils": "^8.2.0",

@@ -44,3 +45,3 @@ "@types/uuid": "^8.3.0",

"devDependencies": {
"@metamask/auto-changelog": "^3.4.3",
"@metamask/auto-changelog": "^3.4.4",
"@types/jest": "^27.4.1",

@@ -56,3 +57,3 @@ "deepmerge": "^4.2.2",

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

@@ -59,0 +60,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