@scalar/core 0.3.11 → 0.3.14
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,27 @@
|
|
|
1
1
|
# @scalar/core
|
|
2
2
|
|
|
3
|
+
## 0.3.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [50032be]
|
|
8
|
+
- @scalar/types@0.2.13
|
|
9
|
+
|
|
10
|
+
## 0.3.13
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 5f022b5: feat: use registry.scalar.com URLs as example
|
|
15
|
+
- Updated dependencies [6a88108]
|
|
16
|
+
- @scalar/types@0.2.12
|
|
17
|
+
|
|
18
|
+
## 0.3.12
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 7dfbe9e: fix: dynamically handle function properties
|
|
23
|
+
- @scalar/types@0.2.11
|
|
24
|
+
|
|
3
25
|
## 0.3.11
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install @scalar/core
|
|
|
20
20
|
import { getHtmlDocument } from '@scalar/core/libs/html-rendering'
|
|
21
21
|
|
|
22
22
|
const html = getHtmlDocument({
|
|
23
|
-
url: 'https://
|
|
23
|
+
url: 'https://registry.scalar.com/@scalar/apis/galaxy/latest?format=json',
|
|
24
24
|
})
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-rendering.d.ts","sourceRoot":"","sources":["../../../src/libs/html-rendering/html-rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAGxG,YAAY,EAAE,0BAA0B,EAAE,CAAA;AA+C1C;;;;;GAKG;AACH,eAAO,MAAM,eAAe,uBAAwB,OAAO,CAAC,0BAA0B,CAAC,iCAwBtF,CAAA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"html-rendering.d.ts","sourceRoot":"","sources":["../../../src/libs/html-rendering/html-rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAGxG,YAAY,EAAE,0BAA0B,EAAE,CAAA;AA+C1C;;;;;GAKG;AACH,eAAO,MAAM,eAAe,uBAAwB,OAAO,CAAC,0BAA0B,CAAC,iCAwBtF,CAAA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,UA6B5F;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,uBACP,OAAO,CAAC,yBAAyB,CAAC,KACrD,OAAO,CAAC,yBAAyB,CAkBnC,CAAA"}
|
|
@@ -71,22 +71,8 @@ const getHtmlDocument = (givenConfiguration, customTheme = '') => {
|
|
|
71
71
|
function getScriptTags(configuration, cdn) {
|
|
72
72
|
const restConfig = { ...configuration };
|
|
73
73
|
const functionProps = [];
|
|
74
|
-
const
|
|
75
|
-
'
|
|
76
|
-
'operationsSorter',
|
|
77
|
-
'generateHeadingSlug',
|
|
78
|
-
'generateModelSlug',
|
|
79
|
-
'generateTagSlug',
|
|
80
|
-
'generateOperationSlug',
|
|
81
|
-
'generateWebhookSlug',
|
|
82
|
-
'onLoaded',
|
|
83
|
-
'redirect',
|
|
84
|
-
'onSpecUpdate',
|
|
85
|
-
'onServerChange',
|
|
86
|
-
];
|
|
87
|
-
for (const key of functionKeys) {
|
|
88
|
-
const value = configuration[key];
|
|
89
|
-
if (value && typeof value === 'function') {
|
|
74
|
+
for (const [key, value] of Object.entries(configuration)) {
|
|
75
|
+
if (typeof value === 'function') {
|
|
90
76
|
functionProps.push(`"${key}": ${value.toString()}`);
|
|
91
77
|
delete restConfig[key];
|
|
92
78
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "packages/core"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [],
|
|
14
|
-
"version": "0.3.
|
|
14
|
+
"version": "0.3.14",
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=20"
|
|
17
17
|
},
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
],
|
|
36
36
|
"module": "dist/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@scalar/types": "0.2.
|
|
38
|
+
"@scalar/types": "0.2.13"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"vite": "6.1.6",
|
|
42
|
-
"@scalar/build-tooling": "0.2.
|
|
42
|
+
"@scalar/build-tooling": "0.2.6"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "scalar-build-rollup",
|