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.132 to 0.0.133

src/insight.js

16

index.d.ts

@@ -1,2 +0,2 @@

import * as insight from "@compas/insight";
import * as stdlib from "@compas/stdlib";
import * as minioVendor from "minio";

@@ -345,3 +345,3 @@ import * as postgresVendor from "postgres";

export type JobQueueHandlerFunction = (
event: insight.InsightEvent,
event: stdlib.InsightEvent,
sql: Postgres,

@@ -591,1 +591,13 @@ data: JobData,

export function setStoreQueries(q: typeof queries): void;
/**
* Get the disk size (in bytes) and estimated row count for all tables and views.
* To improve accuracy, run sql`ANALYZE` before this query, however make sure to read the
* Postgres documentation for implications.
*
* Accepts the @compas/store based sql instance, but not strongly typed so we don't have the
* dependency
*/
export function postgresTableSizes(
sql: any,
): Promise<Record<string, { diskSize: number; rowCount: number }>>;

@@ -65,1 +65,3 @@ import { dirnameForModule } from "@compas/stdlib";

export { setStoreQueries } from "./src/generated.js";
export { postgresTableSizes } from "./src/insight.js";

7

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

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

"dependencies": {
"@compas/insight": "0.0.132",
"@compas/stdlib": "0.0.132",
"@compas/stdlib": "0.0.133",
"@types/minio": "7.0.7",

@@ -46,3 +45,3 @@ "mime-types": "2.1.30",

},
"gitHead": "049d95d965630ecf2d38c69df0e375a27f058ee3"
"gitHead": "44a7cf7b76fb0c1f572adcda9565b3dd8f324058"
}

@@ -51,10 +51,2 @@ # @compas/store

**@compas/insight**:
- A structured logger
- Writing newline delimited JSON in production
- Pretty printing for development
- Various utilities to get insight in the running process
- A manual event system
**@compas/stdlib**:

@@ -67,2 +59,7 @@

- Replacements for CommonJS `__dirname` and `__filename`
- A structured logger
- Writing newline delimited JSON in production
- Pretty printing for development
- Various utilities to get insight in the running process
- A manual event system

@@ -69,0 +66,0 @@ **@compas/server**:

@@ -1,3 +0,6 @@

import { eventStart, eventStop, newEvent, newLogger } from "@compas/insight";
import {
eventStart,
eventStop,
newEvent,
newLogger,
AppError,

@@ -4,0 +7,0 @@ environment,

@@ -1,3 +0,2 @@

import { newLogger } from "@compas/insight";
import { environment, isNil, uuid } from "@compas/stdlib";
import { newLogger, environment, isNil, uuid } from "@compas/stdlib";
import {

@@ -4,0 +3,0 @@ createDatabaseIfNotExists,

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