Skip to content

Commit ddc2f5e

Browse files
committed
v1.1.1 - Hotimprovement
1 parent 0e457fc commit ddc2f5e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tch-filector",
33
"productName": "FileCtor",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"author": "Tomas Chyly <chyly@tomas-chyly.com> (https://tomas-chyly.com/en/)",
66
"license": "GPL v3",
77
"description": "File inspector with interactive javascript console.",

src/main/api/functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function TinyPNGResizeCropFile (file, params) {
7373
await tinify.fromFile (file).preserve ('copyright', 'creation').resize (params).toFile (newName);
7474
}
7575

76-
async function Fetch (url, type = 'GET', params = null) {
76+
async function Fetch (url, type = 'GET', params = null, skipSanitize = false) {
7777
let response = null;
7878

7979
switch (type) {
@@ -86,7 +86,7 @@ async function Fetch (url, type = 'GET', params = null) {
8686
}
8787

8888
if (response) {
89-
response = sanitizeHtml (response.data);
89+
response = !skipSanitize ? sanitizeHtml (response.data) : response.data;
9090
}
9191

9292
return response;

src/view/Reference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Reference extends Component {
4747
},
4848
'fetch': {
4949
label: 'Fetch ()',
50-
description: 'Parameters: string, GET|POST, object\nFirst parameter is valid url, second is either GET or POST request type, third is data as object if POST is used. Can be awaited. This function returns contents of called url.'
50+
description: 'Parameters: string, GET|POST, object, boolean\nFirst parameter is valid url, second is either GET or POST request type, third is data as object if POST is used, last parameter is used to disable sanitization. Can be awaited. This function returns contents of called url.'
5151
},
5252
'fs-createReadStream': {
5353
label: 'fs.createReadStream ()',

0 commit comments

Comments
 (0)