first commit
This commit is contained in:
26
build/node_modules/to-primitive-x/.editorconfig
generated
vendored
Normal file
26
build/node_modules/to-primitive-x/.editorconfig
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# This file is for unifying the coding style for different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# every file
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# 4 space indentation
|
||||
[*.py]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
# Tab indentation (no size specified)
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
1
build/node_modules/to-primitive-x/.eslintignore
generated
vendored
Normal file
1
build/node_modules/to-primitive-x/.eslintignore
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
lib/*
|
||||
6
build/node_modules/to-primitive-x/.eslintrc.json
generated
vendored
Normal file
6
build/node_modules/to-primitive-x/.eslintrc.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"@xotic750/eslint-config-standard-x"
|
||||
]
|
||||
}
|
||||
1
build/node_modules/to-primitive-x/.nvmrc
generated
vendored
Normal file
1
build/node_modules/to-primitive-x/.nvmrc
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
lts/*
|
||||
99
build/node_modules/to-primitive-x/.travis.yml
generated
vendored
Normal file
99
build/node_modules/to-primitive-x/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /^greenkeeper/.*$/
|
||||
notifications:
|
||||
email: false
|
||||
node_js:
|
||||
- "8.4"
|
||||
- "8.3"
|
||||
- "8.2"
|
||||
- "8.1"
|
||||
- "8.0"
|
||||
- "7.10"
|
||||
- "7.9"
|
||||
- "7.8"
|
||||
- "7.7"
|
||||
- "7.6"
|
||||
- "7.5"
|
||||
- "7.4"
|
||||
- "7.3"
|
||||
- "7.2"
|
||||
- "7.1"
|
||||
- "7.0"
|
||||
- "6.11"
|
||||
- "6.10"
|
||||
- "6.9"
|
||||
- "6.8"
|
||||
- "6.7"
|
||||
- "6.6"
|
||||
- "6.5"
|
||||
- "6.4"
|
||||
- "6.3"
|
||||
- "6.2"
|
||||
- "6.1"
|
||||
- "6.0"
|
||||
- "5.12"
|
||||
- "5.11"
|
||||
- "5.10"
|
||||
- "5.9"
|
||||
- "5.8"
|
||||
- "5.7"
|
||||
- "5.6"
|
||||
- "5.5"
|
||||
- "5.4"
|
||||
- "5.3"
|
||||
- "5.2"
|
||||
- "5.1"
|
||||
- "5.0"
|
||||
- "4.8"
|
||||
- "4.7"
|
||||
- "4.6"
|
||||
- "4.5"
|
||||
- "4.4"
|
||||
- "4.3"
|
||||
- "4.2"
|
||||
- "4.1"
|
||||
- "4.0"
|
||||
- "iojs-v3.3"
|
||||
- "iojs-v3.2"
|
||||
- "iojs-v3.1"
|
||||
- "iojs-v3.0"
|
||||
- "iojs-v2.5"
|
||||
- "iojs-v2.4"
|
||||
- "iojs-v2.3"
|
||||
- "iojs-v2.2"
|
||||
- "iojs-v2.1"
|
||||
- "iojs-v2.0"
|
||||
- "iojs-v1.8"
|
||||
- "iojs-v1.7"
|
||||
- "iojs-v1.6"
|
||||
- "iojs-v1.5"
|
||||
- "iojs-v1.4"
|
||||
- "iojs-v1.3"
|
||||
- "iojs-v1.2"
|
||||
- "iojs-v1.1"
|
||||
- "iojs-v1.0"
|
||||
- "0.12"
|
||||
- "0.11"
|
||||
- "0.10"
|
||||
- "0.9"
|
||||
- "0.8"
|
||||
- "0.6"
|
||||
- "0.4"
|
||||
before_install:
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ; esac ; fi'
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then if [ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" = "0" ] || [ "${TRAVIS_NODE_VERSION:0:4}" = "iojs" ]; then npm install -g npm@4.5; elif [[ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" =~ ^[4-5]+$ ]]; then npm install -g npm@5.3; else npm install -g npm; fi; fi'
|
||||
install:
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g npm@1.3 && npm install -g npm@1.4.28 && npm install -g npm@2 && npm install && nvm use --delete-prefix "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
|
||||
script:
|
||||
- 'npm test'
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- node_js: "0.11"
|
||||
- node_js: "0.9"
|
||||
- node_js: "0.6"
|
||||
- node_js: "0.4"
|
||||
17
build/node_modules/to-primitive-x/.uglifyjsrc.json
generated
vendored
Normal file
17
build/node_modules/to-primitive-x/.uglifyjsrc.json
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"warnings": false,
|
||||
"parse": {},
|
||||
"compress": {
|
||||
"keep_fnames": true
|
||||
},
|
||||
"mangle": false,
|
||||
"output": {
|
||||
"ascii_only": true,
|
||||
"beautify": false,
|
||||
"comments": "some"
|
||||
},
|
||||
"sourceMap": {},
|
||||
"nameCache": null,
|
||||
"toplevel": false,
|
||||
"ie8": true
|
||||
}
|
||||
21
build/node_modules/to-primitive-x/LICENSE
generated
vendored
Normal file
21
build/node_modules/to-primitive-x/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
https://opensource.org/licenses/MIT
|
||||
|
||||
Copyright (c) 2017 Graham Fairweather.
|
||||
|
||||
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.
|
||||
61
build/node_modules/to-primitive-x/README.md
generated
vendored
Normal file
61
build/node_modules/to-primitive-x/README.md
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
<a href="https://travis-ci.org/Xotic750/to-primitive-x"
|
||||
title="Travis status">
|
||||
<img
|
||||
src="https://travis-ci.org/Xotic750/to-primitive-x.svg?branch=master"
|
||||
alt="Travis status" height="18"/>
|
||||
</a>
|
||||
<a href="https://david-dm.org/Xotic750/to-primitive-x"
|
||||
title="Dependency status">
|
||||
<img src="https://david-dm.org/Xotic750/to-primitive-x.svg"
|
||||
alt="Dependency status" height="18"/>
|
||||
</a>
|
||||
<a href="https://david-dm.org/Xotic750/to-primitive-x#info=devDependencies"
|
||||
title="devDependency status">
|
||||
<img src="https://david-dm.org/Xotic750/to-primitive-x/dev-status.svg"
|
||||
alt="devDependency status" height="18"/>
|
||||
</a>
|
||||
<a href="https://badge.fury.io/js/to-primitive-x" title="npm version">
|
||||
<img src="https://badge.fury.io/js/to-primitive-x.svg"
|
||||
alt="npm version" height="18"/>
|
||||
</a>
|
||||
<a name="module_to-primitive-x"></a>
|
||||
|
||||
## to-primitive-x
|
||||
Converts a JavaScript object to a primitive value.
|
||||
|
||||
**Version**: 1.1.0
|
||||
**Author**: Xotic750 <Xotic750@gmail.com>
|
||||
**License**: [MIT](<https://opensource.org/licenses/MIT>)
|
||||
**Copyright**: Xotic750
|
||||
<a name="exp_module_to-primitive-x--module.exports"></a>
|
||||
|
||||
### `module.exports(input, [prefferedtype])` ⇒ <code>string</code> \| <code>number</code> ⏏
|
||||
This method converts a JavaScript object to a primitive value.
|
||||
Note: When toPrimitive is called with no hint, then it generally behaves as
|
||||
if the hint were Number. However, objects may over-ride this behaviour by
|
||||
defining a @@toPrimitive method. Of the objects defined in this specification
|
||||
only Date objects (see 20.3.4.45) and Symbol objects (see 19.4.3.4) over-ride
|
||||
the default ToPrimitive behaviour. Date objects treat no hint as if the hint
|
||||
were String.
|
||||
|
||||
**Kind**: Exported function
|
||||
**Returns**: <code>string</code> \| <code>number</code> - The converted input as a primitive.
|
||||
**Throws**:
|
||||
|
||||
- <code>TypeError</code> If unable to convert input to a primitive.
|
||||
|
||||
|
||||
| Param | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| input | <code>\*</code> | The input to convert. |
|
||||
| [prefferedtype] | <code>constructor</code> | The preffered type (String or Number). |
|
||||
|
||||
**Example**
|
||||
```js
|
||||
var toPrimitive = require('to-primitive-x');
|
||||
|
||||
var date = new Date(0);
|
||||
toPrimitive(date)); // Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
|
||||
toPrimitive(date, String)); // Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
|
||||
toPrimitive(date, Number)); // 0
|
||||
```
|
||||
20
build/node_modules/to-primitive-x/badges.html
generated
vendored
Normal file
20
build/node_modules/to-primitive-x/badges.html
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<a href="https://travis-ci.org/Xotic750/@{PACKAGE-NAME}"
|
||||
title="Travis status">
|
||||
<img
|
||||
src="https://travis-ci.org/Xotic750/@{PACKAGE-NAME}.svg?branch=master"
|
||||
alt="Travis status" height="18"/>
|
||||
</a>
|
||||
<a href="https://david-dm.org/Xotic750/@{PACKAGE-NAME}"
|
||||
title="Dependency status">
|
||||
<img src="https://david-dm.org/Xotic750/@{PACKAGE-NAME}.svg"
|
||||
alt="Dependency status" height="18"/>
|
||||
</a>
|
||||
<a href="https://david-dm.org/Xotic750/@{PACKAGE-NAME}#info=devDependencies"
|
||||
title="devDependency status">
|
||||
<img src="https://david-dm.org/Xotic750/@{PACKAGE-NAME}/dev-status.svg"
|
||||
alt="devDependency status" height="18"/>
|
||||
</a>
|
||||
<a href="https://badge.fury.io/js/@{PACKAGE-NAME}" title="npm version">
|
||||
<img src="https://badge.fury.io/js/@{PACKAGE-NAME}.svg"
|
||||
alt="npm version" height="18"/>
|
||||
</a>
|
||||
122
build/node_modules/to-primitive-x/index.js
generated
vendored
Normal file
122
build/node_modules/to-primitive-x/index.js
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
/**
|
||||
* @file Converts a JavaScript object to a primitive value.
|
||||
* @version 1.1.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-primitive-x
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var hasSymbols = require('has-symbol-support-x');
|
||||
var isPrimitive = require('is-primitive');
|
||||
var isDate = require('is-date-object');
|
||||
var isSymbol = require('is-symbol');
|
||||
var isFunction = require('is-function-x');
|
||||
var requireObjectCoercible = require('require-object-coercible-x');
|
||||
var isNil = require('is-nil-x');
|
||||
var isUndefined = require('validate.io-undefined');
|
||||
var symToPrimitive = hasSymbols && Symbol.toPrimitive;
|
||||
var symValueOf = hasSymbols && Symbol.prototype.valueOf;
|
||||
|
||||
var toStringOrder = ['toString', 'valueOf'];
|
||||
var toNumberOrder = ['valueOf', 'toString'];
|
||||
var orderLength = 2;
|
||||
|
||||
var ordinaryToPrimitive = function _ordinaryToPrimitive(O, hint) {
|
||||
requireObjectCoercible(O);
|
||||
if (typeof hint !== 'string' || (hint !== 'number' && hint !== 'string')) {
|
||||
throw new TypeError('hint must be "string" or "number"');
|
||||
}
|
||||
|
||||
var methodNames = hint === 'string' ? toStringOrder : toNumberOrder;
|
||||
var method;
|
||||
var result;
|
||||
for (var i = 0; i < orderLength; i += 1) {
|
||||
method = O[methodNames[i]];
|
||||
if (isFunction(method)) {
|
||||
result = method.call(O);
|
||||
if (isPrimitive(result)) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new TypeError('No default value');
|
||||
};
|
||||
|
||||
var getMethod = function _getMethod(O, P) {
|
||||
var func = O[P];
|
||||
if (isNil(func) === false) {
|
||||
if (isFunction(func) === false) {
|
||||
throw new TypeError(func + ' returned for property ' + P + ' of object ' + O + ' is not a function');
|
||||
}
|
||||
|
||||
return func;
|
||||
}
|
||||
|
||||
return void 0;
|
||||
};
|
||||
|
||||
// http://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive
|
||||
|
||||
/**
|
||||
* This method converts a JavaScript object to a primitive value.
|
||||
* Note: When toPrimitive is called with no hint, then it generally behaves as
|
||||
* if the hint were Number. However, objects may over-ride this behaviour by
|
||||
* defining a @@toPrimitive method. Of the objects defined in this specification
|
||||
* only Date objects (see 20.3.4.45) and Symbol objects (see 19.4.3.4) over-ride
|
||||
* the default ToPrimitive behaviour. Date objects treat no hint as if the hint
|
||||
* were String.
|
||||
*
|
||||
* @param {*} input - The input to convert.
|
||||
* @param {constructor} [prefferedtype] - The preffered type (String or Number).
|
||||
* @throws {TypeError} If unable to convert input to a primitive.
|
||||
* @returns {string|number} The converted input as a primitive.
|
||||
* @example
|
||||
* var toPrimitive = require('to-primitive-x');
|
||||
*
|
||||
* var date = new Date(0);
|
||||
* toPrimitive(date)); // Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
|
||||
* toPrimitive(date, String)); // Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
|
||||
* toPrimitive(date, Number)); // 0
|
||||
*/
|
||||
module.exports = function toPrimitive(input, preferredType) {
|
||||
if (isPrimitive(input)) {
|
||||
return input;
|
||||
}
|
||||
|
||||
var hint = 'default';
|
||||
if (arguments.length > 1) {
|
||||
if (preferredType === String) {
|
||||
hint = 'string';
|
||||
} else if (preferredType === Number) {
|
||||
hint = 'number';
|
||||
}
|
||||
}
|
||||
|
||||
var exoticToPrim;
|
||||
if (hasSymbols) {
|
||||
if (symToPrimitive) {
|
||||
exoticToPrim = getMethod(input, symToPrimitive);
|
||||
} else if (isSymbol(input)) {
|
||||
exoticToPrim = symValueOf;
|
||||
}
|
||||
}
|
||||
|
||||
if (isUndefined(exoticToPrim) === false) {
|
||||
var result = exoticToPrim.call(input, hint);
|
||||
if (isPrimitive(result)) {
|
||||
return result;
|
||||
}
|
||||
|
||||
throw new TypeError('unable to convert exotic object to primitive');
|
||||
}
|
||||
|
||||
if (hint === 'default' && (isDate(input) || isSymbol(input))) {
|
||||
hint = 'string';
|
||||
}
|
||||
|
||||
return ordinaryToPrimitive(input, hint === 'default' ? 'number' : hint);
|
||||
};
|
||||
1162
build/node_modules/to-primitive-x/lib/to-primitive-x.js
generated
vendored
Normal file
1162
build/node_modules/to-primitive-x/lib/to-primitive-x.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
157
build/node_modules/to-primitive-x/lib/to-primitive-x.min.js
generated
vendored
Normal file
157
build/node_modules/to-primitive-x/lib/to-primitive-x.min.js
generated
vendored
Normal file
@@ -0,0 +1,157 @@
|
||||
!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 Converts a JavaScript object to a primitive value.
|
||||
* @version 1.1.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-primitive-x
|
||||
*/
|
||||
"use strict";var hasSymbols=_dereq_("has-symbol-support-x"),isPrimitive=_dereq_("is-primitive"),isDate=_dereq_("is-date-object"),isSymbol=_dereq_("is-symbol"),isFunction=_dereq_("is-function-x"),requireObjectCoercible=_dereq_("require-object-coercible-x"),isNil=_dereq_("is-nil-x"),isUndefined=_dereq_("validate.io-undefined"),symToPrimitive=hasSymbols&&Symbol.toPrimitive,symValueOf=hasSymbols&&Symbol.prototype.valueOf,toStringOrder=["toString","valueOf"],toNumberOrder=["valueOf","toString"],ordinaryToPrimitive=function _ordinaryToPrimitive(O,hint){if(requireObjectCoercible(O),"string"!=typeof hint||"number"!==hint&&"string"!==hint)throw new TypeError('hint must be "string" or "number"');for(var method,result,methodNames="string"===hint?toStringOrder:toNumberOrder,i=0;i<2;i+=1)if(method=O[methodNames[i]],isFunction(method)&&(result=method.call(O),isPrimitive(result)))return result;throw new TypeError("No default value")},getMethod=function _getMethod(O,P){var func=O[P];if(!1===isNil(func)){if(!1===isFunction(func))throw new TypeError(func+" returned for property "+P+" of object "+O+" is not a function");return func}};module.exports=function toPrimitive(input,preferredType){if(isPrimitive(input))return input;var hint="default";arguments.length>1&&(preferredType===String?hint="string":preferredType===Number&&(hint="number"));var exoticToPrim;if(hasSymbols&&(symToPrimitive?exoticToPrim=getMethod(input,symToPrimitive):isSymbol(input)&&(exoticToPrim=symValueOf)),!1===isUndefined(exoticToPrim)){var result=exoticToPrim.call(input,hint);if(isPrimitive(result))return result;throw new TypeError("unable to convert exotic object to primitive")}return"default"===hint&&(isDate(input)||isSymbol(input))&&(hint="string"),ordinaryToPrimitive(input,"default"===hint?"number":hint)}},{"has-symbol-support-x":4,"is-date-object":6,"is-function-x":8,"is-nil-x":9,"is-primitive":10,"is-symbol":11,"require-object-coercible-x":16,"validate.io-undefined":23}],2:[function(_dereq_,module,exports){/**
|
||||
* @file Invokes function, returning an object of the results.
|
||||
* @version 1.1.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module attempt-x
|
||||
*/
|
||||
"use strict";var getArgs=function _getArgs(args){var length=args.length>>>0,array=[],argLength=length-1;if(argLength<1)return array;array.length=argLength;for(var index=1;index<length;index+=1)array[index-1]=args[index];return array};module.exports=function attempt(fn){try{return{threw:!1,value:fn.apply(this,getArgs(arguments))}}catch(e){return{threw:!0,value:e}}}},{}],3:[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}},{}],4:[function(_dereq_,module,exports){/**
|
||||
* @file Tests if ES6 Symbol is supported.
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module has-symbol-support-x
|
||||
*/
|
||||
"use strict";module.exports="function"==typeof Symbol&&"symbol"==typeof Symbol("")},{}],5:[function(_dereq_,module,exports){/**
|
||||
* @file Tests if ES6 @@toStringTag is supported.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag|26.3.1 @@toStringTag}
|
||||
* @version 1.4.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module has-to-string-tag-x
|
||||
*/
|
||||
"use strict";module.exports=_dereq_("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag},{"has-symbol-support-x":4}],6:[function(_dereq_,module,exports){"use strict";var getDay=Date.prototype.getDay,tryDateObject=function tryDateObject(value){try{return getDay.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function isDateObject(value){return"object"==typeof value&&null!==value&&(hasToStringTag?tryDateObject(value):"[object Date]"===toStr.call(value))}},{}],7:[function(_dereq_,module,exports){/**
|
||||
* @file Test if a given value is falsey.
|
||||
* @version 1.0.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-falsey-x
|
||||
*/
|
||||
"use strict";var toBoolean=_dereq_("to-boolean-x");module.exports=function isFalsey(value){return!1===toBoolean(value)}},{"to-boolean-x":17}],8:[function(_dereq_,module,exports){/**
|
||||
* @file Determine whether a given value is a function object.
|
||||
* @version 3.2.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module is-function-x
|
||||
*/
|
||||
"use strict";var attempt=_dereq_("attempt-x"),fToString=Function.prototype.toString,toBoolean=_dereq_("to-boolean-x"),isFalsey=_dereq_("is-falsey-x"),toStringTag=_dereq_("to-string-tag-x"),hasToStringTag=_dereq_("has-to-string-tag-x"),isPrimitive=_dereq_("is-primitive"),normalise=_dereq_("normalize-space-x"),deComment=_dereq_("replace-comments-x"),ctrRx=/^class /,test=ctrRx.test,hasNativeClass=!1===attempt(function(){return Function('"use strict"; return class My {};')()}).threw,testClassstring=function _testClassstring(value){return test.call(ctrRx,normalise(deComment(fToString.call(value)," ")))},isES6ClassFn=function isES6ClassFunc(value){var result=attempt(testClassstring,value);return!1===result.threw&&result.value},tryFuncToString=function funcToString(value,allowClass){return(!hasNativeClass||!1!==allowClass||!isES6ClassFn(value))&&!1===attempt.call(value,fToString).threw};module.exports=function isFunction(value){if(isPrimitive(value))return!1;if(hasToStringTag)return tryFuncToString(value,toBoolean(arguments[1]));if(hasNativeClass&&isFalsey(arguments[1])&&isES6ClassFn(value))return!1;var strTag=toStringTag(value);return"[object Function]"===strTag||"[object GeneratorFunction]"===strTag||"[object AsyncFunction]"===strTag}},{"attempt-x":2,"has-to-string-tag-x":5,"is-falsey-x":7,"is-primitive":10,"normalize-space-x":13,"replace-comments-x":14,"to-boolean-x":17,"to-string-tag-x":18}],9:[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":12,"validate.io-undefined":23}],10:[function(_dereq_,module,exports){"use strict";module.exports=function isPrimitive(value){return null==value||"function"!=typeof value&&"object"!=typeof value}},{}],11:[function(_dereq_,module,exports){"use strict";var toStr=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function isSymbolObject(value){return"symbol"==typeof value.valueOf()&&symStringRegex.test(symToStr.call(value))};module.exports=function isSymbol(value){if("symbol"==typeof value)return!0;if("[object Symbol]"!==toStr.call(value))return!1;try{return isSymbolObject(value)}catch(e){return!1}}}else module.exports=function isSymbol(value){return!1}},{}],12:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],13:[function(_dereq_,module,exports){/**
|
||||
* @file Trims and replaces sequences of whitespace characters by a single space.
|
||||
* @version 2.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module normalize-space-x
|
||||
*/
|
||||
"use strict";var trim=_dereq_("trim-x"),reNormalize=new(0,_dereq_("cached-constructors-x").RegExp)("["+_dereq_("white-space-x").string+"]+","g"),replace="".replace;module.exports=function normalizeSpace(string){return replace.call(trim(string),reNormalize," ")}},{"cached-constructors-x":3,"trim-x":22,"white-space-x":24}],14:[function(_dereq_,module,exports){/**
|
||||
* @file Replace the comments in a string.
|
||||
* @version 2.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module replace-comments-x
|
||||
*/
|
||||
"use strict";var toStr=_dereq_("to-string-x"),requireCoercibleToString=_dereq_("require-coercible-to-string-x"),STRIP_COMMENTS=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,replace="".replace;module.exports=function replaceComments(string){return replace.call(requireCoercibleToString(string),STRIP_COMMENTS,arguments.length>1?toStr(arguments[1]):"")}},{"require-coercible-to-string-x":15,"to-string-x":19}],15:[function(_dereq_,module,exports){/**
|
||||
* @file Requires an argument is corecible then converts using ToString.
|
||||
* @version 1.0.0
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module require-coercible-to-string-x
|
||||
*/
|
||||
"use strict";var requireObjectCoercible=_dereq_("require-object-coercible-x"),toStr=_dereq_("to-string-x");module.exports=function requireCoercibleToString(value){return toStr(requireObjectCoercible(value))}},{"require-object-coercible-x":16,"to-string-x":19}],16:[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":9}],17:[function(_dereq_,module,exports){/**
|
||||
* @file Converts argument to a value of type Boolean.
|
||||
* @version 1.0.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-boolean-x
|
||||
*/
|
||||
"use strict";module.exports=function toBoolean(value){return!!value}},{}],18:[function(_dereq_,module,exports){/**
|
||||
* @file Get an object's ES6 @@toStringTag.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring|19.1.3.6 Object.prototype.toString ( )}
|
||||
* @version 1.4.2
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-string-tag-x
|
||||
*/
|
||||
"use strict";var isNull=_dereq_("lodash.isnull"),isUndefined=_dereq_("validate.io-undefined"),toStr={}.toString;module.exports=function toStringTag(value){return isNull(value)?"[object Null]":isUndefined(value)?"[object Undefined]":toStr.call(value)}},{"lodash.isnull":12,"validate.io-undefined":23}],19:[function(_dereq_,module,exports){/**
|
||||
* @file ES6-compliant shim for ToString.
|
||||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-tostring|7.1.12 ToString ( argument )}
|
||||
* @version 1.4.2
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module to-string-x
|
||||
*/
|
||||
"use strict";var castString="".constructor,isSymbol=_dereq_("is-symbol");module.exports=function ToString(value){if(isSymbol(value))throw new TypeError("Cannot convert a Symbol value to a string");return castString(value)}},{"is-symbol":11}],20:[function(_dereq_,module,exports){/**
|
||||
* @file This method removes whitespace from the left end of a string.
|
||||
* @version 2.0.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module trim-left-x
|
||||
*/
|
||||
"use strict";var requireCoercibleToString=_dereq_("require-coercible-to-string-x"),reLeft=new(0,_dereq_("cached-constructors-x").RegExp)("^["+_dereq_("white-space-x").string+"]+"),replace="".replace;module.exports=function trimLeft(string){return replace.call(requireCoercibleToString(string),reLeft,"")}},{"cached-constructors-x":3,"require-coercible-to-string-x":15,"white-space-x":24}],21:[function(_dereq_,module,exports){/**
|
||||
* @file This method removes whitespace from the right end of a string.
|
||||
* @version 2.0.1
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module trim-right-x
|
||||
*/
|
||||
"use strict";var requireCoercibleToString=_dereq_("require-coercible-to-string-x"),reRight=new(0,_dereq_("cached-constructors-x").RegExp)("["+_dereq_("white-space-x").string+"]+$"),replace="".replace;module.exports=function trimRight(string){return replace.call(requireCoercibleToString(string),reRight,"")}},{"cached-constructors-x":3,"require-coercible-to-string-x":15,"white-space-x":24}],22:[function(_dereq_,module,exports){/**
|
||||
* @file This method removes whitespace from the left and right end of a string.
|
||||
* @version 2.0.2
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module trim-x
|
||||
*/
|
||||
"use strict";var trimLeft=_dereq_("trim-left-x"),trimRight=_dereq_("trim-right-x");module.exports=function trim(string){return trimLeft(trimRight(string))}},{"trim-left-x":20,"trim-right-x":21}],23:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}],24:[function(_dereq_,module,exports){/**
|
||||
* @file List of ECMAScript5 white space characters.
|
||||
* @version 2.0.3
|
||||
* @author Xotic750 <Xotic750@gmail.com>
|
||||
* @copyright Xotic750
|
||||
* @license {@link <https://opensource.org/licenses/MIT> MIT}
|
||||
* @module white-space-x
|
||||
*/
|
||||
"use strict";for(var list=[{code:9,description:"Tab",string:"\t"},{code:10,description:"Line Feed",string:"\n"},{code:11,description:"Vertical Tab",string:"\x0B"},{code:12,description:"Form Feed",string:"\f"},{code:13,description:"Carriage Return",string:"\r"},{code:32,description:"Space",string:" "},{code:160,description:"No-break space",string:"\xa0"},{code:5760,description:"Ogham space mark",string:"\u1680"},{code:6158,description:"Mongolian vowel separator",string:"\u180e"},{code:8192,description:"En quad",string:"\u2000"},{code:8193,description:"Em quad",string:"\u2001"},{code:8194,description:"En space",string:"\u2002"},{code:8195,description:"Em space",string:"\u2003"},{code:8196,description:"Three-per-em space",string:"\u2004"},{code:8197,description:"Four-per-em space",string:"\u2005"},{code:8198,description:"Six-per-em space",string:"\u2006"},{code:8199,description:"Figure space",string:"\u2007"},{code:8200,description:"Punctuation space",string:"\u2008"},{code:8201,description:"Thin space",string:"\u2009"},{code:8202,description:"Hair space",string:"\u200a"},{code:8232,description:"Line separator",string:"\u2028"},{code:8233,description:"Paragraph separator",string:"\u2029"},{code:8239,description:"Narrow no-break space",string:"\u202f"},{code:8287,description:"Medium mathematical space",string:"\u205f"},{code:12288,description:"Ideographic space",string:"\u3000"},{code:65279,description:"Byte Order Mark",string:"\ufeff"}],string="",length=list.length,i=0;i<length;i+=1)string+=list[i].string;module.exports={list:list,string:string}},{}]},{},[1])(1)});
|
||||
1
build/node_modules/to-primitive-x/lib/to-primitive-x.min.js.map
generated
vendored
Normal file
1
build/node_modules/to-primitive-x/lib/to-primitive-x.min.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
119
build/node_modules/to-primitive-x/package.json
generated
vendored
Normal file
119
build/node_modules/to-primitive-x/package.json
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"_from": "to-primitive-x@^1.1.0",
|
||||
"_id": "to-primitive-x@1.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-gyMY0gi3wjK3e4MUBKqv9Zl8QGcWguIkaUr2VJmoBEsOpDcpDZSEyljR773eVG4maS48uX7muLkoQoh/BA82OQ==",
|
||||
"_location": "/to-primitive-x",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "to-primitive-x@^1.1.0",
|
||||
"name": "to-primitive-x",
|
||||
"escapedName": "to-primitive-x",
|
||||
"rawSpec": "^1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/to-number-x",
|
||||
"/to-property-key-x"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/to-primitive-x/-/to-primitive-x-1.1.0.tgz",
|
||||
"_shasum": "41ce2c13e3e246e0e5d0a8829a0567c6015833f8",
|
||||
"_spec": "to-primitive-x@^1.1.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build/node_modules/to-property-key-x",
|
||||
"author": {
|
||||
"name": "Graham Fairweather",
|
||||
"email": "xotic750@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Xotic750/to-primitive-x/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"copyright": "Copyright (c) 2017",
|
||||
"dependencies": {
|
||||
"has-symbol-support-x": "^1.4.1",
|
||||
"is-date-object": "^1.0.1",
|
||||
"is-function-x": "^3.2.0",
|
||||
"is-nil-x": "^1.4.1",
|
||||
"is-primitive": "^2.0.0",
|
||||
"is-symbol": "^1.0.1",
|
||||
"require-object-coercible-x": "^1.4.1",
|
||||
"validate.io-undefined": "^1.0.3"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Converts a JavaScript object to a primitive value.",
|
||||
"devDependencies": {
|
||||
"@xotic750/eslint-config-standard-x": "^2.2.1",
|
||||
"browserify": "^14.4.0",
|
||||
"browserify-derequire": "^0.9.4",
|
||||
"cross-env": "^5.0.1",
|
||||
"es5-shim": "^4.5.9",
|
||||
"es6-shim": "^0.35.3",
|
||||
"es7-shim": "^6.0.0",
|
||||
"eslint": "^4.2.0",
|
||||
"eslint-plugin-compat": "^1.0.4",
|
||||
"eslint-plugin-css-modules": "^2.7.2",
|
||||
"eslint-plugin-eslint-comments": "^1.0.2",
|
||||
"eslint-plugin-jsdoc": "^3.1.1",
|
||||
"eslint-plugin-json": "^1.2.0",
|
||||
"eslint-plugin-no-use-extend-native": "^0.3.12",
|
||||
"husky": "^0.13.4",
|
||||
"jasmine-node": "^1.14.5",
|
||||
"jsdoc-to-markdown": "^3.0.0",
|
||||
"json3": "^3.3.2",
|
||||
"make-jasmine-spec-runner-html": "^1.3.0",
|
||||
"ncp": "^2.0.0",
|
||||
"nodemon": "^1.11.0",
|
||||
"nsp": "^2.6.3",
|
||||
"parallelshell": "^3.0.1",
|
||||
"replace-x": "^1.5.0",
|
||||
"rimraf": "^2.6.1",
|
||||
"serve": "^6.0.2",
|
||||
"uglify-js": "^3.0.24"
|
||||
},
|
||||
"engines": {
|
||||
"node": "*"
|
||||
},
|
||||
"homepage": "https://github.com/Xotic750/to-primitive-x",
|
||||
"keywords": [
|
||||
"toPrimitive",
|
||||
"module",
|
||||
"javascript",
|
||||
"nodejs",
|
||||
"browser"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "to-primitive-x",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Xotic750/to-primitive-x.git"
|
||||
},
|
||||
"scripts": {
|
||||
"browserify": "browserify -p browserify-derequire -e index.js -o lib/to-primitive-x.js -u 'crypto' -s returnExports",
|
||||
"build": "npm run clean && npm run lint && npm run browserify && npm run uglify && npm run docs && npm test && npm run security",
|
||||
"build:description": "replace-x \" @file .*\" \" @file $(node -p -e \"require('./package.json').description\")\" index.js",
|
||||
"build:jasmine": "npm run clean:jasmine && make-jasmine-spec-runner-html",
|
||||
"build:name": "replace-x \" @module .*\" \" @module $(node -p -e \"require('./package.json').name\")\" index.js",
|
||||
"build:replace": "npm run build:setver && npm run build:name && npm run build:description",
|
||||
"build:setver": "replace-x \" @version .*\" \" @version $(node -p -e \"require('./package.json').version\")\" index.js",
|
||||
"clean": "rimraf README.md lib/*",
|
||||
"clean:all": "npm run clean:jasmine && npm run clean",
|
||||
"clean:jasmine": "rimraf tests/index.html tests/run.js",
|
||||
"docs": "npm run docs:badges && jsdoc2md --name-format --example-lang js index.js >> README.md",
|
||||
"docs:badges": "ncp badges.html README.md && npm run docs:name",
|
||||
"docs:name": "replace-x \"@{PACKAGE-NAME}\" \"$(node -p -e \"require('./package.json').name\")\" README.md",
|
||||
"lint": "eslint *.js tests/spec/*.js",
|
||||
"lint-fix": "npm run lint -- --fix",
|
||||
"precommit": "npm run production",
|
||||
"prepush": "npm run production",
|
||||
"production": "npm run clean:all && npm run build:jasmine && npm run build:replace && npm run build",
|
||||
"security": "nsp check",
|
||||
"start": "parallelshell \"serve\" \"nodemon --watch index.js --exec 'npm run build'\"",
|
||||
"test": "jasmine-node --matchall tests/spec/",
|
||||
"uglify": "uglifyjs lib/to-primitive-x.js -o lib/to-primitive-x.min.js --config-file .uglifyjsrc.json"
|
||||
},
|
||||
"version": "1.1.0"
|
||||
}
|
||||
Reference in New Issue
Block a user