Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@peerbit/cache

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/cache - npm Package Compare versions

Comparing version
2.1.4
to
2.1.5-5d6b35a
+2
-2
dist/src/index.js
// Fifo
import yallist from "yallist";
import { Yallist } from "yallist";
export class Cache {

@@ -82,3 +82,3 @@ _map;

clear() {
this.list = yallist.create();
this.list = Yallist.create();
this._map = new Map();

@@ -85,0 +85,0 @@ this.deleted = new Set();

{
"name": "@peerbit/cache",
"version": "2.1.4",
"description": "Simple cache",
"type": "module",
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "peerbit",
"parserOptions": {
"project": true,
"sourceType": "module"
},
"ignorePatterns": [
"!.aegir.js",
"test/ts-use",
"*.d.ts"
]
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/dao-xyz/peerbit"
},
"homepage": "https://github.com/dao-xyz/peerbit",
"bugs": "https://github.com/dao-xyz/peerbit/issues",
"scripts": {
"clean": "aegir clean",
"build": "aegir build --no-bundle",
"test": "aegir test",
"lint": "aegir lint"
},
"license": "MIT",
"devDependencies": {
"@peerbit/time": "2.2.0",
"@types/yallist": "^4.0.4"
},
"dependencies": {
"yallist": "^4.0.0"
},
"localMaintainers": [
"dao.xyz"
]
"name": "@peerbit/cache",
"version": "2.1.5-5d6b35a",
"description": "Simple cache",
"type": "module",
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "peerbit",
"parserOptions": {
"project": true,
"sourceType": "module"
},
"ignorePatterns": [
"!.aegir.js",
"test/ts-use",
"*.d.ts"
]
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/dao-xyz/peerbit"
},
"homepage": "https://github.com/dao-xyz/peerbit",
"bugs": "https://github.com/dao-xyz/peerbit/issues",
"scripts": {
"clean": "aegir clean",
"build": "aegir build --no-bundle",
"test": "aegir test",
"lint": "aegir lint"
},
"license": "MIT",
"devDependencies": {
"@peerbit/time": "2.2.0-5d6b35a"
},
"dependencies": {
"yallist": "^5.0.0"
},
"localMaintainers": [
"dao.xyz"
]
}
// Fifo
import yallist from "yallist";
import { Yallist } from "yallist";

@@ -13,3 +13,3 @@ export interface CacheData<T> {

private deleted: Set<Key>;
private list: yallist<Key>;
private list: Yallist<Key>;
currentSize: number;

@@ -96,3 +96,3 @@ deletedSize: number;

clear() {
this.list = yallist.create();
this.list = Yallist.create();
this._map = new Map();

@@ -99,0 +99,0 @@ this.deleted = new Set();

Sorry, the diff of this file is not supported yet