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

thinkjs

Package Overview
Dependencies
Maintainers
1
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thinkjs - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

14

lib/Lib/Core/Model.class.js

@@ -493,17 +493,13 @@ var util = require('util');

var pk = self.getPk();
var parsedOptions = {};
return this.parseOptions(options).then(function(options){
parsedOptions = options;
data = self.parseData(data);
return self._beforeAdd(data, options);
}).then(function(data){
return self.db.insert(data, options, replace);
return self.db.insert(data, parsedOptions, replace);
}).then(function(data){
//获取插入的ID
var id = self.db.getLastInsertId();
if (id) {
data[pk] = id;
};
return getPromise(self._afterAdd(data, options));
}).then(function(data){
return data[pk];
})
return getPromise(self._afterAdd(id, parsedOptions));
});
},

@@ -510,0 +506,0 @@ /**

{
"name": "thinkjs",
"description": "thinkphp web framework for nodejs",
"version": "0.3.9",
"version": "0.3.10",
"author": {

@@ -6,0 +6,0 @@ "name": "welefen",

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