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

@db-auto/dal

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@db-auto/dal - npm Package Compare versions

Comparing version 0.0.23 to 0.0.24

LICENSE.md

6

dist/src/prettyprint.d.ts
import { DalResult, DalRow } from "./dal";
import { ColumnDefn, NameAnd } from "@db-auto/utils";
export interface DalResultDisplayOptions {
json?: boolean;
onelinejson?: boolean;
}
export declare function columnDefnFor(res: DalResult): NameAnd<ColumnDefn<DalRow>>;
export declare function prettyPrintDalResult(res: DalResult, showTitles?: false): string[];
export declare function prettyPrintDalResult(options: DalResultDisplayOptions, res: DalResult, showTitles?: false): string[];

@@ -12,5 +12,9 @@ "use strict";

exports.columnDefnFor = columnDefnFor;
function prettyPrintDalResult(res, showTitles) {
function prettyPrintDalResult(options, res, showTitles) {
if (options.json)
return [JSON.stringify(res.rows, null, 2)];
if (options.onelinejson)
return res.rows.map(row => JSON.stringify(row));
return (0, utils_1.toColumns)(columnDefnFor(res), showTitles)(res.rows);
}
exports.prettyPrintDalResult = prettyPrintDalResult;

2

package.json
{
"name": "@db-auto/dal",
"description": "",
"version": "0.0.23",
"version": "0.0.24",
"main": "dist/index",

@@ -6,0 +6,0 @@ "types": "dist/index",

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