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.5 to 2.0.6

src/modules/extractify.js

11

CHANGELOG.md

@@ -0,1 +1,12 @@

2.0.5 / 2015-10-04
==================
* Release v2.0.5.
* Release v2.0.4.
* Release v2.0.3.
* Update
updated change log.
* Test Fix
Should fix an issue where the duplicates were found in the options.
2.0.2 / 2015-10-04

@@ -2,0 +13,0 @@ ==================

4

gulpfile.js

@@ -42,5 +42,3 @@ var

.pipe(sourcemaps.write("./source maps/"))
.pipe(gulp.dest(function(file){
return file.base.replace('lib/','');
}));
.pipe(gulp.dest('src/'));
});

@@ -47,0 +45,0 @@

@@ -46,7 +46,5 @@ import _ from 'lodash';

// Set the default options by merging with user's
options = _.merge({}, {
_.merge(options, {
[type]: defaults
}, _.isEmpty(options) ? {
[type]: {}
} : options);
}, options);
}

@@ -53,0 +51,0 @@ /**

{
"name": "gengojs-core-modules",
"version": "2.0.5",
"version": "2.0.6",
"description": "gengo.js core modules is a set of modules that helps the core to function properly.",
"main": "./modules/index.js",
"main": "src/modules/index.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "gulp test"

var assert = require('chai').assert;
var __ = require('../../modules/inputify');
var __ = require('../../src/modules/inputify');

@@ -4,0 +4,0 @@ describe("Inputify", function () {

var assert = require('chai').assert;
var optify = require('../../modules/optify');
var optify = require('../../src/modules/optify');
var path = require('path');

@@ -4,0 +4,0 @@ var fixtures = path.resolve(__dirname, '../optify/fixtures/');

var assert = require('chai').assert;
var plugify = require('../../modules/plugify');
var plugify = require('../../src/modules/plugify');
var path = require('path');

@@ -7,18 +7,69 @@ var fixtures = path.resolve(__dirname, '../plugify/fixtures/');

describe("Plugify", function() {
describe("plugins", function() {
var plugins = plugify(plugs());
it("should return the correct plugins", function(){
assert.isFunction(plugs);
assert.isObject(plugins);
assert.notDeepEqual(plugins, {
parser: [],
router: [],
backend: [],
api: [],
header: [],
localize: []
});
});
});
describe("Plugify", function () {
describe("plugins", function () {
var plugins = plugify(plugs());
it("should return the correct plugins", function () {
assert.isFunction(plugs);
assert.isObject(plugins);
assert.notDeepEqual(plugins, {
parser: [],
router: [],
backend: [],
api: [],
header: [],
localize: []
});
});
});
describe("options", function () {
var options = {
parser: {
shout: 'hello',
},
router: {
shout2: 'hello'
},
backend: {
shout2: 'hello'
},
api: {
shout2: 'hello'
},
header: {
shout2: 'hello'
},
localize: {
shout2: 'hello'
}
};
var plugins = plugify(plugs(), options);
it("should merge user settings", function () {
assert.deepEqual(options, {
parser: {
shout: 'hello',
greet :'hello',
},
router: {
shout2: 'hello',
greet2 :'hello',
},
backend: {
shout2: 'hello',
greet3 :'hello',
},
api: {
shout2: 'hello',
greet4 :'hello',
},
header: {
shout2: 'hello',
greet5 :'hello',
},
localize: {
shout2: 'hello',
greet6 :'hello',
}
});
});
});
});
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