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

think-model

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

think-model - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

lib/model.js

@@ -543,3 +543,3 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }

options = yield _this7.parseOptions(options);
let parsedData = yield _this7.db().parseData(data, false, options.table);
let parsedData = yield _this7.db().parseData(data, true, options.table);
// check where condition

@@ -546,0 +546,0 @@ if (helper.isEmpty(options.where)) {

{
"name": "think-model",
"version": "1.1.2",
"version": "1.1.3",
"description": "An adapter-based ORM for ThinkJS 3.x",

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

@@ -403,6 +403,7 @@ const {test} = require('ava');

test('model update data', async t => {
t.plan(4);
t.plan(6);
const model = new Model('post', {handle: class {
parseData(data) {
parseData(data, isUpdate) {
t.true(isUpdate);
return data;

@@ -409,0 +410,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