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

selectstar

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selectstar - npm Package Compare versions

Comparing version 1.1.9 to 1.1.10

9

dist/index.js

@@ -237,2 +237,9 @@ "use strict";

}
// Don't format queries above a certain size. The formatter generates a ton of
// new strings in memory, which for very long queries can add a lot of memory
// pressure. Very long queries aren't really in selectstar's intended use case
// (very long queries are likely machine-generated, which is likely to
// circumvent the protections of this library) but that should not destabilize
// projects that _do_ want that use case.
const MAX_FORMAT_SIZE = 5000;
/**

@@ -245,2 +252,4 @@ * Does a very cheap "best attempt" at reformatting multiple lines of SQL into

function format(sql) {
if (sql.length > MAX_FORMAT_SIZE)
return sql;
const pieces = sql.split("\n").filter((p) => !p.match(/^\s*$/));

@@ -247,0 +256,0 @@ const leadingSpace = Math.min(...pieces.map((p) => p.length - p.trimStart().length));

5

package.json
{
"name": "selectstar",
"version": "1.1.9",
"version": "1.1.10",
"description": "Generate safe SQL statements with tagged literals",

@@ -32,3 +32,6 @@ "main": "dist/index.js",

"typescript": "^4.2.4"
},
"dependencies": {
"sqlite3": "^5.0.2"
}
}
dist/index.js.map

Sorry, the diff of this file is not supported yet

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