@scalar/nextjs-api-reference 0.4.95 → 0.4.96

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,13 @@
1
1
  # @scalar/nextjs-api-reference
2
2
 
3
+ ## 0.4.96
4
+
5
+ ### Patch Changes
6
+
7
+ - dbbe38f: feat: add framework identifier for debugging purposes
8
+ - Updated dependencies [dbbe38f]
9
+ - @scalar/types@0.0.16
10
+
3
11
  ## 0.4.95
4
12
 
5
13
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -140,7 +140,13 @@ const ApiReference = (config) => {
140
140
  config.customCss = nextjsThemeCss;
141
141
  }
142
142
  const cdnString = (config == null ? void 0 : config.cdn) ? config.cdn : "https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest";
143
- const configString = JSON.stringify(config ?? {}).split('"').join(""");
143
+ const defaultConfiguration = {
144
+ _integration: "nextjs"
145
+ };
146
+ const configString = JSON.stringify({
147
+ ...defaultConfiguration,
148
+ ...config ?? {}
149
+ }).split('"').join(""");
144
150
  return async () => {
145
151
  return new Response(
146
152
  `
package/dist/index.js CHANGED
@@ -138,7 +138,13 @@ const ApiReference = (config) => {
138
138
  config.customCss = nextjsThemeCss;
139
139
  }
140
140
  const cdnString = (config == null ? void 0 : config.cdn) ? config.cdn : "https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest";
141
- const configString = JSON.stringify(config ?? {}).split('"').join(""");
141
+ const defaultConfiguration = {
142
+ _integration: "nextjs"
143
+ };
144
+ const configString = JSON.stringify({
145
+ ...defaultConfiguration,
146
+ ...config ?? {}
147
+ }).split('"').join(""");
142
148
  return async () => {
143
149
  return new Response(
144
150
  `
@@ -142,7 +142,13 @@
142
142
  config.customCss = nextjsThemeCss;
143
143
  }
144
144
  const cdnString = (config == null ? void 0 : config.cdn) ? config.cdn : "https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest";
145
- const configString = JSON.stringify(config ?? {}).split('"').join(""");
145
+ const defaultConfiguration = {
146
+ _integration: "nextjs"
147
+ };
148
+ const configString = JSON.stringify({
149
+ ...defaultConfiguration,
150
+ ...config ?? {}
151
+ }).split('"').join(""");
146
152
  return async () => {
147
153
  return new Response(
148
154
  `
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "openapi",
19
19
  "swagger"
20
20
  ],
21
- "version": "0.4.95",
21
+ "version": "0.4.96",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "module": "./dist/index.js",
37
37
  "dependencies": {
38
- "@scalar/types": "0.0.15"
38
+ "@scalar/types": "0.0.16"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^20.14.10",
@@ -46,7 +46,7 @@
46
46
  "react-dom": "^18.3.1",
47
47
  "vite": "^5.2.10",
48
48
  "vite-plugin-dts": "^3.6.3",
49
- "@scalar/api-reference": "1.25.37"
49
+ "@scalar/api-reference": "1.25.38"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": "^18.0.0",