@eduzz/miau-client 1.4.4 → 1.4.5-rc.22

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/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@eduzz/miau-client",
3
- "version": "1.4.4",
3
+ "version": "1.4.5-rc.22",
4
4
  "description": "Eduzz Miau Client",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
8
- "lint": "eslint && tsc --noEmit",
8
+ "lint": "eslint",
9
+ "typecheck": "tsc --noEmit",
9
10
  "test": "tsx --test src/functions.test.ts",
10
11
  "build": "esbuild src/index.ts --bundle --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
11
12
  "build:types": "tsc --emitDeclarationOnly --outDir dist"
package/src/middleware.ts CHANGED
@@ -102,7 +102,7 @@ export const miauMiddleware = <T>(
102
102
  try {
103
103
  const token = req.headers.authorization?.split(' ').pop() ?? '';
104
104
 
105
- const [miauApplication, miauMetadata] = await auth(token, req.method, req.path, miauClient);
105
+ const [miauApplication, miauMetadata] = await auth(token, req.method, req.baseUrl + req.path, miauClient);
106
106
 
107
107
  req.miauApplication = miauApplication;
108
108
  req.miauMetadata = miauMetadata;