File tree Expand file tree Collapse file tree 15 files changed +366
-207
lines changed Expand file tree Collapse file tree 15 files changed +366
-207
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,17 @@ id: 521af75f-d011-41f9-a5ff-9f8033773118
3
3
management:
4
4
docChecksum: a0841885f1d2df6bf65c33550d1be776
5
5
docVersion: 0.4.0
6
- speakeasyVersion: 1.468.0
7
- generationVersion: 2.492.3
8
- releaseVersion: 2.0.12
9
- configChecksum: c27aaa83187732b257c2a86fbfc4b1c5
6
+ speakeasyVersion: 1.468.5
7
+ generationVersion: 2.493.11
8
+ releaseVersion: 2.0.13
9
+ configChecksum: bb0274b648f58e16f339f488f406677b
10
10
repoURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts.git
11
11
installationURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts
12
12
published: true
13
13
features:
14
14
typescript:
15
15
additionalDependencies: 0.1.0
16
- core: 3.18.12
16
+ core: 3.18.14
17
17
defaultEnabledRetries: 0.1.0
18
18
devContainers: 2.90.0
19
19
envVarSecurityUsage: 0.1.2
Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ generation:
16
16
oAuth2ClientCredentialsEnabled : false
17
17
oAuth2PasswordEnabled : false
18
18
typescript :
19
- version : 2.0.12
19
+ version : 2.0.13
20
20
additionalDependencies :
21
21
dependencies : {}
22
22
devDependencies : {}
23
- peerDependencies : {}
23
+ peerDependencies :
24
+ highlight.js : ^11.11.1
24
25
additionalPackageJSON : {}
25
26
author : Speakeasy
26
27
clientServerStatusCodesAsErrors : true
27
28
defaultErrorName : APIError
29
+ enableCustomCodeRegions : false
28
30
enableReactQuery : true
29
31
enumFormat : enum
30
32
flattenGlobalSecurity : true
Original file line number Diff line number Diff line change 1
- speakeasyVersion: 1.468.0
1
+ speakeasyVersion: 1.468.5
2
2
sources:
3
3
speakeasy-OAS:
4
4
sourceNamespace: speakeasy-oas
@@ -13,8 +13,6 @@ targets:
13
13
sourceNamespace: speakeasy-oas
14
14
sourceRevisionDigest: sha256:eccb5c0b494c102a3985fedd96b152ad956b8be90681e6f5f21b5756463f66ab
15
15
sourceBlobDigest: sha256:6d9de4a70686f4366747b9dbf16917300a43dea8857ad6583f35ef3531bffbdb
16
- codeSamplesNamespace: speakeasy-oas-typescript-code-samples
17
- codeSamplesRevisionDigest: sha256:b21e9f5e10bf036c791b2e888f9d5eb8177a85f23f84ebdd01bac5bc90f418f3
18
16
workflow:
19
17
workflowVersion: 1.0.0
20
18
speakeasyVersion: latest
Original file line number Diff line number Diff line change 2
2
3
3
{
4
4
"name" : " @speakeasyapi/code-samples" ,
5
- "version" : " 2.0.12 " ,
5
+ "version" : " 2.0.13 " ,
6
6
"exports" : {
7
7
"." : " ./src/index.ts" ,
8
8
"./models/errors" : " ./src/models/errors/index.ts" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @speakeasyapi/code-samples" ,
3
- "version" : " 2.0.12 " ,
3
+ "version" : " 2.0.13 " ,
4
4
"author" : " Speakeasy" ,
5
5
"type" : " module" ,
6
6
"main" : " ./esm/index.js" ,
54
54
},
55
55
"peerDependencies" : {
56
56
"@tanstack/react-query" : " ^5" ,
57
+ "highlight.js" : " ^11.11.1" ,
57
58
"react" : " ^18 || ^19" ,
58
59
"react-dom" : " ^18 || ^19" ,
59
60
"zod" : " >= 3"
Original file line number Diff line number Diff line change 5
5
import { SpeakeasyCodeSamplesCore } from "../core.js" ;
6
6
import { encodeFormQuery } from "../lib/encodings.js" ;
7
7
import * as M from "../lib/matchers.js" ;
8
+ import { compactMap } from "../lib/primitives.js" ;
8
9
import { safeParse } from "../lib/schemas.js" ;
9
10
import { RequestOptions } from "../lib/sdks.js" ;
10
11
import { extractSecurity , resolveGlobalSecurity } from "../lib/security.js" ;
@@ -65,9 +66,9 @@ export async function codeSamplesGet(
65
66
"registry_url" : payload . registry_url ?? client . _options . registryUrl ,
66
67
} ) ;
67
68
68
- const headers = new Headers ( {
69
+ const headers = new Headers ( compactMap ( {
69
70
Accept : "application/json" ,
70
- } ) ;
71
+ } ) ) ;
71
72
72
73
const secConfig = await extractSecurity ( client . _options . apiKey ) ;
73
74
const securityInput = secConfig == null ? { } : { apiKey : secConfig } ;
Original file line number Diff line number Diff line change
1
+ export function clsx ( ...args : Array < string | undefined > ) {
2
+ let i = 0 ,
3
+ tmp ,
4
+ str = "" ;
5
+ const len = args . length ;
6
+ for ( ; i < len ; i ++ ) {
7
+ if ( ( tmp = args [ i ] ) ) {
8
+ if ( typeof tmp === "string" ) {
9
+ str += ( str && " " ) + tmp ;
10
+ }
11
+ }
12
+ }
13
+ return str ;
14
+ }
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
57
57
export const SDK_METADATA = {
58
58
language : "typescript" ,
59
59
openapiDocVersion : "0.4.0" ,
60
- sdkVersion : "2.0.12 " ,
61
- genVersion : "2.492.3 " ,
60
+ sdkVersion : "2.0.13 " ,
61
+ genVersion : "2.493.11 " ,
62
62
userAgent :
63
- "speakeasy-sdk/typescript 2.0.12 2.492.3 0.4.0 @speakeasyapi/code-samples" ,
63
+ "speakeasy-sdk/typescript 2.0.13 2.493.11 0.4.0 @speakeasyapi/code-samples" ,
64
64
} as const ;
You can’t perform that action at this time.
0 commit comments