shamela 1.0.6 → 1.1.0

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,29 +1,36 @@
1
1
  {
2
2
  "name": "shamela",
3
- "version": "1.0.6",
3
+ "version": "1.1.0",
4
4
  "description": "Library to interact with the Maktabah Shamela v4 APIs",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ragaeeb/shamela.git"
8
8
  },
9
9
  "private": false,
10
- "main": "dist/main.js",
10
+ "main": "dist/index.js",
11
11
  "types": "dist/index.d.ts",
12
+ "default": "./dist/index.js",
12
13
  "source": "src/index.ts",
13
14
  "type": "module",
14
15
  "engines": {
16
+ "bun": ">=1.2.20",
15
17
  "node": ">=22.0.0"
16
18
  },
17
19
  "scripts": {
18
- "build": "parcel build",
19
- "test": "vitest run --coverage",
20
- "e2e": "bun run --env-file .env vitest run --coverage --config vitest.e2e.config.ts",
21
- "e2e:ci": "bun run vitest --config vitest.e2e.config.ts --run"
20
+ "build": "tsup",
21
+ "test": "bun test src/ --coverage --coverage-reporter=lcov",
22
+ "e2e": "bun test e2e --env-file .env",
23
+ "e2e:ci": "bun test e2e"
24
+ },
25
+ "sideEffects": false,
26
+ "exports": {
27
+ ".": {
28
+ "import": "./dist/index.js",
29
+ "types": "./dist/index.d.ts"
30
+ }
22
31
  },
23
32
  "files": [
24
- "dist/main.js",
25
- "dist/main.js.map",
26
- "dist/*.d.ts"
33
+ "dist/**"
27
34
  ],
28
35
  "keywords": [
29
36
  "shamela",
@@ -34,31 +41,24 @@
34
41
  "author": "Ragaeeb Haq",
35
42
  "license": "MIT",
36
43
  "devDependencies": {
37
- "@eslint/js": "^9.23.0",
38
- "@parcel/packager-ts": "^2.14.4",
39
- "@parcel/transformer-typescript-types": "^2.14.4",
44
+ "@eslint/js": "^9.34.0",
40
45
  "@semantic-release/changelog": "^6.0.3",
41
46
  "@semantic-release/git": "^10.0.1",
42
- "@types/bun": "^1.2.8",
43
- "@types/node": "^22.14.0",
47
+ "@types/bun": "^1.2.20",
48
+ "@types/node": "^24.3.0",
44
49
  "@types/unzipper": "^0.10.11",
45
- "@vitest/coverage-v8": "^3.1.1",
46
- "dotenv-vault": "^1.26.2",
47
- "eslint": "^9.23.0",
48
- "eslint-config-prettier": "^10.1.1",
49
- "eslint-plugin-perfectionist": "^4.11.0",
50
- "eslint-plugin-prettier": "^5.2.6",
51
- "parcel": "^2.14.4",
52
- "prettier": "^3.5.3",
53
- "semantic-release": "^24.2.3",
54
- "typescript": "^5.8.2",
55
- "typescript-eslint": "^8.29.0",
56
- "vitest": "^3.1.1"
50
+ "dotenv-vault": "^1.27.0",
51
+ "eslint": "^9.34.0",
52
+ "eslint-config-prettier": "^10.1.8",
53
+ "eslint-plugin-perfectionist": "^4.15.0",
54
+ "eslint-plugin-prettier": "^5.5.4",
55
+ "globals": "^16.3.0",
56
+ "prettier": "^3.6.2",
57
+ "semantic-release": "^24.2.7",
58
+ "tsup": "^8.5.0",
59
+ "typescript-eslint": "^8.41.0"
57
60
  },
58
61
  "dependencies": {
59
- "@libsql/client": "^0.15.2",
60
- "pino": "^9.6.0",
61
- "pino-pretty": "^13.0.0",
62
62
  "unzipper": "^0.12.3"
63
63
  }
64
64
  }