@girs/grlnet-0.2 0.2.0-3.2.5 → 0.2.0-3.2.7
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 +1 -1
- package/grlnet-0.2.d.cts +8 -4
- package/grlnet-0.2.d.ts +8 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GrlNet-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for GrlNet-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/grlnet-0.2.d.cts
CHANGED
|
@@ -73,6 +73,8 @@ export module Wc {
|
|
|
73
73
|
loglevel?: number | null
|
|
74
74
|
throttling?: number | null
|
|
75
75
|
user_agent?: string | null
|
|
76
|
+
cacheSize?: number | null
|
|
77
|
+
userAgent?: string | null
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
}
|
|
@@ -83,9 +85,11 @@ export interface Wc {
|
|
|
83
85
|
|
|
84
86
|
cache: boolean
|
|
85
87
|
cache_size: number
|
|
88
|
+
cacheSize: number
|
|
86
89
|
loglevel: number
|
|
87
90
|
throttling: number
|
|
88
91
|
user_agent: string | null
|
|
92
|
+
userAgent: string | null
|
|
89
93
|
|
|
90
94
|
// Own fields of GrlNet-0.2.GrlNet.Wc
|
|
91
95
|
|
|
@@ -108,7 +112,7 @@ export interface Wc {
|
|
|
108
112
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
109
113
|
* @param callback The callback when the result is ready
|
|
110
114
|
*/
|
|
111
|
-
request_async(uri: string
|
|
115
|
+
request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
112
116
|
|
|
113
117
|
// Overloads of request_async
|
|
114
118
|
|
|
@@ -121,7 +125,7 @@ export interface Wc {
|
|
|
121
125
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
122
126
|
* @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
123
127
|
*/
|
|
124
|
-
request_async(uri: string
|
|
128
|
+
request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise<[ /* content */ string, /* length */ number ]>
|
|
125
129
|
/**
|
|
126
130
|
* Finishes an asynchronous load of the file's contents.
|
|
127
131
|
* The contents are placed in contents, and length is set to the size of the
|
|
@@ -132,7 +136,7 @@ export interface Wc {
|
|
|
132
136
|
* @param result The result of the request
|
|
133
137
|
* @returns %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
134
138
|
*/
|
|
135
|
-
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string
|
|
139
|
+
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string, /* length */ number ]
|
|
136
140
|
/**
|
|
137
141
|
* Request the fetching of a web resource given the `uri`. This request is
|
|
138
142
|
* asynchronous, thus the result will be returned within the `callback`.
|
|
@@ -141,7 +145,7 @@ export interface Wc {
|
|
|
141
145
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
142
146
|
* @param callback The callback when the result is ready
|
|
143
147
|
*/
|
|
144
|
-
request_with_headers_async(uri: string
|
|
148
|
+
request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
145
149
|
/**
|
|
146
150
|
* Sets if cache must be used. Note that this will only work if caching is
|
|
147
151
|
* supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
|
package/grlnet-0.2.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ module Wc {
|
|
|
75
75
|
loglevel?: number | null
|
|
76
76
|
throttling?: number | null
|
|
77
77
|
user_agent?: string | null
|
|
78
|
+
cacheSize?: number | null
|
|
79
|
+
userAgent?: string | null
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
}
|
|
@@ -85,9 +87,11 @@ interface Wc {
|
|
|
85
87
|
|
|
86
88
|
cache: boolean
|
|
87
89
|
cache_size: number
|
|
90
|
+
cacheSize: number
|
|
88
91
|
loglevel: number
|
|
89
92
|
throttling: number
|
|
90
93
|
user_agent: string | null
|
|
94
|
+
userAgent: string | null
|
|
91
95
|
|
|
92
96
|
// Own fields of GrlNet-0.2.GrlNet.Wc
|
|
93
97
|
|
|
@@ -110,7 +114,7 @@ interface Wc {
|
|
|
110
114
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
111
115
|
* @param callback The callback when the result is ready
|
|
112
116
|
*/
|
|
113
|
-
request_async(uri: string
|
|
117
|
+
request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
114
118
|
|
|
115
119
|
// Overloads of request_async
|
|
116
120
|
|
|
@@ -123,7 +127,7 @@ interface Wc {
|
|
|
123
127
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
124
128
|
* @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
125
129
|
*/
|
|
126
|
-
request_async(uri: string
|
|
130
|
+
request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise<[ /* content */ string, /* length */ number ]>
|
|
127
131
|
/**
|
|
128
132
|
* Finishes an asynchronous load of the file's contents.
|
|
129
133
|
* The contents are placed in contents, and length is set to the size of the
|
|
@@ -134,7 +138,7 @@ interface Wc {
|
|
|
134
138
|
* @param result The result of the request
|
|
135
139
|
* @returns %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
136
140
|
*/
|
|
137
|
-
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string
|
|
141
|
+
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string, /* length */ number ]
|
|
138
142
|
/**
|
|
139
143
|
* Request the fetching of a web resource given the `uri`. This request is
|
|
140
144
|
* asynchronous, thus the result will be returned within the `callback`.
|
|
@@ -143,7 +147,7 @@ interface Wc {
|
|
|
143
147
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
144
148
|
* @param callback The callback when the result is ready
|
|
145
149
|
*/
|
|
146
|
-
request_with_headers_async(uri: string
|
|
150
|
+
request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
147
151
|
/**
|
|
148
152
|
* Sets if cache must be used. Note that this will only work if caching is
|
|
149
153
|
* supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/grlnet-0.2",
|
|
3
|
-
"version": "0.2.0-3.2.
|
|
3
|
+
"version": "0.2.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GrlNet-0.2, generated from library version 0.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "grlnet-0.2.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit grlnet-0.2.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/soup-2.4": "^2.74.3-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7",
|
|
32
|
+
"@girs/soup-2.4": "^2.74.3-3.2.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "*"
|