@nulvless/nulvless-js 0.1.2 → 0.1.5
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 +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npm install @nulvless/nulvless-js
|
|
|
18
18
|
|
|
19
19
|
### Browser
|
|
20
20
|
|
|
21
|
-
Create the client with your project URL and publishable key. The session is stored and renewed for you.
|
|
21
|
+
Create the client with your project URL and publishable key. The session is stored and renewed for you. The project URL is `https://<project>.nulvless.co`, or your own [custom domain](https://nulvless.com/docs/guides/custom-domains) (e.g. `https://api.example.com`) on plans that include it.
|
|
22
22
|
|
|
23
23
|
```ts
|
|
24
24
|
import { createClient } from '@nulvless/nulvless-js'
|
package/dist/index.cjs
CHANGED
|
@@ -2459,7 +2459,7 @@ var NulvlessServerClient = class {
|
|
|
2459
2459
|
constructor(baseUrl, privateKey, options) {
|
|
2460
2460
|
const base = baseUrl.replace(/\/+$/, "");
|
|
2461
2461
|
this.auth = new AuthServerClient(new HttpClient({ baseUrl: `${base}/auth`, apiKey: privateKey, ...options }));
|
|
2462
|
-
this.comms = new CommsClient(new HttpClient({ baseUrl: `${base}/
|
|
2462
|
+
this.comms = new CommsClient(new HttpClient({ baseUrl: `${base}/comms`, apiKey: privateKey, ...options }));
|
|
2463
2463
|
}
|
|
2464
2464
|
};
|
|
2465
2465
|
|