Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@compas/store

Package Overview
Dependencies
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compas/store - npm Package Compare versions

Comparing version 0.0.153 to 0.0.154

11

package.json
{
"name": "@compas/store",
"version": "0.0.153",
"version": "0.0.154",
"description": "Postgres & S3-compatible wrappers for common things",

@@ -17,4 +17,4 @@ "main": "./index.js",

"dependencies": {
"@compas/stdlib": "0.0.153",
"@types/minio": "7.0.8",
"@compas/stdlib": "0.0.154",
"@types/minio": "7.0.9",
"minio": "7.0.18",

@@ -43,4 +43,3 @@ "postgres": "2.0.0-beta.6"

"node": ">=16"
},
"gitHead": "f2036f668879aea8256fb16fffeeeaacba0f6800"
}
}
}

@@ -55,2 +55,13 @@ import { environment, isProduction, merge } from "@compas/stdlib";

const connectionOpts = merge(
{
connection: {
application_name: environment.APP_NAME,
},
no_prepare: true,
ssl: isProduction() ? "require" : "prefer",
},
opts,
);
if (opts && opts.createIfNotExists) {

@@ -61,3 +72,3 @@ const oldConnection = await createDatabaseIfNotExists(

undefined,
opts,
connectionOpts,
);

@@ -69,12 +80,3 @@ setImmediate(() => oldConnection.end());

environment.POSTGRES_URI + environment.POSTGRES_DATABASE,
merge(
{
connection: {
application_name: environment.APP_NAME,
},
no_prepare: true,
ssl: isProduction() ? "require" : "prefer",
},
opts,
),
connectionOpts,
);

@@ -81,0 +83,0 @@ }

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