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

gengojs-core-modules

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

gengojs-core-modules - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

CHANGELOG.md

@@ -0,1 +1,9 @@

2.0.1 / 2015-09-29
==================
* Release v2.0.1.
* Update
Updated gengojs-debug.
Fixed tests.
2.0.0 / 2015-09-28

@@ -2,0 +10,0 @@ ==================

16

lib/modules/plugify.js

@@ -91,3 +91,3 @@ import _ from 'lodash';

if (!_.isFunction(ship)) throw new Error('Uh oh! The ship must be a function!');
if (!_.isPlainObject(ship())) throw new Error('Woops! Did the ship forget to return a plain object?');
if (!_.isPlainObject(ship())) throw new Error('Whoops! Did the ship forget to return a plain object?');
} catch (error) {

@@ -102,3 +102,3 @@ log.error(`class: ${Plugify.name}`,

if (_.isFunction(plugins)) {
if (!_.isPlainObject(plugins())) throw new Error('Woops! Did the ship forget to return a plain object?');
if (!_.isPlainObject(plugins())) throw new Error('Whoops! Did the ship forget to return a plain object?');
plugs.push(plugins());

@@ -116,8 +116,8 @@ }

try {
if (_.has(plugin, 'main')) throw new Error('Woops! Did you forget the main function?');
if (_.has(plugin, 'package')) throw new Error('Woops! Did you forget the package?');
if (_.has(plugin.package, 'type')) throw new Error('Woops! Did you forget the "type" of plugin?');
if (_.has(plugin.package, 'name')) throw new Error('Woops! Did you forget the "name" of plugin?');
if (!_.has(plugin.package, 'defaults')) throw new Error('Woops! Did you forget to add "defaults"?');
if (_.has(plugin, 'defaults')) throw new Error('Woops! Did you forget to add the "defaults"?');
if (_.has(plugin, 'main')) throw new Error('Whoops! Did you forget the main function?');
if (_.has(plugin, 'package')) throw new Error('Whoops! Did you forget the package?');
if (_.has(plugin.package, 'type')) throw new Error('Whoops! Did you forget the "type" of plugin?');
if (_.has(plugin.package, 'name')) throw new Error('Whoops! Did you forget the "name" of plugin?');
if (!_.has(plugin.package, 'defaults')) throw new Error('Whoops! Did you forget to add "defaults"?');
if (_.has(plugin, 'defaults')) throw new Error('Whoops! Did you forget to add the "defaults"?');
} catch (error) {

@@ -124,0 +124,0 @@ log.error(`class: ${Plugify.name}`,

@@ -131,3 +131,3 @@ 'use strict';

if (!_lodash2['default'].isFunction(ship)) throw new Error('Uh oh! The ship must be a function!');
if (!_lodash2['default'].isPlainObject(ship())) throw new Error('Woops! Did the ship forget to return a plain object?');
if (!_lodash2['default'].isPlainObject(ship())) throw new Error('Whoops! Did the ship forget to return a plain object?');
} catch (error) {

@@ -141,3 +141,3 @@ log.error('class: ' + Plugify.name, 'error: ' + (error.stack || error.toString()));

if (_lodash2['default'].isFunction(plugins)) {
if (!_lodash2['default'].isPlainObject(plugins())) throw new Error('Woops! Did the ship forget to return a plain object?');
if (!_lodash2['default'].isPlainObject(plugins())) throw new Error('Whoops! Did the ship forget to return a plain object?');
plugs.push(plugins());

@@ -158,8 +158,8 @@ }

try {
if (_lodash2['default'].has(plugin, 'main')) throw new Error('Woops! Did you forget the main function?');
if (_lodash2['default'].has(plugin, 'package')) throw new Error('Woops! Did you forget the package?');
if (_lodash2['default'].has(plugin['package'], 'type')) throw new Error('Woops! Did you forget the "type" of plugin?');
if (_lodash2['default'].has(plugin['package'], 'name')) throw new Error('Woops! Did you forget the "name" of plugin?');
if (!_lodash2['default'].has(plugin['package'], 'defaults')) throw new Error('Woops! Did you forget to add "defaults"?');
if (_lodash2['default'].has(plugin, 'defaults')) throw new Error('Woops! Did you forget to add the "defaults"?');
if (_lodash2['default'].has(plugin, 'main')) throw new Error('Whoops! Did you forget the main function?');
if (_lodash2['default'].has(plugin, 'package')) throw new Error('Whoops! Did you forget the package?');
if (_lodash2['default'].has(plugin['package'], 'type')) throw new Error('Whoops! Did you forget the "type" of plugin?');
if (_lodash2['default'].has(plugin['package'], 'name')) throw new Error('Whoops! Did you forget the "name" of plugin?');
if (!_lodash2['default'].has(plugin['package'], 'defaults')) throw new Error('Whoops! Did you forget to add "defaults"?');
if (_lodash2['default'].has(plugin, 'defaults')) throw new Error('Whoops! Did you forget to add the "defaults"?');
} catch (error) {

@@ -166,0 +166,0 @@ log.error('class: ' + Plugify.name, 'error: ' + (error.stack || error.toString()));

{
"name": "gengojs-core-modules",
"version": "2.0.1",
"version": "2.0.2",
"description": "gengo.js core modules is a set of modules that helps the core to function properly.",

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

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