first commit
This commit is contained in:
20
build/node_modules/is-natural-number/LICENSE
generated
vendored
Normal file
20
build/node_modules/is-natural-number/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 - 2016 Shinnosuke Watanabe
|
||||
|
||||
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.
|
||||
17
build/node_modules/is-natural-number/index.js
generated
vendored
Normal file
17
build/node_modules/is-natural-number/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*!
|
||||
* is-natural-number.js | MIT (c) Shinnosuke Watanabe
|
||||
* https://github.com/shinnn/is-natural-number.js
|
||||
*/
|
||||
module.exports = (function() {
|
||||
'use strict';
|
||||
|
||||
if (Number.isInteger) {
|
||||
return function isNaturalNumber(val, zero) {
|
||||
return val >= (zero ? 0 : 1) && Number.isInteger(val);
|
||||
};
|
||||
}
|
||||
|
||||
return function isNaturalNumber(val, zero) {
|
||||
return val >= (zero ? 0 : 1) && val !== Infinity && Math.floor(val) === val;
|
||||
};
|
||||
})();
|
||||
15
build/node_modules/is-natural-number/index.jsnext.js
generated
vendored
Normal file
15
build/node_modules/is-natural-number/index.jsnext.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/*!
|
||||
* is-natural-number.js | MIT (c) Shinnosuke Watanabe
|
||||
* https://github.com/shinnn/is-natural-number.js
|
||||
*/
|
||||
export default (function() {
|
||||
if (Number.isInteger) {
|
||||
return function isNaturalNumber(val, zero) {
|
||||
return val >= (zero ? 0 : 1) && Number.isInteger(val);
|
||||
};
|
||||
}
|
||||
|
||||
return function isNaturalNumber(val, zero) {
|
||||
return val >= (zero ? 0 : 1) && val !== Infinity && Math.floor(val) === val;
|
||||
};
|
||||
})();
|
||||
76
build/node_modules/is-natural-number/package.json
generated
vendored
Normal file
76
build/node_modules/is-natural-number/package.json
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-natural-number@2.1.1",
|
||||
"/Users/asciidisco/Desktop/asciidisco.com/build"
|
||||
]
|
||||
],
|
||||
"_from": "is-natural-number@2.1.1",
|
||||
"_id": "is-natural-number@2.1.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-fUxXKDd+84bD4ZSpkRv1fG3DNec=",
|
||||
"_location": "/is-natural-number",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "is-natural-number@2.1.1",
|
||||
"name": "is-natural-number",
|
||||
"escapedName": "is-natural-number",
|
||||
"rawSpec": "2.1.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.1.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/strip-dirs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-2.1.1.tgz",
|
||||
"_spec": "2.1.1",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
|
||||
"author": {
|
||||
"name": "Shinnosuke Watanabe",
|
||||
"url": "https://github.com/shinnn"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/shinnn/is-natural-number.js/issues"
|
||||
},
|
||||
"description": "Check if a value is a natural number",
|
||||
"devDependencies": {
|
||||
"@shinnn/eslint-config": "^2.1.0",
|
||||
"eslint": "^2.9.0",
|
||||
"istanbul": "^0.4.3",
|
||||
"require-uncached": "^1.0.2",
|
||||
"tap-dot": "^1.0.5",
|
||||
"tape": "^4.5.1"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.jsnext.js"
|
||||
],
|
||||
"homepage": "https://github.com/shinnn/is-natural-number.js#readme",
|
||||
"jsnext:main": "index.jsnext.js",
|
||||
"keywords": [
|
||||
"number",
|
||||
"natural",
|
||||
"check",
|
||||
"int",
|
||||
"integer",
|
||||
"math",
|
||||
"mathematics",
|
||||
"range",
|
||||
"browser",
|
||||
"client-side"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-natural-number",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/shinnn/is-natural-number.js.git"
|
||||
},
|
||||
"scripts": {
|
||||
"coverage": "node --strong_mode node_modules/.bin/istanbul cover test.js",
|
||||
"pretest": "eslint --config @shinnn is-natural-number-cjs.js --ignore-path .gitignore .",
|
||||
"test": "node --strong_mode --throw-deprecation --track-heap-objects test.js | tap-dot"
|
||||
},
|
||||
"version": "2.1.1"
|
||||
}
|
||||
Reference in New Issue
Block a user