Socket
Socket
Sign inDemoInstall

@ts-safeql/shared

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-safeql/shared - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

lib/parsedQuery.js

17

lib/errors.js

@@ -8,2 +8,3 @@ "use strict";

const path_1 = __importDefault(require("path"));
const postgres_1 = require("postgres");
class DatabaseInitializationError extends Error {

@@ -147,2 +148,18 @@ constructor(message) {

}
static to(query, error) {
if (error instanceof postgres_1.PostgresError) {
return PostgresError.of({
queryText: query,
message: error.message,
line: error.line,
position: error.position,
});
}
return PostgresError.of({
queryText: query,
message: `${error}`,
line: "1",
position: "1",
});
}
toJSON() {

@@ -149,0 +166,0 @@ return {

3

lib/index.js

@@ -17,4 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./common"), exports);
__exportStar(require("./errors"), exports);
__exportStar(require("./common"), exports);
__exportStar(require("./parsedQuery"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@ts-safeql/shared",
"version": "0.0.1",
"version": "0.0.2",
"main": "lib/index.js",

@@ -20,2 +20,5 @@ "types": "src/index.ts",

},
"dependencies": {
"postgres": "github:porsager/postgres"
},
"scripts": {

@@ -22,0 +25,0 @@ "build": "tsc",

Sorry, the diff of this file is not supported yet

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