Socket
Socket
Sign inDemoInstall

kk-koa-framework

Package Overview
Dependencies
186
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.2 to 3.1.3

src/setup/response.js

2

package.json

@@ -6,3 +6,3 @@ {

"name": "kk-koa-framework",
"version": "3.1.2",
"version": "3.1.3",
"description": "kk koa mvc webframework",

@@ -9,0 +9,0 @@ "main": "index.js",

@@ -83,3 +83,3 @@ const Redis = require('ioredis')

async get(sid) {
let id = `${this.prefix}:${sid}`
let id = this.prefix && sid.indexOf('_') !== 0 ? `${this.prefix}:${sid}` : sid
let data = await this.redis.get(id)

@@ -95,3 +95,3 @@ data && this.ttl && this.redis.expire(id, this.ttl)

try {
let id = `${this.prefix}:${sid}`
let id = this.prefix && sid.indexOf('_') !== 0 ? `${this.prefix}:${sid}` : sid
await this.redis.set(id, JSON.stringify(obj))

@@ -98,0 +98,0 @@ ttl = ttl || this.ttl

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc