@redjay/threads-json-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 +37 -37
  3. package/package.json +59 -59
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,37 +1,37 @@
1
- # @redjay/threads-json-storage
2
-
3
- JSON file storage adapter for the Threads platform. Stores all data in a local JSON file.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @redjay/threads-json-storage
9
- ```
10
-
11
- ## Usage
12
-
13
- ```typescript
14
- import { JsonStorageAdapter } from '@redjay/threads-json-storage';
15
-
16
- const storage = new JsonStorageAdapter({
17
- filePath: '~/.threads/threads.json'
18
- });
19
-
20
- // Use storage adapter
21
- const threads = await storage.getAllThreads();
22
- ```
23
-
24
- ## Features
25
-
26
- - Local file-based storage
27
- - Automatic backup before writes
28
- - Human-readable JSON format
29
- - No external dependencies
30
-
31
- ## Default Location
32
-
33
- Data is stored at `~/.threads/threads.json` by default.
34
-
35
- ## License
36
-
37
- MIT
1
+ # @redjay/threads-json-storage
2
+
3
+ JSON file storage adapter for the Threads platform. Stores all data in a local JSON file.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @redjay/threads-json-storage
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { JsonStorageAdapter } from '@redjay/threads-json-storage';
15
+
16
+ const storage = new JsonStorageAdapter({
17
+ filePath: '~/.threads/threads.json'
18
+ });
19
+
20
+ // Use storage adapter
21
+ const threads = await storage.getAllThreads();
22
+ ```
23
+
24
+ ## Features
25
+
26
+ - Local file-based storage
27
+ - Automatic backup before writes
28
+ - Human-readable JSON format
29
+ - No external dependencies
30
+
31
+ ## Default Location
32
+
33
+ Data is stored at `~/.threads/threads.json` by default.
34
+
35
+ ## License
36
+
37
+ MIT
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "@redjay/threads-json-storage",
3
- "version": "1.1.0",
4
- "description": "JSON file 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
- "test": "jest --passWithNoTests"
23
- },
24
- "keywords": [
25
- "threads",
26
- "storage",
27
- "json",
28
- "file"
29
- ],
30
- "author": "Joshua Ramirez",
31
- "license": "MIT",
32
- "engines": {
33
- "node": ">=20.0.0"
34
- },
35
- "repository": {
36
- "type": "git",
37
- "url": "git+https://github.com/JoshuaRamirez/threads-cli.git",
38
- "directory": "packages/json-storage"
39
- },
40
- "bugs": {
41
- "url": "https://github.com/JoshuaRamirez/threads-cli/issues"
42
- },
43
- "homepage": "https://github.com/JoshuaRamirez/threads-cli/tree/master/packages/json-storage#readme",
44
- "publishConfig": {
45
- "access": "public",
46
- "registry": "https://registry.npmjs.org/"
47
- },
48
- "dependencies": {
49
- "@redjay/threads-core": "workspace:*",
50
- "@redjay/threads-storage": "workspace:*"
51
- },
52
- "devDependencies": {
53
- "@types/node": "^22.0.0",
54
- "@types/jest": "^30.0.0",
55
- "jest": "^30.2.0",
56
- "ts-jest": "^29.4.6",
57
- "typescript": "^5.9.3"
58
- }
59
- }
1
+ {
2
+ "name": "@redjay/threads-json-storage",
3
+ "version": "1.1.1",
4
+ "description": "JSON file 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
+ "storage",
21
+ "json",
22
+ "file"
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/json-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/json-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
+ "@types/node": "^22.0.0",
48
+ "@types/jest": "^30.0.0",
49
+ "jest": "^30.2.0",
50
+ "ts-jest": "^29.4.6",
51
+ "typescript": "^5.9.3"
52
+ },
53
+ "scripts": {
54
+ "build": "tsc -b",
55
+ "clean": "rm -rf dist",
56
+ "typecheck": "tsc --noEmit",
57
+ "test": "jest --passWithNoTests"
58
+ }
59
+ }