Skip to content

Commit

Permalink
Merge branch 'main' into fix-bitbucket-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-gupta7 committed Nov 11, 2024
2 parents 86cd7d5 + fdfc7be commit 619d739
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-pots-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tokens-studio/figma-plugin": patch
---

Disable cache for Bitbucket
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ export class BitbucketTokenStorage extends GitTokenStorage {
headers: {
Authorization: `Basic ${btoa(`${this.username}:${this.secret}`)}`,
},
});
cache: 'no-cache',
});

if (!response.ok) {
throw new Error(`Failed to read from Bitbucket: ${response.statusText}`);
Expand Down Expand Up @@ -190,6 +191,7 @@ export class BitbucketTokenStorage extends GitTokenStorage {
headers: {
Authorization: `Basic ${btoa(`${this.username}:${this.secret}`)}`,
},
cache: 'no-cache',
}).then((rsp) => rsp.text())),
);
// Process the content of each JSON file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ describe('BitbucketTokenStorage', () => {
headers: {
Authorization: `Basic ${btoa('myusername:mock-secret')}`,
},
cache: 'no-cache',
},
);
});
Expand Down

0 comments on commit 619d739

Please sign in to comment.