Socket
Socket
Sign inDemoInstall

moog-require

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moog-require - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

1

index.js

@@ -8,2 +8,3 @@ var async = require('async');

module.exports = function(options) {
var self = require('moog')(options);

@@ -10,0 +11,0 @@

2

package.json
{
"name": "moog-require",
"version": "0.0.1",
"version": "0.0.2",
"description": "moog-require extends moog with support for type definitions in local files and npm modules.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -717,25 +717,25 @@ var assert = require('assert');

// describe('error handling', function() {
// it('should prevent cyclical module definitions', function(done) {
// var synth = require('../index.js')({
// localModules: __dirname + '/project_modules',
// root: module
// });
describe('error handling', function() {
it('should prevent cyclical module definitions', function(done) {
var synth = require('../index.js')({
localModules: __dirname + '/project_modules',
root: module
});
// synth.define({
// 'myNewModuleOne': {
// extend: 'myNewModuleTwo'
// },
// 'myNewModuleTwo': {
// extend: 'myNewModuleOne'
// }
// });
synth.define({
'myNewModuleOne': {
extend: 'myNewModuleTwo'
},
'myNewModuleTwo': {
extend: 'myNewModuleOne'
}
});
// synth.createAll({ }, { }, function(err, modules) {
// assert(err);
// return done();
// });
// });
// });
synth.createAll({ }, { }, function(err, modules) {
assert(err);
return done();
});
});
});
});
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