Skip to content

Commit e75b4d2

Browse files
committed
Fix typo
1 parent 519a27f commit e75b4d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/http-requests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function appendRecordToURLSearchParams(
3737
const AGENT_HEADER_KEY = "X-Meilisearch-Client";
3838
const CONTENT_TYPE_KEY = "Content-Type";
3939
const AUTHORIZATION_KEY = "Authorization";
40-
const PACAKGE_AGENT = `Meilisearch JavaScript (v${PACKAGE_VERSION})`;
40+
const PACKAGE_AGENT = `Meilisearch JavaScript (v${PACKAGE_VERSION})`;
4141

4242
/**
4343
* Creates a new Headers object from a {@link HeadersInit} and adds various
@@ -56,10 +56,10 @@ function getHeaders(config: Config, headersInit?: HeadersInit): Headers {
5656

5757
// Creates the custom user agent with information on the package used.
5858
if (config.clientAgents !== undefined) {
59-
const agents = config.clientAgents.concat(PACAKGE_AGENT);
59+
const agents = config.clientAgents.concat(PACKAGE_AGENT);
6060
headers.set(AGENT_HEADER_KEY, agents.join(" ; "));
6161
} else {
62-
headers.set(AGENT_HEADER_KEY, PACAKGE_AGENT);
62+
headers.set(AGENT_HEADER_KEY, PACKAGE_AGENT);
6363
}
6464

6565
return headers;

0 commit comments

Comments
 (0)