@wix/ditto-codegen-public 1.0.370 → 1.0.371
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/out.js +10 -2
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -12535,6 +12535,11 @@ var require_checkpoint = __commonJS({
|
|
|
12535
12535
|
return message.slice(0, MAX_COMMIT_MESSAGE_LENGTH - TRUNCATION_SUFFIX.length) + TRUNCATION_SUFFIX;
|
|
12536
12536
|
};
|
|
12537
12537
|
var useCodeProjectOrchestrator = () => process.env.USE_CODE_PROJECT_ORCHESTRATOR === "true";
|
|
12538
|
+
var wasAuthorizationHeaderSent = (requestHeaders) => {
|
|
12539
|
+
if (typeof requestHeaders !== "object" || requestHeaders === null)
|
|
12540
|
+
return false;
|
|
12541
|
+
return Object.keys(requestHeaders).some((key) => key.toLowerCase() === "authorization");
|
|
12542
|
+
};
|
|
12538
12543
|
var callCreateCheckpoint = async (client, job, commitMessage, logger) => {
|
|
12539
12544
|
if (useCodeProjectOrchestrator()) {
|
|
12540
12545
|
if (!job.siteBranchId) {
|
|
@@ -12554,7 +12559,9 @@ var require_checkpoint = __commonJS({
|
|
|
12554
12559
|
statusText: error.response?.statusText,
|
|
12555
12560
|
code: error.code,
|
|
12556
12561
|
message: error.message,
|
|
12557
|
-
data: error.response?.data
|
|
12562
|
+
data: error.response?.data,
|
|
12563
|
+
responseHeaders: error.response?.headers ?? null,
|
|
12564
|
+
authorizationHeaderSent: wasAuthorizationHeaderSent(error.config?.headers)
|
|
12558
12565
|
});
|
|
12559
12566
|
}
|
|
12560
12567
|
throw error;
|
|
@@ -12583,9 +12590,10 @@ var require_checkpoint = __commonJS({
|
|
|
12583
12590
|
};
|
|
12584
12591
|
var checkpointPluginFactory = (ctx) => {
|
|
12585
12592
|
const { host, job } = ctx;
|
|
12593
|
+
const accessToken = host.auth.getAccessToken();
|
|
12586
12594
|
const orchestratorHttpClient = (0, http_client_1.createHttpClient)({
|
|
12587
12595
|
baseURL: "https://editor.wix.com",
|
|
12588
|
-
headers: { Authorization: `Bearer ${
|
|
12596
|
+
headers: accessToken ? { Authorization: `Bearer ${accessToken}` } : {}
|
|
12589
12597
|
});
|
|
12590
12598
|
let outcome;
|
|
12591
12599
|
let capturedCommitMessage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.371",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"esbuild": "^0.27.2",
|
|
30
30
|
"vitest": "^4.0.16"
|
|
31
31
|
},
|
|
32
|
-
"falconPackageHash": "
|
|
32
|
+
"falconPackageHash": "eee7d8b9eb96cc53dec76765caf89f0e3032e81427968ac5a1db6437"
|
|
33
33
|
}
|