Skip to content

Commit

Permalink
fix(sdk): Fix the module type of the sdk package
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Jan 5, 2025
1 parent 26e2286 commit 7868e76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ import { createHoarderClient } from "@hoarderapp/sdk";

// Create a client
const apiKey = "my-super-secret-key";
const addr = `https://hoarder.mydomain.com`;
const client = createHoarderClient({
baseUrl: `http://localhost:${port}/api/v1/`,
baseUrl: `${addr}/api/v1/`,
headers: {
"Content-Type": "application/json",
authorization: `Bearer ${apiKey}`,
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@hoarderapp/sdk",
"version": "0.21.0",
"version": "0.21.1",
"description": "Typescript SDK for Hoarder",
"license": "GNU Affero General Public License version 3",
"keywords": [
"hoarder",
"sdk"
],
"main": "./src/index.ts",
"type": "module",
"publishConfig": {
"main": "./dist/index.js",
"exports": "./dist/index.js",
Expand Down

0 comments on commit 7868e76

Please sign in to comment.