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

think-model-abstract

Package Overview
Dependencies
Maintainers
8
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

think-model-abstract - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

6

lib/query.js

@@ -189,2 +189,6 @@ const helper = require('think-helper');

cache.key = cache.key || helper.md5(sql);
const timeout = cache._keyTimeout;
delete cache._keyTimeout;
const Handle = cache.handle;

@@ -198,3 +202,3 @@ const instance = new Handle(cache);

return this.query(sql).then(data => {
return instance.set(cache.key, data).then(() => {
return instance.set(cache.key, data, timeout).then(() => {
return data;

@@ -201,0 +205,0 @@ });

2

package.json
{
"name": "think-model-abstract",
"version": "1.6.1",
"version": "1.6.2",
"description": "Abstract adapter for ThinkJS 3.x",

@@ -5,0 +5,0 @@ "scripts": {

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