graze-client 0.1.1 → 0.2.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/.changeset/config.json +2 -2
- package/CHANGELOG.md +6 -0
- package/README.md +9 -1
- package/package.json +16 -5
- package/tsconfig.build.json +2 -1
package/.changeset/config.json
CHANGED
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This is a simple Typescript package for interacting with the [Graze](https://graze.social/) API. The API is undocumented and not officially supported, but this package was made with their blessing.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```bash
|
|
6
|
+
npm install graze-client
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
It is a bit hastily put together and under development (not all APIs are implemented), but it works. Currently it is only deployed as ESM with Typescript declarations.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
**Authentication** is currently cookie-based and a little hacky. You will need to log into Graze in your browser, then copy the cookie from your browser's developer tools, and pass it as a string to the `GrazeService`.
|
|
6
14
|
|
|
7
15
|
There are two exports:
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graze-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Typescript Graze API client.",
|
|
@@ -13,9 +13,18 @@
|
|
|
13
13
|
"directory": "."
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
|
-
".":
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./build/esm/index.ts",
|
|
18
|
+
"require": "./build/dts/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./effect": {
|
|
21
|
+
"import": "./build/esm/effect/index.ts",
|
|
22
|
+
"require": "./build/dts/effect/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./schema": {
|
|
25
|
+
"import": "./build/esm/schema/index.ts",
|
|
26
|
+
"require": "./build/dts/schema/index.d.ts"
|
|
27
|
+
}
|
|
19
28
|
},
|
|
20
29
|
"scripts": {
|
|
21
30
|
"codegen": "build-utils prepare-v2",
|
|
@@ -40,6 +49,7 @@
|
|
|
40
49
|
"@babel/core": "^7.25.2",
|
|
41
50
|
"@babel/plugin-transform-export-namespace-from": "^7.24.7",
|
|
42
51
|
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
|
|
52
|
+
"@changesets/changelog-git": "^0.2.0",
|
|
43
53
|
"@changesets/changelog-github": "^0.5.0",
|
|
44
54
|
"@changesets/cli": "^2.27.8",
|
|
45
55
|
"@effect/build-utils": "^0.7.7",
|
|
@@ -78,5 +88,6 @@
|
|
|
78
88
|
"patchedDependencies": {
|
|
79
89
|
"@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch",
|
|
80
90
|
"babel-plugin-annotate-pure-calls@0.4.0": "patches/babel-plugin-annotate-pure-calls@0.4.0.patch"
|
|
81
|
-
}
|
|
91
|
+
},
|
|
92
|
+
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
|
|
82
93
|
}
|