@mongosh/history
Advanced tools
Comparing version 0.5.2 to 0.6.0
import { changeHistory, removeCommand, HIDDEN_COMMANDS } from './history'; | ||
import retractPassword from './redact-pwd'; | ||
export { retractPassword, changeHistory, removeCommand, HIDDEN_COMMANDS }; | ||
import redactPassword from './redact-pwd'; | ||
export { redactPassword, changeHistory, removeCommand, HIDDEN_COMMANDS }; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HIDDEN_COMMANDS = exports.removeCommand = exports.changeHistory = exports.retractPassword = void 0; | ||
exports.HIDDEN_COMMANDS = exports.removeCommand = exports.changeHistory = exports.redactPassword = void 0; | ||
const history_1 = require("./history"); | ||
@@ -13,3 +13,3 @@ Object.defineProperty(exports, "changeHistory", { enumerable: true, get: function () { return history_1.changeHistory; } }); | ||
const redact_pwd_1 = __importDefault(require("./redact-pwd")); | ||
exports.retractPassword = redact_pwd_1.default; | ||
exports.redactPassword = redact_pwd_1.default; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export default function retractPassword(uri: string): string; | ||
export default function redactPassword(uri: string): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function retractPassword(uri) { | ||
function redactPassword(uri) { | ||
const regex = /(?<=\/\/)(.*)(?=\@)/g; | ||
return uri.replace(regex, '<credentials>'); | ||
} | ||
exports.default = retractPassword; | ||
exports.default = redactPassword; | ||
//# sourceMappingURL=redact-pwd.js.map |
{ | ||
"name": "@mongosh/history", | ||
"version": "0.5.2", | ||
"version": "0.6.0", | ||
"description": "MongoDB Shell History Package", | ||
@@ -31,3 +31,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "5abb532ea102d88ccde0dec39de91d415833f850" | ||
"gitHead": "08d5a722257dbb1e06691c5d1ebcf7c17b6c2a0d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16361