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

mongodb-explain-plan-model

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-explain-plan-model - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

lib/index.js

@@ -27,2 +27,8 @@ var Model = require('ampersand-model');

},
session: {
initialized: {
type: 'boolean',
default: false
}
},
derived: {

@@ -148,2 +154,3 @@ usedIndex: {

result.rawExplainObject = JSON.parse(JSON.stringify(attrs));
result.initialized = true;
return result;

@@ -150,0 +157,0 @@ },

12

lib/stage-iteration.js

@@ -13,6 +13,12 @@ var each = require('lodash.foreach');

_getStageIterator: function(root) {
root = root || this.rawExplainObject.executionStats.executionStages;
var model = this;
var stage;
var model = this;
var stageStack = [root];
var stageStack;
if (this.initialized) {
root = root || this.rawExplainObject.executionStats.executionStages;
stageStack = [root];
} else {
stageStack = [];
}
var iterator = {

@@ -19,0 +25,0 @@ current: function() {

{
"name": "mongodb-explain-plan-model",
"description": "Ampersand model abstraction for MongoDB explain plans (3.0+)",
"version": "0.1.0",
"version": "0.1.1",
"scripts": {

@@ -6,0 +6,0 @@ "fmt": "mongodb-js-fmt",

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