@tramvai/papi 2.66.0 → 2.66.3

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -70,7 +70,7 @@ export const papi = createPapiMethod({
70
70
  import { createPapiMethod } from '@tramvai/papi';
71
71
 
72
72
  export const papi = createPapiMethod({
73
- async handler({ query, cookies }) {
73
+ async handler({ parsedUrl: { query }, cookies }) {
74
74
  const { a, b } = query;
75
75
  const { testCookie } = cookie;
76
76
 
@@ -151,7 +151,7 @@ const app = createApp({
151
151
  });
152
152
 
153
153
  export const papi = createPapiMethod({
154
- async handler({ query }) {
154
+ async handler({ parsedUrl: { query } }) {
155
155
  const { cacheKey } = query;
156
156
  const { cache } = this.deps;
157
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/papi",
3
- "version": "2.66.0",
3
+ "version": "2.66.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",