diff --git a/.changeset/great-poems-explode.md b/.changeset/great-poems-explode.md new file mode 100644 index 00000000..dec15a96 --- /dev/null +++ b/.changeset/great-poems-explode.md @@ -0,0 +1,5 @@ +--- +'@vocab/phrase': patch +--- + +Update user-agent when calling Phrase to reference Vocab repository diff --git a/packages/phrase/src/phrase-api.ts b/packages/phrase/src/phrase-api.ts index 309ed230..47eb1d69 100644 --- a/packages/phrase/src/phrase-api.ts +++ b/packages/phrase/src/phrase-api.ts @@ -15,7 +15,7 @@ function _callPhrase(path: string, options: Parameters[1] = {}) { headers: { Authorization: `token ${phraseApiToken}`, // Provide identification via User Agent as requested in https://developers.phrase.com/api/#overview--identification-via-user-agent - 'User-Agent': 'SEEK Demo Candidate App (jhope@seek.com.au)', + 'User-Agent': 'Vocab Client (https://github.com/seek-oss/vocab)', ...options.headers, }, }).then(async (response) => {