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

@appolo/cache

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appolo/cache - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

4

index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CacheProvider = exports.cache = exports.CacheModule = void 0;
exports.Cache = exports.CacheProvider = exports.cache = exports.CacheModule = void 0;
const decorators_1 = require("./module/src/decorators");

@@ -10,2 +10,4 @@ Object.defineProperty(exports, "cache", { enumerable: true, get: function () { return decorators_1.cache; } });

Object.defineProperty(exports, "CacheModule", { enumerable: true, get: function () { return cacheModule_1.CacheModule; } });
const cache_1 = require("./module/src/cache");
Object.defineProperty(exports, "Cache", { enumerable: true, get: function () { return cache_1.Cache; } });
//# sourceMappingURL=index.js.map

@@ -6,5 +6,6 @@ "use strict";

import {CacheModule} from "./module/cacheModule";
import {Cache} from "./module/src/cache";
export {IOptions} from "./module/src/IOptions"
export {IOptions} from "./module/src/IOptions"
export {CacheModule,cache,CacheProvider}
export {CacheModule, cache, CacheProvider, Cache}

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

import {App} from '@appolo/core';
import {App} from '@appolo/engine';

@@ -3,0 +3,0 @@ import {RedisModule} from '@appolo/redis';

{
"name": "@appolo/cache",
"version": "8.0.1",
"version": "8.0.2",
"description": "appolo cache module",

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

"dependencies": {
"@appolo/core": "^8.0.5",
"@appolo/engine": "^8.0.5",
"@appolo/logger": "^8.0.4",

@@ -25,6 +25,3 @@ "@appolo/redis": "^8.0.0",

"devDependencies": {
"bluebird": "^3.7.2",
"@types/bluebird": "^3.5.33",
"@types/chai": "^4.2.14",
"@types/lodash": "^4.14.165",
"@types/mocha": "^8.2.0",

@@ -31,0 +28,0 @@ "@types/node": "^14.14.12",

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@appolo/core");
const Q = require("bluebird");
const engine_1 = require("@appolo/engine");
const utils_1 = require("@appolo/utils");
const handler_1 = require("./src/handler");

@@ -15,3 +15,3 @@ const index_1 = require("../index");

beforeEach(async () => {
app = core_1.createApp({ root: __dirname, environment: "production", port: 8181 });
app = engine_1.createApp({ root: __dirname, environment: "production" });
app.module.use(index_1.CacheModule.for({ connection: process.env.REDIS }));

@@ -33,3 +33,3 @@ await app.launch();

await handler.handle();
await Q.delay(100);
await utils_1.Promises.delay(100);
await handler.handle();

@@ -41,3 +41,3 @@ handler.test.should.be.eq(2);

let result1 = await handler.handle3("aa");
await Q.delay(100);
await utils_1.Promises.delay(100);
await handler.handle3("bb");

@@ -51,3 +51,3 @@ let result2 = await handler.handle3("bb");

await handler.handle4();
await Q.delay(55);
await utils_1.Promises.delay(55);
await handler.handle4();

@@ -60,3 +60,3 @@ await handler.handle4();

await handler.handle8(11);
await Q.delay(55);
await utils_1.Promises.delay(55);
await handler.handle8(11);

@@ -70,3 +70,3 @@ let result = await handler.handle8(11);

await handler.handle9(11);
await Q.delay(55);
await utils_1.Promises.delay(55);
await handler.handle9(11);

@@ -80,9 +80,9 @@ let result = await handler.handle9(11);

await handler.handle5();
await Q.delay(100);
await utils_1.Promises.delay(100);
await handler.handle5();
handler.test.should.be.eq(1);
await Q.delay(800);
await utils_1.Promises.delay(800);
let result = await handler.handle5();
await handler.handle5();
await Q.delay(100);
await utils_1.Promises.delay(100);
result.should.be.eq(2);

@@ -95,3 +95,3 @@ handler.test.should.be.eq(2);

await handler.handle6("bb");
await Q.delay(250);
await utils_1.Promises.delay(250);
await handler.handle6("aa");

@@ -98,0 +98,0 @@ await handler.handle6("bb");

@@ -1,3 +0,3 @@

import {App, createApp} from '@appolo/core'
import * as Q from 'bluebird'
import {App, createApp} from '@appolo/engine'
import {Promises} from '@appolo/utils'
import {Handler, InheritHandler1, InheritHandler2} from "./src/handler";

@@ -21,3 +21,3 @@ import {CacheModule} from "../index";

app = createApp({root: __dirname, environment: "production", port: 8181});
app = createApp({root: __dirname, environment: "production"});

@@ -52,3 +52,3 @@ app.module.use(CacheModule.for({connection: process.env.REDIS}));

await handler.handle();
await Q.delay(100);
await Promises.delay(100);

@@ -66,3 +66,3 @@ await handler.handle();

let result1 = await handler.handle3("aa");
await Q.delay(100);
await Promises.delay(100);

@@ -81,3 +81,3 @@ await handler.handle3("bb");

await handler.handle4();
await Q.delay(55);
await Promises.delay(55);
await handler.handle4();

@@ -94,3 +94,3 @@ await handler.handle4();

await handler.handle8(11);
await Q.delay(55);
await Promises.delay(55);
await handler.handle8(11);

@@ -109,3 +109,3 @@ let result = await handler.handle8(11);

await handler.handle9(11);
await Q.delay(55);
await Promises.delay(55);
await handler.handle9(11);

@@ -124,9 +124,9 @@ let result = await handler.handle9(11);

await handler.handle5();
await Q.delay(100);
await Promises.delay(100);
await handler.handle5();
handler.test.should.be.eq(1);
await Q.delay(800);
await Promises.delay(800);
let result = await handler.handle5();
await handler.handle5();
await Q.delay(100);
await Promises.delay(100);
result.should.be.eq(2);

@@ -142,3 +142,3 @@ handler.test.should.be.eq(2);

await handler.handle6("bb");
await Q.delay(250);
await Promises.delay(250);
await handler.handle6("aa");

@@ -145,0 +145,0 @@ await handler.handle6("bb");

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