Comparing version 0.6.0 to 0.8.0
## Changelog | ||
- 0.8.0 | ||
- Added `handleErrors` | ||
- 0.7.0 | ||
- Added `strman` library | ||
Add some content here | ||
- Added utils.extend | ||
Merges two objects into a single object | ||
var result = utils.extend(sourceObj, extendObj); | ||
- 0.6.0 | ||
@@ -4,0 +14,0 @@ - Added missing 'node-notifier' dependency |
13
index.js
@@ -1,6 +0,8 @@ | ||
// CD-UTILS INDEX | ||
// ============================================================================= | ||
/** | ||
* index.js | ||
* Mike Erickson <codedungeon@gmail.com> | ||
* 2016.05.20 20:54 (mikee) | ||
* ============================================================================= | ||
*/ | ||
/*global require*/ | ||
module.exports = function(params) { | ||
@@ -45,2 +47,5 @@ | ||
ellipsis: utils.ellipsis, | ||
extend: utils.extend, | ||
handleErrors: utils.handleErrors, | ||
} | ||
@@ -47,0 +52,0 @@ |
{ | ||
"name": "cd-utils", | ||
"version": "0.6.0", | ||
"version": "0.8.0", | ||
"description": "CodeDungeon Utilities [WIP]", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha specs --reporter spec" | ||
"test-mocha": "mocha specs --reporter spec", | ||
"test": "gulp mocha" | ||
}, | ||
@@ -21,11 +22,13 @@ "repository": { | ||
"dependencies": { | ||
"chalk": "1.1.1", | ||
"chalk": "1.1.3", | ||
"chalkline": "0.0.4", | ||
"defaults": "1.0.3", | ||
"gulp-messenger": "0.16.1", | ||
"gulp-notify": "2.2.0", | ||
"is_js": "0.8.0", | ||
"lodash": "4.6.1", | ||
"moment": "2.11.2", | ||
"moment": "2.13.0", | ||
"node-notifier": "4.5.0", | ||
"yargs": "4.2.0" | ||
"strman": "1.0.3", | ||
"yargs": "4.6.0" | ||
}, | ||
@@ -36,4 +39,4 @@ "devDependencies": { | ||
"gulp": "3.9.1", | ||
"gulp-messenger": "0.13.1", | ||
"gulp-mocha": "2.2.0", | ||
"gulp-todo": "4.1.0", | ||
"minimist": "1.2.0", | ||
@@ -43,3 +46,2 @@ "mkdirp": "0.5.1", | ||
"mocha-sinon": "1.1.5", | ||
"moment": "2.12.0", | ||
"require-dir": "0.3.0", | ||
@@ -46,0 +48,0 @@ "sinon": "1.17.3" |
@@ -65,3 +65,3 @@ # cd-utils | ||
#### | ||
#### extend | ||
@@ -68,0 +68,0 @@ |
@@ -195,3 +195,3 @@ // MODULE TEST | ||
it('should trim string', function() { | ||
it('should create ellipsis string', function() { | ||
result = utils.ellipsis('Mike Erickson', 4); | ||
@@ -201,2 +201,11 @@ expect(result).to.equal('Mike...') | ||
it('should produce `defaults` using `extend`', function() { | ||
var opts = {fname: 'Mike'}; | ||
var result = utils.extend(opts,{param: 'kira'}); | ||
expect(result).to.include.keys('fname'); | ||
expect(result).to.include.keys('param'); | ||
expect(result).to.be.an('object'); | ||
}); | ||
}); |
// CD-UTILS | ||
// ============================================================================= | ||
// TODO: This needs updated documentation (in readme) | ||
/*global require*/ | ||
@@ -17,2 +19,4 @@ | ||
var path = require('path'); | ||
var strman = require('strman'); | ||
var handleErrors = require('./handleErrors'); | ||
@@ -41,3 +45,3 @@ module.exports = function (opts) { | ||
}, | ||
failMessage: function(options) { | ||
@@ -251,6 +255,9 @@ if (( moduleOptions.showNotification ) || (options.showNotification)) { | ||
// some useful modules that are used on most projects | ||
is: is, | ||
chalk: chalk, | ||
chalkline: chalkline, | ||
is: is, | ||
chalk: chalk, | ||
chalkline: chalkline, | ||
str: strman, | ||
extend: defaults, | ||
handleErrors: handleErrors, | ||
}; | ||
@@ -257,0 +264,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27607
11
15
523
11
+ Addedgulp-messenger@0.16.1
+ Addedstrman@1.0.3
+ Addedansi-styles@1.0.0(transitive)
+ Addedarchy@1.0.0(transitive)
+ Addedarr-diff@4.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedarray-each@1.0.1(transitive)
+ Addedarray-slice@1.1.0(transitive)
+ Addedarray-unique@0.3.2(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedasync@1.0.0(transitive)
+ Addedatob@2.1.2(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase@0.11.2(transitive)
+ Addedbowser@1.0.0(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@2.3.2(transitive)
+ Addedcache-base@1.0.1(transitive)
+ Addedchalk@0.4.01.1.3(transitive)
+ Addedclass-utils@0.3.6(transitive)
+ Addedclone@0.2.0(transitive)
+ Addedcollection-visit@1.0.0(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcopy-descriptor@0.1.1(transitive)
+ Addedcycle@1.0.3(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddefine-property@0.2.51.0.02.0.2(transitive)
+ Addeddeprecated@0.0.1(transitive)
+ Addeddetect-file@1.0.0(transitive)
+ Addeddetect-node@2.1.0(transitive)
+ Addedend-of-stream@0.1.5(transitive)
+ Addedexpand-brackets@2.1.4(transitive)
+ Addedexpand-tilde@2.0.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextend-shallow@2.0.13.0.2(transitive)
+ Addedextglob@2.0.4(transitive)
+ Addedeyes@0.1.8(transitive)
+ Addedfill-range@4.0.0(transitive)
+ Addedfind-index@0.1.1(transitive)
+ Addedfindup-sync@2.0.0(transitive)
+ Addedfined@1.2.0(transitive)
+ Addedfirst-chunk-stream@1.0.0(transitive)
+ Addedflagged-respawn@1.0.1(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@1.0.0(transitive)
+ Addedfragment-cache@0.2.1(transitive)
+ Addedgaze@0.5.2(transitive)
+ Addedget-value@2.0.6(transitive)
+ Addedglob@3.1.214.5.3(transitive)
+ Addedglob-stream@3.1.18(transitive)
+ Addedglob-watcher@0.0.6(transitive)
+ Addedglob2base@0.0.12(transitive)
+ Addedglobal-modules@1.0.0(transitive)
+ Addedglobal-prefix@1.0.2(transitive)
+ Addedglobule@0.1.0(transitive)
+ Addedgraceful-fs@1.2.33.0.12(transitive)
+ Addedgulp@3.9.1(transitive)
+ Addedgulp-messenger@0.16.1(transitive)
+ Addedhas-color@0.1.7(transitive)
+ Addedhas-value@0.3.11.0.0(transitive)
+ Addedhas-values@0.1.41.0.0(transitive)
+ Addedhoek@2.16.3(transitive)
+ Addedhomedir-polyfill@1.0.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@1.0.2(transitive)
+ Addedini@1.3.8(transitive)
+ Addedinstall@0.6.1(transitive)
+ Addedinterpret@1.4.0(transitive)
+ Addedis-absolute@1.0.0(transitive)
+ Addedis-accessor-descriptor@1.0.1(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-data-descriptor@1.0.1(transitive)
+ Addedis-descriptor@0.1.71.0.3(transitive)
+ Addedis-extendable@0.1.11.0.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@3.1.0(transitive)
+ Addedis-number@3.0.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-relative@1.0.0(transitive)
+ Addedis-unc-path@1.0.0(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisobject@2.1.03.0.1(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedkind-of@3.2.24.0.06.0.3(transitive)
+ Addedliftoff@2.5.0(transitive)
+ Addedlodash@1.0.24.11.1(transitive)
+ Addedlodash-deep@1.6.0(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedmake-iterator@1.0.1(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmap-visit@1.0.0(transitive)
+ Addedmicromatch@3.1.10(transitive)
+ Addedminimatch@0.2.142.0.10(transitive)
+ Addedmixin-deep@1.3.2(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmoment@2.12.02.13.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addednanomatch@1.2.13(transitive)
+ Addednatives@1.1.6(transitive)
+ Addedobject-copy@0.1.0(transitive)
+ Addedobject-visit@1.0.1(transitive)
+ Addedobject.defaults@1.1.0(transitive)
+ Addedobject.map@1.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedonce@1.3.3(transitive)
+ Addedorchestrator@0.3.8(transitive)
+ Addedordered-read-streams@0.1.0(transitive)
+ Addedos-homedir@1.0.2(transitive)
+ Addedparse-filepath@1.0.2(transitive)
+ Addedparse-passwd@1.0.0(transitive)
+ Addedpascalcase@0.1.1(transitive)
+ Addedpath-root@0.1.1(transitive)
+ Addedpath-root-regex@0.1.2(transitive)
+ Addedpkginfo@0.3.1(transitive)
+ Addedposix-character-classes@0.1.1(transitive)
+ Addedpretty-hrtime@1.0.2(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedpurdy@1.6.0(transitive)
+ Addedreadable-stream@2.0.6(transitive)
+ Addedrechoir@0.6.2(transitive)
+ Addedregex-not@1.0.2(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve-dir@1.0.1(transitive)
+ Addedresolve-url@0.2.1(transitive)
+ Addedret@0.1.15(transitive)
+ Addedsafe-regex@1.1.0(transitive)
+ Addedsemver@4.3.6(transitive)
+ Addedsequencify@0.0.7(transitive)
+ Addedset-value@2.0.1(transitive)
+ Addedsigmund@1.0.1(transitive)
+ Addedsnapdragon@0.8.2(transitive)
+ Addedsnapdragon-node@2.1.1(transitive)
+ Addedsnapdragon-util@3.0.1(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-resolve@0.5.3(transitive)
+ Addedsource-map-url@0.4.1(transitive)
+ Addedsplit-string@3.1.0(transitive)
+ Addedstack-trace@0.0.10(transitive)
+ Addedstatic-extend@0.1.2(transitive)
+ Addedstream-consume@0.1.1(transitive)
+ Addedstrip-ansi@0.1.1(transitive)
+ Addedstrip-bom@1.0.0(transitive)
+ Addedstrman@1.0.3(transitive)
+ Addedthrough2@2.0.1(transitive)
+ Addedtildify@1.2.0(transitive)
+ Addedto-object-path@0.3.0(transitive)
+ Addedto-regex@3.0.2(transitive)
+ Addedto-regex-range@2.1.1(transitive)
+ Addedunc-path-regex@0.1.2(transitive)
+ Addedunion-value@1.0.1(transitive)
+ Addedunique-stream@1.0.0(transitive)
+ Addedunset-value@1.0.0(transitive)
+ Addedurix@0.1.0(transitive)
+ Addeduse@3.1.1(transitive)
+ Addeduser-home@1.1.1(transitive)
+ Addedv8flags@2.1.1(transitive)
+ Addedvinyl@0.4.6(transitive)
+ Addedvinyl-fs@0.3.14(transitive)
+ Addedwinston@2.2.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyargs@4.6.0(transitive)
- Removedchalk@1.1.1(transitive)
- Removedmoment@2.11.2(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedyargs@4.2.0(transitive)
Updatedchalk@1.1.3
Updatedmoment@2.13.0
Updatedyargs@4.6.0