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

@fdy/simple-postgres

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fdy/simple-postgres - npm Package Compare versions

Comparing version 6.0.0-beta.3 to 6.0.0-beta.4

8

CHANGELOG.md

@@ -7,4 +7,10 @@ # Changelog

## [6.0.0-beta.2] - 2020-08-25
## [6.0.0-beta.4] - 2020-08-25
### Added
- We now support `Date` values as `Literal`s. This means you can escape and interpolate dates.
## [6.0.0-beta.3] - 2020-08-25
### Changed

@@ -11,0 +17,0 @@

2

dist/src/escape.d.ts

@@ -17,3 +17,3 @@ /**

*/
export declare type Literal = string | number | boolean | null | Literal[];
export declare type Literal = string | number | boolean | Date | null | Literal[];
/**

@@ -20,0 +20,0 @@ * Escape a value for safe use in SQL queries, returning a string.

@@ -59,2 +59,6 @@ "use strict";

}
else if (str instanceof Date) {
// Convert dates to ISO 8601 strings then process normally.
str = str.toISOString();
}
let hasBackslash = false;

@@ -61,0 +65,0 @@ let escaped = "'";

{
"name": "@fdy/simple-postgres",
"version": "6.0.0-beta.3",
"version": "6.0.0-beta.4",
"description": "a minimal postgres interface for node",

@@ -36,3 +36,3 @@ "main": "dist/src/index.js",

"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublish": "rm -rf dist && npm run build",
"prepublishOnly": "rm -rf dist && npm run build",
"test-helper": "NODE_ENV=test ts-node test/test.ts",

@@ -39,0 +39,0 @@ "test": "docker-compose run test",

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