@redjay/threads-firebase-storage 1.1.0 → 1.1.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.
Files changed (3) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +45 -45
  3. package/package.json +57 -57
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Joshua Ramirez
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Joshua Ramirez
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/README.md CHANGED
@@ -1,45 +1,45 @@
1
- # @redjay/threads-firebase-storage
2
-
3
- Firebase Firestore storage adapter for the Threads platform. Enables cloud-based storage with real-time sync capabilities.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @redjay/threads-firebase-storage firebase-admin
9
- ```
10
-
11
- Note: `firebase-admin` is a peer dependency and must be installed separately.
12
-
13
- ## Usage
14
-
15
- ```typescript
16
- import { FirebaseStorageAdapter } from '@redjay/threads-firebase-storage';
17
- import * as admin from 'firebase-admin';
18
-
19
- // Initialize Firebase
20
- admin.initializeApp({
21
- credential: admin.credential.applicationDefault()
22
- });
23
-
24
- const storage = new FirebaseStorageAdapter({
25
- firestore: admin.firestore()
26
- });
27
-
28
- // Use storage adapter
29
- const threads = await storage.getAllThreads();
30
- ```
31
-
32
- ## Features
33
-
34
- - Cloud-based Firestore storage
35
- - Real-time sync across devices
36
- - Scalable for large datasets
37
- - Firebase security rules support
38
-
39
- ## Configuration
40
-
41
- Requires Firebase Admin SDK initialization with appropriate credentials. See [Firebase Admin SDK Setup](https://firebase.google.com/docs/admin/setup) for details.
42
-
43
- ## License
44
-
45
- MIT
1
+ # @redjay/threads-firebase-storage
2
+
3
+ Firebase Firestore storage adapter for the Threads platform. Enables cloud-based storage with real-time sync capabilities.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @redjay/threads-firebase-storage firebase-admin
9
+ ```
10
+
11
+ Note: `firebase-admin` is a peer dependency and must be installed separately.
12
+
13
+ ## Usage
14
+
15
+ ```typescript
16
+ import { FirebaseStorageAdapter } from '@redjay/threads-firebase-storage';
17
+ import * as admin from 'firebase-admin';
18
+
19
+ // Initialize Firebase
20
+ admin.initializeApp({
21
+ credential: admin.credential.applicationDefault()
22
+ });
23
+
24
+ const storage = new FirebaseStorageAdapter({
25
+ firestore: admin.firestore()
26
+ });
27
+
28
+ // Use storage adapter
29
+ const threads = await storage.getAllThreads();
30
+ ```
31
+
32
+ ## Features
33
+
34
+ - Cloud-based Firestore storage
35
+ - Real-time sync across devices
36
+ - Scalable for large datasets
37
+ - Firebase security rules support
38
+
39
+ ## Configuration
40
+
41
+ Requires Firebase Admin SDK initialization with appropriate credentials. See [Firebase Admin SDK Setup](https://firebase.google.com/docs/admin/setup) for details.
42
+
43
+ ## License
44
+
45
+ MIT
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@redjay/threads-firebase-storage",
3
- "version": "1.1.0",
4
- "description": "Firebase Firestore storage adapter for Threads platform",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "default": "./dist/index.js"
11
- }
12
- },
13
- "files": [
14
- "dist",
15
- "README.md",
16
- "LICENSE"
17
- ],
18
- "scripts": {
19
- "build": "tsc -b",
20
- "clean": "rm -rf dist",
21
- "typecheck": "tsc --noEmit"
22
- },
23
- "keywords": [
24
- "threads",
25
- "firebase",
26
- "firestore",
27
- "storage"
28
- ],
29
- "author": "Joshua Ramirez",
30
- "license": "MIT",
31
- "engines": {
32
- "node": ">=20.0.0"
33
- },
34
- "repository": {
35
- "type": "git",
36
- "url": "git+https://github.com/JoshuaRamirez/threads-cli.git",
37
- "directory": "packages/firebase-storage"
38
- },
39
- "bugs": {
40
- "url": "https://github.com/JoshuaRamirez/threads-cli/issues"
41
- },
42
- "homepage": "https://github.com/JoshuaRamirez/threads-cli/tree/master/packages/firebase-storage#readme",
43
- "publishConfig": {
44
- "access": "public",
45
- "registry": "https://registry.npmjs.org/"
46
- },
47
- "dependencies": {
48
- "@redjay/threads-core": "workspace:*",
49
- "@redjay/threads-storage": "workspace:*"
50
- },
51
- "devDependencies": {
52
- "typescript": "^5.9.3"
53
- },
54
- "peerDependencies": {
55
- "firebase-admin": ">=12.0.0"
56
- }
57
- }
1
+ {
2
+ "name": "@redjay/threads-firebase-storage",
3
+ "version": "1.1.1",
4
+ "description": "Firebase Firestore storage adapter for Threads platform",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "README.md",
16
+ "LICENSE"
17
+ ],
18
+ "keywords": [
19
+ "threads",
20
+ "firebase",
21
+ "firestore",
22
+ "storage"
23
+ ],
24
+ "author": "Joshua Ramirez",
25
+ "license": "MIT",
26
+ "engines": {
27
+ "node": ">=20.0.0"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/JoshuaRamirez/threads-cli.git",
32
+ "directory": "packages/firebase-storage"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/JoshuaRamirez/threads-cli/issues"
36
+ },
37
+ "homepage": "https://github.com/JoshuaRamirez/threads-cli/tree/master/packages/firebase-storage#readme",
38
+ "publishConfig": {
39
+ "access": "public",
40
+ "registry": "https://registry.npmjs.org/"
41
+ },
42
+ "dependencies": {
43
+ "@redjay/threads-core": "1.1.0",
44
+ "@redjay/threads-storage": "3.0.1"
45
+ },
46
+ "devDependencies": {
47
+ "typescript": "^5.9.3"
48
+ },
49
+ "peerDependencies": {
50
+ "firebase-admin": ">=12.0.0"
51
+ },
52
+ "scripts": {
53
+ "build": "tsc -b",
54
+ "clean": "rm -rf dist",
55
+ "typecheck": "tsc --noEmit"
56
+ }
57
+ }