-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
88 lines (88 loc) · 2.83 KB
/
package.json
File metadata and controls
88 lines (88 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "ajax-hooker",
"version": "1.2.2",
"description": "Browser AJAX interceptor for XMLHttpRequest and fetch with unified hooks, request/response mutation, and streaming response support.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"type": "module",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
"homepage": "https://github.com/Arktomson/ajaxInterceptor#readme",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"scripts": {
"dev": "rollup -c -w --environment NODE_ENV:development --configPlugin @rollup/plugin-typescript",
"build:js": "rollup -c --environment NODE_ENV:production --configPlugin @rollup/plugin-typescript",
"build:types": "tsc --target ESNext --module ESNext --moduleResolution Node --lib ESNext,DOM --esModuleInterop --allowSyntheticDefaultImports --skipLibCheck --declaration --emitDeclarationOnly --declarationDir dist/types --declarationMap false --sourceMap false --types node src/index.ts",
"build": "pnpm run build:js && pnpm run build:types",
"test": "vitest",
"test:ui": "vitest --ui",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"release": "pnpm run build && node scripts/release.cjs patch && pnpm publish",
"prepare": "simple-git-hooks"
},
"simple-git-hooks": {
"commit-msg": "npx --no-install commitlint --edit $1"
},
"author": "arktomson",
"license": "MIT",
"keywords": [
"ajax",
"interceptor",
"xmlhttprequest",
"xhr",
"fetch",
"request-interceptor",
"response-interceptor",
"network-interceptor",
"browser",
"typescript",
"streaming",
"sse",
"ndjson"
],
"repository": {
"type": "git",
"url": "https://github.com/Arktomson/ajaxInterceptor.git"
},
"bugs": {
"url": "https://github.com/Arktomson/ajaxInterceptor/issues"
},
"devDependencies": {
"@commitlint/cli": "^20.4.2",
"@commitlint/config-conventional": "^20.4.2",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/lodash-es": "^4.17.12",
"@types/node": "^25.0.2",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/ui": "^4.0.15",
"jsdom": "^27.3.0",
"msw": "^2.12.7",
"rollup": "^4.52.2",
"rollup-plugin-clear": "^2.0.7",
"rollup-plugin-define": "^1.0.1",
"rollup-plugin-node-externals": "^8.1.2",
"rollup-plugin-serve": "^3.0.0",
"simple-git-hooks": "^2.13.1",
"type-fest": "^5.4.4",
"typescript": "^5.7.3",
"vitest": "^4.0.15"
},
"dependencies": {
"lodash-es": "^4.17.21"
}
}