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

@ledgerhq/live-network

Package Overview
Dependencies
Maintainers
7
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/live-network - npm Package Compare versions

Comparing version 1.2.0-nightly.2 to 1.2.0

22

CHANGELOG.md
# @ledgerhq/live-network
## 1.2.0-nightly.2
## 1.2.0
### Patch Changes
### Minor Changes
- Updated dependencies [[`fc4f83e`](https://github.com/LedgerHQ/ledger-live/commit/fc4f83e26d9f00b7c518f28157e8d9da55ce3685)]:
- @ledgerhq/errors@6.16.3-nightly.1
- [#6172](https://github.com/LedgerHQ/ledger-live/pull/6172) [`7fb3eb2`](https://github.com/LedgerHQ/ledger-live/commit/7fb3eb266acdca143c94d2fce74329809ebfbb79) Thanks [@sprohaszka-ledger](https://github.com/sprohaszka-ledger)! - Remove API injection in coin-module
## 1.2.0-nightly.1
### Patch Changes
- Updated dependencies [[`26b3a5d`](https://github.com/LedgerHQ/ledger-live/commit/26b3a5d7d6e11efc226403707d683f3d0098a1c1)]:
- @ledgerhq/errors@6.16.3-nightly.0
- Updated dependencies [[`4744c31`](https://github.com/LedgerHQ/ledger-live/commit/4744c3136021f1f47ad1617f2c84f47ac0647370), [`0dd1546`](https://github.com/LedgerHQ/ledger-live/commit/0dd15467070cbf7fcbb9d9055a4535f6a25b2ad0), [`f456d69`](https://github.com/LedgerHQ/ledger-live/commit/f456d69a2f64b6a217d3c1d9c6a531f31c2817a8)]:
- @ledgerhq/live-env@2.0.0
- @ledgerhq/errors@6.16.3
## 1.2.0-nightly.0
## 1.2.0-next.0

@@ -23,2 +21,8 @@ ### Minor Changes

### Patch Changes
- Updated dependencies [[`4744c31`](https://github.com/LedgerHQ/ledger-live/commit/4744c3136021f1f47ad1617f2c84f47ac0647370), [`0dd1546`](https://github.com/LedgerHQ/ledger-live/commit/0dd15467070cbf7fcbb9d9055a4535f6a25b2ad0), [`f456d69`](https://github.com/LedgerHQ/ledger-live/commit/f456d69a2f64b6a217d3c1d9c6a531f31c2817a8)]:
- @ledgerhq/live-env@2.0.0-next.0
- @ledgerhq/errors@6.16.3-next.0
## 1.1.13

@@ -25,0 +29,0 @@

import LRU from "lru-cache";
export type CacheOptions = LRU.Options<string, unknown>;
export declare function seconds(num: number, max?: number): CacheOptions;
export declare function minutes(num: number, max?: number): CacheOptions;
export declare function hours(num: number, max?: number): CacheOptions;
export type CacheRes<A extends Array<any>, T> = {

@@ -7,0 +3,0 @@ (...args: A): Promise<T>;

import LRU from "lru-cache";
export function seconds(num, max = 100) {
return {
max,
ttl: num * 1000,
};
}
export function minutes(num, max = 100) {
return seconds(num * 60, max);
}
export function hours(num, max = 100) {
return minutes(num * 60, max);
}
/**

@@ -15,0 +3,0 @@ * Creates an LRU cache function that wraps the given async function `f`.

import LRU from "lru-cache";
export type CacheOptions = LRU.Options<string, unknown>;
export declare function seconds(num: number, max?: number): CacheOptions;
export declare function minutes(num: number, max?: number): CacheOptions;
export declare function hours(num: number, max?: number): CacheOptions;
export type CacheRes<A extends Array<any>, T> = {

@@ -7,0 +3,0 @@ (...args: A): Promise<T>;

@@ -6,19 +6,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.makeLRUCache = exports.hours = exports.minutes = exports.seconds = void 0;
exports.makeLRUCache = void 0;
const lru_cache_1 = __importDefault(require("lru-cache"));
function seconds(num, max = 100) {
return {
max,
ttl: num * 1000,
};
}
exports.seconds = seconds;
function minutes(num, max = 100) {
return seconds(num * 60, max);
}
exports.minutes = minutes;
function hours(num, max = 100) {
return minutes(num * 60, max);
}
exports.hours = hours;
/**

@@ -25,0 +10,0 @@ * Creates an LRU cache function that wraps the given async function `f`.

{
"name": "@ledgerhq/live-network",
"version": "1.2.0-nightly.2",
"version": "1.2.0",
"description": "Ledger Live network and cache utilities",

@@ -55,4 +55,4 @@ "keywords": [

"lru-cache": "^7.14.1",
"@ledgerhq/errors": "^6.16.3-nightly.1",
"@ledgerhq/live-env": "^1.0.1",
"@ledgerhq/errors": "^6.16.3",
"@ledgerhq/live-env": "^2.0.0",
"@ledgerhq/live-promise": "^0.0.3",

@@ -59,0 +59,0 @@ "@ledgerhq/logs": "^6.12.0"

import LRU from "lru-cache";
export type CacheOptions = LRU.Options<string, unknown>; //{ max: number; ttl: number };
export function seconds(num: number, max = 100): CacheOptions {
return {
max,
ttl: num * 1000,
};
}
export function minutes(num: number, max = 100): CacheOptions {
return seconds(num * 60, max);
}
export function hours(num: number, max = 100): CacheOptions {
return minutes(num * 60, max);
}
export type CacheRes<A extends Array<any>, T> = {

@@ -18,0 +4,0 @@ (...args: A): Promise<T>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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