@scalar/nextjs-api-reference 0.7.2 → 0.7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @scalar/nextjs-api-reference
2
2
 
3
+ ## 0.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7a8965c]
8
+ - Updated dependencies [49dffff]
9
+ - @scalar/types@0.1.2
10
+ - @scalar/core@0.2.2
11
+
3
12
  ## 0.7.2
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -4,8 +4,9 @@ const addIndent = (str, spaces = 2, initialIndent = false) => {
4
4
  const indent = " ".repeat(spaces);
5
5
  const lines = str.split("\n");
6
6
  return lines.map((line, index) => {
7
- if (index === 0 && !initialIndent)
7
+ if (index === 0 && !initialIndent) {
8
8
  return line;
9
+ }
9
10
  return `${indent}${line}`;
10
11
  }).join("\n");
11
12
  };
package/dist/index.js CHANGED
@@ -2,8 +2,9 @@ const addIndent = (str, spaces = 2, initialIndent = false) => {
2
2
  const indent = " ".repeat(spaces);
3
3
  const lines = str.split("\n");
4
4
  return lines.map((line, index) => {
5
- if (index === 0 && !initialIndent)
5
+ if (index === 0 && !initialIndent) {
6
6
  return line;
7
+ }
7
8
  return `${indent}${line}`;
8
9
  }).join("\n");
9
10
  };
@@ -6,8 +6,9 @@
6
6
  const indent = " ".repeat(spaces);
7
7
  const lines = str.split("\n");
8
8
  return lines.map((line, index) => {
9
- if (index === 0 && !initialIndent)
9
+ if (index === 0 && !initialIndent) {
10
10
  return line;
11
+ }
11
12
  return `${indent}${line}`;
12
13
  }).join("\n");
13
14
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "openapi",
19
19
  "swagger"
20
20
  ],
21
- "version": "0.7.2",
21
+ "version": "0.7.3",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -35,8 +35,8 @@
35
35
  ],
36
36
  "module": "./dist/index.js",
37
37
  "dependencies": {
38
- "@scalar/core": "0.2.1",
39
- "@scalar/types": "0.1.1"
38
+ "@scalar/core": "0.2.2",
39
+ "@scalar/types": "0.1.2"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^20.17.10",
@@ -47,7 +47,7 @@
47
47
  "react-dom": "^19.0.0",
48
48
  "vite": "^5.4.10",
49
49
  "vite-plugin-dts": "^4.3.0",
50
- "@scalar/api-reference": "1.28.3"
50
+ "@scalar/api-reference": "1.28.6"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^19.0.0",