krisspy-sdk 0.5.5 → 0.5.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/dist/index.d.mts CHANGED
@@ -11,7 +11,7 @@ interface KrisspyClientOptions {
11
11
  * This key can be safely exposed in frontend code.
12
12
  * Get it from your backend settings in the Krisspy dashboard.
13
13
  */
14
- anonKey: string;
14
+ apiKey: string;
15
15
  /** Custom headers to include in all requests */
16
16
  headers?: Record<string, string>;
17
17
  /** Enable debug logging */
@@ -740,7 +740,7 @@ declare class KrisspyRealtime {
740
740
  * Browser-only module - safely no-ops in React Native / Node.js.
741
741
  *
742
742
  * @example
743
- * const krisspy = createClient({ backendId: '...', anonKey: '...' })
743
+ * const krisspy = createClient({ backendId: '...', apiKey: '...' })
744
744
  * krisspy.analytics.init({ autoTrackPageViews: true })
745
745
  * krisspy.analytics.track('button_click', { label: 'signup' })
746
746
  */
@@ -1159,7 +1159,7 @@ declare class KrisspyClient {
1159
1159
  *
1160
1160
  * const krisspy = createClient({
1161
1161
  * backendId: 'your-backend-id',
1162
- * anonKey: 'your-anon-key', // from backend settings
1162
+ * apiKey: 'your-api-key', // from backend settings
1163
1163
  * })
1164
1164
  *
1165
1165
  * // Auth
@@ -1201,7 +1201,7 @@ declare class KrisspyClient {
1201
1201
  * @example
1202
1202
  * const krisspy = createClient({
1203
1203
  * backendId: 'abc123',
1204
- * anonKey: 'your-anon-key',
1204
+ * apiKey: 'your-api-key',
1205
1205
  * url: 'https://krisspy-cloud-backend.thankfulhill-66fc9e74.westeurope.azurecontainerapps.io', // optional
1206
1206
  * })
1207
1207
  */
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ interface KrisspyClientOptions {
11
11
  * This key can be safely exposed in frontend code.
12
12
  * Get it from your backend settings in the Krisspy dashboard.
13
13
  */
14
- anonKey: string;
14
+ apiKey: string;
15
15
  /** Custom headers to include in all requests */
16
16
  headers?: Record<string, string>;
17
17
  /** Enable debug logging */
@@ -740,7 +740,7 @@ declare class KrisspyRealtime {
740
740
  * Browser-only module - safely no-ops in React Native / Node.js.
741
741
  *
742
742
  * @example
743
- * const krisspy = createClient({ backendId: '...', anonKey: '...' })
743
+ * const krisspy = createClient({ backendId: '...', apiKey: '...' })
744
744
  * krisspy.analytics.init({ autoTrackPageViews: true })
745
745
  * krisspy.analytics.track('button_click', { label: 'signup' })
746
746
  */
@@ -1159,7 +1159,7 @@ declare class KrisspyClient {
1159
1159
  *
1160
1160
  * const krisspy = createClient({
1161
1161
  * backendId: 'your-backend-id',
1162
- * anonKey: 'your-anon-key', // from backend settings
1162
+ * apiKey: 'your-api-key', // from backend settings
1163
1163
  * })
1164
1164
  *
1165
1165
  * // Auth
@@ -1201,7 +1201,7 @@ declare class KrisspyClient {
1201
1201
  * @example
1202
1202
  * const krisspy = createClient({
1203
1203
  * backendId: 'abc123',
1204
- * anonKey: 'your-anon-key',
1204
+ * apiKey: 'your-api-key',
1205
1205
  * url: 'https://krisspy-cloud-backend.thankfulhill-66fc9e74.westeurope.azurecontainerapps.io', // optional
1206
1206
  * })
1207
1207
  */
package/dist/index.js CHANGED
@@ -1744,7 +1744,7 @@ var KrisspyClient = class {
1744
1744
  this.http = new HttpClient({
1745
1745
  baseUrl: this.baseUrl,
1746
1746
  headers: __spreadProps(__spreadValues({}, options.headers), {
1747
- "apikey": options.anonKey
1747
+ "apikey": options.apiKey
1748
1748
  }),
1749
1749
  debug: options.debug
1750
1750
  });
package/dist/index.mjs CHANGED
@@ -1710,7 +1710,7 @@ var KrisspyClient = class {
1710
1710
  this.http = new HttpClient({
1711
1711
  baseUrl: this.baseUrl,
1712
1712
  headers: __spreadProps(__spreadValues({}, options.headers), {
1713
- "apikey": options.anonKey
1713
+ "apikey": options.apiKey
1714
1714
  }),
1715
1715
  debug: options.debug
1716
1716
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "krisspy-sdk",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Krisspy Cloud SDK - Database, Auth, Storage, and Functions for your apps",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",