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.3 to 2.0.4

16

.eslintrc.json
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
"ignorePatterns": ["!**/*"]
}

6

package.json
{
"name": "@amplication/plugin-cache-redis",
"version": "2.0.3",
"version": "2.0.4",
"description": "Use Redis as a Cache in services generated with Amplication",

@@ -12,4 +12,3 @@ "main": "dist/index.js",

"test": "jest",
"prebuild": "rimraf dist",
"format:write": "prettier --write \"**/*.{js,ts}\""
"prebuild": "rimraf dist"
},

@@ -44,2 +43,3 @@ "author": "Demilade Sonuga",

"jest": {
"passWithNoTests": true,
"moduleFileExtensions": [

@@ -46,0 +46,0 @@ "js",

@@ -41,3 +41,3 @@ import type {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -213,6 +213,6 @@ factoryConfigFunc.async = true;

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

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

key: string,
val: ExpressionKind | PatternKind,
val: ExpressionKind | PatternKind
): namedTypes.ObjectProperty => {

@@ -227,0 +227,0 @@ return builders.objectProperty(builders.identifier(key), val);

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