fix
This commit is contained in:
14
book/node_modules/isobject/.gitattributes
generated
vendored
Normal file
14
book/node_modules/isobject/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# Enforce Unix newlines
|
||||
*.* text eol=lf
|
||||
*.css text eol=lf
|
||||
*.html text eol=lf
|
||||
*.js text eol=lf
|
||||
*.json text eol=lf
|
||||
*.less text eol=lf
|
||||
*.md text eol=lf
|
||||
*.yml text eol=lf
|
||||
|
||||
*.jpg binary
|
||||
*.gif binary
|
||||
*.png binary
|
||||
*.jpeg binary
|
||||
22
book/node_modules/isobject/.jshintrc
generated
vendored
Normal file
22
book/node_modules/isobject/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"esnext": true,
|
||||
"boss": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"node": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"globals": {
|
||||
"define": true,
|
||||
"before": true,
|
||||
"after": true,
|
||||
"describe": true,
|
||||
"it": true
|
||||
}
|
||||
}
|
||||
52
book/node_modules/isobject/.npmignore
generated
vendored
Normal file
52
book/node_modules/isobject/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# Numerous always-ignore extensions
|
||||
*.csv
|
||||
*.dat
|
||||
*.diff
|
||||
*.err
|
||||
*.gz
|
||||
*.log
|
||||
*.orig
|
||||
*.out
|
||||
*.pid
|
||||
*.rar
|
||||
*.rej
|
||||
*.seed
|
||||
*.swo
|
||||
*.swp
|
||||
*.vi
|
||||
*.yo-rc.json
|
||||
*.zip
|
||||
*~
|
||||
.ruby-version
|
||||
lib-cov
|
||||
npm-debug.log
|
||||
|
||||
# Always-ignore dirs
|
||||
/bower_components/
|
||||
/node_modules/
|
||||
/temp/
|
||||
/tmp/
|
||||
/vendor/
|
||||
_gh_pages
|
||||
|
||||
# OS or Editor folders
|
||||
*.esproj
|
||||
*.komodoproject
|
||||
.komodotools
|
||||
*.sublime-*
|
||||
._*
|
||||
.cache
|
||||
.DS_Store
|
||||
.idea
|
||||
.project
|
||||
.settings
|
||||
.tmproj
|
||||
nbproject
|
||||
Thumbs.db
|
||||
|
||||
# grunt-html-validation
|
||||
validation-status.json
|
||||
validation-report.json
|
||||
|
||||
# misc
|
||||
TODO.md
|
||||
29
book/node_modules/isobject/.verbrc.md
generated
vendored
Normal file
29
book/node_modules/isobject/.verbrc.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# {%= name %} {%= badge("fury") %}
|
||||
|
||||
> {%= description %}
|
||||
|
||||
## Install
|
||||
{%= include("install", {save: 'save'}) %}
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isObject = require('isobject');
|
||||
console.log(isObject(null));
|
||||
//=> 'false'
|
||||
console.log(isObject([]));
|
||||
//=> 'false'
|
||||
console.log(isObject({}));
|
||||
//=> 'true'
|
||||
```
|
||||
|
||||
## Author
|
||||
{%= include("author") %}
|
||||
|
||||
## License
|
||||
{%= copyright() %}
|
||||
{%= license() %}
|
||||
|
||||
***
|
||||
|
||||
{%= include("footer") %}
|
||||
22
book/node_modules/isobject/LICENSE-MIT
generated
vendored
Normal file
22
book/node_modules/isobject/LICENSE-MIT
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
|
||||
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.
|
||||
37
book/node_modules/isobject/README.md
generated
vendored
Normal file
37
book/node_modules/isobject/README.md
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# isobject [](http://badge.fury.io/js/isobject)
|
||||
|
||||
> Returns true if the value is an object and not an array or null.
|
||||
|
||||
## Install
|
||||
Install with [npm](npmjs.org):
|
||||
|
||||
```bash
|
||||
npm i isobject --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isObject = require('isobject');
|
||||
console.log(isObject(null));
|
||||
//=> 'false'
|
||||
console.log(isObject([]));
|
||||
//=> 'false'
|
||||
console.log(isObject({}));
|
||||
//=> 'true'
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
Released under the MIT license
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 22, 2014._
|
||||
20
book/node_modules/isobject/index.js
generated
vendored
Normal file
20
book/node_modules/isobject/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* isobject <https://github.com/jonschlinkert/isobject>
|
||||
*
|
||||
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
* Licensed under the MIT License
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* is the value an object, and not an array?
|
||||
*
|
||||
* @param {*} `value`
|
||||
* @return {Boolean}
|
||||
*/
|
||||
|
||||
module.exports = function isObject(o) {
|
||||
return o != null && typeof o === 'object'
|
||||
&& !Array.isArray(o);
|
||||
};
|
||||
48
book/node_modules/isobject/package.json
generated
vendored
Normal file
48
book/node_modules/isobject/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "isobject",
|
||||
"description": "Returns true if the value is an object and not an array or null.",
|
||||
"version": "0.2.0",
|
||||
"homepage": "https://github.com/jonschlinkert/isobject",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/jonschlinkert/isobject.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/isobject/issues"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/jonschlinkert/isobject/blob/master/LICENSE-MIT"
|
||||
}
|
||||
],
|
||||
"keywords": [
|
||||
"is",
|
||||
"isobject",
|
||||
"is-object",
|
||||
"object",
|
||||
"type",
|
||||
"typeof",
|
||||
"kind",
|
||||
"kindof",
|
||||
"value",
|
||||
"javascript",
|
||||
"check"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha -R spec"
|
||||
},
|
||||
"devDependencies": {
|
||||
"verb": "~0.2.6",
|
||||
"chai": "~1.9.1",
|
||||
"mocha": "*"
|
||||
}
|
||||
}
|
||||
1
book/node_modules/isobject/test/mocha.opts
generated
vendored
Normal file
1
book/node_modules/isobject/test/mocha.opts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
--reporter spec
|
||||
21
book/node_modules/isobject/test/test.js
generated
vendored
Normal file
21
book/node_modules/isobject/test/test.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/*!
|
||||
* isobject <https://github.com/jonschlinkert/isobject>
|
||||
*
|
||||
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
* Licensed under the MIT License
|
||||
*/
|
||||
|
||||
var expect = require('chai').expect;
|
||||
var isObject = require('../');
|
||||
|
||||
it('when null is passed it should return false.', function () {
|
||||
expect(isObject(null)).to.eql(false);
|
||||
});
|
||||
|
||||
it('when [] is passed it should return false.', function () {
|
||||
expect(isObject([])).to.eql(false);
|
||||
});
|
||||
|
||||
it('when {} is passed it should return true.', function () {
|
||||
expect(isObject({})).to.eql(true);
|
||||
});
|
||||
Reference in New Issue
Block a user