@compas/store
Advanced tools
Comparing version 0.0.132 to 0.0.133
@@ -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"; |
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
423780
5
39
13534
122
+ Added@compas/stdlib@0.0.133(transitive)
+ Addeddotenv@9.0.0(transitive)
- Removed@compas/insight@0.0.132
- Removed@compas/insight@0.0.132(transitive)
- Removed@compas/stdlib@0.0.132(transitive)
- Removeddotenv@8.4.0(transitive)
Updated@compas/stdlib@0.0.133