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

@amplication/plugin-cache-redis

Package Overview
Dependencies
Maintainers
8
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplication/plugin-cache-redis - npm Package Compare versions

Comparing version 2.0.1-beta.pr-277.669035d to 2.0.1-beta.pr-277.ea3c026

2

package.json
{
"name": "@amplication/plugin-cache-redis",
"version": "2.0.1-beta.pr-277.669035d",
"version": "2.0.1-beta.pr-277.ea3c026",
"description": "Use Redis as a Cache in services generated with Amplication",

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

@@ -16,2 +16,3 @@ import type {

import * as constants from "./constants";
import { ExpressionKind, PatternKind } from "ast-types/gen/kinds";

@@ -41,3 +42,3 @@ class RedisCachePlugin implements AmplicationPlugin {

context: DsgContext,
eventParams: CreateServerPackageJsonParams
eventParams: CreateServerPackageJsonParams,
): CreateServerPackageJsonParams {

@@ -55,3 +56,3 @@ const redisDeps = constants.dependencies;

context: DsgContext,
eventParams: CreateServerAppModuleParams
eventParams: CreateServerAppModuleParams,
): CreateServerAppModuleParams {

@@ -77,3 +78,3 @@ const { template, templateMapping } = eventParams;

context: DsgContext,
eventParams: CreateServerDotEnvParams
eventParams: CreateServerDotEnvParams,
): CreateServerDotEnvParams {

@@ -88,6 +89,6 @@ const settings = utils.getPluginSettings(context.pluginInstallations);

context: DsgContext,
eventParams: CreateServerDockerComposeParams
eventParams: CreateServerDockerComposeParams,
): CreateServerDockerComposeParams {
eventParams.updateProperties.push(
...constants.updateDockerComposeProperties
...constants.updateDockerComposeProperties,
);

@@ -100,6 +101,6 @@

context: DsgContext,
eventParams: CreateServerDockerComposeDevParams
eventParams: CreateServerDockerComposeDevParams,
): CreateServerDockerComposeParams {
eventParams.updateProperties.push(
...constants.updateDockerComposeDevProperties
...constants.updateDockerComposeDevProperties,
);

@@ -114,3 +115,3 @@

[builders.importSpecifier(builders.identifier("CacheModule"))],
builders.stringLiteral("@nestjs/cache-manager")
builders.stringLiteral("@nestjs/cache-manager"),
);

@@ -122,3 +123,3 @@ };

[builders.importSpecifier(builders.identifier("redisStore"))],
builders.stringLiteral("cache-manager-ioredis-yet")
builders.stringLiteral("cache-manager-ioredis-yet"),
);

@@ -131,3 +132,3 @@ };

builders.identifier("CacheModule"),
builders.identifier("registerAsync")
builders.identifier("registerAsync"),
),

@@ -139,3 +140,3 @@ [

"imports",
builders.arrayExpression([builders.identifier("ConfigModule")])
builders.arrayExpression([builders.identifier("ConfigModule")]),
),

@@ -145,6 +146,6 @@ objProp("useFactory", useFactoryConfigFunc()),

"inject",
builders.arrayExpression([builders.identifier("ConfigService")])
builders.arrayExpression([builders.identifier("ConfigService")]),
),
]),
]
],
);

@@ -158,3 +159,3 @@ };

typeAnnotation: builders.tsTypeAnnotation(
builders.tsTypeReference(builders.identifier("ConfigService"))
builders.tsTypeReference(builders.identifier("ConfigService")),
),

@@ -188,9 +189,9 @@ }),

builders.identifier("redisStore"),
redisStoreArgs
)
)
redisStoreArgs,
),
),
),
])
]),
),
])
]),
);

@@ -205,3 +206,3 @@ factoryConfigFunc.async = true;

key: string,
...others: any[]
...others: namedTypes.Literal[]
): namedTypes.VariableDeclaration => {

@@ -214,6 +215,6 @@ return builders.variableDeclaration("const", [

builders.identifier("configService"),
builders.identifier("get")
builders.identifier("get"),
),
[builders.stringLiteral(key), ...others]
)
[builders.stringLiteral(key), ...others],
),
),

@@ -223,3 +224,6 @@ ]);

const objProp = (key: string, val: any): namedTypes.ObjectProperty => {
const objProp = (
key: string,
val: ExpressionKind | PatternKind,
): namedTypes.ObjectProperty => {
return builders.objectProperty(builders.identifier(key), val);

@@ -226,0 +230,0 @@ };

Sorry, the diff of this file is too big to display

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