@meistrari/vault-sdk 0.0.3 → 0.0.4

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.d.mts CHANGED
@@ -14,7 +14,7 @@ declare class APIKeyAuthStrategy implements AuthStrategy {
14
14
 
15
15
  type FetchParams = {
16
16
  method: 'GET' | 'POST' | 'PUT';
17
- path: string | URL;
17
+ path: string;
18
18
  body?: any;
19
19
  ignoreHeaders?: boolean;
20
20
  };
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ declare class APIKeyAuthStrategy implements AuthStrategy {
14
14
 
15
15
  type FetchParams = {
16
16
  method: 'GET' | 'POST' | 'PUT';
17
- path: string | URL;
17
+ path: string;
18
18
  body?: any;
19
19
  ignoreHeaders?: boolean;
20
20
  };
package/dist/index.mjs CHANGED
@@ -37,7 +37,7 @@ class VaultFile {
37
37
  }
38
38
  async _fetch(params) {
39
39
  const { method, path, body, ignoreHeaders } = params;
40
- const url = path instanceof URL ? path.toString() : new URL(path, this.vaultUrl).toString();
40
+ const url = new URL(this.vaultUrl + path).toString();
41
41
  const response = await fetch(url, {
42
42
  method,
43
43
  body,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/vault-sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,12 +17,6 @@
17
17
  "files": [
18
18
  "dist"
19
19
  ],
20
- "scripts": {
21
- "test": "vitest",
22
- "build": "unbuild",
23
- "lint": "eslint .",
24
- "check": "bun run lint && bun tsc --noEmit"
25
- },
26
20
  "dependencies": {
27
21
  "ofetch": "1.4.1",
28
22
  "vitest": "2.1.8"
@@ -37,5 +31,12 @@
37
31
  },
38
32
  "publishConfig": {
39
33
  "access": "public"
34
+ },
35
+ "scripts": {
36
+ "test": "vitest",
37
+ "build": "unbuild",
38
+ "lint": "eslint .",
39
+ "lint:fix": "eslint . --fix",
40
+ "check": "bun run lint && bun tsc --noEmit"
40
41
  }
41
- }
42
+ }