first commit
This commit is contained in:
111
build/node_modules/is-finite-x/lib/is-finite-x.js
generated
vendored
Normal file
111
build/node_modules/is-finite-x/lib/is-finite-x.js
generated
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
(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.returnExports = 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(_dereq_,module,exports){
|
||||
/**
|
||||
* @file ES6-compliant shim for Number.isFinite.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-number.isfinite|20.1.2.2 Number.isFinite ( number )}
|
||||
* @version 3.0.2
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-finite-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var numberIsNaN = _dereq_('is-nan-x');
|
||||
var INFINITY = _dereq_('infinity-x');
|
||||
|
||||
/**
|
||||
* This method determines whether the passed value is a finite number.
|
||||
*
|
||||
* @param {*} number - The value to be tested for finiteness.
|
||||
* @returns {boolean} A Boolean indicating whether or not the given value is a finite number.
|
||||
* @example
|
||||
* var numIsFinite = require('is-finite-x');
|
||||
*
|
||||
* numIsFinite(Infinity); // false
|
||||
* numIsFinite(NaN); // false
|
||||
* numIsFinite(-Infinity); // false
|
||||
*
|
||||
* numIsFinite(0); // true
|
||||
* numIsFinite(2e64); // true
|
||||
*
|
||||
* numIsFinite('0'); // false, would've been true with
|
||||
* // global isFinite('0')
|
||||
* numIsFinite(null); // false, would've been true with
|
||||
*/
|
||||
module.exports = function isFinite(number) {
|
||||
return typeof number === 'number' && numberIsNaN(number) === false && number !== INFINITY && number !== -INFINITY;
|
||||
};
|
||||
|
||||
},{"infinity-x":2,"is-nan-x":3}],2:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file The constant value Infinity.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module infinity-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* The constant value Infinity derived mathematically by 1 / 0.
|
||||
*
|
||||
* @type number
|
||||
* @example
|
||||
* var INFINITY = require('infinity-x');
|
||||
*
|
||||
* INFINITY === Infinity; // true
|
||||
* -INFINITY === -Infinity; // true
|
||||
* INFINITY === -Infinity; // false
|
||||
*/
|
||||
module.exports = 1 / 0;
|
||||
|
||||
},{}],3:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.
|
||||
* @version 1.0.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-nan-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* This method determines whether the passed value is NaN and its type is
|
||||
* `Number`. It is a more robust version of the original, global isNaN().
|
||||
*
|
||||
* @param {*} value - The value to be tested for NaN.
|
||||
* @returns {boolean} `true` if the given value is NaN and its type is Number;
|
||||
* otherwise, `false`.
|
||||
* @example
|
||||
* var numberIsNaN = require('is-nan-x');
|
||||
*
|
||||
* numberIsNaN(NaN); // true
|
||||
* numberIsNaN(Number.NaN); // true
|
||||
* numberIsNaN(0 / 0); // true
|
||||
*
|
||||
* // e.g. these would have been true with global isNaN()
|
||||
* numberIsNaN('NaN'); // false
|
||||
* numberIsNaN(undefined); // false
|
||||
* numberIsNaN({}); // false
|
||||
* numberIsNaN('blabla'); // false
|
||||
*
|
||||
* // These all return false
|
||||
* numberIsNaN(true);
|
||||
* numberIsNaN(null);
|
||||
* numberIsNaN(37);
|
||||
* numberIsNaN('37');
|
||||
* numberIsNaN('37.37');
|
||||
* numberIsNaN('');
|
||||
* numberIsNaN(' ');
|
||||
*/
|
||||
module.exports = function isNaN(value) {
|
||||
return value !== value;
|
||||
};
|
||||
|
||||
},{}]},{},[1])(1)
|
||||
});
|
||||
26
build/node_modules/is-finite-x/lib/is-finite-x.min.js
generated
vendored
Normal file
26
build/node_modules/is-finite-x/lib/is-finite-x.min.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&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||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){/**
|
||||
* @file ES6-compliant shim for Number.isFinite.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-number.isfinite|20.1.2.2 Number.isFinite ( number )}
|
||||
* @version 3.0.2
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-finite-x
|
||||
*/
|
||||
"use strict";var numberIsNaN=_dereq_("is-nan-x"),INFINITY=_dereq_("infinity-x");module.exports=function isFinite(number){return"number"==typeof number&&!1===numberIsNaN(number)&&number!==INFINITY&&number!==-INFINITY}},{"infinity-x":2,"is-nan-x":3}],2:[function(_dereq_,module,exports){/**
|
||||
* @file The constant value Infinity.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module infinity-x
|
||||
*/
|
||||
"use strict";module.exports=1/0},{}],3:[function(_dereq_,module,exports){/**
|
||||
* @file ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.
|
||||
* @version 1.0.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-nan-x
|
||||
*/
|
||||
"use strict";module.exports=function isNaN(value){return value!==value}},{}]},{},[1])(1)});
|
||||
1
build/node_modules/is-finite-x/lib/is-finite-x.min.js.map
generated
vendored
Normal file
1
build/node_modules/is-finite-x/lib/is-finite-x.min.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["lib/is-finite-x.js"],"names":["f","exports","module","define","amd","window","global","self","this","returnExports","e","t","n","r","s","o","u","a","require","i","Error","code","l","call","length","1","_dereq_","numberIsNaN","INFINITY","isFinite","number","infinity-x","is-nan-x","2","3","isNaN","value"],"mappings":"CAAA,SAAUA,GAAG,GAAoB,iBAAVC,SAAoC,oBAATC,OAAsBA,OAAOD,QAAQD,SAAS,GAAmB,mBAATG,QAAqBA,OAAOC,IAAKD,UAAUH,OAAO,EAA0B,oBAATK,OAAwBA,OAA+B,oBAATC,OAAwBA,OAA6B,oBAAPC,KAAsBA,KAAYC,MAAOC,cAAgBT,KAAlU,CAAyU,WAAqC,OAAO,SAAUU,EAAEC,EAAEC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