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

@db-auto/environments

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@db-auto/environments - npm Package Compare versions

Comparing version 0.0.25 to 0.0.26

2

dist/src/environments.d.ts

@@ -9,1 +9,3 @@ import { NameAnd, NameAndValidator } from "@db-auto/utils";

export declare const environmentValidator: NameAndValidator<Environment>;
export declare function sqlDialect(type: string): import("@db-auto/dal").DalDialect;
export declare function dalFor(env: Environment): import("@db-auto/dal").Dal;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.environmentValidator = exports.cleanEnvironment = void 0;
exports.dalFor = exports.sqlDialect = exports.environmentValidator = exports.cleanEnvironment = void 0;
const utils_1 = require("@db-auto/utils");

@@ -26,1 +26,13 @@ const postgres_1 = require("@db-auto/postgres");

exports.environmentValidator = environmentValidator;
function sqlDialect(type) {
if (type === 'postgres')
return postgres_1.postgresDalDialect;
throw new Error(`Unknown environment type ${type}. Currently on postgres is supported. ${JSON.stringify(type)}`);
}
exports.sqlDialect = sqlDialect;
function dalFor(env) {
if (env.type === 'postgres')
return (0, postgres_1.postgresDal)(env);
throw new Error(`Unknown environment type ${env.type}. Currently on postgres is supported. ${JSON.stringify(env)}`);
}
exports.dalFor = dalFor;

10

package.json
{
"name": "@db-auto/environments",
"description": "",
"version": "0.0.25",
"version": "0.0.26",
"main": "dist/index",

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

"dependencies": {
"@db-auto/utils": "0.0.25",
"@db-auto/postgres": "0.0.25",
"@db-auto/mysql": "0.0.25",
"@db-auto/oracle": "0.0.25"
"@db-auto/utils": "0.0.26",
"@db-auto/postgres": "0.0.26",
"@db-auto/mysql": "0.0.26",
"@db-auto/oracle": "0.0.26"
},

@@ -26,0 +26,0 @@ "devDependencies": {

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