@howells/stow-server
Advanced tools
+3
-3
@@ -884,6 +884,6 @@ "use strict"; | ||
| listTags() { | ||
| return this.request("/tags", { method: "GET" }); | ||
| return this.request(this.withBucket("/tags"), { method: "GET" }); | ||
| } | ||
| createTag(params) { | ||
| return this.request("/tags", { | ||
| return this.request(this.withBucket("/tags"), { | ||
| method: "POST", | ||
@@ -895,3 +895,3 @@ headers: { "Content-Type": "application/json" }, | ||
| async deleteTag(id) { | ||
| await this.request(`/tags/${encodeURIComponent(id)}`, { | ||
| await this.request(this.withBucket(`/tags/${encodeURIComponent(id)}`), { | ||
| method: "DELETE" | ||
@@ -898,0 +898,0 @@ }); |
+3
-3
@@ -859,6 +859,6 @@ // src/index.ts | ||
| listTags() { | ||
| return this.request("/tags", { method: "GET" }); | ||
| return this.request(this.withBucket("/tags"), { method: "GET" }); | ||
| } | ||
| createTag(params) { | ||
| return this.request("/tags", { | ||
| return this.request(this.withBucket("/tags"), { | ||
| method: "POST", | ||
@@ -870,3 +870,3 @@ headers: { "Content-Type": "application/json" }, | ||
| async deleteTag(id) { | ||
| await this.request(`/tags/${encodeURIComponent(id)}`, { | ||
| await this.request(this.withBucket(`/tags/${encodeURIComponent(id)}`), { | ||
| method: "DELETE" | ||
@@ -873,0 +873,0 @@ }); |
+10
-10
| { | ||
| "name": "@howells/stow-server", | ||
| "version": "2.2.0", | ||
| "version": "2.2.1", | ||
| "description": "Server-side SDK for Stow file storage", | ||
@@ -32,2 +32,8 @@ "license": "MIT", | ||
| ], | ||
| "scripts": { | ||
| "build": "tsup src/index.ts --format cjs,esm --dts", | ||
| "dev": "tsup src/index.ts --format cjs,esm --dts --watch", | ||
| "test": "vitest run", | ||
| "test:watch": "vitest" | ||
| }, | ||
| "peerDependencies": { | ||
@@ -37,2 +43,3 @@ "zod": "^3.0.0 || ^4.0.0" | ||
| "devDependencies": { | ||
| "@stow/typescript-config": "workspace:*", | ||
| "@types/node": "^25.5.0", | ||
@@ -42,11 +49,4 @@ "tsup": "^8.5.1", | ||
| "vitest": "^4.1.0", | ||
| "zod": "^4.3.6", | ||
| "@stow/typescript-config": "0.0.0" | ||
| }, | ||
| "scripts": { | ||
| "build": "tsup src/index.ts --format cjs,esm --dts", | ||
| "dev": "tsup src/index.ts --format cjs,esm --dts --watch", | ||
| "test": "vitest run", | ||
| "test:watch": "vitest" | ||
| "zod": "^4.3.6" | ||
| } | ||
| } | ||
| } |
-21
| MIT License | ||
| Copyright (c) 2025 Stow | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
157181
-0.6%6
-14.29%