New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cubejs-backend/sqlite-driver

Package Overview
Dependencies
Maintainers
2
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cubejs-backend/sqlite-driver - npm Package Compare versions

Comparing version 0.19.17 to 0.19.21

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.19.21](https://github.com/cube-js/cube.js/compare/v0.19.20...v0.19.21) (2020-05-25)
### Bug Fixes
* **@cubejs-backend/sqlite-driver:** sqlite name and type extraction ([#659](https://github.com/cube-js/cube.js/issues/659)) Thanks to [@avin3sh](https://github.com/avin3sh) ! ([b1c179d](https://github.com/cube-js/cube.js/commit/b1c179d))
## [0.19.17](https://github.com/cube-js/cube.js/compare/v0.19.16...v0.19.17) (2020-05-09)

@@ -8,0 +19,0 @@

9

driver/SqliteDriver.js

@@ -39,2 +39,3 @@ const sqlite3 = require('sqlite3');

WHERE type='table'
AND name!='sqlite_sequence'
ORDER BY name

@@ -62,4 +63,6 @@ `;

.trim()
// replace \t with whitespace
.replace(/\t/g, ' ')
// obtain "([|`|")?name(]|`|")? type"
.match(/([|`|")?([^[\]"`]+)(]|`|")?\s+(\w+)/);
.match(/([|`|"])?([^[\]"`]+)(]|`|")?\s+(\w+)/);
return { name: match[2], type: match[4] };

@@ -73,3 +76,3 @@ })

return this.query(
`PRAGMA database_list`
'PRAGMA database_list'
).then((schemas) => {

@@ -85,3 +88,3 @@ if (!schemas.find(s => s.name === schemaName)) {

const attachedDatabases = await this.query(
`PRAGMA database_list`
'PRAGMA database_list'
);

@@ -88,0 +91,0 @@ if (!attachedDatabases.find(s => s.name === schemaName)) {

@@ -5,3 +5,3 @@ {

"author": "Statsbot, Inc.",
"version": "0.19.17",
"version": "0.19.21",
"repository": {

@@ -37,3 +37,3 @@ "type": "git",

},
"gitHead": "5eeb7c783604c333f88568196a74b4aed4348bbd"
"gitHead": "ccfb285be9ecba47f5e59c8f63a348c6d1bc1add"
}
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