@omnibase/core-js 0.1.5 → 0.1.6

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.
@@ -4,6 +4,9 @@ async function switchActiveTenant(tenantId) {
4
4
  if (!baseUrl) {
5
5
  throw new Error("OMNIBASE_API_URL is not configured");
6
6
  }
7
+ if (!tenantId) {
8
+ throw new Error("Tenant ID is required");
9
+ }
7
10
  const requestBody = {
8
11
  tenant_id: tenantId
9
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnibase/core-js",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "OmniBase core Javascript SDK - framework agnostic",
5
5
  "files": [
6
6
  "dist/**/*"
@@ -8,7 +8,8 @@
8
8
  "type": "module",
9
9
  "scripts": {
10
10
  "build": "tsup src/database/index.ts src/tenants/index.ts src/auth/index.ts --format cjs,esm --dts",
11
- "prepublishOnly": "npm run build"
11
+ "prepublishOnly": "npm run build",
12
+ "build:docs": "bunx typedoc"
12
13
  },
13
14
  "exports": {
14
15
  "./auth": {
@@ -35,7 +36,11 @@
35
36
  "license": "MIT",
36
37
  "devDependencies": {
37
38
  "@types/bun": "latest",
38
- "tsup": "^8.5.0"
39
+ "docusaurus-plugin-typedoc": "^1.4.2",
40
+ "tsup": "^8.5.0",
41
+ "typedoc": "^0.28.13",
42
+ "typedoc-github-wiki-theme": "^2.1.0",
43
+ "typedoc-plugin-markdown": "^4.9.0"
39
44
  },
40
45
  "peerDependencies": {
41
46
  "typescript": "^5.9.2"