summaryrefslogtreecommitdiff
path: root/node_modules/has
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/has')
-rw-r--r--node_modules/has/LICENSE-MIT22
-rw-r--r--node_modules/has/README.md18
-rw-r--r--node_modules/has/package.json45
-rw-r--r--node_modules/has/src/index.js8
-rw-r--r--node_modules/has/test/index.js16
5 files changed, 0 insertions, 109 deletions
diff --git a/node_modules/has/LICENSE-MIT b/node_modules/has/LICENSE-MIT
deleted file mode 100644
index ae7014d3..00000000
--- a/node_modules/has/LICENSE-MIT
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2013 Thiago de Arruda
-
-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/has/README.md b/node_modules/has/README.md
deleted file mode 100644
index 635e3a4b..00000000
--- a/node_modules/has/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# has
-
-> Object.prototype.hasOwnProperty.call shortcut
-
-## Installation
-
-```sh
-npm install --save has
-```
-
-## Usage
-
-```js
-var has = require('has');
-
-has({}, 'hasOwnProperty'); // false
-has(Object.prototype, 'hasOwnProperty'); // true
-```
diff --git a/node_modules/has/package.json b/node_modules/has/package.json
deleted file mode 100644
index 69cdd447..00000000
--- a/node_modules/has/package.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "name": "has",
- "description": "Object.prototype.hasOwnProperty.call shortcut",
- "version": "1.0.4",
- "homepage": "https://github.com/tarruda/has",
- "author": {
- "name": "Thiago de Arruda",
- "email": "tpadilha84@gmail.com"
- },
- "contributors": [
- {
- "name": "Jordan Harband",
- "email": "ljharb@gmail.com",
- "url": "http://ljharb.codes"
- }
- ],
- "repository": {
- "type": "git",
- "url": "git://github.com/tarruda/has.git"
- },
- "bugs": {
- "url": "https://github.com/tarruda/has/issues"
- },
- "license": "MIT",
- "licenses": [
- {
- "type": "MIT",
- "url": "https://github.com/tarruda/has/blob/master/LICENSE-MIT"
- }
- ],
- "main": "./src",
- "devDependencies": {
- "@ljharb/eslint-config": "^12.2.1",
- "eslint": "^4.19.1",
- "tape": "^4.9.0"
- },
- "engines": {
- "node": ">= 0.4.0"
- },
- "scripts": {
- "lint": "eslint .",
- "pretest": "npm run lint",
- "test": "tape test"
- }
-}
diff --git a/node_modules/has/src/index.js b/node_modules/has/src/index.js
deleted file mode 100644
index 688714ce..00000000
--- a/node_modules/has/src/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-var hasOwnProperty = {}.hasOwnProperty;
-var call = Function.prototype.call;
-
-module.exports = call.bind ? call.bind(hasOwnProperty) : function (O, P) {
- return call.call(hasOwnProperty, O, P);
-};
diff --git a/node_modules/has/test/index.js b/node_modules/has/test/index.js
deleted file mode 100644
index 876aad91..00000000
--- a/node_modules/has/test/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var has = require('../');
-
-test('has', function (t) {
- t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"');
- t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"');
- t['throws'](function () {
- has(null, 'throws');
- }, TypeError, 'calling has on null throws TypeError');
- t['throws'](function () {
- has(void 0, 'throws');
- }, TypeError, 'calling has on undefined throws TypeError');
- t.end();
-});