@eduzz/miau-client 0.0.17 → 0.0.18

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,4 +1,4 @@
1
1
 
2
- > @eduzz/miau-client@0.0.17 build:types /home/runner/work/eduzz-miau/eduzz-miau/packages/client
2
+ > @eduzz/miau-client@0.0.18 build:types /home/runner/work/eduzz-miau/eduzz-miau/packages/client
3
3
  > tsc --emitDeclarationOnly --outDir dist
4
4
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @eduzz/miau-client@0.0.17 build /home/runner/work/eduzz-miau/eduzz-miau/packages/client
2
+ > @eduzz/miau-client@0.0.18 build /home/runner/work/eduzz-miau/eduzz-miau/packages/client
3
3
  > esbuild src/index.ts --bundle --sourcemap --platform=node --target=es2020 --outfile=dist/index.js
4
4
 
5
5
 
6
- dist/index.js 438.7kb
7
- dist/index.js.map 735.8kb
6
+ dist/index.js 438.6kb
7
+ dist/index.js.map 735.6kb
8
8
 
9
- ⚡ Done in 473ms
9
+ ⚡ Done in 583ms
@@ -1,4 +1,4 @@
1
1
 
2
- > @eduzz/miau-client@0.0.17 prepublish /home/runner/work/eduzz-miau/eduzz-miau/packages/client
2
+ > @eduzz/miau-client@0.0.18 prepublish /home/runner/work/eduzz-miau/eduzz-miau/packages/client
3
3
  > sh ./scripts/prepare-publish.sh
4
4
 
package/dist/index.js CHANGED
@@ -11774,13 +11774,11 @@ var miauMiddleware = (miauClient, requestAugmentation, fallbackMidlleware) => {
11774
11774
  req.miauApplication = { id: appToken?.id, name: appToken?.name };
11775
11775
  req.miauMetadata = permission?.metadata || {};
11776
11776
  if (requestAugmentation) {
11777
- console.log("Request augmentation is being applied");
11778
11777
  requestAugmentation({ req, app: req.miauApplication, meta: req.miauMetadata });
11779
11778
  }
11780
11779
  next();
11781
11780
  } catch (err) {
11782
11781
  if (err instanceof HttpError && err.status == 400 && fallbackMidlleware) {
11783
- console.log("Using fallback middleware for 400 error");
11784
11782
  return fallbackMidlleware(req, res, next);
11785
11783
  }
11786
11784
  const errorStatus = err.status || 403;