@sqb/sqljs
Advanced tools
Comparing version 4.11.3 to 4.12.0
@@ -94,5 +94,4 @@ "use strict"; | ||
} | ||
else | ||
// Emulate update ... returning | ||
if (m[1].toLowerCase() === 'update') { | ||
else if (m[1].toLowerCase() === 'update') { | ||
const m2 = query.sql.match(/where (.+)/); | ||
@@ -136,3 +135,3 @@ query = { ...query }; | ||
jsType: 'any', | ||
_inf: { name: v } | ||
_inf: { name: v }, | ||
}; | ||
@@ -147,3 +146,3 @@ result.push(o); | ||
if (d == null) | ||
throw new Error("Invalid data"); | ||
throw new Error('Invalid data'); | ||
} |
@@ -91,5 +91,4 @@ import { SqljsCursor } from './sqljs-cursor.js'; | ||
} | ||
else | ||
// Emulate update ... returning | ||
if (m[1].toLowerCase() === 'update') { | ||
else if (m[1].toLowerCase() === 'update') { | ||
const m2 = query.sql.match(/where (.+)/); | ||
@@ -133,3 +132,3 @@ query = { ...query }; | ||
jsType: 'any', | ||
_inf: { name: v } | ||
_inf: { name: v }, | ||
}; | ||
@@ -143,3 +142,3 @@ result.push(o); | ||
if (d == null) | ||
throw new Error("Invalid data"); | ||
throw new Error('Invalid data'); | ||
} |
{ | ||
"name": "@sqb/sqljs", | ||
"description": "SQB serialization extension for sql.js driver", | ||
"version": "4.11.3", | ||
"version": "4.12.0", | ||
"author": "Panates", | ||
@@ -33,3 +33,4 @@ "contributors": [ | ||
"clean:dist": "rimraf ../../build/sqljs", | ||
"clean:cover": "rimraf ../../coverage/sqljs" | ||
"clean:cover": "rimraf ../../coverage/sqljs", | ||
"format": "prettier . --write --log-level=warn" | ||
}, | ||
@@ -41,8 +42,8 @@ "dependencies": { | ||
"@types/sql.js": "^1.4.9", | ||
"sql.js": "^1.10.2" | ||
"sql.js": "^1.10.3" | ||
}, | ||
"peerDependencies": { | ||
"@sqb/builder": "^4.11.3", | ||
"@sqb/connect": "^4.11.3", | ||
"@sqb/sqlite-dialect": "^4.11.3", | ||
"@sqb/builder": "^4.12.0", | ||
"@sqb/connect": "^4.12.0", | ||
"@sqb/sqlite-dialect": "^4.12.0", | ||
"sql.js": "^1.8.0" | ||
@@ -49,0 +50,0 @@ }, |
@@ -21,8 +21,8 @@ <p style="text-align:center"> | ||
- Single code base for any sql based database | ||
- Powerful and simplified query coding scheme | ||
- Fast applications with low memory requirements | ||
- Let applications work with large data tables efficiently | ||
- Support latest JavaScript language standards | ||
- Lightweight and extensible framework. | ||
- Single code base for any sql based database | ||
- Powerful and simplified query coding scheme | ||
- Fast applications with low memory requirements | ||
- Let applications work with large data tables efficiently | ||
- Support latest JavaScript language standards | ||
- Lightweight and extensible framework. | ||
@@ -43,3 +43,3 @@ You can report bugs and discuss features on the [GitHub issues](https://github.com/sqbjs/sqb/issues) page | ||
- node >= 16.x | ||
- node >= 16.x | ||
@@ -51,31 +51,16 @@ ### License | ||
[npm-image]: https://img.shields.io/npm/v/@sqb/sqljs.svg | ||
[npm-url]: https://npmjs.org/package/@sqb/sqljs | ||
[travis-image]: https://img.shields.io/travis/sqbjs/@sqb/sqljs/master.svg | ||
[travis-url]: https://travis-ci.org/sqbjs/@sqb/sqljs | ||
[coveralls-image]: https://img.shields.io/coveralls/sqbjs/@sqb/sqljs/master.svg | ||
[coveralls-url]: https://coveralls.io/r/sqbjs/@sqb/sqljs | ||
[downloads-image]: https://img.shields.io/npm/dm/@sqb/sqljs.svg | ||
[downloads-url]: https://npmjs.org/package/@sqb/sqljs | ||
[gitter-image]: https://badges.gitter.im/sqbjs/@sqb/sqljs.svg | ||
[gitter-url]: https://gitter.im/sqbjs/@sqb/sqljs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge | ||
[dependencies-image]: https://david-dm.org/sqbjs/@sqb/sqljs/status.svg | ||
[dependencies-url]:https://david-dm.org/sqbjs/@sqb/sqljs | ||
[dependencies-url]: https://david-dm.org/sqbjs/@sqb/sqljs | ||
[devdependencies-image]: https://david-dm.org/sqbjs/@sqb/sqljs/dev-status.svg | ||
[devdependencies-url]:https://david-dm.org/sqbjs/@sqb/sqljs?type=dev | ||
[devdependencies-url]: https://david-dm.org/sqbjs/@sqb/sqljs?type=dev | ||
[quality-image]: http://npm.packagequality.com/shield/@sqb/sqljs.png | ||
[quality-url]: http://packagequality.com/#?package=@sqb/sqljs |
32002
530
64