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

casbin-redis-adapter

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

casbin-redis-adapter - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

8

CHANGELOG.md

@@ -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 @@

2

lib/cjs/adapter.js

@@ -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

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