@dropgate/core 3.0.3 → 3.0.4
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div align="center">
|
|
10
10
|
|
|
11
11
|

|
|
12
|
-

|
|
13
13
|

|
|
14
14
|
|
|
15
15
|
[](https://diamonddigital.dev/discord)
|
|
@@ -55,7 +55,7 @@ All operations go through a single `DropgateClient` instance. Server connection
|
|
|
55
55
|
import { DropgateClient } from '@dropgate/core';
|
|
56
56
|
|
|
57
57
|
const client = new DropgateClient({
|
|
58
|
-
clientVersion: '3.0.
|
|
58
|
+
clientVersion: '3.0.4',
|
|
59
59
|
server: 'https://dropgate.link', // URL string or { host, port?, secure? }
|
|
60
60
|
fallbackToHttp: true, // auto-retry HTTP if HTTPS fails (optional)
|
|
61
61
|
});
|
|
@@ -422,7 +422,7 @@ For browser environments, you can use the IIFE bundle:
|
|
|
422
422
|
<script src="/path/to/dropgate-core.browser.js"></script>
|
|
423
423
|
<script>
|
|
424
424
|
const { DropgateClient } = DropgateCore;
|
|
425
|
-
const client = new DropgateClient({ clientVersion: '3.0.
|
|
425
|
+
const client = new DropgateClient({ clientVersion: '3.0.4', server: location.origin });
|
|
426
426
|
// ...
|
|
427
427
|
</script>
|
|
428
428
|
```
|
|
@@ -432,7 +432,7 @@ Or as an ES module:
|
|
|
432
432
|
```html
|
|
433
433
|
<script type="module">
|
|
434
434
|
import { DropgateClient } from '/path/to/dropgate-core.js';
|
|
435
|
-
const client = new DropgateClient({ clientVersion: '3.0.
|
|
435
|
+
const client = new DropgateClient({ clientVersion: '3.0.4', server: location.origin });
|
|
436
436
|
// ...
|
|
437
437
|
</script>
|
|
438
438
|
```
|