filename stringlengths 20 188 | language stringclasses 3
values | AST-segments stringlengths 0 204k |
|---|---|---|
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | styleType) {
return str;
}
function arrayToHash(array) {
var hash = {};
array.forEach(function(val |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | idx) {
hash[val] = true;
});
return hash;
}
function formatValue(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes) {
// Provide a hook for user-specified inspect functions.
// Check that value is an object with an inspect function on it
if (ctx.customInspect &&
value &&
isFunction(value.inspect) &&
// Filter out the util module |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | it's inspect function is special
value.inspect !== inspect &&
// Also filter out any prototype objects using the circular check.
!(value.constructor && value.constructor.prototype === value)) {
var ret = value.inspect(recurseTimes |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | ctx);
if (!isString(ret)) {
ret = formatValue(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | ret |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes);
}
return ret;
}
// Primitive types cannot have properties
var primitive = formatPrimitive(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value);
if (primitive) {
return primitive;
}
// Look up the keys of the object.
var keys = Object.keys(value);
var visibleKeys = arrayToHash(keys);
if (ctx.showHidden) {
keys = Object.getOwnPropertyNames(value);
}
// IE doesn't make error fields non-enumerable
// http:... |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'special');
}
if (isRegExp(value)) {
return ctx.stylize(RegExp.prototype.toString.call(value) |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'regexp');
}
if (isDate(value)) {
return ctx.stylize(Date.prototype.toString.call(value) |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'date');
}
if (isError(value)) {
return formatError(value);
}
}
var base = '' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | array = false |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | braces = ['{' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | '}'];
// Make Array say that they are Array
if (isArray(value)) {
array = true;
braces = ['[' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | ']'];
}
// Make functions say that they are functions
if (isFunction(value)) {
var n = value.name ? ': ' + value.name : '';
base = ' [Function' + n + ']';
}
// Make RegExps say that they are RegExps
if (isRegExp(value)) {
base = ' ' + RegExp.prototype.toString.call(value);
... |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'regexp');
} else {
return ctx.stylize('[Object]' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'special');
}
}
ctx.seen.push(value);
var output;
if (array) {
output = formatArray(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | visibleKeys |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | keys);
} else {
output = keys.map(function(key) {
return formatProperty(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | visibleKeys |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | key |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | array);
});
}
ctx.seen.pop();
return reduceToSingleString(output |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | base |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | braces);
}
function formatPrimitive(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value) {
if (isUndefined(value))
return ctx.stylize('undefined' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'undefined');
if (isString(value)) {
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | '')
.replace(/'/g |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | "\\'")
.replace(/\\"/g |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | '"') + '\'';
return ctx.stylize(simple |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'string');
}
if (isNumber(value))
return ctx.stylize('' + value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'number');
if (isBoolean(value))
return ctx.stylize('' + value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'boolean');
// For some reason typeof null is "object" |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | so special case here.
if (isNull(value))
return ctx.stylize('null' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'null');
}
function formatError(value) {
return '[' + Error.prototype.toString.call(value) + ']';
}
function formatArray(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | visibleKeys |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | keys) {
var output = [];
for (var i = 0 |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | l = value.length; i < l; ++i) {
if (hasOwnProperty(value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | String(i))) {
output.push(formatProperty(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | visibleKeys |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | String(i) |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | true));
} else {
output.push('');
}
}
keys.forEach(function(key) {
if (!key.match(/^\d+$/)) {
output.push(formatProperty(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | visibleKeys |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | key |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | true));
}
});
return output;
}
function formatProperty(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | visibleKeys |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | key |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | array) {
var name |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | str |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | desc;
desc = Object.getOwnPropertyDescriptor(value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | key) || { value: value[key] };
if (desc.get) {
if (desc.set) {
str = ctx.stylize('[Getter/Setter]' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'special');
} else {
str = ctx.stylize('[Getter]' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'special');
}
} else {
if (desc.set) {
str = ctx.stylize('[Setter]' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'special');
}
}
if (!hasOwnProperty(visibleKeys |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | key)) {
name = '[' + key + ']';
}
if (!str) {
if (ctx.seen.indexOf(desc.value) < 0) {
if (isNull(recurseTimes)) {
str = formatValue(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | desc.value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | null);
} else {
str = formatValue(ctx |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | desc.value |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | recurseTimes - 1);
}
if (str.indexOf('\n') > -1) {
if (array) {
str = str.split('\n').map(function(line) {
return ' ' + line;
}).join('\n').substr(2);
} else {
str = '\n' + str.split('\n').map(function(line) {
return ' ... |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'special');
}
}
if (isUndefined(name)) {
if (array && key.match(/^\d+$/)) {
return str;
}
name = JSON.stringify('' + key);
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
name = name.substr(1 |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | name.length - 2);
name = ctx.stylize(name |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'name');
} else {
name = name.replace(/'/g |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | "\\'")
.replace(/\\"/g |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | '"')
.replace(/(^"|"$)/g |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | "'");
name = ctx.stylize(name |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'string');
}
}
return name + ': ' + str;
}
function reduceToSingleString(output |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | base |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | braces) {
var length = output.reduce(function(prev |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | cur) {
if (cur.indexOf('\n') >= 0) ;
return prev + cur.replace(/\u001b\[\d\d?m/g |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | '').length + 1;
} |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 0);
if (length > 60) {
return braces[0] +
(base === '' ? '' : base + '\n ') +
' ' +
output.join(' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | \n ') +
' ' +
braces[1];
}
return braces[0] + base + ' ' + output.join(' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | ') + ' ' + braces[1];
}
// NOTE: These type checking functions intentionally don't use `instanceof`
// because it is fragile and can be easily faked with `Object.create()`.
function isArray(ar) {
return Array.isArray(ar);
}
function isBoolean(arg) {
return typeof arg === 'boolean';
}
function... |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Feb' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Mar' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Apr' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'May' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Jun' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Jul' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Aug' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Sep' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Oct' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Nov' |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | 'Dec'];
// 26 Feb 16:19:34
function timestamp() {
var d = new Date();
var time = [pad(d.getHours()) |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | pad(d.getMinutes()) |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | pad(d.getSeconds())].join(':');
return [d.getDate() |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | months[d.getMonth()] |
pratsatya_uqt-serverside-nft-ops_node_modules_stream-transform_dist_iife_sync.js | javascript | time].join(' ');
}
// log is just a thin wrapper to console.log that prepends a timestamp
function log() {
console.log('%s - %s' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.