Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@scalar/client-side-rendering

Package Overview
Dependencies
Maintainers
8
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/client-side-rendering - npm Package Compare versions

Comparing version
0.1.12
to
0.1.13
+6
-0
CHANGELOG.md
# @scalar/client-side-rendering
## 0.1.13
### Patch Changes
- [#9326](https://github.com/scalar/scalar/pull/9326): Export `DEFAULT_CDN` so consumers (e.g. `@scalar/astro`) can share the canonical fallback URL instead of duplicating it. Also widens `getConfiguration` to accept `Partial<HtmlRenderingConfiguration>`, removing the need for a `Record<string, unknown>` cast at the boundary.
## 0.1.12

@@ -4,0 +10,0 @@

+3
-1
import type { AnyApiReferenceConfiguration, HtmlRenderingConfiguration } from '@scalar/types/api-reference';
export type { AnyApiReferenceConfiguration, HtmlRenderingConfiguration };
/** Default CDN URL for the @scalar/api-reference standalone bundle. */
export declare const DEFAULT_CDN = "https://cdn.jsdelivr.net/npm/@scalar/api-reference";
/**

@@ -26,3 +28,3 @@ * Render the Scalar API Reference as a complete HTML document using the CDN.

*/
export declare const getConfiguration: (givenConfiguration: Record<string, unknown>) => Record<string, unknown>;
export declare const getConfiguration: (givenConfiguration: Partial<HtmlRenderingConfiguration> | Record<string, unknown>) => Record<string, unknown>;
//# sourceMappingURL=html-rendering.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"html-rendering.d.ts","sourceRoot":"","sources":["../src/html-rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAE3G,YAAY,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,CAAA;AAwDxE;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE;IACP,uCAAuC;IACvC,MAAM,EAAE,4BAA4B,CAAA;IACpC,sDAAsD;IACtD,SAAS,CAAC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://cdn.jsdelivr.net/npm/@scalar/api-reference';
/** Default CDN URL for the @scalar/api-reference standalone bundle. */
export const DEFAULT_CDN = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference';
/**

@@ -3,0 +4,0 @@ * Escape HTML special characters in user-provided strings.

@@ -1,2 +0,2 @@

export { type AnyApiReferenceConfiguration, type HtmlRenderingConfiguration, getConfiguration, getScriptTags, renderApiReference, } from './html-rendering.js';
export { type AnyApiReferenceConfiguration, DEFAULT_CDN, type HtmlRenderingConfiguration, getConfiguration, getScriptTags, renderApiReference, } from './html-rendering.js';
//# sourceMappingURL=index.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,gBAAgB,EAChB,aAAa,EACb,kBAAkB,GACnB,MAAM,kBAAkB,CAAA"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,4BAA4B,EACjC,WAAW,EACX,KAAK,0BAA0B,EAC/B,gBAAgB,EAChB,aAAa,EACb,kBAAkB,GACnB,MAAM,kBAAkB,CAAA"}

@@ -1,1 +0,1 @@

export { getConfiguration, getScriptTags, renderApiReference, } from './html-rendering.js';
export { DEFAULT_CDN, getConfiguration, getScriptTags, renderApiReference, } from './html-rendering.js';

@@ -14,3 +14,3 @@ {

"keywords": [],
"version": "0.1.12",
"version": "0.1.13",
"engines": {

@@ -32,5 +32,5 @@ "node": ">=22"

"dependencies": {
"@scalar/schemas": "0.3.2",
"@scalar/validation": "0.6.0",
"@scalar/types": "0.12.2"
"@scalar/schemas": "0.3.3",
"@scalar/types": "0.12.3",
"@scalar/validation": "0.6.0"
},

@@ -37,0 +37,0 @@ "devDependencies": {