@theholocron/posthog-client 1.31.0 → 1.32.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.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "@theholocron/http-client";
2
2
  import { ErrorSink, Logger } from "@theholocron/observability/core";
3
- //#region src/utils.d.ts
3
+ //#region ../../../../../src/utils.d.ts
4
4
  interface PostHogClientOptions {
5
5
  token: string;
6
6
  /**
@@ -18,7 +18,7 @@ interface PostHogClientOptions {
18
18
  errors?: ErrorSink;
19
19
  }
20
20
  //#endregion
21
- //#region src/users/users.d.ts
21
+ //#region ../../../../../src/users/users.d.ts
22
22
  interface PostHogOrganization {
23
23
  id: string;
24
24
  slug: string;
@@ -29,7 +29,7 @@ interface PostHogUser {
29
29
  organization: PostHogOrganization;
30
30
  }
31
31
  //#endregion
32
- //#region src/projects/projects.d.ts
32
+ //#region ../../../../../src/projects/projects.d.ts
33
33
  interface PostHogProject {
34
34
  id: number;
35
35
  name: string;
@@ -43,7 +43,7 @@ interface CreatePostHogProjectInput {
43
43
  name: string;
44
44
  }
45
45
  //#endregion
46
- //#region src/index.d.ts
46
+ //#region ../../../../../src/index.d.ts
47
47
  declare function createPostHogClient(opts: PostHogClientOptions): {
48
48
  users: {
49
49
  me: () => Promise<PostHogUser>;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRestClient } from "@theholocron/http-client";
2
- //#region src/projects/projects.ts
2
+ //#region ../../../../../src/projects/projects.ts
3
3
  function projects(rest) {
4
4
  return {
5
5
  /** List all projects accessible with the current token. */
@@ -12,14 +12,14 @@ function projects(rest) {
12
12
  };
13
13
  }
14
14
  //#endregion
15
- //#region src/users/users.ts
15
+ //#region ../../../../../src/users/users.ts
16
16
  function users(rest) {
17
17
  return {
18
18
  /** Get the currently authenticated user. */
19
19
  me: () => rest.request("/api/users/@me/") };
20
20
  }
21
21
  //#endregion
22
- //#region src/utils.ts
22
+ //#region ../../../../../src/utils.ts
23
23
  function createPostHogRestClient(opts) {
24
24
  return createRestClient({
25
25
  baseUrl: opts.baseUrl ?? opts.host ?? "https://app.posthog.com",
@@ -31,7 +31,7 @@ function createPostHogRestClient(opts) {
31
31
  });
32
32
  }
33
33
  //#endregion
34
- //#region src/index.ts
34
+ //#region ../../../../../src/index.ts
35
35
  function createPostHogClient(opts) {
36
36
  const rest = createPostHogRestClient(opts);
37
37
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/posthog-client",
3
- "version": "1.31.0",
3
+ "version": "1.32.1",
4
4
  "description": "A TypeScript client for the PostHog management API",
5
5
  "keywords": [
6
6
  "posthog",
@@ -33,13 +33,13 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@theholocron/observability": "^0.3.0",
36
- "@theholocron/http-client": "^1.31.0"
36
+ "@theholocron/http-client": "^1.32.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@theholocron/cli": "5.0.0-alpha.33",
39
+ "@theholocron/cli": "5.0.0-alpha.79",
40
40
  "@theholocron/eslint-config": "^8.4.3",
41
41
  "@theholocron/tsconfig": "^8.2.0",
42
- "@theholocron/tsdown-config": "^8.2.0",
42
+ "@theholocron/tsdown-config": "^8.6.1",
43
43
  "@theholocron/vitest-config": "^8.2.0",
44
44
  "@types/node": "^26.4.1",
45
45
  "@vitest/coverage-v8": "^5.0.0",
@@ -61,7 +61,7 @@
61
61
  "releases": "https://github.com/theholocron/clients/releases",
62
62
  "wiki": "https://github.com/theholocron/clients/wiki",
63
63
  "scripts": {
64
- "delivery.build": "tsdown",
64
+ "delivery.build": "holocron run delivery.build -- && node ../../scripts/check-bundle-size.mjs",
65
65
  "sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
66
66
  "test:watch": "vitest",
67
67
  "verification.typeSafety": "holocron run verification.typeSafety --",