@girs/dmap-3.0 3.0.0-3.2.4 → 3.0.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/dmap-3.0-ambient.d.ts +0 -1
- package/dmap-3.0-import.d.ts +0 -1
- package/dmap-3.0.d.cts +22 -0
- package/dmap-3.0.d.ts +22 -0
- 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 DMAP-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for DMAP-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
|
|
9
9
|
|
|
10
10
|
A library that implements the DMAP family of protocols
|
|
11
11
|
|
|
@@ -82,6 +82,19 @@ Now you have also type support for this, too:
|
|
|
82
82
|
const DMAP = imports.gi.DMAP;
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
+
|
|
86
|
+
### ESM vs. CommonJS
|
|
87
|
+
|
|
88
|
+
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
|
|
89
|
+
|
|
90
|
+
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.
|
|
91
|
+
|
|
92
|
+
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.
|
|
93
|
+
|
|
94
|
+
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.
|
|
95
|
+
|
|
96
|
+
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.
|
|
97
|
+
|
|
85
98
|
### Bundle
|
|
86
99
|
|
|
87
100
|
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/dmap-3.0-ambient.d.ts
CHANGED
package/dmap-3.0-import.d.ts
CHANGED
package/dmap-3.0.d.cts
CHANGED
|
@@ -582,6 +582,11 @@ export module Connection {
|
|
|
582
582
|
revision_number?: number | null
|
|
583
583
|
session_id?: number | null
|
|
584
584
|
username?: string | null
|
|
585
|
+
baseUri?: any | null
|
|
586
|
+
databaseId?: number | null
|
|
587
|
+
dmapVersion?: number | null
|
|
588
|
+
revisionNumber?: number | null
|
|
589
|
+
sessionId?: number | null
|
|
585
590
|
}
|
|
586
591
|
|
|
587
592
|
}
|
|
@@ -591,16 +596,21 @@ export interface Connection {
|
|
|
591
596
|
// Own properties of DMAP-3.0.DMAP.Connection
|
|
592
597
|
|
|
593
598
|
base_uri: any
|
|
599
|
+
baseUri: any
|
|
594
600
|
database_id: number
|
|
601
|
+
databaseId: number
|
|
595
602
|
readonly db: any
|
|
596
603
|
dmap_version: number
|
|
604
|
+
dmapVersion: number
|
|
597
605
|
readonly factory: any
|
|
598
606
|
readonly host: string | null
|
|
599
607
|
readonly name: string | null
|
|
600
608
|
password: string | null
|
|
601
609
|
readonly port: number
|
|
602
610
|
revision_number: number
|
|
611
|
+
revisionNumber: number
|
|
603
612
|
session_id: number
|
|
613
|
+
sessionId: number
|
|
604
614
|
readonly username: string | null
|
|
605
615
|
|
|
606
616
|
// Own fields of DMAP-3.0.DMAP.Connection
|
|
@@ -942,6 +952,11 @@ export module Share {
|
|
|
942
952
|
revision_number?: number | null
|
|
943
953
|
transcode_mimetype?: string | null
|
|
944
954
|
txt_records?: string[] | null
|
|
955
|
+
authMethod?: number | null
|
|
956
|
+
containerDb?: any | null
|
|
957
|
+
revisionNumber?: number | null
|
|
958
|
+
transcodeMimetype?: string | null
|
|
959
|
+
txtRecords?: string[] | null
|
|
945
960
|
}
|
|
946
961
|
|
|
947
962
|
}
|
|
@@ -951,15 +966,22 @@ export interface Share {
|
|
|
951
966
|
// Own properties of DMAP-3.0.DMAP.Share
|
|
952
967
|
|
|
953
968
|
auth_method: number
|
|
969
|
+
authMethod: number
|
|
954
970
|
readonly container_db: any
|
|
971
|
+
readonly containerDb: any
|
|
955
972
|
readonly db: any
|
|
956
973
|
name: string | null
|
|
957
974
|
password: string | null
|
|
958
975
|
revision_number: number
|
|
976
|
+
revisionNumber: number
|
|
959
977
|
readonly server_ipv4: Soup.Server
|
|
978
|
+
readonly serverIpv4: Soup.Server
|
|
960
979
|
readonly server_ipv6: Soup.Server
|
|
980
|
+
readonly serverIpv6: Soup.Server
|
|
961
981
|
readonly transcode_mimetype: string | null
|
|
982
|
+
readonly transcodeMimetype: string | null
|
|
962
983
|
txt_records: string[]
|
|
984
|
+
txtRecords: string[]
|
|
963
985
|
|
|
964
986
|
// Own fields of DMAP-3.0.DMAP.Share
|
|
965
987
|
|
package/dmap-3.0.d.ts
CHANGED
|
@@ -584,6 +584,11 @@ module Connection {
|
|
|
584
584
|
revision_number?: number | null
|
|
585
585
|
session_id?: number | null
|
|
586
586
|
username?: string | null
|
|
587
|
+
baseUri?: any | null
|
|
588
|
+
databaseId?: number | null
|
|
589
|
+
dmapVersion?: number | null
|
|
590
|
+
revisionNumber?: number | null
|
|
591
|
+
sessionId?: number | null
|
|
587
592
|
}
|
|
588
593
|
|
|
589
594
|
}
|
|
@@ -593,16 +598,21 @@ interface Connection {
|
|
|
593
598
|
// Own properties of DMAP-3.0.DMAP.Connection
|
|
594
599
|
|
|
595
600
|
base_uri: any
|
|
601
|
+
baseUri: any
|
|
596
602
|
database_id: number
|
|
603
|
+
databaseId: number
|
|
597
604
|
readonly db: any
|
|
598
605
|
dmap_version: number
|
|
606
|
+
dmapVersion: number
|
|
599
607
|
readonly factory: any
|
|
600
608
|
readonly host: string | null
|
|
601
609
|
readonly name: string | null
|
|
602
610
|
password: string | null
|
|
603
611
|
readonly port: number
|
|
604
612
|
revision_number: number
|
|
613
|
+
revisionNumber: number
|
|
605
614
|
session_id: number
|
|
615
|
+
sessionId: number
|
|
606
616
|
readonly username: string | null
|
|
607
617
|
|
|
608
618
|
// Own fields of DMAP-3.0.DMAP.Connection
|
|
@@ -944,6 +954,11 @@ module Share {
|
|
|
944
954
|
revision_number?: number | null
|
|
945
955
|
transcode_mimetype?: string | null
|
|
946
956
|
txt_records?: string[] | null
|
|
957
|
+
authMethod?: number | null
|
|
958
|
+
containerDb?: any | null
|
|
959
|
+
revisionNumber?: number | null
|
|
960
|
+
transcodeMimetype?: string | null
|
|
961
|
+
txtRecords?: string[] | null
|
|
947
962
|
}
|
|
948
963
|
|
|
949
964
|
}
|
|
@@ -953,15 +968,22 @@ interface Share {
|
|
|
953
968
|
// Own properties of DMAP-3.0.DMAP.Share
|
|
954
969
|
|
|
955
970
|
auth_method: number
|
|
971
|
+
authMethod: number
|
|
956
972
|
readonly container_db: any
|
|
973
|
+
readonly containerDb: any
|
|
957
974
|
readonly db: any
|
|
958
975
|
name: string | null
|
|
959
976
|
password: string | null
|
|
960
977
|
revision_number: number
|
|
978
|
+
revisionNumber: number
|
|
961
979
|
readonly server_ipv4: Soup.Server
|
|
980
|
+
readonly serverIpv4: Soup.Server
|
|
962
981
|
readonly server_ipv6: Soup.Server
|
|
982
|
+
readonly serverIpv6: Soup.Server
|
|
963
983
|
readonly transcode_mimetype: string | null
|
|
984
|
+
readonly transcodeMimetype: string | null
|
|
964
985
|
txt_records: string[]
|
|
986
|
+
txtRecords: string[]
|
|
965
987
|
|
|
966
988
|
// Own fields of DMAP-3.0.DMAP.Share
|
|
967
989
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/dmap-3.0",
|
|
3
|
-
"version": "3.0.0-3.2.
|
|
3
|
+
"version": "3.0.0-3.2.6",
|
|
4
4
|
"description": "GJS TypeScript type definitions for DMAP-3.0, generated from library version 3.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dmap-3.0.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit dmap-3.0.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.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-2.4": "^2.74.3-3.2.6"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "*"
|