@scalar/nextjs-api-reference 0.8.13 → 0.8.16
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 +20 -0
- package/dist/index.cjs +2 -16
- package/dist/index.js +2 -16
- package/dist/index.umd.cjs +2 -16
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @scalar/nextjs-api-reference
|
|
2
2
|
|
|
3
|
+
## 0.8.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [5f022b5]
|
|
8
|
+
- @scalar/core@0.3.13
|
|
9
|
+
|
|
10
|
+
## 0.8.15
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [7dfbe9e]
|
|
15
|
+
- @scalar/core@0.3.12
|
|
16
|
+
|
|
17
|
+
## 0.8.14
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- @scalar/core@0.3.11
|
|
22
|
+
|
|
3
23
|
## 0.8.13
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -53,22 +53,8 @@ const getHtmlDocument = (givenConfiguration, customTheme2 = "") => {
|
|
|
53
53
|
function getScriptTags(configuration, cdn) {
|
|
54
54
|
const restConfig = { ...configuration };
|
|
55
55
|
const functionProps = [];
|
|
56
|
-
const
|
|
57
|
-
"
|
|
58
|
-
"operationsSorter",
|
|
59
|
-
"generateHeadingSlug",
|
|
60
|
-
"generateModelSlug",
|
|
61
|
-
"generateTagSlug",
|
|
62
|
-
"generateOperationSlug",
|
|
63
|
-
"generateWebhookSlug",
|
|
64
|
-
"onLoaded",
|
|
65
|
-
"redirect",
|
|
66
|
-
"onSpecUpdate",
|
|
67
|
-
"onServerChange"
|
|
68
|
-
];
|
|
69
|
-
for (const key of functionKeys) {
|
|
70
|
-
const value = configuration[key];
|
|
71
|
-
if (value && typeof value === "function") {
|
|
56
|
+
for (const [key, value] of Object.entries(configuration)) {
|
|
57
|
+
if (typeof value === "function") {
|
|
72
58
|
functionProps.push(`"${key}": ${value.toString()}`);
|
|
73
59
|
delete restConfig[key];
|
|
74
60
|
}
|
package/dist/index.js
CHANGED
|
@@ -51,22 +51,8 @@ const getHtmlDocument = (givenConfiguration, customTheme2 = "") => {
|
|
|
51
51
|
function getScriptTags(configuration, cdn) {
|
|
52
52
|
const restConfig = { ...configuration };
|
|
53
53
|
const functionProps = [];
|
|
54
|
-
const
|
|
55
|
-
"
|
|
56
|
-
"operationsSorter",
|
|
57
|
-
"generateHeadingSlug",
|
|
58
|
-
"generateModelSlug",
|
|
59
|
-
"generateTagSlug",
|
|
60
|
-
"generateOperationSlug",
|
|
61
|
-
"generateWebhookSlug",
|
|
62
|
-
"onLoaded",
|
|
63
|
-
"redirect",
|
|
64
|
-
"onSpecUpdate",
|
|
65
|
-
"onServerChange"
|
|
66
|
-
];
|
|
67
|
-
for (const key of functionKeys) {
|
|
68
|
-
const value = configuration[key];
|
|
69
|
-
if (value && typeof value === "function") {
|
|
54
|
+
for (const [key, value] of Object.entries(configuration)) {
|
|
55
|
+
if (typeof value === "function") {
|
|
70
56
|
functionProps.push(`"${key}": ${value.toString()}`);
|
|
71
57
|
delete restConfig[key];
|
|
72
58
|
}
|
package/dist/index.umd.cjs
CHANGED
|
@@ -55,22 +55,8 @@
|
|
|
55
55
|
function getScriptTags(configuration, cdn) {
|
|
56
56
|
const restConfig = { ...configuration };
|
|
57
57
|
const functionProps = [];
|
|
58
|
-
const
|
|
59
|
-
"
|
|
60
|
-
"operationsSorter",
|
|
61
|
-
"generateHeadingSlug",
|
|
62
|
-
"generateModelSlug",
|
|
63
|
-
"generateTagSlug",
|
|
64
|
-
"generateOperationSlug",
|
|
65
|
-
"generateWebhookSlug",
|
|
66
|
-
"onLoaded",
|
|
67
|
-
"redirect",
|
|
68
|
-
"onSpecUpdate",
|
|
69
|
-
"onServerChange"
|
|
70
|
-
];
|
|
71
|
-
for (const key of functionKeys) {
|
|
72
|
-
const value = configuration[key];
|
|
73
|
-
if (value && typeof value === "function") {
|
|
58
|
+
for (const [key, value] of Object.entries(configuration)) {
|
|
59
|
+
if (typeof value === "function") {
|
|
74
60
|
functionProps.push(`"${key}": ${value.toString()}`);
|
|
75
61
|
delete restConfig[key];
|
|
76
62
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"openapi",
|
|
19
19
|
"swagger"
|
|
20
20
|
],
|
|
21
|
-
"version": "0.8.
|
|
21
|
+
"version": "0.8.16",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"module": "./dist/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@scalar/core": "0.3.
|
|
38
|
+
"@scalar/core": "0.3.13"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^22.9.0",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"next": "^15.3.3",
|
|
46
46
|
"react": "^19.1.0",
|
|
47
47
|
"react-dom": "^19.1.0",
|
|
48
|
-
"vite": "
|
|
48
|
+
"vite": "6.1.6",
|
|
49
49
|
"vite-plugin-dts": "^4.3.0",
|
|
50
|
-
"@scalar/api-reference": "1.
|
|
50
|
+
"@scalar/api-reference": "1.34.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"next": "^15.3.3",
|