@codeshareme/codeshare-cli 1.0.0 → 1.0.2
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/README.md +2 -2
- package/dist/api.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# codeshare-cli
|
|
1
|
+
# @codeshareme/codeshare-cli
|
|
2
2
|
|
|
3
3
|
> Official CLI for [codeshare.me](https://codeshare.me) — version-control your code snippets directly from the terminal.
|
|
4
4
|
|
|
@@ -35,7 +35,7 @@ Push, pull, diff and track the history of your CodeShare snippets just like you
|
|
|
35
35
|
## Installation
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
npm install -g codeshare-cli
|
|
38
|
+
npm install -g @codeshareme/codeshare-cli
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
Verify the installation:
|
package/dist/api.js
CHANGED
|
@@ -14,6 +14,7 @@ async function request(method, path, body, token) {
|
|
|
14
14
|
method,
|
|
15
15
|
headers: {
|
|
16
16
|
'Content-Type': 'application/json',
|
|
17
|
+
'User-Agent': 'codeshare-cli/1.0.2',
|
|
17
18
|
...(tok ? { Authorization: `Bearer ${tok}` } : {}),
|
|
18
19
|
},
|
|
19
20
|
body: body !== undefined ? JSON.stringify(body) : undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeshareme/codeshare-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Official CLI for codeshare.me — push, pull and version-control your code snippets",
|
|
5
5
|
"homepage": "https://codeshare.me",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,4 +46,4 @@
|
|
|
46
46
|
"tsx": "^4.7.0"
|
|
47
47
|
},
|
|
48
48
|
"type": "module"
|
|
49
|
-
}
|
|
49
|
+
}
|