🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

req-caching

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

req-caching - npm Package Compare versions

Comparing version

to
1.1.2

2

lib/driver.d.ts

@@ -1,2 +0,2 @@

import { CACHE_DRIVER } from "./defined";
import { CACHE_DRIVER } from "./defined.js";
interface CACHE_DRIVER_BUNCH {

@@ -3,0 +3,0 @@ memory: CACHE_DRIVER;

@@ -37,3 +37,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
import { after_time } from "./defined";
import { after_time } from "./defined.js";
var driver = {

@@ -40,0 +40,0 @@ memory: {

@@ -16,2 +16,3 @@ import { CACHE_TYPE, CACHE_BUNCH, CACHE_OPTS, CACHE_DRIVER } from "./defined";

add(key: string, seed: () => any, options: CACHE_OPTS): Promise<void>;
ver(): any;
/**

@@ -18,0 +19,0 @@ * @param {string} key

@@ -37,3 +37,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
import driver from "./driver";
import driver from "./driver.js";
import jsonfile from "jsonfile";
/**

@@ -72,2 +73,6 @@ * Class Cache is heart of the library.

};
Cache.prototype.ver = function () {
var fv = jsonfile.readFileSync(new URL("../package.json", import.meta.url).toString().substring(8));
return fv.version;
};
/**

@@ -74,0 +79,0 @@ * @param {string} key

{
"name": "req-caching",
"version": "1.1.1",
"version": "1.1.2",
"type": "module",

@@ -21,4 +21,8 @@ "types": "lib",

"dependencies": {
"jsonfile": "^6.1.0"
"jsonfile": "^6.1.0",
"path": "^0.12.7"
},
"devDependencies": {
"@types/jsonfile": "^6.0.1"
}
}

@@ -1,2 +0,2 @@

import { CACHE_VALUE, CACHE_DRIVER, after_time, CACHE_OPTS } from "./defined"
import { CACHE_VALUE, CACHE_DRIVER, after_time, CACHE_OPTS } from "./defined.js"

@@ -3,0 +3,0 @@ interface CACHE_DRIVER_BUNCH {

@@ -10,3 +10,5 @@ import {

import driver from "./driver"
import driver from "./driver.js"
import jsonfile from "jsonfile"
import path from "path"

@@ -47,2 +49,9 @@ /**

ver() {
const fv = jsonfile.readFileSync(
new URL("../package.json", import.meta.url).toString().substring(8)
)
return fv.version
}
/**

@@ -49,0 +58,0 @@ * @param {string} key

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