@blinkdotnew/sdk 2.7.0 → 2.7.1
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/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2555,6 +2555,10 @@ declare class BlinkQueueImpl implements BlinkQueue {
|
|
|
2555
2555
|
*/
|
|
2556
2556
|
declare function getDefaultClient(): BlinkClientImpl;
|
|
2557
2557
|
interface BlinkClient {
|
|
2558
|
+
/** The project this client is bound to (from BlinkClientConfig.projectId). */
|
|
2559
|
+
projectId: string;
|
|
2560
|
+
/** The publishable key this client was created with, if any. */
|
|
2561
|
+
publishableKey?: string;
|
|
2558
2562
|
auth: BlinkAuth;
|
|
2559
2563
|
db: BlinkDatabase;
|
|
2560
2564
|
storage: BlinkStorage;
|
|
@@ -2570,6 +2574,9 @@ interface BlinkClient {
|
|
|
2570
2574
|
queue: BlinkQueue;
|
|
2571
2575
|
}
|
|
2572
2576
|
declare class BlinkClientImpl implements BlinkClient {
|
|
2577
|
+
/** Echoed from config so callers (e.g. `<BlinkProvider projectId={blink.projectId}>`) can read it. */
|
|
2578
|
+
projectId: string;
|
|
2579
|
+
publishableKey?: string;
|
|
2573
2580
|
auth: BlinkAuth;
|
|
2574
2581
|
db: BlinkDatabase;
|
|
2575
2582
|
storage: BlinkStorage;
|
package/dist/index.d.ts
CHANGED
|
@@ -2555,6 +2555,10 @@ declare class BlinkQueueImpl implements BlinkQueue {
|
|
|
2555
2555
|
*/
|
|
2556
2556
|
declare function getDefaultClient(): BlinkClientImpl;
|
|
2557
2557
|
interface BlinkClient {
|
|
2558
|
+
/** The project this client is bound to (from BlinkClientConfig.projectId). */
|
|
2559
|
+
projectId: string;
|
|
2560
|
+
/** The publishable key this client was created with, if any. */
|
|
2561
|
+
publishableKey?: string;
|
|
2558
2562
|
auth: BlinkAuth;
|
|
2559
2563
|
db: BlinkDatabase;
|
|
2560
2564
|
storage: BlinkStorage;
|
|
@@ -2570,6 +2574,9 @@ interface BlinkClient {
|
|
|
2570
2574
|
queue: BlinkQueue;
|
|
2571
2575
|
}
|
|
2572
2576
|
declare class BlinkClientImpl implements BlinkClient {
|
|
2577
|
+
/** Echoed from config so callers (e.g. `<BlinkProvider projectId={blink.projectId}>`) can read it. */
|
|
2578
|
+
projectId: string;
|
|
2579
|
+
publishableKey?: string;
|
|
2573
2580
|
auth: BlinkAuth;
|
|
2574
2581
|
db: BlinkDatabase;
|
|
2575
2582
|
storage: BlinkStorage;
|
package/dist/index.js
CHANGED
|
@@ -7065,6 +7065,9 @@ function _getDefaultHttpClient() {
|
|
|
7065
7065
|
return getDefaultClient()._httpClient;
|
|
7066
7066
|
}
|
|
7067
7067
|
var BlinkClientImpl = class {
|
|
7068
|
+
/** Echoed from config so callers (e.g. `<BlinkProvider projectId={blink.projectId}>`) can read it. */
|
|
7069
|
+
projectId;
|
|
7070
|
+
publishableKey;
|
|
7068
7071
|
auth;
|
|
7069
7072
|
db;
|
|
7070
7073
|
storage;
|
|
@@ -7084,6 +7087,8 @@ var BlinkClientImpl = class {
|
|
|
7084
7087
|
if ((config.secretKey || config.serviceToken) && isBrowser) {
|
|
7085
7088
|
throw new Error("secretKey/serviceToken is server-only. Do not provide it in browser/React Native clients.");
|
|
7086
7089
|
}
|
|
7090
|
+
this.projectId = config.projectId;
|
|
7091
|
+
this.publishableKey = config.publishableKey;
|
|
7087
7092
|
this.auth = new BlinkAuth(config);
|
|
7088
7093
|
this._httpClient = new HttpClient(
|
|
7089
7094
|
config,
|
package/dist/index.mjs
CHANGED
|
@@ -7063,6 +7063,9 @@ function _getDefaultHttpClient() {
|
|
|
7063
7063
|
return getDefaultClient()._httpClient;
|
|
7064
7064
|
}
|
|
7065
7065
|
var BlinkClientImpl = class {
|
|
7066
|
+
/** Echoed from config so callers (e.g. `<BlinkProvider projectId={blink.projectId}>`) can read it. */
|
|
7067
|
+
projectId;
|
|
7068
|
+
publishableKey;
|
|
7066
7069
|
auth;
|
|
7067
7070
|
db;
|
|
7068
7071
|
storage;
|
|
@@ -7082,6 +7085,8 @@ var BlinkClientImpl = class {
|
|
|
7082
7085
|
if ((config.secretKey || config.serviceToken) && isBrowser) {
|
|
7083
7086
|
throw new Error("secretKey/serviceToken is server-only. Do not provide it in browser/React Native clients.");
|
|
7084
7087
|
}
|
|
7088
|
+
this.projectId = config.projectId;
|
|
7089
|
+
this.publishableKey = config.publishableKey;
|
|
7085
7090
|
this.auth = new BlinkAuth(config);
|
|
7086
7091
|
this._httpClient = new HttpClient(
|
|
7087
7092
|
config,
|
package/package.json
CHANGED