Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
467 B
JavaScript
24 lines
467 B
JavaScript
'use strict';
|
|
|
|
var path = require('path')
|
|
, fs = require('fs')
|
|
, helper = require('./helper.js')
|
|
;
|
|
|
|
|
|
module.exports = function(connInfo, cb) {
|
|
var file = helper.getFileName();
|
|
|
|
fs.stat(file, function(err, stat){
|
|
if (err || !helper.usePgPass(stat, file)) {
|
|
return cb(undefined);
|
|
}
|
|
|
|
var st = fs.createReadStream(file);
|
|
|
|
helper.getPassword(connInfo, st, cb);
|
|
});
|
|
};
|
|
|
|
module.exports.warnTo = helper.warnTo;
|