@girs/grlnet-0.3 0.3.0-3.2.5 → 0.3.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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/grlnet-0.3)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GrlNet-0.3, generated from library version 0.3.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for GrlNet-0.3, generated from library version 0.3.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  Network classes for Grilo
11
11
 
package/grlnet-0.3.d.cts CHANGED
@@ -76,6 +76,8 @@ export module Wc {
76
76
  loglevel?: number | null
77
77
  throttling?: number | null
78
78
  user_agent?: string | null
79
+ cacheSize?: number | null
80
+ userAgent?: string | null
79
81
  }
80
82
 
81
83
  }
@@ -86,9 +88,11 @@ export interface Wc {
86
88
 
87
89
  cache: boolean
88
90
  cache_size: number
91
+ cacheSize: number
89
92
  loglevel: number
90
93
  throttling: number
91
94
  user_agent: string | null
95
+ userAgent: string | null
92
96
 
93
97
  // Owm methods of GrlNet-0.3.GrlNet.Wc
94
98
 
@@ -103,7 +107,7 @@ export interface Wc {
103
107
  * @param cancellable a #GCancellable instance or %NULL to ignore
104
108
  * @param callback The callback when the result is ready
105
109
  */
106
- request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
110
+ request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
107
111
 
108
112
  // Overloads of request_async
109
113
 
@@ -116,7 +120,7 @@ export interface Wc {
116
120
  * @param cancellable a #GCancellable instance or %NULL to ignore
117
121
  * @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
118
122
  */
119
- request_async(uri: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise</* content */ Uint8Array>
123
+ request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise</* content */ Uint8Array>
120
124
  /**
121
125
  * Finishes an asynchronous load of the file's contents.
122
126
  * The contents are placed in contents, and length is set to the size of the
@@ -136,7 +140,7 @@ export interface Wc {
136
140
  * @param cancellable a #GCancellable instance or %NULL to ignore
137
141
  * @param callback The callback when the result is ready
138
142
  */
139
- request_with_headers_async(uri: string | null, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
143
+ request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
140
144
  /**
141
145
  * Sets if cache must be used. Note that this will only work if caching is
142
146
  * supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
package/grlnet-0.3.d.ts CHANGED
@@ -78,6 +78,8 @@ module Wc {
78
78
  loglevel?: number | null
79
79
  throttling?: number | null
80
80
  user_agent?: string | null
81
+ cacheSize?: number | null
82
+ userAgent?: string | null
81
83
  }
82
84
 
83
85
  }
@@ -88,9 +90,11 @@ interface Wc {
88
90
 
89
91
  cache: boolean
90
92
  cache_size: number
93
+ cacheSize: number
91
94
  loglevel: number
92
95
  throttling: number
93
96
  user_agent: string | null
97
+ userAgent: string | null
94
98
 
95
99
  // Owm methods of GrlNet-0.3.GrlNet.Wc
96
100
 
@@ -105,7 +109,7 @@ interface Wc {
105
109
  * @param cancellable a #GCancellable instance or %NULL to ignore
106
110
  * @param callback The callback when the result is ready
107
111
  */
108
- request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
112
+ request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
109
113
 
110
114
  // Overloads of request_async
111
115
 
@@ -118,7 +122,7 @@ interface Wc {
118
122
  * @param cancellable a #GCancellable instance or %NULL to ignore
119
123
  * @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
120
124
  */
121
- request_async(uri: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise</* content */ Uint8Array>
125
+ request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise</* content */ Uint8Array>
122
126
  /**
123
127
  * Finishes an asynchronous load of the file's contents.
124
128
  * The contents are placed in contents, and length is set to the size of the
@@ -138,7 +142,7 @@ interface Wc {
138
142
  * @param cancellable a #GCancellable instance or %NULL to ignore
139
143
  * @param callback The callback when the result is ready
140
144
  */
141
- request_with_headers_async(uri: string | null, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
145
+ request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
142
146
  /**
143
147
  * Sets if cache must be used. Note that this will only work if caching is
144
148
  * 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.3",
3
- "version": "0.3.0-3.2.5",
3
+ "version": "0.3.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for GrlNet-0.3, generated from library version 0.3.0",
5
5
  "type": "module",
6
6
  "module": "grlnet-0.3.js",
@@ -25,11 +25,11 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit grlnet-0.3.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.5",
29
- "@girs/gjs": "^3.2.5",
30
- "@girs/glib-2.0": "^2.78.0-3.2.5",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.5",
32
- "@girs/soup-3.0": "^3.4.4-3.2.5"
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-3.0": "^3.4.4-3.2.7"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "*"