paperclip-github-plugin 0.15.5 → 0.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.js +1 -1
- package/dist/ui/index.js +5 -1
- package/dist/ui/index.js.map +2 -2
- package/dist/worker.js +3 -1
- package/package.json +1 -1
package/dist/worker.js
CHANGED
|
@@ -17507,7 +17507,9 @@ var plugin = definePlugin({
|
|
|
17507
17507
|
throw new Error("A company id is required to update Paperclip board access.");
|
|
17508
17508
|
}
|
|
17509
17509
|
const nextSecretRef = normalizeSecretRef(record.paperclipBoardApiTokenRef);
|
|
17510
|
-
const
|
|
17510
|
+
const boardAccessRecord = record.paperclipBoardAccess && typeof record.paperclipBoardAccess === "object" ? record.paperclipBoardAccess : {};
|
|
17511
|
+
const boardAuthorizationRecord = boardAccessRecord.authorization && typeof boardAccessRecord.authorization === "object" ? boardAccessRecord.authorization : {};
|
|
17512
|
+
const nextBoardApiToken = normalizeGitHubToken(record.paperclipBoardApiToken) ?? normalizeGitHubToken(boardAuthorizationRecord.bearer);
|
|
17511
17513
|
const nextPaperclipBoardApiTokenRefs = {
|
|
17512
17514
|
...previous.paperclipBoardApiTokenRefs ?? {}
|
|
17513
17515
|
};
|