@myapihq/sdk 2.9.0 → 2.10.0
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/container.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/container.js
CHANGED
|
@@ -78,6 +78,11 @@ async function deployContainerSource(apiKey, orgId, containerId, tarball, filena
|
|
|
78
78
|
// dropped here: the options never reached this function at all.
|
|
79
79
|
if (opts.promote === false)
|
|
80
80
|
formData.append('promote', 'false');
|
|
81
|
+
// Multipart takes the assertion as a JSON string. Wired here as well as on
|
|
82
|
+
// the JSON path, because the outage this exists to prevent was a source
|
|
83
|
+
// build and the first version of this flag reached only the image path.
|
|
84
|
+
if (opts.smoke)
|
|
85
|
+
formData.append('smoke', JSON.stringify(opts.smoke));
|
|
81
86
|
const response = await fetch(`${config_1.CONTAINER_BASE}/container/orgs/${encodeURIComponent(orgId)}/containers/${encodeURIComponent(containerId)}/deploy`, { method: 'POST', headers: { Authorization: `Bearer ${apiKey}` }, body: formData });
|
|
82
87
|
let result;
|
|
83
88
|
try {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.10.0";
|
package/dist/version.js
CHANGED
|
@@ -8,4 +8,4 @@ exports.SDK_VERSION = void 0;
|
|
|
8
8
|
// Why a constant and not a package.json read: the SDK runs inside edge
|
|
9
9
|
// functions (Cloudflare Workers), so it must not import node:fs. A literal
|
|
10
10
|
// is the only version source that works in every runtime we ship to.
|
|
11
|
-
exports.SDK_VERSION = '2.
|
|
11
|
+
exports.SDK_VERSION = '2.10.0';
|