Compare commits

...

5 Commits

Author SHA1 Message Date
4a81cbf321 Bump version to 9.2.2 2024-10-15 17:13:21 +02:00
b1d846de32 gm-fetch aktualisiert 2024-10-15 17:12:35 +02:00
748a8740eb Revert "gm-fetch für Firefox gefixt"
This reverts commit 20e011bb5507948894f9500355b457aa349556e9.
2024-10-15 16:45:21 +02:00
248fbd5f0f Bump version to 9.2.0 2024-10-14 11:50:06 +02:00
20e011bb55 gm-fetch für Firefox gefixt 2024-10-14 11:49:10 +02:00
3 changed files with 10 additions and 18 deletions

View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name 3CX TAPI
// @namespace http://cp-solutions.at
// @version 9.2.0
// @version 9.2.2
// @author Daniel Triendl <d.triendl@cp-solutions.at>
// @copyright Copyright 2021 CP Solutions GmbH
// @source https://source.cp-austria.at/git/CPATRD/3cx_tapi.git
@ -4276,7 +4276,7 @@ class ResImpl {
constructor(body, init) {
this.rawBody = body;
this.init = init;
this.body = toReadableStream(body);
this.body = body.stream();
const { headers, statusCode, statusText, finalUrl, redirected } = init;
this.headers = headers;
this.status = statusCode;
@ -4350,14 +4350,6 @@ function decode(body) {
});
return form;
}
function toReadableStream(value) {
return new ReadableStream({
start(controller) {
controller.enqueue(value);
controller.close();
},
});
}
async function GM_fetch(input, init) {
const request = new Request(input, init);

12
package-lock.json generated
View File

@ -1,14 +1,14 @@
{
"name": "3cx-tapi",
"version": "9.1.1",
"version": "9.2.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "3cx-tapi",
"version": "9.1.1",
"version": "9.2.2",
"dependencies": {
"@trim21/gm-fetch": "^0.1.15",
"@trim21/gm-fetch": "^0.1.16",
"chrono-node": "^2.7.7"
},
"devDependencies": {
@ -1865,9 +1865,9 @@
"license": "MIT"
},
"node_modules/@trim21/gm-fetch": {
"version": "0.1.15",
"resolved": "https://registry.npmjs.org/@trim21/gm-fetch/-/gm-fetch-0.1.15.tgz",
"integrity": "sha512-197WkYDd1XY8eDNWMBWSrAV77kCJzvh8EOnKSgIoHDXTb1AFLDN1iFnK/Y2x4XTOUDdOfUQd25rKUlVGWmQYhQ==",
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@trim21/gm-fetch/-/gm-fetch-0.1.16.tgz",
"integrity": "sha512-FoLbc1lsMvs/1xDgOZVbS+SYS4oFnp1RLdYT4lTrUFEIpbVR5t+b/E3Mg2oKl/yjgqEh2Ty2kI0U//gODz1V6w==",
"license": "MIT"
},
"node_modules/@types/estree": {

View File

@ -1,7 +1,7 @@
{
"name": "3cx-tapi",
"description": "3CX CP Tapi and Projectmanager integration",
"version": "9.2.0",
"version": "9.2.2",
"author": {
"name": "Daniel Triendl",
"email": "d.triendl@cp-solutions.at"
@ -25,7 +25,7 @@
"private": true,
"dependencies": {
"chrono-node": "^2.7.7",
"@trim21/gm-fetch": "^0.1.15"
"@trim21/gm-fetch": "^0.1.16"
},
"devDependencies": {
"@types/greasemonkey": "^4.0.7",