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

@ivfuture/ecomm-cache-inmemory

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ivfuture/ecomm-cache-inmemory - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

8

dist/initialize/index.js

@@ -17,3 +17,3 @@ "use strict";

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -48,3 +48,7 @@ if (y = 0, t) op = [op[0] & 2, t.value];

serviceKey = ecomm_modules_sdk_1.Modules.CACHE;
return [4 /*yield*/, ecomm_modules_sdk_1.MedusaModule.bootstrap(serviceKey, "@ivfuture/ecomm-cache-inmemory", options, undefined)];
return [4 /*yield*/, ecomm_modules_sdk_1.MedusaModule.bootstrap({
moduleKey: serviceKey,
defaultPath: "@ivfuture/ecomm-cache-inmemory",
declaration: options,
})];
case 1:

@@ -51,0 +55,0 @@ loaded = _a.sent();

/// <reference types="node" />
import { ICacheService } from "@ivfuture/ecomm-types";
import { CacheRecord, InMemoryCacheModuleOptions } from "../types";
declare type InjectedDependencies = {};
type InjectedDependencies = {};
/**

@@ -6,0 +6,0 @@ * Class represents basic, in-memory, cache store.

@@ -17,3 +17,3 @@ "use strict";

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

/**
* Shape of a record saved in `in-memory` cache
*/
export declare type CacheRecord<T> = {
export type CacheRecord<T> = {
data: T;

@@ -11,3 +11,3 @@ /**

};
export declare type InMemoryCacheModuleOptions = {
export type InMemoryCacheModuleOptions = {
/**

@@ -14,0 +14,0 @@ * Time to keep data in cache (in seconds)

{
"name": "@ivfuture/ecomm-cache-inmemory",
"version": "1.0.2",
"version": "1.1.0",
"description": "In-memory Cache Module for Medusa",

@@ -20,12 +20,13 @@ "main": "dist/index.js",

"devDependencies": {
"@ivfuture/ecomm-types": "^1.0.1",
"@ivfuture/ecomm-types": "^1.1.0",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
"jest": "^29.6.3",
"rimraf": "^5.0.1",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
},
"scripts": {
"watch": "tsc --build --watch",
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"prepublishOnly": "cross-env NODE_ENV=production tsc --build",
"build": "rimraf dist && tsc --build",
"test": "jest --passWithNoTests",

@@ -35,4 +36,4 @@ "clean": "rm -rf dist"

"dependencies": {
"@ivfuture/ecomm-modules-sdk": "^1.0.2"
"@ivfuture/ecomm-modules-sdk": "^1.1.0"
}
}

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