@purr-core/services.firebase 0.0.7 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purr-core/services.firebase",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -23,8 +23,8 @@
23
23
  "peerDependencies": {
24
24
  "typescript": "*",
25
25
  "firebase": "*",
26
- "@purr-core/utils.definitions": "0.0.9",
27
- "@purr-core/utils.helpers": "0.0.9"
26
+ "@purr-core/utils.definitions": "0.0.11",
27
+ "@purr-core/utils.helpers": "0.0.11"
28
28
  },
29
29
  "author": "@DinhThienPhuc",
30
30
  "license": "ISC",
@@ -33,6 +33,8 @@
33
33
  "scripts": {
34
34
  "dev": "vite build --watch",
35
35
  "build": "tsc && vite build",
36
+ "build:vite": "tsc && vite build",
37
+ "build:tsup": "tsup",
36
38
  "lint": "eslint . --ext ts,tsx --max-warnings 0"
37
39
  }
38
40
  }
package/dist/_api.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { DocumentData, Firestore } from 'firebase/firestore';
2
- import { TAsyncBoundary } from '@purr-core/utils.definitions';
3
-
4
- export declare const getAllDocuments: <T>(firestore: Firestore, c: string) => Promise<TAsyncBoundary<T>>;
5
- export declare const getDocumentById: <T>(firestore: Firestore, c: string, id: string) => Promise<TAsyncBoundary<T>>;
6
- export declare const addDocument: <T>(firestore: Firestore, c: string, data: DocumentData) => Promise<TAsyncBoundary<T>>;
7
- export declare const setDocument: (firestore: Firestore, c: string, data: DocumentData) => Promise<TAsyncBoundary<void>>;
8
- export declare const deleteDocument: (firestore: Firestore, c: string, id: string) => Promise<TAsyncBoundary<void>>;
package/dist/_init.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { FirebaseApp } from 'firebase/app';
2
- import { IFirebaseConfig } from './_types';
3
-
4
- export declare const initFirebaseApp: (config: IFirebaseConfig) => Promise<FirebaseApp>;
5
- export declare const getFireStore: (app: FirebaseApp) => Promise<import('firebase/firestore').Firestore>;
6
- export declare const getFireStorage: (app: FirebaseApp) => Promise<import('firebase/storage').FirebaseStorage>;
package/dist/_types.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export interface IFirebaseConfig {
2
- apiKey?: string;
3
- authDomain?: string;
4
- projectId?: string;
5
- storageBucket?: string;
6
- messagingSenderId?: string;
7
- appId?: string;
8
- measurementId?: string;
9
- }