New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@databases/mysql-config

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@databases/mysql-config - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0-canary-2279

11

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_CONFIG = exports.readMySqlConfigSync = exports.getMySqlConfigSync = exports.getMySqlConfig = void 0;
const cosmiconfig = require("cosmiconfig");
const cosmiconfig_1 = require("cosmiconfig");
const MySqlConfig_1 = require("./MySqlConfig");
const explorer = cosmiconfig('mysql');
const asyncExplorer = (0, cosmiconfig_1.cosmiconfig)('mysql');
const syncExplorer = (0, cosmiconfig_1.cosmiconfigSync)('mysql');
async function getMySqlConfig(searchFrom) {
return parseResult(await explorer.search(searchFrom));
return parseResult(await asyncExplorer.search(searchFrom));
}
exports.getMySqlConfig = getMySqlConfig;
function getMySqlConfigSync(searchFrom) {
return parseResult(explorer.searchSync(searchFrom));
return parseResult(syncExplorer.search(searchFrom));
}
exports.getMySqlConfigSync = getMySqlConfigSync;
function readMySqlConfigSync(filename) {
return parseResult(explorer.loadSync(filename));
return parseResult(syncExplorer.load(filename));
}

@@ -18,0 +19,0 @@ exports.readMySqlConfigSync = readMySqlConfigSync;

{
"name": "@databases/mysql-config",
"version": "3.1.0",
"version": "3.2.0-canary-2279",
"description": "",

@@ -8,8 +8,5 @@ "main": "./lib/index.js",

"dependencies": {
"cosmiconfig": "^5.0.7",
"cosmiconfig": "^8.1.0",
"funtypes": "^4.1.0"
},
"devDependencies": {
"@types/cosmiconfig": "^5.0.3"
},
"scripts": {},

@@ -16,0 +13,0 @@ "repository": "https://github.com/ForbesLindesay/atdatabases/tree/master/packages/mysql-config",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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