New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aofl/cache-manager

Package Overview
Dependencies
Maintainers
3
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aofl/cache-manager - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

2

package.json
{
"name": "@aofl/cache-manager",
"version": "1.1.0",
"version": "1.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -60,4 +60,4 @@ import {cacheTypeEnumerate} from '../cache-type-enumerate';

getStoredKeys() {
let keys = [];
for (let key in this.storage) {
const keys = [];
for (const key in this.storage) {
if (!this.storage.hasOwnProperty(key)) continue;

@@ -103,3 +103,3 @@ if (key.indexOf(this.namespace + '_') === 0) {

let namespaceKey = this.getNamespaceKey(key);
const namespaceKey = this.getNamespaceKey(key);
this.storage.setItem(namespaceKey, obj);

@@ -140,3 +140,3 @@ this.storedKeys.push(namespaceKey);

getCollection() {
let collection = {};
const collection = {};
for (let i = 0; i < this.storedKeys.length; i++) {

@@ -157,4 +157,4 @@ if (this.isExpired(this.storedKeys[i])) continue;

removeItem(key) {
let namespaceKey = this.getNamespaceKey(key);
let index = this.storedKeys.indexOf(namespaceKey);
const namespaceKey = this.getNamespaceKey(key);
const index = this.storedKeys.indexOf(namespaceKey);

@@ -189,3 +189,3 @@ if (index > -1) {

let namespaceKey = this.getNamespaceKey(key);
const namespaceKey = this.getNamespaceKey(key);
let obj = this.storage.getItem(namespaceKey);

@@ -192,0 +192,0 @@ if (this.storageType === cacheTypeEnumerate.LOCAL ||

@@ -15,3 +15,3 @@ /**

static clear() {
for (let key in MemoryStorage) {
for (const key in MemoryStorage) {
if (MemoryStorage.hasOwnProperty(key)) {

@@ -31,3 +31,3 @@ MemoryStorage.removeItem(key);

let length = 0;
for (let key in MemoryStorage) {
for (const key in MemoryStorage) {
if (MemoryStorage.hasOwnProperty(key)) {

@@ -34,0 +34,0 @@ length++;

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