@apiquest/plugin-http 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/esbuild.config.js CHANGED
@@ -1,34 +1,34 @@
1
- import esbuild from 'esbuild';
2
-
3
- await esbuild.build({
4
- entryPoints: ['src/index.ts'],
5
- bundle: true,
6
- outfile: 'dist/index.js',
7
- format: 'esm',
8
- platform: 'node',
9
- target: 'node18',
10
- // Externalize peerDependencies and Node.js built-ins
11
- external: [
12
- '@apiquest/fracture',
13
- // Node.js built-in modules (got depends on these)
14
- 'http',
15
- 'https',
16
- 'http2',
17
- 'net',
18
- 'tls',
19
- 'stream',
20
- 'util',
21
- 'url',
22
- 'zlib',
23
- 'events',
24
- 'buffer',
25
- 'querystring',
26
- 'dns',
27
- 'fs',
28
- 'path',
29
- ],
30
- minify: false,
31
- sourcemap: true,
32
- });
33
-
34
- console.log('✓ Built plugin-http');
1
+ import esbuild from 'esbuild';
2
+
3
+ await esbuild.build({
4
+ entryPoints: ['src/index.ts'],
5
+ bundle: true,
6
+ outfile: 'dist/index.js',
7
+ format: 'esm',
8
+ platform: 'node',
9
+ target: 'node18',
10
+ // Externalize peerDependencies and Node.js built-ins
11
+ external: [
12
+ '@apiquest/fracture',
13
+ // Node.js built-in modules (got depends on these)
14
+ 'http',
15
+ 'https',
16
+ 'http2',
17
+ 'net',
18
+ 'tls',
19
+ 'stream',
20
+ 'util',
21
+ 'url',
22
+ 'zlib',
23
+ 'events',
24
+ 'buffer',
25
+ 'querystring',
26
+ 'dns',
27
+ 'fs',
28
+ 'path',
29
+ ],
30
+ minify: false,
31
+ sourcemap: true,
32
+ });
33
+
34
+ console.log('✓ Built plugin-http');
package/package.json CHANGED
@@ -1,62 +1,67 @@
1
- {
2
- "name": "@apiquest/plugin-http",
3
- "version": "1.0.2",
4
- "description": "HTTP protocol plugin for Quest",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "type": "module",
8
- "scripts": {
9
- "build": "rollup -c && tsc --emitDeclarationOnly",
10
- "dev": "rollup -c --watch",
11
- "test": "vitest"
12
- },
13
- "keywords": [
14
- "api",
15
- "http",
16
- "quest",
17
- "plugin"
18
- ],
19
- "author": "ApiQuest",
20
- "license": "AGPL-3.0-or-later",
21
- "dependencies": {
22
- "got": "^14.6.6",
23
- "hpagent": "^1.2.0"
24
- },
25
- "devDependencies": {
26
- "@apiquest/types": "workspace:*",
27
- "@rollup/plugin-commonjs": "^25.0.0",
28
- "@rollup/plugin-node-resolve": "^15.0.0",
29
- "@rollup/plugin-typescript": "^11.0.0",
30
- "@types/node": "^20.10.6",
31
- "rollup": "^4.0.0",
32
- "typescript": "^5.3.3",
33
- "vitest": "^4.0.18"
34
- },
35
- "peerDependencies": {
36
- "@apiquest/types": "^1.0.0"
37
- },
38
- "apiquest": {
39
- "type": "protocol",
40
- "runtime": [
41
- "fracture"
42
- ],
43
- "capabilities": {
44
- "provides": {
45
- "protocols": [
46
- "http"
47
- ]
48
- },
49
- "supports": {
50
- "authTypes": [
51
- "bearer",
52
- "basic",
53
- "oauth2",
54
- "apikey",
55
- "digest",
56
- "ntlm"
57
- ],
58
- "strictAuthList": false
59
- }
60
- }
61
- }
62
- }
1
+ {
2
+ "name": "@apiquest/plugin-http",
3
+ "version": "1.0.4",
4
+ "description": "HTTP 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-http"
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
+ "http"
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
+ };