casbin-redis-adapter
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -0,1 +1,9 @@ | ||
## [1.0.4](https://github.com/node-casbin/redis-adapter/compare/v1.0.3...v1.0.4) (2023-05-18) | ||
### Bug Fixes | ||
* fix CI ([15e9f7c](https://github.com/node-casbin/redis-adapter/commit/15e9f7c137883fba99dbd5960a0b119e9d76b0ec)) | ||
* Pass redisOpts argument to constructor ([#12](https://github.com/node-casbin/redis-adapter/issues/12)) ([c9b4569](https://github.com/node-casbin/redis-adapter/commit/c9b45693f634313b8d7c17887185f4a29901c8b5)) | ||
## [1.0.3](https://github.com/node-casbin/redis-adapter/compare/v1.0.2...v1.0.3) (2022-10-06) | ||
@@ -2,0 +10,0 @@ |
@@ -125,3 +125,3 @@ "use strict"; | ||
static async newAdapter(options, redisOpts) { | ||
const adapter = new NodeRedisAdapter(options); | ||
const adapter = new NodeRedisAdapter(options, redisOpts); | ||
await new Promise(resolve => adapter.redisInstance.on('connect', resolve)); | ||
@@ -128,0 +128,0 @@ return adapter; |
@@ -122,3 +122,3 @@ import { Helper } from 'casbin'; | ||
static async newAdapter(options, redisOpts) { | ||
const adapter = new NodeRedisAdapter(options); | ||
const adapter = new NodeRedisAdapter(options, redisOpts); | ||
await new Promise(resolve => adapter.redisInstance.on('connect', resolve)); | ||
@@ -125,0 +125,0 @@ return adapter; |
{ | ||
"name": "casbin-redis-adapter", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "lib/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "lib/cjs/index.d.ts", |
@@ -150,3 +150,3 @@ import {Helper, Model, FilteredAdapter} from 'casbin' | ||
public static async newAdapter(options: IConnectionOptions, redisOpts?: redis.ClientOpts) { | ||
const adapter = new NodeRedisAdapter(options) | ||
const adapter = new NodeRedisAdapter(options, redisOpts) | ||
await new Promise(resolve => adapter.redisInstance.on('connect', resolve)) | ||
@@ -153,0 +153,0 @@ return adapter |
Sorry, the diff of this file is not supported yet
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
51160