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

unexpected

Package Overview
Dependencies
Maintainers
2
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected - npm Package Compare versions

Comparing version 3.2.4 to 4.0.0

lib/Assertion.js

49

lib/index.js

@@ -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 &lt;sune@we-knowhow.dk&gt;
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

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