first commit
This commit is contained in:
14
build/node_modules/has/.jshintrc
generated
vendored
Normal file
14
build/node_modules/has/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"boss": true,
|
||||
"eqnull": true,
|
||||
"node": true,
|
||||
"browser": true
|
||||
}
|
||||
3
build/node_modules/has/.npmignore
generated
vendored
Normal file
3
build/node_modules/has/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/node_modules/
|
||||
*.log
|
||||
*~
|
||||
22
build/node_modules/has/LICENSE-MIT
generated
vendored
Normal file
22
build/node_modules/has/LICENSE-MIT
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
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.
|
||||
18
build/node_modules/has/README.mkd
generated
vendored
Normal file
18
build/node_modules/has/README.mkd
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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
|
||||
```
|
||||
70
build/node_modules/has/package.json
generated
vendored
Normal file
70
build/node_modules/has/package.json
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"has@1.0.1",
|
||||
"/Users/asciidisco/Desktop/asciidisco.com/build"
|
||||
]
|
||||
],
|
||||
"_from": "has@1.0.1",
|
||||
"_id": "has@1.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=",
|
||||
"_location": "/has",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "has@1.0.1",
|
||||
"name": "has",
|
||||
"escapedName": "has",
|
||||
"rawSpec": "1.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/colormin",
|
||||
"/cssnano",
|
||||
"/postcss-merge-idents",
|
||||
"/postcss-minify-selectors",
|
||||
"/postcss-reduce-transforms",
|
||||
"/postcss-zindex"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz",
|
||||
"_spec": "1.0.1",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
|
||||
"author": {
|
||||
"name": "Thiago de Arruda",
|
||||
"email": "tpadilha84@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/tarruda/has/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"function-bind": "^1.0.2"
|
||||
},
|
||||
"description": "Object.prototype.hasOwnProperty.call shortcut",
|
||||
"devDependencies": {
|
||||
"chai": "~1.7.2",
|
||||
"mocha": "^1.21.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8.0"
|
||||
},
|
||||
"homepage": "https://github.com/tarruda/has",
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/tarruda/has/blob/master/LICENSE-MIT"
|
||||
}
|
||||
],
|
||||
"main": "./src/index",
|
||||
"name": "has",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/tarruda/has.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node_modules/mocha/bin/mocha"
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
||||
3
build/node_modules/has/src/index.js
generated
vendored
Normal file
3
build/node_modules/has/src/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var bind = require('function-bind');
|
||||
|
||||
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
||||
7
build/node_modules/has/test/.jshintrc
generated
vendored
Normal file
7
build/node_modules/has/test/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"globals": {
|
||||
"expect": false,
|
||||
"run": false
|
||||
},
|
||||
"expr": true
|
||||
}
|
||||
10
build/node_modules/has/test/index.js
generated
vendored
Normal file
10
build/node_modules/has/test/index.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
global.expect = require('chai').expect;
|
||||
var has = require('../src');
|
||||
|
||||
|
||||
describe('has', function() {
|
||||
it('works!', function() {
|
||||
expect(has({}, 'hasOwnProperty')).to.be.false;
|
||||
expect(has(Object.prototype, 'hasOwnProperty')).to.be.true;
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user