Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 13, 2024
1 parent 0ed7b90 commit f9ac6f0
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@
[![npm](https://img.shields.io/badge/npm-DEV-blue.svg)](https://www.npmjs.com/package/jquery.terminal)
![bower](https://img.shields.io/badge/bower-DEV-yellow.svg)
[![Build and test](https://github.com/jcubic/jquery.terminal/actions/workflows/build.yaml/badge.svg?branch=devel&event=push)](https://github.com/jcubic/jquery.terminal/actions/workflows/build.yaml)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&e637f705f0dc86afeff501b675fef37c)](https://coveralls.io/github/jcubic/jquery.terminal?branch=devel)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&998c1c8b8a57dd88c9cf5a40049e8bf2)](https://coveralls.io/github/jcubic/jquery.terminal?branch=devel)
![NPM Downloads](https://img.shields.io/npm/dm/jquery.terminal.svg?style=flat)
[![jsDelivr Downloads](https://data.jsdelivr.com/v1/package/npm/jquery.terminal/badge?style=rounded&n=1)](https://www.jsdelivr.com/package/npm/jquery.terminal)
[![Paid Support](https://img.shields.io/badge/paid-support-354465.svg)](https://support.jcubic.pl/)
Expand Down
24 changes: 12 additions & 12 deletions js/jquery.terminal-2.37.2.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Wed, 31 Jan 2024 13:30:30 +0000
* Date: Tue, 13 Feb 2024 11:53:46 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -283,13 +283,13 @@
clone_object: function(object) {
var tmp = {};
if (typeof object === 'object') {
if ($.isArray(object)) {
if (Array.isArray(object)) {
return this.clone_array(object);
} else if (object === null) {
return object;
} else {
for (var key in object) {
if ($.isArray(object[key])) {
if (Array.isArray(object[key])) {
tmp[key] = this.clone_array(object[key]);
} else if (typeof object[key] === 'object') {
tmp[key] = this.clone_object(object[key]);
Expand Down Expand Up @@ -625,7 +625,7 @@
if (value === undefined || value === null) {
return null;
}
var result = this.regex.exec(jQuery.trim(value.toString()));
var result = this.regex.exec(value.toString().trim());
if (result[2]) {
var num = parseInt(result[1], 10);
var mult = this.powers[result[2]] || 1;
Expand All @@ -637,7 +637,7 @@
add: function(element, interval, label, fn, times, belay) {
var counter = 0;

if (jQuery.isFunction(label)) {
if (typeof label === 'function') {
if (!times) {
times = fn;
}
Expand Down Expand Up @@ -5286,7 +5286,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Wed, 31 Jan 2024 13:30:30 +0000',
date: 'Tue, 13 Feb 2024 11:53:46 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -7107,7 +7107,7 @@
};
}
function validJSONRPC(response) {
return $.isNumeric(response.id) &&
return typeof response.id === 'number' &&
(typeof response.result !== 'undefined' ||
typeof response.error !== 'undefined');
}
Expand Down Expand Up @@ -8102,7 +8102,7 @@
object = {
interpreter: make_basic_json_rpc(user_intrp, login)
};
if ($.isArray(settings.completion)) {
if (Array.isArray(settings.completion)) {
object.completion = settings.completion;
}
finalize(object);
Expand Down Expand Up @@ -9410,7 +9410,7 @@
// will be used internaly since users know
// when login success (they decide when
// it happen by calling the callback -
// this funtion)
// this function)
if (is_function(next)) {
next();
}
Expand Down Expand Up @@ -9611,7 +9611,7 @@
} else {
save_state.push(self.export_view());
}
if (!$.isArray(hash_commands)) {
if (!Array.isArray(hash_commands)) {
hash_commands = [];
}
if (command !== undefined && !ignore_hash) {
Expand Down Expand Up @@ -9665,7 +9665,7 @@
}
var d = exec_settings.deferred;
cmd_ready(function ready() {
if ($.isArray(command)) {
if (Array.isArray(command)) {
(function recur() {
var cmd = command.shift();
if (cmd) {
Expand Down Expand Up @@ -11237,7 +11237,7 @@
// result is object with interpreter and completion properties
interpreters.push($.extend({}, ret, push_settings));
if (push_settings.completion === true) {
if ($.isArray(ret.completion)) {
if (Array.isArray(ret.completion)) {
interpreters.top().completion = ret.completion;
} else if (!ret.completion) {
interpreters.top().completion = false;
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.37.2.min.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Wed, 31 Jan 2024 13:30:30 +0000
* Date: Tue, 13 Feb 2024 11:53:46 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -283,13 +283,13 @@
clone_object: function(object) {
var tmp = {};
if (typeof object === 'object') {
if ($.isArray(object)) {
if (Array.isArray(object)) {
return this.clone_array(object);
} else if (object === null) {
return object;
} else {
for (var key in object) {
if ($.isArray(object[key])) {
if (Array.isArray(object[key])) {
tmp[key] = this.clone_array(object[key]);
} else if (typeof object[key] === 'object') {
tmp[key] = this.clone_object(object[key]);
Expand Down Expand Up @@ -625,7 +625,7 @@
if (value === undefined || value === null) {
return null;
}
var result = this.regex.exec(jQuery.trim(value.toString()));
var result = this.regex.exec(value.toString().trim());
if (result[2]) {
var num = parseInt(result[1], 10);
var mult = this.powers[result[2]] || 1;
Expand All @@ -637,7 +637,7 @@
add: function(element, interval, label, fn, times, belay) {
var counter = 0;

if (jQuery.isFunction(label)) {
if (typeof label === 'function') {
if (!times) {
times = fn;
}
Expand Down Expand Up @@ -5286,7 +5286,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Wed, 31 Jan 2024 13:30:30 +0000',
date: 'Tue, 13 Feb 2024 11:53:46 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -7107,7 +7107,7 @@
};
}
function validJSONRPC(response) {
return $.isNumeric(response.id) &&
return typeof response.id === 'number' &&
(typeof response.result !== 'undefined' ||
typeof response.error !== 'undefined');
}
Expand Down Expand Up @@ -8102,7 +8102,7 @@
object = {
interpreter: make_basic_json_rpc(user_intrp, login)
};
if ($.isArray(settings.completion)) {
if (Array.isArray(settings.completion)) {
object.completion = settings.completion;
}
finalize(object);
Expand Down Expand Up @@ -9410,7 +9410,7 @@
// will be used internaly since users know
// when login success (they decide when
// it happen by calling the callback -
// this funtion)
// this function)
if (is_function(next)) {
next();
}
Expand Down Expand Up @@ -9611,7 +9611,7 @@
} else {
save_state.push(self.export_view());
}
if (!$.isArray(hash_commands)) {
if (!Array.isArray(hash_commands)) {
hash_commands = [];
}
if (command !== undefined && !ignore_hash) {
Expand Down Expand Up @@ -9665,7 +9665,7 @@
}
var d = exec_settings.deferred;
cmd_ready(function ready() {
if ($.isArray(command)) {
if (Array.isArray(command)) {
(function recur() {
var cmd = command.shift();
if (cmd) {
Expand Down Expand Up @@ -11237,7 +11237,7 @@
// result is object with interpreter and completion properties
interpreters.push($.extend({}, ret, push_settings));
if (push_settings.completion === true) {
if ($.isArray(ret.completion)) {
if (Array.isArray(ret.completion)) {
interpreters.top().completion = ret.completion;
} else if (!ret.completion) {
interpreters.top().completion = false;
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit f9ac6f0

Please sign in to comment.