New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

edx-modulestore

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edx-modulestore - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

lib/models/problem.js

14

lib/course.js

@@ -11,2 +11,3 @@ 'use strict';

var About = require('./about');
var Problem = require('./problem');

@@ -325,2 +326,15 @@ // ## //

.return(this);
},
listProblems: function () {
var _id = this._get('_id');
return models.Problem
.findAsync({
'_id.org': _id.org,
'_id.course': _id.course
})
.then(function (problems) {
return problems.map(Problem.load);
});
}

@@ -327,0 +341,0 @@ });

4

lib/index.js

@@ -72,3 +72,5 @@ 'use strict';

Modulestore.prototype.disconnect = function () {
return this.connection.closeAsync();
if (this.connection) {
return this.connection.closeAsync();
}
};

@@ -75,0 +77,0 @@

@@ -13,6 +13,7 @@ 'use strict';

var SequentialSchema = require('./sequential');
var ProblemSchema = require('./problem');
// ## //
var Module, Course, About, Chapter, Sequential;
var Module, Course, About, Chapter, Sequential, Problem;

@@ -25,2 +26,3 @@ var setup = function (connection) {

Sequential = Module.discriminator('sequential', SequentialSchema);
Problem = Module.discriminator('problem', ProblemSchema);
};

@@ -37,1 +39,2 @@

exports.__defineGetter__('Sequential', function () { return Sequential; });
exports.__defineGetter__('Problem', function () { return Problem; });
{
"name": "edx-modulestore",
"version": "0.2.2",
"version": "0.2.3",
"description": "Easy browsing of Open edX modulestores",

@@ -12,3 +12,3 @@ "author": "Bertrand Marron",

"dependencies": {
"mongoose": "^3.8.25",
"mongoose": "3.8.25",
"mongoose-long": "0.0.2",

@@ -15,0 +15,0 @@ "lodash": "^3.5.0",

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