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

@xylabs/forget

Package Overview
Dependencies
Maintainers
7
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/forget - npm Package Compare versions

Comparing version 2.6.16 to 2.7.0

21

.tsconfig.build.cjs.json
{
"compilerOptions": {
"rootDir": "./src",
"rootDirs": [
"package.json"
],
"baseUrl": ".",
"composite": true,
"declarationDir": "./dist/types",
"outDir": "././dist/cjs",
"module": "CommonJS",
"outDir": "./dist/cjs",
"target": "ES6"
},
"extends": "../../tsconfig.json",
"include": [
"src/**/*",
"src"
],
"exclude": [
"**/build",
"**/dist",
"**/node_modules",
"**/*.spec.*",

@@ -14,7 +29,3 @@ "**/*.spec",

"**/stories/*"
],
"extends": "./tsconfig.json",
"include": [
"src"
]
}
{
"compilerOptions": {
"module": "ES2022",
"outDir": "./dist/esm",
"target": "ES2022"
"rootDir": "./src",
"rootDirs": [
"package.json"
],
"baseUrl": ".",
"composite": true,
"declarationDir": "./dist/types",
"outDir": "././dist/esm",
"module": "ESNext",
"target": "ESNext"
},
"extends": "../../tsconfig.json",
"include": [
"src/**/*",
"src"
],
"exclude": [
"**/build",
"**/dist",
"**/node_modules",
"**/*.spec.*",

@@ -14,7 +29,3 @@ "**/*.spec",

"**/stories/*"
],
"extends": "./tsconfig.json",
"include": [
"src"
]
}

@@ -20,3 +20,3 @@ {

"character": 0,
"url": "https://github.com/xylabs/sdk-js/blob/5cd9095/packages/forget/src/index.ts#L6"
"url": "https://github.com/xylabs/sdk-js/blob/089a04a/packages/forget/src/index.ts#L6"
}

@@ -55,3 +55,3 @@ ],

{
"id": 8,
"id": 6,
"name": "activeForgets",

@@ -66,5 +66,5 @@ "kind": 1024,

"fileName": "forget.ts",
"line": 13,
"line": 9,
"character": 9,
"url": "https://github.com/xylabs/sdk-js/blob/5cd9095/packages/forget/src/forget.ts#L13"
"url": "https://github.com/xylabs/sdk-js/blob/089a04a/packages/forget/src/forget.ts#L9"
}

@@ -79,3 +79,3 @@ ],

{
"id": 6,
"id": 7,
"name": "active",

@@ -90,9 +90,9 @@ "kind": 262144,

"fileName": "forget.ts",
"line": 9,
"line": 11,
"character": 13,
"url": "https://github.com/xylabs/sdk-js/blob/5cd9095/packages/forget/src/forget.ts#L9"
"url": "https://github.com/xylabs/sdk-js/blob/089a04a/packages/forget/src/forget.ts#L11"
}
],
"getSignature": {
"id": 7,
"id": 8,
"name": "active",

@@ -121,3 +121,3 @@ "kind": 524288,

"character": 15,
"url": "https://github.com/xylabs/sdk-js/blob/5cd9095/packages/forget/src/forget.ts#L15"
"url": "https://github.com/xylabs/sdk-js/blob/089a04a/packages/forget/src/forget.ts#L15"
}

@@ -187,3 +187,3 @@ ],

"character": 9,
"url": "https://github.com/xylabs/sdk-js/blob/5cd9095/packages/forget/src/forget.ts#L30"
"url": "https://github.com/xylabs/sdk-js/blob/089a04a/packages/forget/src/forget.ts#L30"
}

@@ -250,3 +250,3 @@ ],

"children": [
8
6
]

@@ -257,3 +257,3 @@ },

"children": [
6
7
]

@@ -274,3 +274,3 @@ },

"character": 13,
"url": "https://github.com/xylabs/sdk-js/blob/5cd9095/packages/forget/src/forget.ts#L8"
"url": "https://github.com/xylabs/sdk-js/blob/089a04a/packages/forget/src/forget.ts#L8"
}

@@ -290,3 +290,3 @@ ]

"character": 13,
"url": "https://github.com/xylabs/sdk-js/blob/5cd9095/packages/forget/src/forget.ts#L73"
"url": "https://github.com/xylabs/sdk-js/blob/089a04a/packages/forget/src/forget.ts#L73"
}

@@ -368,5 +368,5 @@ ],

"character": 0,
"url": "https://github.com/xylabs/sdk-js/blob/5cd9095/packages/forget/src/index.ts#L1"
"url": "https://github.com/xylabs/sdk-js/blob/089a04a/packages/forget/src/index.ts#L1"
}
]
}
import { delay } from '@xylabs/delay';
export class ForgetPromise {
static activeForgets = 0;
static get active() {
return this.activeForgets > 0;
}
static activeForgets = 0;
static async awaitInactive(interval = 100, timeout) {

@@ -8,0 +8,0 @@ let timeoutRemaining = timeout;

export interface ForgetTimeoutConfig {
cancel: () => void;
delay: number;
cancel: () => void;
}
export declare class ForgetPromise {
static activeForgets: number;
static get active(): boolean;
static activeForgets: number;
static awaitInactive(interval?: number, timeout?: number): Promise<number>;

@@ -9,0 +9,0 @@ static forget(promise: Promise<unknown>, timeout?: ForgetTimeoutConfig): void;

@@ -44,7 +44,7 @@ {

"dependencies": {
"@xylabs/delay": "^2.6.16"
"@xylabs/delay": "^2.7.0"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^2.12.23",
"@xylabs/tsconfig": "^2.12.23"
"@xylabs/ts-scripts-yarn3": "^2.13.11",
"@xylabs/tsconfig": "^2.13.11"
},

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

"sideEffects": false,
"version": "2.6.16"
"version": "2.7.0"
}
import { delay } from '@xylabs/delay'
export interface ForgetTimeoutConfig {
cancel: () => void
delay: number
cancel: () => void
}
export class ForgetPromise {
static activeForgets = 0
static get active() {

@@ -13,4 +15,2 @@ return this.activeForgets > 0

static activeForgets = 0
static async awaitInactive(interval = 100, timeout?: number) {

@@ -17,0 +17,0 @@ let timeoutRemaining = timeout

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