unexpected
Advanced tools
Comparing version 3.2.4 to 4.0.0
@@ -1,45 +0,6 @@ | ||
/*global console, __dirname, weknowhow, Uint8Array, Uint16Array*/ | ||
var Path = require('path'), | ||
fs = require('fs'), | ||
vm = require('vm'), | ||
isCoverage = !!process.env.COVERAGE, | ||
context = !isCoverage && vm.createContext({ | ||
console: console, | ||
Buffer: Buffer, | ||
// Reuse the existing context's globals so instanceof checks work: | ||
Object: Object, | ||
Array: Array, | ||
Error: Error, | ||
RegExp: RegExp, | ||
Date: Date, | ||
String: String, | ||
Number: Number, | ||
Math: Math, | ||
Boolean: Boolean, | ||
Function: Function, | ||
Uint8Array: Uint8Array, | ||
Uint16Array: Uint16Array | ||
}); | ||
var Unexpected = require('./Unexpected'); | ||
[ | ||
'unexpected-namespace.js', | ||
'unexpected-es5-compatible.js', | ||
'unexpected-utils.js', | ||
'unexpected-core.js', | ||
'unexpected-types.js', | ||
'unexpected-assertions.js', | ||
'unexpected-module.js' | ||
].forEach(function (fileName) { | ||
try { | ||
var src = fs.readFileSync(Path.resolve(__dirname, fileName), 'utf-8'); | ||
if (isCoverage) { | ||
vm.runInThisContext(src, fileName); | ||
} else { | ||
vm.runInContext(src, context, fileName); | ||
} | ||
} catch (err) { | ||
console.error('Error loading ' + fileName + ': ' + err.stack); | ||
} | ||
}); | ||
module.exports = isCoverage ? weknowhow.expect : context.weknowhow.expect; | ||
module.exports = Unexpected.create() | ||
.installPlugin(require('./colors')) | ||
.installPlugin(require('./types')) | ||
.installPlugin(require('./assertions')); |
{ | ||
"name": "unexpected", | ||
"version": "3.2.4", | ||
"version": "4.0.0", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -21,11 +21,17 @@ "keywords": [ | ||
"main": "./lib/index.js", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"magicpen": "=0.3.2" | ||
}, | ||
"devDependencies": { | ||
"browserify": "=5.9.1", | ||
"bundle-collapser": "^1.1.0", | ||
"coveralls": "^2.11.1", | ||
"istanbul": "^0.3.0", | ||
"jshint": "*", | ||
"mocha": "=1.17.1", | ||
"phantomjs": "=1.9.1-0", | ||
"mocha-phantomjs": "=3.1.0", | ||
"mocha-slow-reporter": "*", | ||
"phantomjs": "=1.9.1-0", | ||
"serve": "*" | ||
} | ||
} |
@@ -14,3 +14,6 @@ # Unexpected | ||
[![NPM version](https://badge.fury.io/js/unexpected.png)](http://badge.fury.io/js/unexpected) | ||
[![Build Status](https://travis-ci.org/sunesimonsen/unexpected.png)](https://travis-ci.org/sunesimonsen/unexpected) | ||
[![Coverage Status](https://coveralls.io/repos/sunesimonsen/unexpected/badge.png)](https://coveralls.io/r/sunesimonsen/unexpected) | ||
[![Dependency Status](https://david-dm.org/sunesimonsen/unexpected.png)](https://david-dm.org/sunesimonsen/unexpected) | ||
@@ -627,26 +630,4 @@ [Run the test in the browser](http://sunesimonsen.github.io/unexpected/test/tests.production.html) | ||
(The MIT License) | ||
MIT, see the `LICENSE` file for details | ||
Copyright (c) 2013 Sune Simonsen <sune@we-knowhow.dk> | ||
Permission is hereby granted, free of charge, to any person | ||
obtaining a copy of this software and associated documentation | ||
files (the 'Software'), to deal in the Software without | ||
restriction, including without limitation the rights to use, copy, | ||
modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS | ||
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | ||
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
### 3rd-party | ||
@@ -653,0 +634,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
474165
11591
1
10
635
13
1
+ Addedmagicpen@=0.3.2