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

cd-utils

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cd-utils - npm Package Compare versions

Comparing version 0.6.0 to 0.8.0

specs/StrmanSpec.js

10

CHANGELOG.md
## 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

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