astro-loader-pocketbase 2.3.1-next.1 → 2.3.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/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "astro-loader-pocketbase",
3
- "version": "2.3.1-next.1",
3
+ "version": "2.3.1",
4
4
  "description": "A content loader for Astro that uses the PocketBase API",
5
+ "keywords": [
6
+ "astro",
7
+ "astro-content-loader",
8
+ "astro-loader",
9
+ "pocketbase",
10
+ "withastro"
11
+ ],
12
+ "homepage": "https://github.com/pawcoding/astro-loader-pocketbase",
5
13
  "license": "MIT",
6
14
  "author": "Luis Wolf <development@pawcode.de> (https://pawcode.de)",
7
- "homepage": "https://github.com/pawcoding/astro-loader-pocketbase",
8
15
  "type": "module",
9
16
  "exports": {
10
17
  ".": "./src/index.ts"
@@ -13,14 +20,19 @@
13
20
  "src"
14
21
  ],
15
22
  "scripts": {
16
- "lint": "npx eslint --cache",
17
- "lint:fix": "npx eslint --fix --cache",
18
23
  "format": "npx prettier . --write --cache",
19
24
  "format:check": "npx prettier . --check --cache",
20
- "prepare": "husky"
21
- },
22
- "peerDependencies": {
23
- "astro": "^5.0.0"
25
+ "lint": "npx eslint --cache",
26
+ "lint:fix": "npx eslint --fix --cache",
27
+ "prepare": "husky",
28
+ "test": "vitest run",
29
+ "test:e2e": "vitest run $(find test -name '*.e2e-spec.ts')",
30
+ "test:e2e:pocketbase": "npm run test:e2e:setup && ./.pocketbase/pocketbase serve",
31
+ "test:e2e:setup": "./scripts/setup-pocketbase.sh",
32
+ "test:e2e:watch": "vitest watch $(find test -name '*.e2e-spec.ts')",
33
+ "test:unit": "vitest run $(find test -name '*.spec.ts')",
34
+ "test:unit:watch": "vitest watch $(find test -name '*.spec.ts')",
35
+ "test:watch": "vitest watch"
24
36
  },
25
37
  "devDependencies": {
26
38
  "@commitlint/cli": "^19.6.1",
@@ -28,20 +40,21 @@
28
40
  "@eslint/js": "^9.19.0",
29
41
  "@stylistic/eslint-plugin": "^3.0.1",
30
42
  "@types/node": "^22.13.0",
43
+ "@vitest/coverage-v8": "^3.0.4",
31
44
  "astro": "^5.2.3",
32
45
  "eslint": "^9.19.0",
33
46
  "eslint-config-prettier": "^10.0.1",
34
47
  "globals": "^15.14.0",
35
48
  "husky": "^9.1.7",
36
- "prettier": "3.4.2",
49
+ "lint-staged": "^15.4.3",
50
+ "prettier": "^3.4.2",
51
+ "prettier-plugin-organize-imports": "^4.1.0",
52
+ "prettier-plugin-packagejson": "^2.5.8",
37
53
  "typescript": "^5.7.3",
38
- "typescript-eslint": "^8.22.0"
54
+ "typescript-eslint": "^8.22.0",
55
+ "vitest": "^3.0.4"
39
56
  },
40
- "keywords": [
41
- "astro",
42
- "astro-content-loader",
43
- "astro-loader",
44
- "pocketbase",
45
- "withastro"
46
- ]
57
+ "peerDependencies": {
58
+ "astro": "^5.0.0"
59
+ }
47
60
  }
@@ -56,7 +56,7 @@ export function transformFiles(
56
56
  * @param entryId ID of the entry.
57
57
  * @param file Name of the file.
58
58
  */
59
- function transformFileUrl(
59
+ export function transformFileUrl(
60
60
  base: string,
61
61
  collectionName: string,
62
62
  entryId: string,