@palbase/client 0.4.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present Palbase
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs ADDED
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ PalbaseError: () => import_core2.PalbaseError,
24
+ createClient: () => createClient
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/client.ts
29
+ var import_core = require("@palbase/core");
30
+ var import_db = require("@palbase/db");
31
+ var import_auth = require("@palbase/auth");
32
+ var import_storage = require("@palbase/storage");
33
+ var import_docs = require("@palbase/docs");
34
+ var import_realtime = require("@palbase/realtime");
35
+ var import_functions = require("@palbase/functions");
36
+ var import_flags = require("@palbase/flags");
37
+ var import_notifications = require("@palbase/notifications");
38
+ var import_analytics = require("@palbase/analytics");
39
+ var import_links = require("@palbase/links");
40
+ var import_cms = require("@palbase/cms");
41
+ function createClient(apiKey, options) {
42
+ const httpClient = new import_core.HttpClient(apiKey, { url: options?.url, headers: options?.headers });
43
+ const tokenManager = new import_core.TokenManager();
44
+ httpClient.tokenManager = tokenManager;
45
+ const auth = new import_auth.AuthClient(httpClient, tokenManager);
46
+ httpClient.addInterceptor(({ headers }) => {
47
+ const appCheckToken = auth.device.getToken();
48
+ if (appCheckToken) {
49
+ headers["X-App-Check"] = appCheckToken;
50
+ }
51
+ });
52
+ const db = new import_db.DatabaseClient(httpClient);
53
+ const storage = new import_storage.StorageClient(httpClient);
54
+ const docs = new import_docs.DocsClient(httpClient);
55
+ const realtime = new import_realtime.RealtimeClient(httpClient);
56
+ const functions = new import_functions.FunctionsClient(httpClient);
57
+ const flags = new import_flags.FlagsClient(httpClient);
58
+ const notifications = new import_notifications.NotificationsClient(httpClient);
59
+ const analytics = new import_analytics.AnalyticsClient(httpClient);
60
+ const links = new import_links.LinksClient(httpClient);
61
+ const cms = new import_cms.CmsClient(httpClient);
62
+ return { auth, db, storage, docs, realtime, functions, flags, notifications, analytics, links, cms };
63
+ }
64
+
65
+ // src/index.ts
66
+ var import_core2 = require("@palbase/core");
67
+ // Annotate the CommonJS export names for ESM import in node:
68
+ 0 && (module.exports = {
69
+ PalbaseError,
70
+ createClient
71
+ });
72
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/client.ts"],"sourcesContent":["export { createClient } from './client.js';\nexport type { CreateClientOptions, PalbaseClient } from './client.js';\n\n// Re-export common types\nexport { PalbaseError } from '@palbase/core';\nexport type { PalbaseResponse, PalbaseConfig, Session } from '@palbase/core';\n\n// Re-export module types for convenience\nexport type { User, AuthEvent } from '@palbase/auth';\nexport type { QueryBuilder, GenericSchema } from '@palbase/db';\nexport type { StorageClient, BucketClient, FileObject, TransformOptions } from '@palbase/storage';\nexport type { DocsClient, CollectionRef, DocumentRef, DocumentSnapshot, QuerySnapshot } from '@palbase/docs';\nexport type { RealtimeClient, RealtimeChannel, PresenceState } from '@palbase/realtime';\nexport type { FunctionsClient, InvokeOptions } from '@palbase/functions';\nexport type { FlagsClient, FlagContext, FlagVariant, Flag } from '@palbase/flags';\nexport type { NotificationsClient, RegisterDeviceParams } from '@palbase/notifications';\nexport type { AnalyticsClient, AnalyticsProperties, IdentifyTraits } from '@palbase/analytics';\nexport type { LinksClient, CreateLinkParams, Link, InitialLink } from '@palbase/links';\nexport type { CmsClient, CmsFindOptions, CmsFindOneOptions } from '@palbase/cms';\n","import { HttpClient, TokenManager } from '@palbase/core';\nimport { DatabaseClient } from '@palbase/db';\nimport { AuthClient } from '@palbase/auth';\nimport { StorageClient } from '@palbase/storage';\nimport { DocsClient } from '@palbase/docs';\nimport { RealtimeClient } from '@palbase/realtime';\nimport { FunctionsClient } from '@palbase/functions';\nimport { FlagsClient } from '@palbase/flags';\nimport { NotificationsClient } from '@palbase/notifications';\nimport { AnalyticsClient } from '@palbase/analytics';\nimport { LinksClient } from '@palbase/links';\nimport { CmsClient } from '@palbase/cms';\n\nexport interface CreateClientOptions {\n url?: string;\n headers?: Record<string, string>;\n}\n\nexport interface PalbaseClient<Schema = unknown> {\n auth: AuthClient;\n db: DatabaseClient<Schema>;\n storage: StorageClient;\n docs: DocsClient;\n realtime: RealtimeClient;\n functions: FunctionsClient;\n flags: FlagsClient;\n notifications: NotificationsClient;\n analytics: AnalyticsClient;\n links: LinksClient;\n cms: CmsClient;\n}\n\nexport function createClient<Schema = unknown>(\n apiKey: string,\n options?: CreateClientOptions,\n): PalbaseClient<Schema> {\n const httpClient = new HttpClient(apiKey, { url: options?.url, headers: options?.headers });\n\n const tokenManager = new TokenManager();\n httpClient.tokenManager = tokenManager;\n\n const auth = new AuthClient(httpClient, tokenManager);\n\n // Wire App Check: auth.device token → X-App-Check header on every request\n httpClient.addInterceptor(({ headers }) => {\n const appCheckToken = auth.device.getToken();\n if (appCheckToken) {\n headers['X-App-Check'] = appCheckToken;\n }\n });\n const db = new DatabaseClient<Schema>(httpClient);\n const storage = new StorageClient(httpClient);\n const docs = new DocsClient(httpClient);\n const realtime = new RealtimeClient(httpClient);\n const functions = new FunctionsClient(httpClient);\n const flags = new FlagsClient(httpClient);\n const notifications = new NotificationsClient(httpClient);\n const analytics = new AnalyticsClient(httpClient);\n const links = new LinksClient(httpClient);\n const cms = new CmsClient(httpClient);\n\n return { auth, db, storage, docs, realtime, functions, flags, notifications, analytics, links, cms };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAyC;AACzC,gBAA+B;AAC/B,kBAA2B;AAC3B,qBAA8B;AAC9B,kBAA2B;AAC3B,sBAA+B;AAC/B,uBAAgC;AAChC,mBAA4B;AAC5B,2BAAoC;AACpC,uBAAgC;AAChC,mBAA4B;AAC5B,iBAA0B;AAqBnB,SAAS,aACd,QACA,SACuB;AACvB,QAAM,aAAa,IAAI,uBAAW,QAAQ,EAAE,KAAK,SAAS,KAAK,SAAS,SAAS,QAAQ,CAAC;AAE1F,QAAM,eAAe,IAAI,yBAAa;AACtC,aAAW,eAAe;AAE1B,QAAM,OAAO,IAAI,uBAAW,YAAY,YAAY;AAGpD,aAAW,eAAe,CAAC,EAAE,QAAQ,MAAM;AACzC,UAAM,gBAAgB,KAAK,OAAO,SAAS;AAC3C,QAAI,eAAe;AACjB,cAAQ,aAAa,IAAI;AAAA,IAC3B;AAAA,EACF,CAAC;AACD,QAAM,KAAK,IAAI,yBAAuB,UAAU;AAChD,QAAM,UAAU,IAAI,6BAAc,UAAU;AAC5C,QAAM,OAAO,IAAI,uBAAW,UAAU;AACtC,QAAM,WAAW,IAAI,+BAAe,UAAU;AAC9C,QAAM,YAAY,IAAI,iCAAgB,UAAU;AAChD,QAAM,QAAQ,IAAI,yBAAY,UAAU;AACxC,QAAM,gBAAgB,IAAI,yCAAoB,UAAU;AACxD,QAAM,YAAY,IAAI,iCAAgB,UAAU;AAChD,QAAM,QAAQ,IAAI,yBAAY,UAAU;AACxC,QAAM,MAAM,IAAI,qBAAU,UAAU;AAEpC,SAAO,EAAE,MAAM,IAAI,SAAS,MAAM,UAAU,WAAW,OAAO,eAAe,WAAW,OAAO,IAAI;AACrG;;;AD1DA,IAAAA,eAA6B;","names":["import_core"]}
@@ -0,0 +1,44 @@
1
+ import { DatabaseClient } from '@palbase/db';
2
+ export { GenericSchema, QueryBuilder } from '@palbase/db';
3
+ import { AuthClient } from '@palbase/auth';
4
+ export { AuthEvent, User } from '@palbase/auth';
5
+ import { StorageClient } from '@palbase/storage';
6
+ export { BucketClient, FileObject, StorageClient, TransformOptions } from '@palbase/storage';
7
+ import { DocsClient } from '@palbase/docs';
8
+ export { CollectionRef, DocsClient, DocumentRef, DocumentSnapshot, QuerySnapshot } from '@palbase/docs';
9
+ import { RealtimeClient } from '@palbase/realtime';
10
+ export { PresenceState, RealtimeChannel, RealtimeClient } from '@palbase/realtime';
11
+ import { FunctionsClient } from '@palbase/functions';
12
+ export { FunctionsClient, InvokeOptions } from '@palbase/functions';
13
+ import { FlagsClient } from '@palbase/flags';
14
+ export { Flag, FlagContext, FlagVariant, FlagsClient } from '@palbase/flags';
15
+ import { NotificationsClient } from '@palbase/notifications';
16
+ export { NotificationsClient, RegisterDeviceParams } from '@palbase/notifications';
17
+ import { AnalyticsClient } from '@palbase/analytics';
18
+ export { AnalyticsClient, AnalyticsProperties, IdentifyTraits } from '@palbase/analytics';
19
+ import { LinksClient } from '@palbase/links';
20
+ export { CreateLinkParams, InitialLink, Link, LinksClient } from '@palbase/links';
21
+ import { CmsClient } from '@palbase/cms';
22
+ export { CmsClient, CmsFindOneOptions, CmsFindOptions } from '@palbase/cms';
23
+ export { PalbaseConfig, PalbaseError, PalbaseResponse, Session } from '@palbase/core';
24
+
25
+ interface CreateClientOptions {
26
+ url?: string;
27
+ headers?: Record<string, string>;
28
+ }
29
+ interface PalbaseClient<Schema = unknown> {
30
+ auth: AuthClient;
31
+ db: DatabaseClient<Schema>;
32
+ storage: StorageClient;
33
+ docs: DocsClient;
34
+ realtime: RealtimeClient;
35
+ functions: FunctionsClient;
36
+ flags: FlagsClient;
37
+ notifications: NotificationsClient;
38
+ analytics: AnalyticsClient;
39
+ links: LinksClient;
40
+ cms: CmsClient;
41
+ }
42
+ declare function createClient<Schema = unknown>(apiKey: string, options?: CreateClientOptions): PalbaseClient<Schema>;
43
+
44
+ export { type CreateClientOptions, type PalbaseClient, createClient };
@@ -0,0 +1,44 @@
1
+ import { DatabaseClient } from '@palbase/db';
2
+ export { GenericSchema, QueryBuilder } from '@palbase/db';
3
+ import { AuthClient } from '@palbase/auth';
4
+ export { AuthEvent, User } from '@palbase/auth';
5
+ import { StorageClient } from '@palbase/storage';
6
+ export { BucketClient, FileObject, StorageClient, TransformOptions } from '@palbase/storage';
7
+ import { DocsClient } from '@palbase/docs';
8
+ export { CollectionRef, DocsClient, DocumentRef, DocumentSnapshot, QuerySnapshot } from '@palbase/docs';
9
+ import { RealtimeClient } from '@palbase/realtime';
10
+ export { PresenceState, RealtimeChannel, RealtimeClient } from '@palbase/realtime';
11
+ import { FunctionsClient } from '@palbase/functions';
12
+ export { FunctionsClient, InvokeOptions } from '@palbase/functions';
13
+ import { FlagsClient } from '@palbase/flags';
14
+ export { Flag, FlagContext, FlagVariant, FlagsClient } from '@palbase/flags';
15
+ import { NotificationsClient } from '@palbase/notifications';
16
+ export { NotificationsClient, RegisterDeviceParams } from '@palbase/notifications';
17
+ import { AnalyticsClient } from '@palbase/analytics';
18
+ export { AnalyticsClient, AnalyticsProperties, IdentifyTraits } from '@palbase/analytics';
19
+ import { LinksClient } from '@palbase/links';
20
+ export { CreateLinkParams, InitialLink, Link, LinksClient } from '@palbase/links';
21
+ import { CmsClient } from '@palbase/cms';
22
+ export { CmsClient, CmsFindOneOptions, CmsFindOptions } from '@palbase/cms';
23
+ export { PalbaseConfig, PalbaseError, PalbaseResponse, Session } from '@palbase/core';
24
+
25
+ interface CreateClientOptions {
26
+ url?: string;
27
+ headers?: Record<string, string>;
28
+ }
29
+ interface PalbaseClient<Schema = unknown> {
30
+ auth: AuthClient;
31
+ db: DatabaseClient<Schema>;
32
+ storage: StorageClient;
33
+ docs: DocsClient;
34
+ realtime: RealtimeClient;
35
+ functions: FunctionsClient;
36
+ flags: FlagsClient;
37
+ notifications: NotificationsClient;
38
+ analytics: AnalyticsClient;
39
+ links: LinksClient;
40
+ cms: CmsClient;
41
+ }
42
+ declare function createClient<Schema = unknown>(apiKey: string, options?: CreateClientOptions): PalbaseClient<Schema>;
43
+
44
+ export { type CreateClientOptions, type PalbaseClient, createClient };
package/dist/index.js ADDED
@@ -0,0 +1,44 @@
1
+ // src/client.ts
2
+ import { HttpClient, TokenManager } from "@palbase/core";
3
+ import { DatabaseClient } from "@palbase/db";
4
+ import { AuthClient } from "@palbase/auth";
5
+ import { StorageClient } from "@palbase/storage";
6
+ import { DocsClient } from "@palbase/docs";
7
+ import { RealtimeClient } from "@palbase/realtime";
8
+ import { FunctionsClient } from "@palbase/functions";
9
+ import { FlagsClient } from "@palbase/flags";
10
+ import { NotificationsClient } from "@palbase/notifications";
11
+ import { AnalyticsClient } from "@palbase/analytics";
12
+ import { LinksClient } from "@palbase/links";
13
+ import { CmsClient } from "@palbase/cms";
14
+ function createClient(apiKey, options) {
15
+ const httpClient = new HttpClient(apiKey, { url: options?.url, headers: options?.headers });
16
+ const tokenManager = new TokenManager();
17
+ httpClient.tokenManager = tokenManager;
18
+ const auth = new AuthClient(httpClient, tokenManager);
19
+ httpClient.addInterceptor(({ headers }) => {
20
+ const appCheckToken = auth.device.getToken();
21
+ if (appCheckToken) {
22
+ headers["X-App-Check"] = appCheckToken;
23
+ }
24
+ });
25
+ const db = new DatabaseClient(httpClient);
26
+ const storage = new StorageClient(httpClient);
27
+ const docs = new DocsClient(httpClient);
28
+ const realtime = new RealtimeClient(httpClient);
29
+ const functions = new FunctionsClient(httpClient);
30
+ const flags = new FlagsClient(httpClient);
31
+ const notifications = new NotificationsClient(httpClient);
32
+ const analytics = new AnalyticsClient(httpClient);
33
+ const links = new LinksClient(httpClient);
34
+ const cms = new CmsClient(httpClient);
35
+ return { auth, db, storage, docs, realtime, functions, flags, notifications, analytics, links, cms };
36
+ }
37
+
38
+ // src/index.ts
39
+ import { PalbaseError } from "@palbase/core";
40
+ export {
41
+ PalbaseError,
42
+ createClient
43
+ };
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/client.ts","../src/index.ts"],"sourcesContent":["import { HttpClient, TokenManager } from '@palbase/core';\nimport { DatabaseClient } from '@palbase/db';\nimport { AuthClient } from '@palbase/auth';\nimport { StorageClient } from '@palbase/storage';\nimport { DocsClient } from '@palbase/docs';\nimport { RealtimeClient } from '@palbase/realtime';\nimport { FunctionsClient } from '@palbase/functions';\nimport { FlagsClient } from '@palbase/flags';\nimport { NotificationsClient } from '@palbase/notifications';\nimport { AnalyticsClient } from '@palbase/analytics';\nimport { LinksClient } from '@palbase/links';\nimport { CmsClient } from '@palbase/cms';\n\nexport interface CreateClientOptions {\n url?: string;\n headers?: Record<string, string>;\n}\n\nexport interface PalbaseClient<Schema = unknown> {\n auth: AuthClient;\n db: DatabaseClient<Schema>;\n storage: StorageClient;\n docs: DocsClient;\n realtime: RealtimeClient;\n functions: FunctionsClient;\n flags: FlagsClient;\n notifications: NotificationsClient;\n analytics: AnalyticsClient;\n links: LinksClient;\n cms: CmsClient;\n}\n\nexport function createClient<Schema = unknown>(\n apiKey: string,\n options?: CreateClientOptions,\n): PalbaseClient<Schema> {\n const httpClient = new HttpClient(apiKey, { url: options?.url, headers: options?.headers });\n\n const tokenManager = new TokenManager();\n httpClient.tokenManager = tokenManager;\n\n const auth = new AuthClient(httpClient, tokenManager);\n\n // Wire App Check: auth.device token → X-App-Check header on every request\n httpClient.addInterceptor(({ headers }) => {\n const appCheckToken = auth.device.getToken();\n if (appCheckToken) {\n headers['X-App-Check'] = appCheckToken;\n }\n });\n const db = new DatabaseClient<Schema>(httpClient);\n const storage = new StorageClient(httpClient);\n const docs = new DocsClient(httpClient);\n const realtime = new RealtimeClient(httpClient);\n const functions = new FunctionsClient(httpClient);\n const flags = new FlagsClient(httpClient);\n const notifications = new NotificationsClient(httpClient);\n const analytics = new AnalyticsClient(httpClient);\n const links = new LinksClient(httpClient);\n const cms = new CmsClient(httpClient);\n\n return { auth, db, storage, docs, realtime, functions, flags, notifications, analytics, links, cms };\n}\n","export { createClient } from './client.js';\nexport type { CreateClientOptions, PalbaseClient } from './client.js';\n\n// Re-export common types\nexport { PalbaseError } from '@palbase/core';\nexport type { PalbaseResponse, PalbaseConfig, Session } from '@palbase/core';\n\n// Re-export module types for convenience\nexport type { User, AuthEvent } from '@palbase/auth';\nexport type { QueryBuilder, GenericSchema } from '@palbase/db';\nexport type { StorageClient, BucketClient, FileObject, TransformOptions } from '@palbase/storage';\nexport type { DocsClient, CollectionRef, DocumentRef, DocumentSnapshot, QuerySnapshot } from '@palbase/docs';\nexport type { RealtimeClient, RealtimeChannel, PresenceState } from '@palbase/realtime';\nexport type { FunctionsClient, InvokeOptions } from '@palbase/functions';\nexport type { FlagsClient, FlagContext, FlagVariant, Flag } from '@palbase/flags';\nexport type { NotificationsClient, RegisterDeviceParams } from '@palbase/notifications';\nexport type { AnalyticsClient, AnalyticsProperties, IdentifyTraits } from '@palbase/analytics';\nexport type { LinksClient, CreateLinkParams, Link, InitialLink } from '@palbase/links';\nexport type { CmsClient, CmsFindOptions, CmsFindOneOptions } from '@palbase/cms';\n"],"mappings":";AAAA,SAAS,YAAY,oBAAoB;AACzC,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAqBnB,SAAS,aACd,QACA,SACuB;AACvB,QAAM,aAAa,IAAI,WAAW,QAAQ,EAAE,KAAK,SAAS,KAAK,SAAS,SAAS,QAAQ,CAAC;AAE1F,QAAM,eAAe,IAAI,aAAa;AACtC,aAAW,eAAe;AAE1B,QAAM,OAAO,IAAI,WAAW,YAAY,YAAY;AAGpD,aAAW,eAAe,CAAC,EAAE,QAAQ,MAAM;AACzC,UAAM,gBAAgB,KAAK,OAAO,SAAS;AAC3C,QAAI,eAAe;AACjB,cAAQ,aAAa,IAAI;AAAA,IAC3B;AAAA,EACF,CAAC;AACD,QAAM,KAAK,IAAI,eAAuB,UAAU;AAChD,QAAM,UAAU,IAAI,cAAc,UAAU;AAC5C,QAAM,OAAO,IAAI,WAAW,UAAU;AACtC,QAAM,WAAW,IAAI,eAAe,UAAU;AAC9C,QAAM,YAAY,IAAI,gBAAgB,UAAU;AAChD,QAAM,QAAQ,IAAI,YAAY,UAAU;AACxC,QAAM,gBAAgB,IAAI,oBAAoB,UAAU;AACxD,QAAM,YAAY,IAAI,gBAAgB,UAAU;AAChD,QAAM,QAAQ,IAAI,YAAY,UAAU;AACxC,QAAM,MAAM,IAAI,UAAU,UAAU;AAEpC,SAAO,EAAE,MAAM,IAAI,SAAS,MAAM,UAAU,WAAW,OAAO,eAAe,WAAW,OAAO,IAAI;AACrG;;;AC1DA,SAAS,oBAAoB;","names":[]}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@palbase/client",
3
+ "version": "0.4.0",
4
+ "description": "Palbase client SDK — browser/mobile client for auth, database, storage, and more",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/palgroup/palbase-ts.git",
9
+ "directory": "client/packages/client"
10
+ },
11
+ "sideEffects": false,
12
+ "type": "module",
13
+ "exports": {
14
+ ".": {
15
+ "import": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ },
19
+ "require": {
20
+ "types": "./dist/index.d.cts",
21
+ "default": "./dist/index.cjs"
22
+ }
23
+ }
24
+ },
25
+ "main": "./dist/index.cjs",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "dependencies": {
32
+ "@palbase/analytics": "0.4.0",
33
+ "@palbase/auth": "0.4.0",
34
+ "@palbase/cms": "0.4.0",
35
+ "@palbase/core": "0.4.0",
36
+ "@palbase/db": "0.4.0",
37
+ "@palbase/docs": "0.4.0",
38
+ "@palbase/flags": "0.4.0",
39
+ "@palbase/functions": "0.4.0",
40
+ "@palbase/links": "0.4.0",
41
+ "@palbase/notifications": "0.4.0",
42
+ "@palbase/realtime": "0.4.0",
43
+ "@palbase/storage": "0.4.0"
44
+ },
45
+ "devDependencies": {
46
+ "@biomejs/biome": "^2.0.0",
47
+ "expect-type": "^1.3.0",
48
+ "tsup": "^8.4.0",
49
+ "typescript": "^5.8.0",
50
+ "vitest": "^3.1.0"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "scripts": {
56
+ "build": "tsup",
57
+ "test": "vitest run",
58
+ "lint": "biome check src/ __tests__/"
59
+ }
60
+ }