Socket
Socket
Sign inDemoInstall

@mongosh/history

Package Overview
Dependencies
Maintainers
11
Versions
118
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.6.1 to 0.7.7

2

lib/history.d.ts

@@ -1,3 +0,3 @@

export declare const HIDDEN_COMMANDS = "createUser|auth|updateUser|changeUserPassword|connect|Mongo";
export declare const HIDDEN_COMMANDS: string;
export declare function removeCommand(history: string, redact?: boolean): string;
export declare function changeHistory(history: string[], redact?: boolean): void;

@@ -8,3 +8,3 @@ "use strict";

const mongodb_redact_1 = __importDefault(require("mongodb-redact"));
exports.HIDDEN_COMMANDS = 'createUser|auth|updateUser|changeUserPassword|connect|Mongo';
exports.HIDDEN_COMMANDS = String.raw `\b(createUser|auth|updateUser|changeUserPassword|connect|Mongo)\b`;
function removeCommand(history, redact = false) {

@@ -11,0 +11,0 @@ if (redact) {

{
"name": "@mongosh/history",
"version": "0.6.1",
"version": "0.7.7",
"description": "MongoDB Shell History Package",

@@ -31,3 +31,3 @@ "main": "./lib/index.js",

},
"gitHead": "b8db879ff567d72cd0c040b04a2ee55bca0203b7"
"gitHead": "9d8be6957c3ef53f4cdaa23547225806652f8ef9"
}

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