@gjsify/https 0.4.35 → 0.4.36
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/lib/esm/browser.js +1 -0
- package/lib/types/browser.d.ts +36 -0
- package/package.json +22 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import e,{ClientRequest as t,IncomingMessage as n,METHODS as r,OutgoingMessage as i,STATUS_CODES as a,Server as o,ServerResponse as s,createServer as c,get as l,globalAgent as u,maxHeaderSize as d,request as f,setMaxIdleHTTPParsers as p,validateHeaderName as m,validateHeaderValue as h}from"@gjsify/http/browser";var Agent=class{keepAlive=!1;keepAliveMsecs=1e3;maxSockets=1/0;maxFreeSockets=256;sockets={};freeSockets={};requests={};destroy(){}};const g=new Agent,_={...e,Agent,globalAgent:g};export{Agent,t as ClientRequest,n as IncomingMessage,r as METHODS,i as OutgoingMessage,a as STATUS_CODES,o as Server,s as ServerResponse,c as createServer,_ as default,l as get,u as globalAgent,g as globalHttpsAgent,d as maxHeaderSize,f as request,p as setMaxIdleHTTPParsers,m as validateHeaderName,h as validateHeaderValue};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export { METHODS, STATUS_CODES, maxHeaderSize, globalAgent, IncomingMessage, ClientRequest, Server, ServerResponse, OutgoingMessage, createServer, request, get, validateHeaderName, validateHeaderValue, setMaxIdleHTTPParsers, } from '@gjsify/http/browser';
|
|
2
|
+
/**
|
|
3
|
+
* Browser `https.Agent` stub — there is no real socket pool in the browser, so
|
|
4
|
+
* we surface a minimal shape that satisfies typical consumer-code probes (e.g.
|
|
5
|
+
* `agent.keepAlive`) without throwing on construction.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Agent {
|
|
8
|
+
keepAlive: boolean;
|
|
9
|
+
keepAliveMsecs: number;
|
|
10
|
+
maxSockets: number;
|
|
11
|
+
maxFreeSockets: number;
|
|
12
|
+
sockets: Record<string, unknown[]>;
|
|
13
|
+
freeSockets: Record<string, unknown[]>;
|
|
14
|
+
requests: Record<string, unknown[]>;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare const globalHttpsAgent: Agent;
|
|
18
|
+
declare const httpsDefault: {
|
|
19
|
+
Agent: typeof Agent;
|
|
20
|
+
globalAgent: Agent;
|
|
21
|
+
METHODS: string[];
|
|
22
|
+
STATUS_CODES: Record<number, string>;
|
|
23
|
+
maxHeaderSize: number;
|
|
24
|
+
IncomingMessage: typeof import("@gjsify/http/browser").IncomingMessage;
|
|
25
|
+
ClientRequest: typeof import("@gjsify/http/browser").ClientRequest;
|
|
26
|
+
Server: typeof import("@gjsify/http/browser").Server;
|
|
27
|
+
ServerResponse: typeof import("@gjsify/http/browser").ServerResponse;
|
|
28
|
+
OutgoingMessage: typeof import("@gjsify/http/browser").OutgoingMessage;
|
|
29
|
+
createServer: typeof import("@gjsify/http/browser").createServer;
|
|
30
|
+
request: typeof import("@gjsify/http/browser").request;
|
|
31
|
+
get: typeof import("@gjsify/http/browser").get;
|
|
32
|
+
validateHeaderName: typeof import("@gjsify/http/browser").validateHeaderName;
|
|
33
|
+
validateHeaderValue: typeof import("@gjsify/http/browser").validateHeaderValue;
|
|
34
|
+
setMaxIdleHTTPParsers: typeof import("@gjsify/http/browser").setMaxIdleHTTPParsers;
|
|
35
|
+
};
|
|
36
|
+
export default httpsDefault;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/https",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.36",
|
|
4
4
|
"description": "Node.js https module for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"types": "./lib/types/index.d.ts",
|
|
11
11
|
"default": "./lib/esm/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./browser": {
|
|
14
|
+
"types": "./lib/types/browser.d.ts",
|
|
15
|
+
"default": "./lib/esm/browser.js"
|
|
16
|
+
},
|
|
13
17
|
"./globals": "./globals.mjs"
|
|
14
18
|
},
|
|
15
19
|
"files": [
|
|
@@ -35,20 +39,30 @@
|
|
|
35
39
|
"https"
|
|
36
40
|
],
|
|
37
41
|
"devDependencies": {
|
|
38
|
-
"@gjsify/cli": "^0.4.
|
|
39
|
-
"@gjsify/unit": "^0.4.
|
|
42
|
+
"@gjsify/cli": "^0.4.36",
|
|
43
|
+
"@gjsify/unit": "^0.4.36",
|
|
40
44
|
"@types/node": "^25.9.1",
|
|
41
|
-
"typescript": "^
|
|
45
|
+
"typescript": "^5.9.3"
|
|
42
46
|
},
|
|
43
47
|
"dependencies": {
|
|
44
|
-
"@gjsify/http": "^0.4.
|
|
45
|
-
"@gjsify/tls": "^0.4.
|
|
48
|
+
"@gjsify/http": "^0.4.36",
|
|
49
|
+
"@gjsify/tls": "^0.4.36"
|
|
46
50
|
},
|
|
47
51
|
"gjsify": {
|
|
48
52
|
"runtimes": {
|
|
49
53
|
"gjs": "polyfill",
|
|
50
54
|
"node": "native",
|
|
51
|
-
"browser": "
|
|
55
|
+
"browser": "partial"
|
|
52
56
|
}
|
|
53
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "git+https://github.com/gjsify/gjsify.git",
|
|
62
|
+
"directory": "packages/node/https"
|
|
63
|
+
},
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/gjsify/gjsify/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/node/https#readme"
|
|
54
68
|
}
|