@apiquest/plugin-sse 1.0.2 → 1.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/README.md +164 -160
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +58 -36
- package/dist/index.js.map +1 -1
- package/esbuild.config.js +34 -34
- package/package.json +67 -62
- package/rollup.config.js +31 -31
- package/src/index.ts +412 -412
- package/tsconfig.json +20 -20
- package/tsconfig.test.json +5 -5
- package/vitest.config.ts +12 -12
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,62 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@apiquest/plugin-sse",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "SSE protocol plugin for
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
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
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@apiquest/plugin-sse",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "SSE protocol plugin for ApiQuest",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/hh-apiquest/fracture.git",
|
|
11
|
+
"directory": "packages/plugin-sse"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "rollup -c && tsc --emitDeclarationOnly",
|
|
15
|
+
"dev": "rollup -c --watch",
|
|
16
|
+
"test": "vitest"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"api",
|
|
20
|
+
"http",
|
|
21
|
+
"quest",
|
|
22
|
+
"plugin"
|
|
23
|
+
],
|
|
24
|
+
"author": "ApiQuest",
|
|
25
|
+
"license": "AGPL-3.0-or-later",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"got": "^14.6.6",
|
|
28
|
+
"hpagent": "^1.2.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@apiquest/types": "workspace:*",
|
|
32
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
33
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
34
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
35
|
+
"@types/node": "^25.2.3",
|
|
36
|
+
"rollup": "^4.57.1",
|
|
37
|
+
"typescript": "^5.3.3",
|
|
38
|
+
"vitest": "^4.0.18"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@apiquest/types": "^1.0.0"
|
|
42
|
+
},
|
|
43
|
+
"apiquest": {
|
|
44
|
+
"type": "protocol",
|
|
45
|
+
"runtime": [
|
|
46
|
+
"fracture"
|
|
47
|
+
],
|
|
48
|
+
"capabilities": {
|
|
49
|
+
"provides": {
|
|
50
|
+
"protocols": [
|
|
51
|
+
"sse"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"supports": {
|
|
55
|
+
"authTypes": [
|
|
56
|
+
"bearer",
|
|
57
|
+
"basic",
|
|
58
|
+
"oauth2",
|
|
59
|
+
"apikey",
|
|
60
|
+
"digest",
|
|
61
|
+
"ntlm"
|
|
62
|
+
],
|
|
63
|
+
"strictAuthList": false
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
package/rollup.config.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import typescript from '@rollup/plugin-typescript';
|
|
2
|
-
import resolve from '@rollup/plugin-node-resolve';
|
|
3
|
-
import commonjs from '@rollup/plugin-commonjs';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
input: 'src/index.ts',
|
|
7
|
-
output: {
|
|
8
|
-
file: 'dist/index.js',
|
|
9
|
-
format: 'esm',
|
|
10
|
-
sourcemap: true,
|
|
11
|
-
},
|
|
12
|
-
external: [
|
|
13
|
-
// Externalize peer dependencies
|
|
14
|
-
'@apiquest/fracture',
|
|
15
|
-
],
|
|
16
|
-
plugins: [
|
|
17
|
-
// Resolve node modules
|
|
18
|
-
resolve({
|
|
19
|
-
preferBuiltins: true, // Prefer Node.js built-in modules
|
|
20
|
-
exportConditions: ['node', 'import', 'default'],
|
|
21
|
-
}),
|
|
22
|
-
// Convert CommonJS to ESM (for any CJS dependencies)
|
|
23
|
-
commonjs(),
|
|
24
|
-
// Compile TypeScript
|
|
25
|
-
typescript({
|
|
26
|
-
tsconfig: './tsconfig.json',
|
|
27
|
-
sourceMap: true,
|
|
28
|
-
declaration: false, // We'll use tsc for declarations
|
|
29
|
-
}),
|
|
30
|
-
],
|
|
31
|
-
};
|
|
1
|
+
import typescript from '@rollup/plugin-typescript';
|
|
2
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
3
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
input: 'src/index.ts',
|
|
7
|
+
output: {
|
|
8
|
+
file: 'dist/index.js',
|
|
9
|
+
format: 'esm',
|
|
10
|
+
sourcemap: true,
|
|
11
|
+
},
|
|
12
|
+
external: [
|
|
13
|
+
// Externalize peer dependencies
|
|
14
|
+
'@apiquest/fracture',
|
|
15
|
+
],
|
|
16
|
+
plugins: [
|
|
17
|
+
// Resolve node modules
|
|
18
|
+
resolve({
|
|
19
|
+
preferBuiltins: true, // Prefer Node.js built-in modules
|
|
20
|
+
exportConditions: ['node', 'import', 'default'],
|
|
21
|
+
}),
|
|
22
|
+
// Convert CommonJS to ESM (for any CJS dependencies)
|
|
23
|
+
commonjs(),
|
|
24
|
+
// Compile TypeScript
|
|
25
|
+
typescript({
|
|
26
|
+
tsconfig: './tsconfig.json',
|
|
27
|
+
sourceMap: true,
|
|
28
|
+
declaration: false, // We'll use tsc for declarations
|
|
29
|
+
}),
|
|
30
|
+
],
|
|
31
|
+
};
|