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

plugin-error

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plugin-error - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

31

index.js

@@ -10,3 +10,3 @@ /*!

var chalk = require('chalk');
var assign = require('object-assign');
var extend = require('extend-shallow');
var differ = require('arr-diff');

@@ -20,27 +20,6 @@ var union = require('arr-union');

var nonEnum = [
'message',
'name',
'stack'
];
var nonEnum = ['message', 'name', 'stack'];
var ignored = union(nonEnum, ['__safety', '_stack', 'plugin', 'showProperties', 'showStack']);
var props = ['fileName', 'lineNumber', 'message', 'name', 'plugin', 'showProperties', 'showStack', 'stack'];
var ignored = union(nonEnum, [
'__safety',
'_stack',
'plugin',
'showProperties',
'showStack'
]);
var props = [
'fileName',
'lineNumber',
'message',
'name',
'plugin',
'showProperties',
'showStack',
'stack'
];
function PluginError(plugin, message, options) {

@@ -200,3 +179,3 @@ if (!(this instanceof PluginError)) {

function defaults(opts) {
return assign({showStack: false, showProperties: true}, opts);
return extend({showStack: false, showProperties: true}, opts);
}

@@ -203,0 +182,0 @@

4

package.json
{
"name": "plugin-error",
"description": "Error handling for vinyl plugins. Just an abstraction of what's in gulp-util with minor changes.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/jonschlinkert/plugin-error",

@@ -35,3 +35,3 @@ "author": {

"chalk": "^1.0.0",
"object-assign": "^2.0.0"
"extend-shallow": "^1.1.2"
},

@@ -38,0 +38,0 @@ "devDependencies": {

@@ -1,2 +0,2 @@

# plugin-error [![NPM version](https://badge.fury.io/js/plugin-error.svg)](http://badge.fury.io/js/plugin-error) [![Build Status](https://travis-ci.org/jonschlinkert/plugin-error.svg)](https://travis-ci.org/jonschlinkert/plugin-error)
# plugin-error [![NPM version](https://badge.fury.io/js/plugin-error.svg)](http://badge.fury.io/js/plugin-error) [![Build Status](https://travis-ci.org/jonschlinkert/plugin-error.svg)](https://travis-ci.org/jonschlinkert/plugin-error)

@@ -21,12 +21,12 @@ > Error handling for vinyl plugins. Just an abstraction of what's in gulp-util with minor changes.

- `pluginName` should be the module name of your plugin
- `message` **{String|Object}**: may be a string or an existing error object
- `options` **{Object}**
* `pluginName` should be the module name of your plugin
* `message` **{String|Object}**: may be a string or an existing error object
* `options` **{Object}**
**Behavior:**
- By default the stack will not be shown. Set `options.showStack` to true if you think the stack is important for your error.
- If you pass an error object as the message the stack will be pulled from that, otherwise one will be created.
- If you pass in a custom stack string you need to include the message along with that.
- Error properties will be included in `err.toString()`, but may be omitted by including `{showProperties: false}` in the options.
* By default the stack will not be shown. Set `options.showStack` to true if you think the stack is important for your error.
* If you pass an error object as the message the stack will be pulled from that, otherwise one will be created.
* If you pass in a custom stack string you need to include the message along with that.
* Error properties will be included in `err.toString()`, but may be omitted by including `{showProperties: false}` in the options.

@@ -57,7 +57,7 @@ **Examples**

* [assemble](http://assemble.io): Static site generator for Grunt.js, Yeoman and Node.js. Used by… [more](http://assemble.io)
* [generate](https://github.com/generate/generate): Project generator, for node.js.
* [assemble](http://assemble.io): Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… [more](http://assemble.io)
* [gulp-util](https://github.com/wearefractal/gulp-util): Utility functions for gulp plugins
* [gulp](http://gulpjs.com): The streaming build system
* [verb](https://github.com/assemble/verb): Documentation generator for GitHub projects. Extremely powerful, easy to use,… [more](https://github.com/assemble/verb)
* [generate](https://github.com/generate/generate): Project generator, for node.js.
* [verb](https://github.com/assemble/verb): Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… [more](https://github.com/assemble/verb)

@@ -90,8 +90,4 @@ ## Running tests

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on April 26, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 01, 2015._
<!-- reflinks generated by verb-reflinks plugin -->
[verb]: https://github.com/assemble/verb
[template]: https://github.com/jonschlinkert/template
[assemble]: http://assemble.io
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