first commit
This commit is contained in:
215
build/node_modules/to-object-x/lib/to-object-x.js
generated
vendored
Normal file
215
build/node_modules/to-object-x/lib/to-object-x.js
generated
vendored
Normal file
@@ -0,0 +1,215 @@
|
||||
(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 ToObject.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-toobject|7.1.13 ToObject ( argument )}
|
||||
* @version 1.5.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-object-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var requireObjectCoercible = _dereq_('require-object-coercible-x');
|
||||
var castObject = _dereq_('cached-constructors-x').Object;
|
||||
|
||||
/**
|
||||
* The abstract operation ToObject converts argument to a value of
|
||||
* type Object.
|
||||
*
|
||||
* @param {*} value - The `value` to convert.
|
||||
* @throws {TypeError} If `value` is a `null` or `undefined`.
|
||||
* @returns {!Object} The `value` converted to an object.
|
||||
* @example
|
||||
* var ToObject = require('to-object-x');
|
||||
*
|
||||
* ToObject(); // TypeError
|
||||
* ToObject(null); // TypeError
|
||||
* ToObject('abc'); // Object('abc')
|
||||
* ToObject(true); // Object(true)
|
||||
* ToObject(Symbol('foo')); // Object(Symbol('foo'))
|
||||
*/
|
||||
module.exports = function toObject(value) {
|
||||
return castObject(requireObjectCoercible(value));
|
||||
};
|
||||
|
||||
},{"cached-constructors-x":2,"require-object-coercible-x":5}],2:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file Constructors cached from literals.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module cached-constructors-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Constructors cached from literals.
|
||||
*
|
||||
* @type Object
|
||||
* @example
|
||||
* var constructors = require('cached-constructors-x');
|
||||
*/
|
||||
module.exports = {
|
||||
Array: [].constructor,
|
||||
Boolean: true.constructor,
|
||||
Number: (0).constructor,
|
||||
Object: {}.constructor,
|
||||
RegExp: (/(?:)/).constructor,
|
||||
String: ''.constructor
|
||||
};
|
||||
|
||||
},{}],3:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file Checks if `value` is `null` or `undefined`.
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-nil-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isUndefined = _dereq_('validate.io-undefined');
|
||||
var isNull = _dereq_('lodash.isnull');
|
||||
|
||||
/**
|
||||
* Checks if `value` is `null` or `undefined`.
|
||||
*
|
||||
* @param {*} value - The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
||||
* @example
|
||||
* var isNil = require('is-nil-x');
|
||||
*
|
||||
* isNil(null); // => true
|
||||
* isNil(void 0); // => true
|
||||
* isNil(NaN); // => false
|
||||
*/
|
||||
module.exports = function isNil(value) {
|
||||
return isNull(value) || isUndefined(value);
|
||||
};
|
||||
|
||||
},{"lodash.isnull":4,"validate.io-undefined":6}],4:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <https://lodash.com/license>
|
||||
*/
|
||||
|
||||
/**
|
||||
* Checks if `value` is `null`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Lang
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is `null`, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.isNull(null);
|
||||
* // => true
|
||||
*
|
||||
* _.isNull(void 0);
|
||||
* // => false
|
||||
*/
|
||||
function isNull(value) {
|
||||
return value === null;
|
||||
}
|
||||
|
||||
module.exports = isNull;
|
||||
|
||||
},{}],5:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* @file ES6-compliant shim for RequireObjectCoercible.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-requireobjectcoercible|7.2.1 RequireObjectCoercible ( argument )}
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module require-object-coercible-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isNil = _dereq_('is-nil-x');
|
||||
|
||||
/**
|
||||
* The abstract operation RequireObjectCoercible throws an error if argument
|
||||
* is a value that cannot be converted to an Object using ToObject.
|
||||
*
|
||||
* @param {*} value - The `value` to check.
|
||||
* @throws {TypeError} If `value` is a `null` or `undefined`.
|
||||
* @returns {string} The `value`.
|
||||
* @example
|
||||
* var RequireObjectCoercible = require('require-object-coercible-x');
|
||||
*
|
||||
* RequireObjectCoercible(); // TypeError
|
||||
* RequireObjectCoercible(null); // TypeError
|
||||
* RequireObjectCoercible('abc'); // 'abc'
|
||||
* RequireObjectCoercible(true); // true
|
||||
* RequireObjectCoercible(Symbol('foo')); // Symbol('foo')
|
||||
*/
|
||||
module.exports = function RequireObjectCoercible(value) {
|
||||
if (isNil(value)) {
|
||||
throw new TypeError('Cannot call method on ' + value);
|
||||
}
|
||||
|
||||
return value;
|
||||
};
|
||||
|
||||
},{"is-nil-x":3}],6:[function(_dereq_,module,exports){
|
||||
/**
|
||||
*
|
||||
* VALIDATE: undefined
|
||||
*
|
||||
*
|
||||
* DESCRIPTION:
|
||||
* - Validates if a value is undefined.
|
||||
*
|
||||
*
|
||||
* NOTES:
|
||||
* [1]
|
||||
*
|
||||
*
|
||||
* TODO:
|
||||
* [1]
|
||||
*
|
||||
*
|
||||
* LICENSE:
|
||||
* MIT
|
||||
*
|
||||
* Copyright (c) 2014. Athan Reines.
|
||||
*
|
||||
*
|
||||
* AUTHOR:
|
||||
* Athan Reines. kgryte@gmail.com. 2014.
|
||||
*
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* FUNCTION: isUndefined( value )
|
||||
* Validates if a value is undefined.
|
||||
*
|
||||
* @param {*} value - value to be validated
|
||||
* @returns {Boolean} boolean indicating whether value is undefined
|
||||
*/
|
||||
function isUndefined( value ) {
|
||||
return value === void 0;
|
||||
} // end FUNCTION isUndefined()
|
||||
|
||||
|
||||
// EXPORTS //
|
||||
|
||||
module.exports = isUndefined;
|
||||
|
||||
},{}]},{},[1])(1)
|
||||
});
|
||||
35
build/node_modules/to-object-x/lib/to-object-x.min.js
generated
vendored
Normal file
35
build/node_modules/to-object-x/lib/to-object-x.min.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
!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 ToObject.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-toobject|7.1.13 ToObject ( argument )}
|
||||
* @version 1.5.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-object-x
|
||||
*/
|
||||
"use strict";var requireObjectCoercible=_dereq_("require-object-coercible-x"),castObject=_dereq_("cached-constructors-x").Object;module.exports=function toObject(value){return castObject(requireObjectCoercible(value))}},{"cached-constructors-x":2,"require-object-coercible-x":5}],2:[function(_dereq_,module,exports){/**
|
||||
* @file Constructors cached from literals.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module cached-constructors-x
|
||||
*/
|
||||
"use strict";module.exports={Array:[].constructor,Boolean:(!0).constructor,Number:(0).constructor,Object:{}.constructor,RegExp:/(?:)/.constructor,String:"".constructor}},{}],3:[function(_dereq_,module,exports){/**
|
||||
* @file Checks if `value` is `null` or `undefined`.
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-nil-x
|
||||
*/
|
||||
"use strict";var isUndefined=_dereq_("validate.io-undefined"),isNull=_dereq_("lodash.isnull");module.exports=function isNil(value){return isNull(value)||isUndefined(value)}},{"lodash.isnull":4,"validate.io-undefined":6}],4:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],5:[function(_dereq_,module,exports){/**
|
||||
* @file ES6-compliant shim for RequireObjectCoercible.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-requireobjectcoercible|7.2.1 RequireObjectCoercible ( argument )}
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module require-object-coercible-x
|
||||
*/
|
||||
"use strict";var isNil=_dereq_("is-nil-x");module.exports=function RequireObjectCoercible(value){if(isNil(value))throw new TypeError("Cannot call method on "+value);return value}},{"is-nil-x":3}],6:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}]},{},[1])(1)});
|
||||
1
build/node_modules/to-object-x/lib/to-object-x.min.js.map
generated
vendored
Normal file
1
build/node_modules/to-object-x/lib/to-object-x.min.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["lib/to-object-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_","requireObjectCoercible","castObject","Object","toObject","value","cached-constructors-x","require-object-coercible-x","2","Array","constructor","Boolean","Number","RegExp","String","3","isUndefined","isNull","isNil","lodash.isnull","validate.io-undefined","4","5","RequireObjectCoercible","TypeError","is-nil-x","6"],"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,OA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