@pluv/platform-pluv 0.32.9 → 0.33.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/platform-pluv@0.32.9 build /home/runner/work/pluv/pluv/packages/platform-pluv
2
+ > @pluv/platform-pluv@0.33.0 build /home/runner/work/pluv/pluv/packages/platform-pluv
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 8.85 KB
12
- ESM ⚡️ Build success in 71ms
13
11
  CJS dist/index.js 9.75 KB
14
- CJS ⚡️ Build success in 71ms
12
+ CJS ⚡️ Build success in 100ms
13
+ ESM dist/index.mjs 8.85 KB
14
+ ESM ⚡️ Build success in 101ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 6059ms
16
+ DTS ⚡️ Build success in 6378ms
17
17
  DTS dist/index.d.mts 6.99 KB
18
18
  DTS dist/index.d.ts 6.99 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @pluv/platform-pluv
2
2
 
3
+ ## 0.33.0
4
+
5
+ ### Patch Changes
6
+
7
+ - f14b3be: Updated webhooks path to base path.
8
+ - @pluv/crdt@0.33.0
9
+ - @pluv/io@0.33.0
10
+ - @pluv/types@0.33.0
11
+
3
12
  ## 0.32.9
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -163,7 +163,7 @@ var verifyWebhook = (params) => __async(void 0, null, function* () {
163
163
  // src/PluvIO.ts
164
164
  var PluvIO = class {
165
165
  constructor(options) {
166
- this._webhooks = new import_hono.Hono().basePath("/").post("/event", (c) => __async(this, null, function* () {
166
+ this._webhooks = new import_hono.Hono().basePath("/").post("/", (c) => __async(this, null, function* () {
167
167
  var _a, _b;
168
168
  const signature = c.req.header(SIGNATURE_HEADER);
169
169
  if (!this._webhookSecret || !signature) return c.json({ error: "Unauthorized" }, 401);
package/dist/index.mjs CHANGED
@@ -145,7 +145,7 @@ var verifyWebhook = (params) => __async(void 0, null, function* () {
145
145
  // src/PluvIO.ts
146
146
  var PluvIO = class {
147
147
  constructor(options) {
148
- this._webhooks = new Hono().basePath("/").post("/event", (c) => __async(this, null, function* () {
148
+ this._webhooks = new Hono().basePath("/").post("/", (c) => __async(this, null, function* () {
149
149
  var _a, _b;
150
150
  const signature = c.req.header(SIGNATURE_HEADER);
151
151
  if (!this._webhookSecret || !signature) return c.json({ error: "Unauthorized" }, 401);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-pluv",
3
- "version": "0.32.9",
3
+ "version": "0.33.0",
4
4
  "description": "@pluv/io adapter for pluv.io",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,19 +17,19 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@types/node": "^22.8.4",
21
- "hono": "^4.6.8",
20
+ "@types/node": "^22.10.1",
21
+ "hono": "^4.6.13",
22
22
  "zod": "^3.23.8",
23
- "@pluv/crdt": "^0.32.9",
24
- "@pluv/io": "^0.32.9",
25
- "@pluv/types": "^0.32.9"
23
+ "@pluv/crdt": "^0.33.0",
24
+ "@pluv/io": "^0.33.0",
25
+ "@pluv/types": "^0.33.0"
26
26
  },
27
27
  "devDependencies": {
28
- "eslint": "^8.57.0",
28
+ "eslint": "^8.57.1",
29
29
  "tsup": "^8.3.5",
30
- "typescript": "^5.6.3",
31
- "@pluv/tsconfig": "^0.32.9",
32
- "eslint-config-pluv": "^0.32.9"
30
+ "typescript": "^5.7.2",
31
+ "@pluv/tsconfig": "^0.33.0",
32
+ "eslint-config-pluv": "^0.33.0"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/PluvIO.ts CHANGED
@@ -100,7 +100,7 @@ export class PluvIO<TUser extends BaseUser> implements IOLike<PluvAuthorize<TUse
100
100
  return handle(app);
101
101
  }
102
102
 
103
- private _webhooks = new Hono().basePath("/").post("/event", async (c) => {
103
+ private _webhooks = new Hono().basePath("/").post("/", async (c) => {
104
104
  const signature = c.req.header(SIGNATURE_HEADER);
105
105
 
106
106
  if (!this._webhookSecret || !signature) return c.json({ error: "Unauthorized" }, 401);