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

@adonisjs/redis

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/redis - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

instructions.js

11

CHANGELOG.md

@@ -0,1 +1,12 @@

<a name="2.0.1"></a>
## [2.0.1](https://github.com/adonisjs/adonis-redis/compare/v2.0.0...v2.0.1) (2017-08-02)
### Features
* **exceptions:** use generic-exceptions package ([311e6b7](https://github.com/adonisjs/adonis-redis/commit/311e6b7))
* **instructions:** implement instructions ([fa31bbc](https://github.com/adonisjs/adonis-redis/commit/fa31bbc))
<a name="2.0.0"></a>

@@ -2,0 +13,0 @@ # 2.0.0 (2017-07-22)

18

package.json
{
"name": "@adonisjs/redis",
"version": "2.0.0",
"version": "2.0.1",
"description": "AdonisJs official redis provider to make working with redis fun and simple.",
"dependencies": {
"@adonisjs/generic-exceptions": "^1.0.0",
"debug": "^2.6.8",
"ioredis": "^3.1.1",
"lodash": "^4.17.4",
"node-exceptions": "^2.0.2"
"ioredis": "^3.1.2",
"lodash": "^4.17.4"
},
"devDependencies": {
"@adonisjs/fold": "^4.0.0",
"@adonisjs/sink": "^1.0.9",
"@adonisjs/fold": "^4.0.2",
"@adonisjs/sink": "^1.0.11",
"coveralls": "^2.13.1",

@@ -18,3 +18,3 @@ "cz-conventional-changelog": "^2.0.0",

"japa-cli": "^1.0.1",
"nyc": "^11.0.3",
"nyc": "^11.1.0",
"standard": "^10.0.2"

@@ -45,3 +45,5 @@ },

"nyc": {
"exclude": ["bin"]
"exclude": [
"bin"
]
},

@@ -48,0 +50,0 @@ "directories": {

@@ -16,3 +16,5 @@ 'use strict'

register () {
this.app.singleton('Adonis/Addons/Redis', function (app) {
this.app.bind('Adonis/Addons/RedisFactory', () => require('../src/RedisFactory'))
this.app.singleton('Adonis/Addons/Redis', (app) => {
const RedisFactory = app.use('Adonis/Addons/RedisFactory')

@@ -23,2 +25,4 @@ const Config = app.use('Adonis/Src/Config')

})
this.app.alias('Adonis/Addons/Redis', 'Redis')
}

@@ -25,0 +29,0 @@ }

@@ -12,3 +12,3 @@ 'use strict'

const CE = require('../Exceptions')
const GE = require('@adonisjs/generic-exceptions')
const _ = require('lodash')

@@ -93,3 +93,3 @@ const proxyHandler = require('./proxyHandler')

if (!config || !_.size(config) === 0) {
throw CE.InvalidArgumentException.missingConfig('redis', connection)
throw GE.RuntimeException.missingConfig(connection || 'configuration for redis', 'config/redis.js')
}

@@ -96,0 +96,0 @@

@@ -16,5 +16,5 @@ 'use strict'

const { resolver } = require('@adonisjs/fold')
const GE = require('@adonisjs/generic-exceptions')
const proxyHandler = require('./proxyHandler')
const CE = require('../Exceptions')

@@ -199,3 +199,5 @@ class RedisFactory {

if (typeof (handler) !== 'function' && typeof (handler) !== 'string') {
throw new CE.RuntimeException('Redis.subscribe needs a callback function or ioc reference string')
throw GE
.InvalidArgumentException
.invalidParameter('Redis.subscribe needs a callback function or ioc reference string', handler)
}

@@ -210,3 +212,3 @@

if (this.subscribers[channel]) {
reject(new Error(`Cannot subscribe to ${channel} channel twice`))
reject(GE.RuntimeException.invoke(`Cannot subscribe to ${channel} channel twice`))
return

@@ -244,3 +246,5 @@ }

if (typeof (handler) !== 'function' && typeof (handler) !== 'string') {
throw new Error('Redis.psubscribe needs a callback function or ioc reference string')
throw GE
.InvalidArgumentException
.invalidParameter('Redis.psubscribe needs a callback function or ioc reference string', handler)
}

@@ -247,0 +251,0 @@

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