@girs/grlnet-0.2 0.2.0-3.2.6 → 0.2.0-3.2.8
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-ambient.js +2 -0
- package/grlnet-0.2-import.js +3 -0
- package/grlnet-0.2.d.cts +5 -9
- package/grlnet-0.2.d.ts +5 -9
- package/package.json +15 -9
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.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/grlnet-0.2.d.cts
CHANGED
|
@@ -69,11 +69,9 @@ export module Wc {
|
|
|
69
69
|
// Own constructor properties of GrlNet-0.2.GrlNet.Wc
|
|
70
70
|
|
|
71
71
|
cache?: boolean | null
|
|
72
|
-
|
|
72
|
+
cacheSize?: number | null
|
|
73
73
|
loglevel?: number | null
|
|
74
74
|
throttling?: number | null
|
|
75
|
-
user_agent?: string | null
|
|
76
|
-
cacheSize?: number | null
|
|
77
75
|
userAgent?: string | null
|
|
78
76
|
}
|
|
79
77
|
|
|
@@ -84,11 +82,9 @@ export interface Wc {
|
|
|
84
82
|
// Own properties of GrlNet-0.2.GrlNet.Wc
|
|
85
83
|
|
|
86
84
|
cache: boolean
|
|
87
|
-
cache_size: number
|
|
88
85
|
cacheSize: number
|
|
89
86
|
loglevel: number
|
|
90
87
|
throttling: number
|
|
91
|
-
user_agent: string | null
|
|
92
88
|
userAgent: string | null
|
|
93
89
|
|
|
94
90
|
// Own fields of GrlNet-0.2.GrlNet.Wc
|
|
@@ -112,7 +108,7 @@ export interface Wc {
|
|
|
112
108
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
113
109
|
* @param callback The callback when the result is ready
|
|
114
110
|
*/
|
|
115
|
-
request_async(uri: string
|
|
111
|
+
request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
116
112
|
|
|
117
113
|
// Overloads of request_async
|
|
118
114
|
|
|
@@ -125,7 +121,7 @@ export interface Wc {
|
|
|
125
121
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
126
122
|
* @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
127
123
|
*/
|
|
128
|
-
request_async(uri: string
|
|
124
|
+
request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise<[ /* content */ string, /* length */ number ]>
|
|
129
125
|
/**
|
|
130
126
|
* Finishes an asynchronous load of the file's contents.
|
|
131
127
|
* The contents are placed in contents, and length is set to the size of the
|
|
@@ -136,7 +132,7 @@ export interface Wc {
|
|
|
136
132
|
* @param result The result of the request
|
|
137
133
|
* @returns %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
138
134
|
*/
|
|
139
|
-
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string
|
|
135
|
+
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string, /* length */ number ]
|
|
140
136
|
/**
|
|
141
137
|
* Request the fetching of a web resource given the `uri`. This request is
|
|
142
138
|
* asynchronous, thus the result will be returned within the `callback`.
|
|
@@ -145,7 +141,7 @@ export interface Wc {
|
|
|
145
141
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
146
142
|
* @param callback The callback when the result is ready
|
|
147
143
|
*/
|
|
148
|
-
request_with_headers_async(uri: string
|
|
144
|
+
request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
149
145
|
/**
|
|
150
146
|
* Sets if cache must be used. Note that this will only work if caching is
|
|
151
147
|
* supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
|
package/grlnet-0.2.d.ts
CHANGED
|
@@ -71,11 +71,9 @@ module Wc {
|
|
|
71
71
|
// Own constructor properties of GrlNet-0.2.GrlNet.Wc
|
|
72
72
|
|
|
73
73
|
cache?: boolean | null
|
|
74
|
-
|
|
74
|
+
cacheSize?: number | null
|
|
75
75
|
loglevel?: number | null
|
|
76
76
|
throttling?: number | null
|
|
77
|
-
user_agent?: string | null
|
|
78
|
-
cacheSize?: number | null
|
|
79
77
|
userAgent?: string | null
|
|
80
78
|
}
|
|
81
79
|
|
|
@@ -86,11 +84,9 @@ interface Wc {
|
|
|
86
84
|
// Own properties of GrlNet-0.2.GrlNet.Wc
|
|
87
85
|
|
|
88
86
|
cache: boolean
|
|
89
|
-
cache_size: number
|
|
90
87
|
cacheSize: number
|
|
91
88
|
loglevel: number
|
|
92
89
|
throttling: number
|
|
93
|
-
user_agent: string | null
|
|
94
90
|
userAgent: string | null
|
|
95
91
|
|
|
96
92
|
// Own fields of GrlNet-0.2.GrlNet.Wc
|
|
@@ -114,7 +110,7 @@ interface Wc {
|
|
|
114
110
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
115
111
|
* @param callback The callback when the result is ready
|
|
116
112
|
*/
|
|
117
|
-
request_async(uri: string
|
|
113
|
+
request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
118
114
|
|
|
119
115
|
// Overloads of request_async
|
|
120
116
|
|
|
@@ -127,7 +123,7 @@ interface Wc {
|
|
|
127
123
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
128
124
|
* @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
129
125
|
*/
|
|
130
|
-
request_async(uri: string
|
|
126
|
+
request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise<[ /* content */ string, /* length */ number ]>
|
|
131
127
|
/**
|
|
132
128
|
* Finishes an asynchronous load of the file's contents.
|
|
133
129
|
* The contents are placed in contents, and length is set to the size of the
|
|
@@ -138,7 +134,7 @@ interface Wc {
|
|
|
138
134
|
* @param result The result of the request
|
|
139
135
|
* @returns %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
140
136
|
*/
|
|
141
|
-
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string
|
|
137
|
+
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string, /* length */ number ]
|
|
142
138
|
/**
|
|
143
139
|
* Request the fetching of a web resource given the `uri`. This request is
|
|
144
140
|
* asynchronous, thus the result will be returned within the `callback`.
|
|
@@ -147,7 +143,7 @@ interface Wc {
|
|
|
147
143
|
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
148
144
|
* @param callback The callback when the result is ready
|
|
149
145
|
*/
|
|
150
|
-
request_with_headers_async(uri: string
|
|
146
|
+
request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
151
147
|
/**
|
|
152
148
|
* Sets if cache must be used. Note that this will only work if caching is
|
|
153
149
|
* supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/grlnet-0.2",
|
|
3
|
-
"version": "0.2.0-3.2.
|
|
3
|
+
"version": "0.2.0-3.2.8",
|
|
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",
|
|
7
7
|
"main": "grlnet-0.2.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./grlnet-0.2-ambient.d.ts",
|
|
11
|
+
"default": "./grlnet-0.2-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./grlnet-0.2-import.d.ts",
|
|
15
|
+
"default": "./grlnet-0.2-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./grlnet-0.2.d.ts",
|
|
@@ -25,11 +31,11 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit grlnet-0.2.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.
|
|
32
|
-
"@girs/soup-2.4": "^2.74.3-3.2.
|
|
34
|
+
"@girs/gio-2.0": "^2.77.0-3.2.8",
|
|
35
|
+
"@girs/gjs": "^3.2.8",
|
|
36
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
37
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8",
|
|
38
|
+
"@girs/soup-2.4": "^2.74.3-3.2.8"
|
|
33
39
|
},
|
|
34
40
|
"devDependencies": {
|
|
35
41
|
"typescript": "*"
|
|
@@ -46,7 +52,7 @@
|
|
|
46
52
|
"license": "MIT",
|
|
47
53
|
"repository": {
|
|
48
54
|
"type": "git",
|
|
49
|
-
"url": "git+https://github.com/gjsify/
|
|
55
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
50
56
|
},
|
|
51
57
|
"bugs": {
|
|
52
58
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|