diff --git a/plugins/http/package.json b/plugins/http/package.json index f7f70019..02ea80bf 100644 --- a/plugins/http/package.json +++ b/plugins/http/package.json @@ -24,7 +24,6 @@ "LICENSE" ], "dependencies": { - "@tauri-apps/api": "^2.0.0", - "@tauri-apps/plugin-http": "link:" + "@tauri-apps/api": "^2.0.0" } } diff --git a/plugins/http/permissions/autogenerated/commands/fetch_stream_body.toml b/plugins/http/permissions/autogenerated/commands/fetch_stream_body.toml deleted file mode 100644 index 5f711fd5..00000000 --- a/plugins/http/permissions/autogenerated/commands/fetch_stream_body.toml +++ /dev/null @@ -1,13 +0,0 @@ -# Automatically generated - DO NOT EDIT! - -"$schema" = "../../schemas/schema.json" - -[[permission]] -identifier = "allow-fetch-stream-body" -description = "Enables the fetch_stream_body command without any pre-configured scope." -commands.allow = ["fetch_stream_body"] - -[[permission]] -identifier = "deny-fetch-stream-body" -description = "Denies the fetch_stream_body command without any pre-configured scope." -commands.deny = ["fetch_stream_body"] diff --git a/plugins/http/permissions/autogenerated/reference.md b/plugins/http/permissions/autogenerated/reference.md index 19a3c4eb..4126f0b9 100644 --- a/plugins/http/permissions/autogenerated/reference.md +++ b/plugins/http/permissions/autogenerated/reference.md @@ -15,7 +15,7 @@ All fetch operations are enabled. - `allow-fetch` - `allow-fetch-cancel` -- `allow-fetch-stream-body` +- `allow-fetch-read-body` - `allow-fetch-send` ## Permission Table @@ -128,32 +128,6 @@ Enables the fetch_send command without any pre-configured scope. Denies the fetch_send command without any pre-configured scope. - - - - - - -`http:allow-fetch-stream-body` - - - - -Enables the fetch_stream_body command without any pre-configured scope. - - - - - - - -`http:deny-fetch-stream-body` - - - - -Denies the fetch_stream_body command without any pre-configured scope. - diff --git a/plugins/http/permissions/default.toml b/plugins/http/permissions/default.toml index 9c8818db..b469536d 100644 --- a/plugins/http/permissions/default.toml +++ b/plugins/http/permissions/default.toml @@ -17,6 +17,6 @@ All fetch operations are enabled. permissions = [ "allow-fetch", "allow-fetch-cancel", - "allow-fetch-stream-body", + "allow-fetch-read-body", "allow-fetch-send", ] diff --git a/plugins/http/permissions/schemas/schema.json b/plugins/http/permissions/schemas/schema.json index 03caf56e..794ee204 100644 --- a/plugins/http/permissions/schemas/schema.json +++ b/plugins/http/permissions/schemas/schema.json @@ -334,16 +334,6 @@ "type": "string", "const": "deny-fetch-send" }, - { - "description": "Enables the fetch_stream_body command without any pre-configured scope.", - "type": "string", - "const": "allow-fetch-stream-body" - }, - { - "description": "Denies the fetch_stream_body command without any pre-configured scope.", - "type": "string", - "const": "deny-fetch-stream-body" - }, { "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n", "type": "string",