ajax-hooker 1.2.0 → 1.2.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "ajax-hooker",
3
- "version": "1.2.0",
4
- "description": "A plugin for intercepting and modifying AJAX requests",
3
+ "version": "1.2.2",
4
+ "description": "Browser AJAX interceptor for XMLHttpRequest and fetch with unified hooks, request/response mutation, and streaming response support.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "type": "module",
@@ -10,12 +10,17 @@
10
10
  ".": {
11
11
  "types": "./dist/types/index.d.ts",
12
12
  "import": "./dist/esm/index.js",
13
- "require": "./dist/cjs/index.js"
14
- }
13
+ "require": "./dist/cjs/index.js",
14
+ "default": "./dist/esm/index.js"
15
+ },
16
+ "./package.json": "./package.json"
15
17
  },
16
18
  "files": [
17
19
  "dist"
18
20
  ],
21
+ "homepage": "https://github.com/Arktomson/ajaxInterceptor#readme",
22
+ "unpkg": "dist/iife/index.js",
23
+ "jsdelivr": "dist/iife/index.js",
19
24
  "simple-git-hooks": {
20
25
  "commit-msg": "npx --no-install commitlint --edit $1"
21
26
  },
@@ -23,7 +28,18 @@
23
28
  "license": "MIT",
24
29
  "keywords": [
25
30
  "ajax",
26
- "interceptor"
31
+ "interceptor",
32
+ "xmlhttprequest",
33
+ "xhr",
34
+ "fetch",
35
+ "request-interceptor",
36
+ "response-interceptor",
37
+ "network-interceptor",
38
+ "browser",
39
+ "typescript",
40
+ "streaming",
41
+ "sse",
42
+ "ndjson"
27
43
  ],
28
44
  "repository": {
29
45
  "type": "git",
@@ -47,6 +63,7 @@
47
63
  "rollup": "^4.52.2",
48
64
  "rollup-plugin-clear": "^2.0.7",
49
65
  "rollup-plugin-define": "^1.0.1",
66
+ "rollup-plugin-node-externals": "^8.1.2",
50
67
  "rollup-plugin-serve": "^3.0.0",
51
68
  "simple-git-hooks": "^2.13.1",
52
69
  "type-fest": "^5.4.4",