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

@mongosh/history

Package Overview
Dependencies
Maintainers
11
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongosh/history - npm Package Compare versions

Comparing version 0.5.2 to 0.6.0

4

lib/index.d.ts
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

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