forked from enviPath/enviPy
Current Dev State
This commit is contained in:
12
static/js/ketcher2/node_modules/validator/lib/util/assertString.js
generated
vendored
Normal file
12
static/js/ketcher2/node_modules/validator/lib/util/assertString.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = assertString;
|
||||
function assertString(input) {
|
||||
if (typeof input !== 'string') {
|
||||
throw new TypeError('This library (validator.js) validates strings only');
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
||||
18
static/js/ketcher2/node_modules/validator/lib/util/merge.js
generated
vendored
Normal file
18
static/js/ketcher2/node_modules/validator/lib/util/merge.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = merge;
|
||||
function merge() {
|
||||
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var defaults = arguments[1];
|
||||
|
||||
for (var key in defaults) {
|
||||
if (typeof obj[key] === 'undefined') {
|
||||
obj[key] = defaults[key];
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
module.exports = exports['default'];
|
||||
22
static/js/ketcher2/node_modules/validator/lib/util/toString.js
generated
vendored
Normal file
22
static/js/ketcher2/node_modules/validator/lib/util/toString.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
||||
|
||||
exports.default = toString;
|
||||
function toString(input) {
|
||||
if ((typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' && input !== null) {
|
||||
if (typeof input.toString === 'function') {
|
||||
input = input.toString();
|
||||
} else {
|
||||
input = '[object Object]';
|
||||
}
|
||||
} else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) {
|
||||
input = '';
|
||||
}
|
||||
return String(input);
|
||||
}
|
||||
module.exports = exports['default'];
|
||||
Reference in New Issue
Block a user