@bluemarble/bm-components 0.0.98 → 0.0.100

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.mjs CHANGED
@@ -3937,6 +3937,8 @@ var ApiHelper = class _ApiHelper {
3937
3937
  createMethods(methods) {
3938
3938
  return (req, res) => __async(this, null, function* () {
3939
3939
  const currentMethod = methods[req.method];
3940
+ if (req.method === "OPTIONS")
3941
+ return res.status(200).end();
3940
3942
  try {
3941
3943
  if (!currentMethod)
3942
3944
  throw new HttpError(405, "M\xE9todo inv\xE1lido");