@seamapi/http
Advanced tools
Comparing version 0.19.0 to 0.20.0
@@ -6,3 +6,4 @@ import type { Client, ClientOptions } from './client.js'; | ||
'seam-sdk-name': string; | ||
'seam-sdk-version': null; | ||
'seam-sdk-version': string; | ||
'seam-lts-version': string; | ||
}; | ||
@@ -9,0 +10,0 @@ export type Options = SeamHttpMultiWorkspaceOptions | (SeamHttpOptions & { |
@@ -0,1 +1,2 @@ | ||
import { seamApiLtsVersion } from '../../../lib/lts-version.js'; | ||
import version from '../../../lib/version.js'; | ||
@@ -8,2 +9,3 @@ import { getAuthHeaders } from './auth.js'; | ||
'seam-sdk-version': version, | ||
'seam-lts-version': seamApiLtsVersion, | ||
}; | ||
@@ -10,0 +12,0 @@ export const parseOptions = (apiKeyOrOptions) => { |
@@ -7,2 +7,4 @@ import { type Client } from './client.js'; | ||
readonly defaults: Required<SeamHttpRequestOptions>; | ||
readonly ltsVersion = "1.0.0"; | ||
static ltsVersion: string; | ||
constructor(apiKeyOrOptions?: string | SeamHttpOptions); | ||
@@ -9,0 +11,0 @@ static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttp; |
@@ -0,1 +1,2 @@ | ||
import { seamApiLtsVersion } from '../../../lib/lts-version.js'; | ||
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from './auth.js'; | ||
@@ -8,2 +9,3 @@ import { createClient } from './client.js'; | ||
constructor(apiKeyOrOptions = {}) { | ||
this.ltsVersion = seamApiLtsVersion; | ||
const options = parseOptions(apiKeyOrOptions); | ||
@@ -124,2 +126,3 @@ this.client = 'client' in options ? options.client : createClient(options); | ||
} | ||
SeamHttp.ltsVersion = seamApiLtsVersion; | ||
//# sourceMappingURL=seam-http.js.map |
@@ -1,2 +0,2 @@ | ||
declare const seamapiJavascriptHttpVersion = "0.19.0"; | ||
declare const seamapiJavascriptHttpVersion = "0.20.0"; | ||
export default seamapiJavascriptHttpVersion; |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '0.19.0'; | ||
const seamapiJavascriptHttpVersion = '0.20.0'; | ||
export default seamapiJavascriptHttpVersion; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@seamapi/http", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "JavaScript HTTP client for the Seam API written in TypeScript.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
# Seam HTTP Client | ||
[![npm](https://img.shields.io/npm/v/@seamapi/http.svg)](https://www.npmjs.com/package/@seamapi/http) | ||
[![Seam LTS Version](https://img.shields.io/badge/Seam_LTS-1.0.0-blue)](https://docs.seam.co/lts) | ||
[![GitHub Actions](https://github.com/seamapi/javascript-http/actions/workflows/check.yml/badge.svg)](https://github.com/seamapi/javascript-http/actions/workflows/check.yml) | ||
@@ -5,0 +6,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { seamApiLtsVersion } from 'lib/lts-version.js' | ||
import version from 'lib/version.js' | ||
@@ -19,2 +20,3 @@ | ||
'seam-sdk-version': version, | ||
'seam-lts-version': seamApiLtsVersion, | ||
} | ||
@@ -21,0 +23,0 @@ |
@@ -0,1 +1,3 @@ | ||
import { seamApiLtsVersion } from 'lib/lts-version.js' | ||
import { | ||
@@ -45,2 +47,4 @@ getAuthHeadersForClientSessionToken, | ||
readonly defaults: Required<SeamHttpRequestOptions> | ||
readonly ltsVersion = seamApiLtsVersion | ||
static ltsVersion = seamApiLtsVersion | ||
@@ -47,0 +51,0 @@ constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '0.19.0' | ||
const seamapiJavascriptHttpVersion = '0.20.0' | ||
export default seamapiJavascriptHttpVersion |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1380184
198
16551
531