@howells/stow-server 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -881,17 +881,17 @@ var StowServer = class {
881
881
  };
882
882
  }
883
883
  listTags() {
884
- return this.request("/tags", { method: "GET" });
884
+ return this.request(this.withBucket("/tags"), { method: "GET" });
885
885
  }
886
886
  createTag(params) {
887
- return this.request("/tags", {
887
+ return this.request(this.withBucket("/tags"), {
888
888
  method: "POST",
889
889
  headers: { "Content-Type": "application/json" },
890
890
  body: JSON.stringify(params)
891
891
  });
892
892
  }
893
893
  async deleteTag(id) {
894
- await this.request(`/tags/${encodeURIComponent(id)}`, {
894
+ await this.request(this.withBucket(`/tags/${encodeURIComponent(id)}`), {
895
895
  method: "DELETE"
896
896
  });
897
897
  }
package/dist/index.mjs CHANGED
@@ -856,17 +856,17 @@ var StowServer = class {
856
856
  };
857
857
  }
858
858
  listTags() {
859
- return this.request("/tags", { method: "GET" });
859
+ return this.request(this.withBucket("/tags"), { method: "GET" });
860
860
  }
861
861
  createTag(params) {
862
- return this.request("/tags", {
862
+ return this.request(this.withBucket("/tags"), {
863
863
  method: "POST",
864
864
  headers: { "Content-Type": "application/json" },
865
865
  body: JSON.stringify(params)
866
866
  });
867
867
  }
868
868
  async deleteTag(id) {
869
- await this.request(`/tags/${encodeURIComponent(id)}`, {
869
+ await this.request(this.withBucket(`/tags/${encodeURIComponent(id)}`), {
870
870
  method: "DELETE"
871
871
  });
872
872
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howells/stow-server",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Server-side SDK for Stow file storage",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,21 +29,21 @@
29
29
  "files": [
30
30
  "dist"
31
31
  ],
32
+ "scripts": {
33
+ "build": "tsup src/index.ts --format cjs,esm --dts",
34
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
35
+ "test": "vitest run",
36
+ "test:watch": "vitest"
37
+ },
32
38
  "peerDependencies": {
33
39
  "zod": "^3.0.0 || ^4.0.0"
34
40
  },
35
41
  "devDependencies": {
42
+ "@stow/typescript-config": "workspace:*",
36
43
  "@types/node": "^25.5.0",
37
44
  "tsup": "^8.5.1",
38
45
  "typescript": "^5.9.3",
39
46
  "vitest": "^4.1.0",
40
- "zod": "^4.3.6",
41
- "@stow/typescript-config": "0.0.0"
42
- },
43
- "scripts": {
44
- "build": "tsup src/index.ts --format cjs,esm --dts",
45
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
46
- "test": "vitest run",
47
- "test:watch": "vitest"
47
+ "zod": "^4.3.6"
48
48
  }
49
- }
49
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Stow
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.