@amplication/plugin-cache-redis
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"extends": ["../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": {} | ||
} | ||
] | ||
"ignorePatterns": ["!**/*"] | ||
} |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4591130
57397