@girs/grlnet-0.3 0.3.0-3.2.6 → 0.3.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 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.6.
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.8.
9
9
 
10
10
  Network classes for Grilo
11
11
 
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/grlnet-0.3.d.cts CHANGED
@@ -72,11 +72,9 @@ export module Wc {
72
72
  // Own constructor properties of GrlNet-0.3.GrlNet.Wc
73
73
 
74
74
  cache?: boolean | null
75
- cache_size?: number | null
75
+ cacheSize?: number | null
76
76
  loglevel?: number | null
77
77
  throttling?: number | null
78
- user_agent?: string | null
79
- cacheSize?: number | null
80
78
  userAgent?: string | null
81
79
  }
82
80
 
@@ -87,11 +85,9 @@ export interface Wc {
87
85
  // Own properties of GrlNet-0.3.GrlNet.Wc
88
86
 
89
87
  cache: boolean
90
- cache_size: number
91
88
  cacheSize: number
92
89
  loglevel: number
93
90
  throttling: number
94
- user_agent: string | null
95
91
  userAgent: string | null
96
92
 
97
93
  // Owm methods of GrlNet-0.3.GrlNet.Wc
@@ -107,7 +103,7 @@ export interface Wc {
107
103
  * @param cancellable a #GCancellable instance or %NULL to ignore
108
104
  * @param callback The callback when the result is ready
109
105
  */
110
- request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
106
+ request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
111
107
 
112
108
  // Overloads of request_async
113
109
 
@@ -120,7 +116,7 @@ export interface Wc {
120
116
  * @param cancellable a #GCancellable instance or %NULL to ignore
121
117
  * @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
122
118
  */
123
- request_async(uri: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise</* content */ Uint8Array>
119
+ request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise</* content */ Uint8Array>
124
120
  /**
125
121
  * Finishes an asynchronous load of the file's contents.
126
122
  * The contents are placed in contents, and length is set to the size of the
@@ -140,7 +136,7 @@ export interface Wc {
140
136
  * @param cancellable a #GCancellable instance or %NULL to ignore
141
137
  * @param callback The callback when the result is ready
142
138
  */
143
- request_with_headers_async(uri: string | null, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
139
+ request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
144
140
  /**
145
141
  * Sets if cache must be used. Note that this will only work if caching is
146
142
  * supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
package/grlnet-0.3.d.ts CHANGED
@@ -74,11 +74,9 @@ module Wc {
74
74
  // Own constructor properties of GrlNet-0.3.GrlNet.Wc
75
75
 
76
76
  cache?: boolean | null
77
- cache_size?: number | null
77
+ cacheSize?: number | null
78
78
  loglevel?: number | null
79
79
  throttling?: number | null
80
- user_agent?: string | null
81
- cacheSize?: number | null
82
80
  userAgent?: string | null
83
81
  }
84
82
 
@@ -89,11 +87,9 @@ interface Wc {
89
87
  // Own properties of GrlNet-0.3.GrlNet.Wc
90
88
 
91
89
  cache: boolean
92
- cache_size: number
93
90
  cacheSize: number
94
91
  loglevel: number
95
92
  throttling: number
96
- user_agent: string | null
97
93
  userAgent: string | null
98
94
 
99
95
  // Owm methods of GrlNet-0.3.GrlNet.Wc
@@ -109,7 +105,7 @@ interface Wc {
109
105
  * @param cancellable a #GCancellable instance or %NULL to ignore
110
106
  * @param callback The callback when the result is ready
111
107
  */
112
- request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
108
+ request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
113
109
 
114
110
  // Overloads of request_async
115
111
 
@@ -122,7 +118,7 @@ interface Wc {
122
118
  * @param cancellable a #GCancellable instance or %NULL to ignore
123
119
  * @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
124
120
  */
125
- request_async(uri: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise</* content */ Uint8Array>
121
+ request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise</* content */ Uint8Array>
126
122
  /**
127
123
  * Finishes an asynchronous load of the file's contents.
128
124
  * The contents are placed in contents, and length is set to the size of the
@@ -142,7 +138,7 @@ interface Wc {
142
138
  * @param cancellable a #GCancellable instance or %NULL to ignore
143
139
  * @param callback The callback when the result is ready
144
140
  */
145
- request_with_headers_async(uri: string | null, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
141
+ request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
146
142
  /**
147
143
  * Sets if cache must be used. Note that this will only work if caching is
148
144
  * 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.3",
3
- "version": "0.3.0-3.2.6",
3
+ "version": "0.3.0-3.2.8",
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",
7
7
  "main": "grlnet-0.3.js",
8
8
  "exports": {
9
- "./ambient": "./grlnet-0.3-ambient.d.ts",
10
- "./import": "./grlnet-0.3-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./grlnet-0.3-ambient.d.ts",
11
+ "default": "./grlnet-0.3-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./grlnet-0.3-import.d.ts",
15
+ "default": "./grlnet-0.3-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./grlnet-0.3.d.ts",
@@ -25,11 +31,11 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit grlnet-0.3.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.6",
29
- "@girs/gjs": "^3.2.6",
30
- "@girs/glib-2.0": "^2.78.0-3.2.6",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
32
- "@girs/soup-3.0": "^3.4.4-3.2.6"
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-3.0": "^3.4.2-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/types.git"
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"