Switch to new repository
diff --git a/node_modules/get-func-name/LICENSE b/node_modules/get-func-name/LICENSE
new file mode 100644
index 0000000..7ea799f
--- /dev/null
+++ b/node_modules/get-func-name/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2013 Jake Luer <jake@alogicalparadox.com> (http://alogicalparadox.com)
+
+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.
diff --git a/node_modules/get-func-name/README.md b/node_modules/get-func-name/README.md
new file mode 100644
index 0000000..e908416
--- /dev/null
+++ b/node_modules/get-func-name/README.md
@@ -0,0 +1,123 @@
+<h1 align=center>
+ <a href="http://chaijs.com" title="Chai Documentation">
+ <img alt="ChaiJS" src="http://chaijs.com/img/chai-logo.png"/>
+ <br>
+ get-func-name
+ </a>
+</h1>
+
+<p align=center>
+ Utility for getting a function's name for <a href="http://nodejs.org">node</a> and the browser.
+</p>
+
+<p align=center>
+ <a href="./LICENSE">
+ <img
+ alt="license:mit"
+ src="https://img.shields.io/badge/license-mit-green.svg?style=flat-square"
+ />
+ </a>
+ <a href="https://github.com/chaijs/get-func-name/releases">
+ <img
+ alt="tag:?"
+ src="https://img.shields.io/github/tag/chaijs/get-func-name.svg?style=flat-square"
+ />
+ </a>
+ <a href="https://travis-ci.org/chaijs/get-func-name">
+ <img
+ alt="build:?"
+ src="https://img.shields.io/travis/chaijs/get-func-name/master.svg?style=flat-square"
+ />
+ </a>
+ <a href="https://coveralls.io/r/chaijs/get-func-name">
+ <img
+ alt="coverage:?"
+ src="https://img.shields.io/coveralls/chaijs/get-func-name/master.svg?style=flat-square"
+ />
+ </a>
+ <a href="https://www.npmjs.com/packages/get-func-name">
+ <img
+ alt="npm:?"
+ src="https://img.shields.io/npm/v/get-func-name.svg?style=flat-square"
+ />
+ </a>
+ <a href="https://www.npmjs.com/packages/get-func-name">
+ <img
+ alt="dependencies:?"
+ src="https://img.shields.io/npm/dm/get-func-name.svg?style=flat-square"
+ />
+ </a>
+ <a href="">
+ <img
+ alt="devDependencies:?"
+ src="https://img.shields.io/david/chaijs/get-func-name.svg?style=flat-square"
+ />
+ </a>
+ <br/>
+ <a href="https://saucelabs.com/u/chaijs-get-func-name">
+ <img
+ alt="Selenium Test Status"
+ src="https://saucelabs.com/browser-matrix/chaijs-get-func-name.svg"
+ />
+ </a>
+ <br>
+ <a href="https://chai-slack.herokuapp.com/">
+ <img
+ alt="Join the Slack chat"
+ src="https://img.shields.io/badge/slack-join%20chat-E2206F.svg?style=flat-square"
+ />
+ </a>
+ <a href="https://gitter.im/chaijs/chai">
+ <img
+ alt="Join the Gitter chat"
+ src="https://img.shields.io/badge/gitter-join%20chat-D0104D.svg?style=flat-square"
+ />
+ </a>
+</p>
+
+## What is get-func-name?
+
+This is a module to retrieve a function's name securely and consistently both in NodeJS and the browser.
+
+## Installation
+
+### Node.js
+
+`get-func-name` is available on [npm](http://npmjs.org). To install it, type:
+
+ $ npm install get-func-name
+
+### Browsers
+
+You can also use it within the browser; install via npm and use the `get-func-name.js` file found within the download. For example:
+
+```html
+<script src="./node_modules/get-func-name/get-func-name.js"></script>
+```
+
+## Usage
+
+The module `get-func-name` exports the following method:
+
+* `getFuncName(fn)` - Returns the name of a function.
+
+```js
+var getFuncName = require('get-func-name');
+```
+
+#### .getFuncName(fun)
+
+```js
+var getFuncName = require('get-func-name');
+
+var unknownFunction = function myCoolFunction(word) {
+ return word + 'is cool';
+};
+
+var anonymousFunction = (function () {
+ return function () {};
+}());
+
+getFuncName(unknownFunction) // 'myCoolFunction'
+getFuncName(anonymousFunction) // ''
+```
diff --git a/node_modules/get-func-name/get-func-name.js b/node_modules/get-func-name/get-func-name.js
new file mode 100644
index 0000000..f0c4069
--- /dev/null
+++ b/node_modules/get-func-name/get-func-name.js
@@ -0,0 +1,48 @@
+(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.getFuncName = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
+'use strict';
+
+/* !
+ * Chai - getFuncName utility
+ * Copyright(c) 2012-2016 Jake Luer <jake@alogicalparadox.com>
+ * MIT Licensed
+ */
+
+/**
+ * ### .getFuncName(constructorFn)
+ *
+ * Returns the name of a function.
+ * When a non-function instance is passed, returns `null`.
+ * This also includes a polyfill function if `aFunc.name` is not defined.
+ *
+ * @name getFuncName
+ * @param {Function} funct
+ * @namespace Utils
+ * @api public
+ */
+
+var toString = Function.prototype.toString;
+var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;
+function getFuncName(aFunc) {
+ if (typeof aFunc !== 'function') {
+ return null;
+ }
+
+ var name = '';
+ if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {
+ // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined
+ var match = toString.call(aFunc).match(functionNameMatch);
+ if (match) {
+ name = match[1];
+ }
+ } else {
+ // If we've got a `name` property we just use it
+ name = aFunc.name;
+ }
+
+ return name;
+}
+
+module.exports = getFuncName;
+
+},{}]},{},[1])(1)
+});
\ No newline at end of file
diff --git a/node_modules/get-func-name/index.js b/node_modules/get-func-name/index.js
new file mode 100644
index 0000000..e4aa582
--- /dev/null
+++ b/node_modules/get-func-name/index.js
@@ -0,0 +1,44 @@
+'use strict';
+
+/* !
+ * Chai - getFuncName utility
+ * Copyright(c) 2012-2016 Jake Luer <jake@alogicalparadox.com>
+ * MIT Licensed
+ */
+
+/**
+ * ### .getFuncName(constructorFn)
+ *
+ * Returns the name of a function.
+ * When a non-function instance is passed, returns `null`.
+ * This also includes a polyfill function if `aFunc.name` is not defined.
+ *
+ * @name getFuncName
+ * @param {Function} funct
+ * @namespace Utils
+ * @api public
+ */
+
+var toString = Function.prototype.toString;
+var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;
+function getFuncName(aFunc) {
+ if (typeof aFunc !== 'function') {
+ return null;
+ }
+
+ var name = '';
+ if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {
+ // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined
+ var match = toString.call(aFunc).match(functionNameMatch);
+ if (match) {
+ name = match[1];
+ }
+ } else {
+ // If we've got a `name` property we just use it
+ name = aFunc.name;
+ }
+
+ return name;
+}
+
+module.exports = getFuncName;
diff --git a/node_modules/get-func-name/package.json b/node_modules/get-func-name/package.json
new file mode 100644
index 0000000..ba97865
--- /dev/null
+++ b/node_modules/get-func-name/package.json
@@ -0,0 +1,132 @@
+{
+ "_from": "get-func-name@^2.0.0",
+ "_id": "get-func-name@2.0.0",
+ "_inBundle": false,
+ "_integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
+ "_location": "/get-func-name",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "get-func-name@^2.0.0",
+ "name": "get-func-name",
+ "escapedName": "get-func-name",
+ "rawSpec": "^2.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^2.0.0"
+ },
+ "_requiredBy": [
+ "/chai"
+ ],
+ "_resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
+ "_shasum": "ead774abee72e20409433a066366023dd6887a41",
+ "_spec": "get-func-name@^2.0.0",
+ "author": {
+ "name": "Jake Luer",
+ "email": "jake@alogicalparadox.com",
+ "url": "http://alogicalparadox.com"
+ },
+ "bugs": {
+ "url": "https://github.com/chaijs/get-func-name/issues"
+ },
+ "bundleDependencies": false,
+ "config": {
+ "ghooks": {
+ "commit-msg": "validate-commit-msg"
+ }
+ },
+ "contributors": [
+ {
+ "name": "Keith Cirkel",
+ "url": "https://github.com/keithamus"
+ },
+ {
+ "name": "Lucas Fernandes da Costa",
+ "url": "https://github.com/lucasfcosta"
+ },
+ {
+ "name": "Grant Snodgrass",
+ "url": "https://github.com/meeber"
+ },
+ {
+ "name": "Lucas Vieira",
+ "url": "https://github.com/vieiralucas"
+ },
+ {
+ "name": "Aleksey Shvayka",
+ "url": "https://github.com/shvaikalesh"
+ }
+ ],
+ "dependencies": {},
+ "deprecated": false,
+ "description": "Utility for getting a function's name for node and the browser",
+ "devDependencies": {
+ "browserify": "^13.0.0",
+ "browserify-istanbul": "^2.0.0",
+ "coveralls": "2.11.14",
+ "eslint": "^2.4.0",
+ "eslint-config-strict": "^9.1.0",
+ "eslint-plugin-filenames": "^1.1.0",
+ "ghooks": "^1.0.1",
+ "istanbul": "^0.4.2",
+ "karma": "^1.3.0",
+ "karma-browserify": "^5.0.2",
+ "karma-coverage": "^1.1.1",
+ "karma-mocha": "^1.2.0",
+ "karma-phantomjs-launcher": "^1.0.0",
+ "karma-sauce-launcher": "^1.0.0",
+ "lcov-result-merger": "^1.0.2",
+ "mocha": "^3.1.2",
+ "phantomjs-prebuilt": "^2.1.5",
+ "semantic-release": "^4.3.5",
+ "simple-assert": "^1.0.0",
+ "travis-after-all": "^1.4.4",
+ "validate-commit-msg": "^2.3.1"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "eslintConfig": {
+ "extends": [
+ "strict/es5"
+ ],
+ "env": {
+ "es6": true
+ },
+ "globals": {
+ "HTMLElement": false
+ },
+ "rules": {
+ "complexity": 0,
+ "max-statements": 0
+ }
+ },
+ "files": [
+ "index.js",
+ "get-func-name.js"
+ ],
+ "homepage": "https://github.com/chaijs/get-func-name#readme",
+ "keywords": [
+ "get-func-name",
+ "chai util"
+ ],
+ "license": "MIT",
+ "main": "./index.js",
+ "name": "get-func-name",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/chaijs/get-func-name.git"
+ },
+ "scripts": {
+ "build": "browserify --bare $npm_package_main --standalone getFuncName -o get-func-name.js",
+ "lint": "eslint --ignore-path .gitignore .",
+ "prepublish": "npm run build",
+ "pretest": "npm run lint",
+ "semantic-release": "semantic-release pre && npm publish && semantic-release post",
+ "test": "npm run test:node && npm run test:browser && npm run upload-coverage",
+ "test:browser": "karma start --singleRun=true",
+ "test:node": "istanbul cover _mocha",
+ "upload-coverage": "lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"
+ },
+ "version": "2.0.0"
+}