@spytecgps/nova-orm 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,14 @@ export interface LogFn {
2
2
  (msg: string, ...args: any[]): void;
3
3
  (obj: object, msg?: string, ...args: any[]): void;
4
4
  }
5
+ export declare enum LogLevel {
6
+ FATAL = "fatal",
7
+ ERROR = "error",
8
+ WARN = "warn",
9
+ INFO = "info",
10
+ DEBUG = "debug",
11
+ TRACE = "trace"
12
+ }
5
13
  export interface Logger {
6
14
  /**
7
15
  * Log at `'fatal'` level the given msg. If the first argument is an object, all its properties will be included in the JSON line.
@@ -0,0 +1,2 @@
1
+ import { Logger, LogLevel } from '../types/logger';
2
+ export declare const writeToLog: (logger: Logger, level: LogLevel, obj: any, message: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",