@girs/gfbgraph-0.2 0.2.0-3.2.4 → 0.2.0-3.2.6
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 +14 -1
- package/gfbgraph-0.2-ambient.d.ts +4 -1
- package/gfbgraph-0.2-import.d.ts +0 -1
- package/gfbgraph-0.2.d.cts +8 -0
- package/gfbgraph-0.2.d.ts +8 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GFBGraph-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 GFBGraph-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
|
|
|
81
81
|
const GFBGraph = imports.gi.GFBGraph;
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
|
|
85
|
+
### ESM vs. CommonJS
|
|
86
|
+
|
|
87
|
+
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
|
|
88
|
+
|
|
89
|
+
In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
|
|
90
|
+
|
|
91
|
+
On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
|
|
92
|
+
|
|
93
|
+
This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
|
|
94
|
+
|
|
95
|
+
Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
|
|
96
|
+
|
|
84
97
|
### Bundle
|
|
85
98
|
|
|
86
99
|
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
package/gfbgraph-0.2-import.d.ts
CHANGED
package/gfbgraph-0.2.d.cts
CHANGED
|
@@ -245,6 +245,7 @@ export module Album {
|
|
|
245
245
|
* The album name.
|
|
246
246
|
*/
|
|
247
247
|
name?: string | null
|
|
248
|
+
coverPhoto?: string | null
|
|
248
249
|
}
|
|
249
250
|
|
|
250
251
|
}
|
|
@@ -258,6 +259,7 @@ export interface Album extends Connectable {
|
|
|
258
259
|
*/
|
|
259
260
|
count: number
|
|
260
261
|
cover_photo: string | null
|
|
262
|
+
coverPhoto: string | null
|
|
261
263
|
/**
|
|
262
264
|
* The album description given by the owner.
|
|
263
265
|
*/
|
|
@@ -428,6 +430,8 @@ export module Node {
|
|
|
428
430
|
*/
|
|
429
431
|
link?: string | null
|
|
430
432
|
updated_time?: string | null
|
|
433
|
+
createdTime?: string | null
|
|
434
|
+
updatedTime?: string | null
|
|
431
435
|
}
|
|
432
436
|
|
|
433
437
|
}
|
|
@@ -437,6 +441,7 @@ export interface Node {
|
|
|
437
441
|
// Own properties of GFBGraph-0.2.GFBGraph.Node
|
|
438
442
|
|
|
439
443
|
created_time: string | null
|
|
444
|
+
createdTime: string | null
|
|
440
445
|
/**
|
|
441
446
|
* The node ID. All nodes have one of this.
|
|
442
447
|
*/
|
|
@@ -446,6 +451,7 @@ export interface Node {
|
|
|
446
451
|
*/
|
|
447
452
|
link: string | null
|
|
448
453
|
updated_time: string | null
|
|
454
|
+
updatedTime: string | null
|
|
449
455
|
|
|
450
456
|
// Own fields of GFBGraph-0.2.GFBGraph.Node
|
|
451
457
|
|
|
@@ -849,6 +855,7 @@ export module SimpleAuthorizer {
|
|
|
849
855
|
// Own constructor properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
850
856
|
|
|
851
857
|
access_token?: string | null
|
|
858
|
+
accessToken?: string | null
|
|
852
859
|
}
|
|
853
860
|
|
|
854
861
|
}
|
|
@@ -858,6 +865,7 @@ export interface SimpleAuthorizer extends Authorizer {
|
|
|
858
865
|
// Own properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
859
866
|
|
|
860
867
|
access_token: string | null
|
|
868
|
+
accessToken: string | null
|
|
861
869
|
|
|
862
870
|
// Own fields of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
863
871
|
|
package/gfbgraph-0.2.d.ts
CHANGED
|
@@ -247,6 +247,7 @@ module Album {
|
|
|
247
247
|
* The album name.
|
|
248
248
|
*/
|
|
249
249
|
name?: string | null
|
|
250
|
+
coverPhoto?: string | null
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
}
|
|
@@ -260,6 +261,7 @@ interface Album extends Connectable {
|
|
|
260
261
|
*/
|
|
261
262
|
count: number
|
|
262
263
|
cover_photo: string | null
|
|
264
|
+
coverPhoto: string | null
|
|
263
265
|
/**
|
|
264
266
|
* The album description given by the owner.
|
|
265
267
|
*/
|
|
@@ -430,6 +432,8 @@ module Node {
|
|
|
430
432
|
*/
|
|
431
433
|
link?: string | null
|
|
432
434
|
updated_time?: string | null
|
|
435
|
+
createdTime?: string | null
|
|
436
|
+
updatedTime?: string | null
|
|
433
437
|
}
|
|
434
438
|
|
|
435
439
|
}
|
|
@@ -439,6 +443,7 @@ interface Node {
|
|
|
439
443
|
// Own properties of GFBGraph-0.2.GFBGraph.Node
|
|
440
444
|
|
|
441
445
|
created_time: string | null
|
|
446
|
+
createdTime: string | null
|
|
442
447
|
/**
|
|
443
448
|
* The node ID. All nodes have one of this.
|
|
444
449
|
*/
|
|
@@ -448,6 +453,7 @@ interface Node {
|
|
|
448
453
|
*/
|
|
449
454
|
link: string | null
|
|
450
455
|
updated_time: string | null
|
|
456
|
+
updatedTime: string | null
|
|
451
457
|
|
|
452
458
|
// Own fields of GFBGraph-0.2.GFBGraph.Node
|
|
453
459
|
|
|
@@ -851,6 +857,7 @@ module SimpleAuthorizer {
|
|
|
851
857
|
// Own constructor properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
852
858
|
|
|
853
859
|
access_token?: string | null
|
|
860
|
+
accessToken?: string | null
|
|
854
861
|
}
|
|
855
862
|
|
|
856
863
|
}
|
|
@@ -860,6 +867,7 @@ interface SimpleAuthorizer extends Authorizer {
|
|
|
860
867
|
// Own properties of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
861
868
|
|
|
862
869
|
access_token: string | null
|
|
870
|
+
accessToken: string | null
|
|
863
871
|
|
|
864
872
|
// Own fields of GFBGraph-0.2.GFBGraph.SimpleAuthorizer
|
|
865
873
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gfbgraph-0.2",
|
|
3
|
-
"version": "0.2.0-3.2.
|
|
3
|
+
"version": "0.2.0-3.2.6",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GFBGraph-0.2, generated from library version 0.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gfbgraph-0.2.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gfbgraph-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/json-1.0": "^1.7.1-3.2.
|
|
33
|
-
"@girs/rest-0.7": "^0.7.0-3.2.
|
|
34
|
-
"@girs/soup-2.4": "^2.74.3-3.2.
|
|
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/json-1.0": "^1.7.1-3.2.6",
|
|
33
|
+
"@girs/rest-0.7": "^0.7.0-3.2.6",
|
|
34
|
+
"@girs/soup-2.4": "^2.74.3-3.2.6"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "*"
|