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

empower

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

empower - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

### 0.9.1 (2014-10-07)
#### Bug Fixes
* **empower:** power-assert output doesn't appear in Node 0.11.x ([53e882e0](https://github.com/twada/empower/commit/53e882e00ad3dd8b45f262ab14ac782ed582b954))
## 0.9.0 (2014-09-01)

@@ -2,0 +9,0 @@

2

gulpfile.js

@@ -85,3 +85,3 @@ var gulp = require('gulp'),

gulp.task('webserver', function() {
gulp.task('serve', function() {
gulp.src(__dirname)

@@ -88,0 +88,0 @@ .pipe(webserver({

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

return function () {
return function decoratedAssert () {
var context, message, args = slice.apply(arguments);

@@ -13,0 +13,0 @@

@@ -6,4 +6,3 @@ 'use strict';

capturable = require('./capturable'),
decorate = require('./decorate'),
isPhantom = typeof window !== 'undefined' && typeof window.callPhantom === 'function';
decorate = require('./decorate');

@@ -70,3 +69,2 @@

Decorator.prototype.errorToRethrow = function (e, originalMessage, context) {
var f;
if (e.name !== 'AssertionError') {

@@ -78,18 +76,9 @@ return e;

}
if (isPhantom) {
f = new this.receiver.AssertionError({
actual: e.actual,
expected: e.expected,
operator: e.operator,
message: e.message
});
} else {
f = e;
}
if (this.config.modifyMessageOnRethrow) {
f.message = this.buildPowerAssertText(originalMessage, context);
if (typeof e.generatedMessage !== 'undefined') {
f.generatedMessage = false;
}
}
var f = new this.receiver.AssertionError({
actual: e.actual,
expected: e.expected,
operator: e.operator,
message: this.config.modifyMessageOnRethrow ? this.buildPowerAssertText(originalMessage, context) : e.message,
stackStartFunction: Decorator.prototype.concreteAssert
});
if (this.config.saveContextOnRethrow) {

@@ -96,0 +85,0 @@ f.powerAssertContext = context;

{
"name": "empower",
"description": "Power Assert feature enhancer for assert function/object",
"version": "0.9.0",
"version": "0.9.1",
"author": {

@@ -19,12 +19,12 @@ "name": "Takuto Wada",

"blanket": "~1.1.6",
"browserify": "~5.11.0",
"browserify": "~5.11.2",
"buster-assertions": "~0.10.4",
"del": "~0.1.2",
"espower-source": "~0.9.0",
"gulp": "~3.8.7",
"gulp-derequire": "~0.3.1",
"gulp-mocha": "~1.0.0",
"del": "~0.1.3",
"espower-source": "~0.9.1",
"gulp": "~3.8.8",
"gulp-derequire": "~1.1.0",
"gulp-mocha": "~1.1.0",
"gulp-mocha-phantomjs": "~0.5.0",
"gulp-util": "~3.0.0",
"gulp-webserver": "~0.6.0",
"gulp-util": "~3.0.1",
"gulp-webserver": "~0.8.0",
"mocha": "~1.21.4",

@@ -51,4 +51,5 @@ "mocha-lcov-reporter": "~0.0.1",

"power-assert",
"assert",
"assertion",
"test",
"assert",
"testing"

@@ -55,0 +56,0 @@ ],

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