@sebspark/openapi-express 1.1.3 → 1.1.4

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.js CHANGED
@@ -46,10 +46,8 @@ var TypedRouter = (api, options = {}) => {
46
46
  res.setHeader(name, value);
47
47
  }
48
48
  }
49
- if (data)
50
- res.send(data);
51
- else
52
- res.end();
49
+ if (data) res.send(data);
50
+ else res.end();
53
51
  } catch (error) {
54
52
  next(error);
55
53
  }
package/dist/index.mjs CHANGED
@@ -25,10 +25,8 @@ var TypedRouter = (api, options = {}) => {
25
25
  res.setHeader(name, value);
26
26
  }
27
27
  }
28
- if (data)
29
- res.send(data);
30
- else
31
- res.end();
28
+ if (data) res.send(data);
29
+ else res.end();
32
30
  } catch (error) {
33
31
  next(error);
34
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/openapi-express",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12,7 +12,7 @@
12
12
  "build": "tsup-node src/index.ts --format esm,cjs --dts",
13
13
  "dev": "tsc --watch --noEmit",
14
14
  "lint": "biome check .",
15
- "test": "vitest --passWithNoTests --coverage",
15
+ "test": "vitest run --passWithNoTests --coverage",
16
16
  "typecheck": "vitest --typecheck.only --passWithNoTests"
17
17
  },
18
18
  "devDependencies": {