@cloudflare/deploy-helpers 0.7.1 → 0.8.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/index.mjs
CHANGED
|
@@ -3,14 +3,14 @@ export { initDeployHelpersContext } from './chunk-Z4LB73IF.mjs';
|
|
|
3
3
|
import { extractBindingsOfType, isUnsafeBindingType, getBindings, createWorkerUploadForm, moduleTypeMimeType } from './chunk-LRKPOFWK.mjs';
|
|
4
4
|
export { convertConfigToBindings, createWorkerUploadForm, extractBindingsOfType, fromMimeType, getBindings, handleUnsafeCapnp, isUnsafeBindingType, moduleTypeMimeType } from './chunk-LRKPOFWK.mjs';
|
|
5
5
|
import { __commonJS, __name, __require, __toESM, __export } from './chunk-Q72B4Q5Z.mjs';
|
|
6
|
-
import
|
|
6
|
+
import assert4 from 'node:assert';
|
|
7
7
|
import { readFileSync, mkdirSync, writeFileSync, createReadStream } from 'node:fs';
|
|
8
8
|
import * as path from 'node:path';
|
|
9
|
-
import path__default, { resolve,
|
|
9
|
+
import path__default, { resolve, isAbsolute, sep, extname } from 'node:path';
|
|
10
10
|
import url2, { URLSearchParams as URLSearchParams$1 } from 'node:url';
|
|
11
11
|
import * as cli from '@cloudflare/cli-shared-helpers';
|
|
12
12
|
import { cancel } from '@cloudflare/cli-shared-helpers';
|
|
13
|
-
import { INHERIT_SYMBOL, APIError, UserError, getEnvironmentVariableFactory, isNonInteractiveOrCI, getHostFromRoute, retryOnAPIFailure, ParseError, getComplianceRegionSubdomain, configFileName, formatTime, getSubdomainMixedStateCheckDisabled, LOGGER_LEVELS, SERVICE_TAG_PREFIX, ENVIRONMENT_TAG_PREFIX, getDurableObjectExports, partitionExports, getWranglerTmpDir, parsePackageJSON, getInstalledPackageVersion, FatalError, readFileSync as readFileSync$1, parseJSON, getBindingTypeFriendlyName, getBindingLocalSupport, assertNever, experimental_readRawConfig, experimental_patchConfig, PatchConfigError, COMPLIANCE_REGION_CONFIG_UNKNOWN, constructWranglerConfig, getCIMatchTag, formatConfigSnippet, DEFAULT_COMPAT_DATE, hasDurableObjectExports, getDockerPath, parseNonHyphenedUuid, getWorkersCIBranchName } from '@cloudflare/workers-utils';
|
|
13
|
+
import { INHERIT_SYMBOL, APIError, UserError, getEnvironmentVariableFactory, isNonInteractiveOrCI, getHostFromRoute, retryOnAPIFailure, ParseError, getComplianceRegionSubdomain, configFileName, formatTime, getSubdomainMixedStateCheckDisabled, LOGGER_LEVELS, SERVICE_TAG_PREFIX, ENVIRONMENT_TAG_PREFIX, getDurableObjectExports, partitionExports, getWranglerTmpDir, parsePackageJSON, getInstalledPackageVersion, FatalError, readFileSync as readFileSync$1, parseJSON, getBindingTypeFriendlyName, getBindingLocalSupport, assertNever, experimental_readRawConfig, experimental_patchConfig, PatchConfigError, COMPLIANCE_REGION_CONFIG_UNKNOWN, constructWranglerConfig, getCIMatchTag, formatConfigSnippet, DEFAULT_COMPAT_DATE, writeOutput, hasDurableObjectExports, getDockerPath, parseNonHyphenedUuid, getWorkersCIBranchName } from '@cloudflare/workers-utils';
|
|
14
14
|
import { execSync, spawn } from 'node:child_process';
|
|
15
15
|
import { Response, FormData } from 'undici';
|
|
16
16
|
import chalk6 from 'chalk';
|
|
@@ -30,7 +30,7 @@ import { createHash } from 'node:crypto';
|
|
|
30
30
|
|
|
31
31
|
// ../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
|
|
32
32
|
var require_ignore = __commonJS({
|
|
33
|
-
"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports, module) {
|
|
33
|
+
"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports$1, module) {
|
|
34
34
|
function makeArray(subject) {
|
|
35
35
|
return Array.isArray(subject) ? subject : [subject];
|
|
36
36
|
}
|
|
@@ -417,7 +417,7 @@ var require_ignore = __commonJS({
|
|
|
417
417
|
|
|
418
418
|
// ../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js
|
|
419
419
|
var require_heap = __commonJS({
|
|
420
|
-
"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js"(exports, module) {
|
|
420
|
+
"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js"(exports$1, module) {
|
|
421
421
|
(function() {
|
|
422
422
|
var Heap, defaultCmp, floor, heapify, heappop, heappush, heappushpop, heapreplace, insort, min, nlargest, nsmallest, updateItem, _siftdown, _siftup;
|
|
423
423
|
floor = Math.floor, min = Math.min;
|
|
@@ -679,7 +679,7 @@ var require_heap = __commonJS({
|
|
|
679
679
|
(function(root, factory) {
|
|
680
680
|
if (typeof define === "function" && define.amd) {
|
|
681
681
|
return define([], factory);
|
|
682
|
-
} else if (typeof exports === "object") {
|
|
682
|
+
} else if (typeof exports$1 === "object") {
|
|
683
683
|
return module.exports = factory();
|
|
684
684
|
} else {
|
|
685
685
|
return root.Heap = factory();
|
|
@@ -687,25 +687,25 @@ var require_heap = __commonJS({
|
|
|
687
687
|
})(this, function() {
|
|
688
688
|
return Heap;
|
|
689
689
|
});
|
|
690
|
-
}).call(exports);
|
|
690
|
+
}).call(exports$1);
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
693
|
|
|
694
694
|
// ../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js
|
|
695
695
|
var require_heap2 = __commonJS({
|
|
696
|
-
"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js"(exports, module) {
|
|
696
|
+
"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js"(exports$1, module) {
|
|
697
697
|
module.exports = require_heap();
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
700
|
|
|
701
701
|
// ../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js
|
|
702
702
|
var require_difflib = __commonJS({
|
|
703
|
-
"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js"(exports) {
|
|
703
|
+
"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js"(exports$1) {
|
|
704
704
|
(function() {
|
|
705
|
-
var Differ, Heap, IS_CHARACTER_JUNK, IS_LINE_JUNK, SequenceMatcher, _any2, _arrayCmp, _calculateRatio, _countLeading, _formatRangeContext, _formatRangeUnified, _has,
|
|
705
|
+
var Differ, Heap, IS_CHARACTER_JUNK, IS_LINE_JUNK, SequenceMatcher, _any2, _arrayCmp, _calculateRatio, _countLeading, _formatRangeContext, _formatRangeUnified, _has, assert11, contextDiff, floor, getCloseMatches, max, min, ndiff, restore, unifiedDiff, indexOf = [].indexOf;
|
|
706
706
|
({ floor, max, min } = Math);
|
|
707
707
|
Heap = require_heap2();
|
|
708
|
-
|
|
708
|
+
assert11 = __require("assert");
|
|
709
709
|
_calculateRatio = /* @__PURE__ */ __name(function(matches, length) {
|
|
710
710
|
if (length) {
|
|
711
711
|
return 2 * matches / length;
|
|
@@ -1276,7 +1276,7 @@ var require_difflib = __commonJS({
|
|
|
1276
1276
|
}
|
|
1277
1277
|
_plainReplace(a, alo, ahi, b, blo, bhi) {
|
|
1278
1278
|
var first, g, l, len, len1, line, lines, m, ref, second;
|
|
1279
|
-
|
|
1279
|
+
assert11(alo < ahi && blo < bhi);
|
|
1280
1280
|
if (bhi - blo < ahi - alo) {
|
|
1281
1281
|
first = this._dump("+", b, blo, bhi);
|
|
1282
1282
|
second = this._dump("-", a, alo, ahi);
|
|
@@ -1620,33 +1620,33 @@ var require_difflib = __commonJS({
|
|
|
1620
1620
|
}
|
|
1621
1621
|
return lines;
|
|
1622
1622
|
}, "restore");
|
|
1623
|
-
exports._arrayCmp = _arrayCmp;
|
|
1624
|
-
exports.SequenceMatcher = SequenceMatcher;
|
|
1625
|
-
exports.getCloseMatches = getCloseMatches;
|
|
1626
|
-
exports._countLeading = _countLeading;
|
|
1627
|
-
exports.Differ = Differ;
|
|
1628
|
-
exports.IS_LINE_JUNK = IS_LINE_JUNK;
|
|
1629
|
-
exports.IS_CHARACTER_JUNK = IS_CHARACTER_JUNK;
|
|
1630
|
-
exports._formatRangeUnified = _formatRangeUnified;
|
|
1631
|
-
exports.unifiedDiff = unifiedDiff;
|
|
1632
|
-
exports._formatRangeContext = _formatRangeContext;
|
|
1633
|
-
exports.contextDiff = contextDiff;
|
|
1634
|
-
exports.ndiff = ndiff;
|
|
1635
|
-
exports.restore = restore;
|
|
1636
|
-
}).call(exports);
|
|
1623
|
+
exports$1._arrayCmp = _arrayCmp;
|
|
1624
|
+
exports$1.SequenceMatcher = SequenceMatcher;
|
|
1625
|
+
exports$1.getCloseMatches = getCloseMatches;
|
|
1626
|
+
exports$1._countLeading = _countLeading;
|
|
1627
|
+
exports$1.Differ = Differ;
|
|
1628
|
+
exports$1.IS_LINE_JUNK = IS_LINE_JUNK;
|
|
1629
|
+
exports$1.IS_CHARACTER_JUNK = IS_CHARACTER_JUNK;
|
|
1630
|
+
exports$1._formatRangeUnified = _formatRangeUnified;
|
|
1631
|
+
exports$1.unifiedDiff = unifiedDiff;
|
|
1632
|
+
exports$1._formatRangeContext = _formatRangeContext;
|
|
1633
|
+
exports$1.contextDiff = contextDiff;
|
|
1634
|
+
exports$1.ndiff = ndiff;
|
|
1635
|
+
exports$1.restore = restore;
|
|
1636
|
+
}).call(exports$1);
|
|
1637
1637
|
}
|
|
1638
1638
|
});
|
|
1639
1639
|
|
|
1640
1640
|
// ../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/index.js
|
|
1641
1641
|
var require_difflib2 = __commonJS({
|
|
1642
|
-
"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/index.js"(exports, module) {
|
|
1642
|
+
"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/index.js"(exports$1, module) {
|
|
1643
1643
|
module.exports = require_difflib();
|
|
1644
1644
|
}
|
|
1645
1645
|
});
|
|
1646
1646
|
|
|
1647
1647
|
// ../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/util.js
|
|
1648
1648
|
var require_util = __commonJS({
|
|
1649
|
-
"../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/util.js"(exports, module) {
|
|
1649
|
+
"../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/util.js"(exports$1, module) {
|
|
1650
1650
|
var extendedTypeOf = /* @__PURE__ */ __name(function(obj) {
|
|
1651
1651
|
const result = typeof obj;
|
|
1652
1652
|
if (obj == null) {
|
|
@@ -1680,7 +1680,7 @@ var require_util = __commonJS({
|
|
|
1680
1680
|
|
|
1681
1681
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/styles.js
|
|
1682
1682
|
var require_styles = __commonJS({
|
|
1683
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/styles.js"(exports, module) {
|
|
1683
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/styles.js"(exports$1, module) {
|
|
1684
1684
|
var styles = {};
|
|
1685
1685
|
module["exports"] = styles;
|
|
1686
1686
|
var codes = {
|
|
@@ -1747,7 +1747,7 @@ var require_styles = __commonJS({
|
|
|
1747
1747
|
|
|
1748
1748
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/system/has-flag.js
|
|
1749
1749
|
var require_has_flag = __commonJS({
|
|
1750
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/system/has-flag.js"(exports, module) {
|
|
1750
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/system/has-flag.js"(exports$1, module) {
|
|
1751
1751
|
module.exports = function(flag, argv) {
|
|
1752
1752
|
argv = argv || process.argv;
|
|
1753
1753
|
var terminatorPos = argv.indexOf("--");
|
|
@@ -1760,7 +1760,7 @@ var require_has_flag = __commonJS({
|
|
|
1760
1760
|
|
|
1761
1761
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/system/supports-colors.js
|
|
1762
1762
|
var require_supports_colors = __commonJS({
|
|
1763
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/system/supports-colors.js"(exports, module) {
|
|
1763
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/system/supports-colors.js"(exports$1, module) {
|
|
1764
1764
|
var os = __require("os");
|
|
1765
1765
|
var hasFlag = require_has_flag();
|
|
1766
1766
|
var env = process.env;
|
|
@@ -1858,7 +1858,7 @@ var require_supports_colors = __commonJS({
|
|
|
1858
1858
|
|
|
1859
1859
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/custom/trap.js
|
|
1860
1860
|
var require_trap = __commonJS({
|
|
1861
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/custom/trap.js"(exports, module) {
|
|
1861
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/custom/trap.js"(exports$1, module) {
|
|
1862
1862
|
module["exports"] = /* @__PURE__ */ __name(function runTheTrap(text, options) {
|
|
1863
1863
|
var result = "";
|
|
1864
1864
|
text = text || "Run the trap, drop the bass";
|
|
@@ -1927,7 +1927,7 @@ var require_trap = __commonJS({
|
|
|
1927
1927
|
|
|
1928
1928
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/custom/zalgo.js
|
|
1929
1929
|
var require_zalgo = __commonJS({
|
|
1930
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/custom/zalgo.js"(exports, module) {
|
|
1930
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/custom/zalgo.js"(exports$1, module) {
|
|
1931
1931
|
module["exports"] = /* @__PURE__ */ __name(function zalgo(text, options) {
|
|
1932
1932
|
text = text || " he is here ";
|
|
1933
1933
|
var soul = {
|
|
@@ -2117,7 +2117,7 @@ var require_zalgo = __commonJS({
|
|
|
2117
2117
|
|
|
2118
2118
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/america.js
|
|
2119
2119
|
var require_america = __commonJS({
|
|
2120
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/america.js"(exports, module) {
|
|
2120
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/america.js"(exports$1, module) {
|
|
2121
2121
|
module["exports"] = function(colors) {
|
|
2122
2122
|
return function(letter, i, exploded) {
|
|
2123
2123
|
if (letter === " ") return letter;
|
|
@@ -2136,7 +2136,7 @@ var require_america = __commonJS({
|
|
|
2136
2136
|
|
|
2137
2137
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/zebra.js
|
|
2138
2138
|
var require_zebra = __commonJS({
|
|
2139
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/zebra.js"(exports, module) {
|
|
2139
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/zebra.js"(exports$1, module) {
|
|
2140
2140
|
module["exports"] = function(colors) {
|
|
2141
2141
|
return function(letter, i, exploded) {
|
|
2142
2142
|
return i % 2 === 0 ? letter : colors.inverse(letter);
|
|
@@ -2147,7 +2147,7 @@ var require_zebra = __commonJS({
|
|
|
2147
2147
|
|
|
2148
2148
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/rainbow.js
|
|
2149
2149
|
var require_rainbow = __commonJS({
|
|
2150
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/rainbow.js"(exports, module) {
|
|
2150
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/rainbow.js"(exports$1, module) {
|
|
2151
2151
|
module["exports"] = function(colors) {
|
|
2152
2152
|
var rainbowColors = ["red", "yellow", "green", "blue", "magenta"];
|
|
2153
2153
|
return function(letter, i, exploded) {
|
|
@@ -2163,7 +2163,7 @@ var require_rainbow = __commonJS({
|
|
|
2163
2163
|
|
|
2164
2164
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/random.js
|
|
2165
2165
|
var require_random = __commonJS({
|
|
2166
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/random.js"(exports, module) {
|
|
2166
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/maps/random.js"(exports$1, module) {
|
|
2167
2167
|
module["exports"] = function(colors) {
|
|
2168
2168
|
var available = [
|
|
2169
2169
|
"underline",
|
|
@@ -2193,7 +2193,7 @@ var require_random = __commonJS({
|
|
|
2193
2193
|
|
|
2194
2194
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/colors.js
|
|
2195
2195
|
var require_colors = __commonJS({
|
|
2196
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/colors.js"(exports, module) {
|
|
2196
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/colors.js"(exports$1, module) {
|
|
2197
2197
|
var colors = {};
|
|
2198
2198
|
module["exports"] = colors;
|
|
2199
2199
|
colors.themes = {};
|
|
@@ -2340,7 +2340,7 @@ var require_colors = __commonJS({
|
|
|
2340
2340
|
|
|
2341
2341
|
// ../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/safe.js
|
|
2342
2342
|
var require_safe = __commonJS({
|
|
2343
|
-
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/safe.js"(exports, module) {
|
|
2343
|
+
"../../node_modules/.pnpm/colors@1.4.0/node_modules/colors/safe.js"(exports$1, module) {
|
|
2344
2344
|
var colors = require_colors();
|
|
2345
2345
|
module["exports"] = colors;
|
|
2346
2346
|
}
|
|
@@ -2348,7 +2348,7 @@ var require_safe = __commonJS({
|
|
|
2348
2348
|
|
|
2349
2349
|
// ../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/colorize.js
|
|
2350
2350
|
var require_colorize = __commonJS({
|
|
2351
|
-
"../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/colorize.js"(exports, module) {
|
|
2351
|
+
"../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/colorize.js"(exports$1, module) {
|
|
2352
2352
|
var color = require_safe();
|
|
2353
2353
|
var { extendedTypeOf } = require_util();
|
|
2354
2354
|
var Theme = {
|
|
@@ -2460,7 +2460,7 @@ var require_colorize = __commonJS({
|
|
|
2460
2460
|
|
|
2461
2461
|
// ../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/index.js
|
|
2462
2462
|
var require_lib = __commonJS({
|
|
2463
|
-
"../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/index.js"(exports, module) {
|
|
2463
|
+
"../../node_modules/.pnpm/json-diff@1.0.6/node_modules/json-diff/lib/index.js"(exports$1, module) {
|
|
2464
2464
|
var { SequenceMatcher } = require_difflib2();
|
|
2465
2465
|
var { extendedTypeOf, roundObj } = require_util();
|
|
2466
2466
|
var { colorize, colorizeToCallback } = require_colorize();
|
|
@@ -4216,8 +4216,19 @@ __name(registerSubdomain, "registerSubdomain");
|
|
|
4216
4216
|
|
|
4217
4217
|
// src/triggers/deploy.ts
|
|
4218
4218
|
async function triggersDeploy(props) {
|
|
4219
|
-
const { config: config2,
|
|
4220
|
-
|
|
4219
|
+
const { config: config2, scriptName, routes, crons } = props;
|
|
4220
|
+
if (props.validated !== true) {
|
|
4221
|
+
validateEventTriggerTargets(config2, scriptName);
|
|
4222
|
+
}
|
|
4223
|
+
if (props.dryRun) {
|
|
4224
|
+
logger.log(`--dry-run: exiting now.`);
|
|
4225
|
+
return;
|
|
4226
|
+
}
|
|
4227
|
+
const { accountId } = props;
|
|
4228
|
+
assert4(accountId);
|
|
4229
|
+
if (props.validated !== true) {
|
|
4230
|
+
await ensureQueuesExistByConfig(config2, accountId, true, scriptName);
|
|
4231
|
+
}
|
|
4221
4232
|
const routesOnly = [];
|
|
4222
4233
|
const customDomainsOnly = [];
|
|
4223
4234
|
for (const route of routes) {
|
|
@@ -6129,7 +6140,7 @@ var MAX_UPLOAD_ATTEMPTS = 5;
|
|
|
6129
6140
|
var MAX_UPLOAD_GATEWAY_ERRORS = 5;
|
|
6130
6141
|
var MAX_DIFF_LINES = 100;
|
|
6131
6142
|
var syncAssets = /* @__PURE__ */ __name(async (complianceConfig, accountId, assetDirectory, scriptName, dispatchNamespace) => {
|
|
6132
|
-
|
|
6143
|
+
assert4(accountId, "Missing accountId");
|
|
6133
6144
|
logger.info("\u{1F300} Building list of assets...");
|
|
6134
6145
|
const manifest = await buildAssetManifest(assetDirectory);
|
|
6135
6146
|
const url3 = dispatchNamespace ? `/accounts/${accountId}/workers/dispatch/namespaces/${dispatchNamespace}/scripts/${scriptName}/assets-upload-session` : `/accounts/${accountId}/workers/scripts/${scriptName}/assets-upload-session`;
|
|
@@ -6743,7 +6754,7 @@ function tagsAreEqual(a, b) {
|
|
|
6743
6754
|
__name(tagsAreEqual, "tagsAreEqual");
|
|
6744
6755
|
async function getMigrationsToUpload(scriptName, props) {
|
|
6745
6756
|
const { config: config2, accountId } = props;
|
|
6746
|
-
|
|
6757
|
+
assert4(accountId, "Missing accountId");
|
|
6747
6758
|
let migrations;
|
|
6748
6759
|
if (config2.migrations.length > 0) {
|
|
6749
6760
|
let script;
|
|
@@ -6831,13 +6842,13 @@ __name(resolveDoLifecyclePayload, "resolveDoLifecyclePayload");
|
|
|
6831
6842
|
async function resolveExportsUploadPayload(props) {
|
|
6832
6843
|
const partitionedExports = partitionExports(props.config.exports);
|
|
6833
6844
|
const { migrations, exports: durableObjectExports } = await resolveDoLifecyclePayload(props);
|
|
6834
|
-
const exports = {
|
|
6845
|
+
const exports$1 = {
|
|
6835
6846
|
...partitionedExports.worker,
|
|
6836
6847
|
...durableObjectExports ?? {}
|
|
6837
6848
|
};
|
|
6838
6849
|
return {
|
|
6839
6850
|
migrations,
|
|
6840
|
-
exports: Object.keys(exports).length > 0 ? exports : void 0
|
|
6851
|
+
exports: Object.keys(exports$1).length > 0 ? exports$1 : void 0
|
|
6841
6852
|
};
|
|
6842
6853
|
}
|
|
6843
6854
|
__name(resolveExportsUploadPayload, "resolveExportsUploadPayload");
|
|
@@ -7373,7 +7384,7 @@ function printBindings(bindings, tailConsumers = [], streamingTailConsumers = []
|
|
|
7373
7384
|
}
|
|
7374
7385
|
if (workflows.length > 0) {
|
|
7375
7386
|
output.push(
|
|
7376
|
-
...workflows.map(({ class_name, script_name, binding
|
|
7387
|
+
...workflows.map(({ class_name, script_name, binding }) => {
|
|
7377
7388
|
let value = class_name;
|
|
7378
7389
|
if (script_name) {
|
|
7379
7390
|
value += ` (defined in ${script_name})`;
|
|
@@ -7383,7 +7394,7 @@ function printBindings(bindings, tailConsumers = [], streamingTailConsumers = []
|
|
|
7383
7394
|
type: getBindingTypeFriendlyName("workflow"),
|
|
7384
7395
|
value,
|
|
7385
7396
|
mode: getMode({
|
|
7386
|
-
isSimulatedLocally:
|
|
7397
|
+
isSimulatedLocally: true
|
|
7387
7398
|
})
|
|
7388
7399
|
};
|
|
7389
7400
|
})
|
|
@@ -8179,7 +8190,7 @@ var R2Handler = class extends ProvisionResourceHandler {
|
|
|
8179
8190
|
);
|
|
8180
8191
|
}
|
|
8181
8192
|
async isConnectedToExistingResource() {
|
|
8182
|
-
|
|
8193
|
+
assert4(typeof this.binding.bucket_name !== "symbol");
|
|
8183
8194
|
if (!this.binding.bucket_name) {
|
|
8184
8195
|
return false;
|
|
8185
8196
|
}
|
|
@@ -8226,7 +8237,7 @@ var AISearchNamespaceHandler = class extends ProvisionResourceHandler {
|
|
|
8226
8237
|
);
|
|
8227
8238
|
}
|
|
8228
8239
|
async isConnectedToExistingResource() {
|
|
8229
|
-
|
|
8240
|
+
assert4(typeof this.binding.namespace !== "symbol");
|
|
8230
8241
|
if (!this.binding.namespace) {
|
|
8231
8242
|
return false;
|
|
8232
8243
|
}
|
|
@@ -8269,7 +8280,7 @@ var AgentMemoryNamespaceHandler = class extends ProvisionResourceHandler {
|
|
|
8269
8280
|
);
|
|
8270
8281
|
}
|
|
8271
8282
|
async isConnectedToExistingResource() {
|
|
8272
|
-
|
|
8283
|
+
assert4(typeof this.binding.namespace !== "symbol");
|
|
8273
8284
|
if (!this.binding.namespace) {
|
|
8274
8285
|
return false;
|
|
8275
8286
|
}
|
|
@@ -8324,7 +8335,7 @@ var QueueHandler = class extends ProvisionResourceHandler {
|
|
|
8324
8335
|
return true;
|
|
8325
8336
|
}
|
|
8326
8337
|
async isConnectedToExistingResource() {
|
|
8327
|
-
|
|
8338
|
+
assert4(typeof this.binding.queue_name !== "symbol");
|
|
8328
8339
|
if (!this.binding.queue_name) {
|
|
8329
8340
|
return false;
|
|
8330
8341
|
}
|
|
@@ -8380,7 +8391,7 @@ var DispatchNamespaceHandler = class extends ProvisionResourceHandler {
|
|
|
8380
8391
|
return true;
|
|
8381
8392
|
}
|
|
8382
8393
|
async isConnectedToExistingResource() {
|
|
8383
|
-
|
|
8394
|
+
assert4(typeof this.binding.namespace !== "symbol");
|
|
8384
8395
|
if (!this.binding.namespace) {
|
|
8385
8396
|
return false;
|
|
8386
8397
|
}
|
|
@@ -8505,7 +8516,7 @@ var D1Handler = class extends ProvisionResourceHandler {
|
|
|
8505
8516
|
return false;
|
|
8506
8517
|
}
|
|
8507
8518
|
async isConnectedToExistingResource() {
|
|
8508
|
-
|
|
8519
|
+
assert4(typeof this.binding.database_name !== "symbol");
|
|
8509
8520
|
if (!this.binding.database_name) {
|
|
8510
8521
|
return false;
|
|
8511
8522
|
}
|
|
@@ -8826,7 +8837,7 @@ async function provisionBindings(bindings, accountId, scriptName, autoCreate, co
|
|
|
8826
8837
|
bindings
|
|
8827
8838
|
);
|
|
8828
8839
|
if (pendingResources.length > 0) {
|
|
8829
|
-
|
|
8840
|
+
assert4(
|
|
8830
8841
|
configPath,
|
|
8831
8842
|
"Provisioning resources is not possible without a config file"
|
|
8832
8843
|
);
|
|
@@ -9904,7 +9915,7 @@ __export(util_exports, {
|
|
|
9904
9915
|
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
9905
9916
|
aborted: () => aborted,
|
|
9906
9917
|
allowsEval: () => allowsEval,
|
|
9907
|
-
assert: () =>
|
|
9918
|
+
assert: () => assert5,
|
|
9908
9919
|
assertEqual: () => assertEqual,
|
|
9909
9920
|
assertIs: () => assertIs,
|
|
9910
9921
|
assertNever: () => assertNever2,
|
|
@@ -9978,9 +9989,9 @@ function assertNever2(_x) {
|
|
|
9978
9989
|
throw new Error("Unexpected value in exhaustive check");
|
|
9979
9990
|
}
|
|
9980
9991
|
__name(assertNever2, "assertNever");
|
|
9981
|
-
function
|
|
9992
|
+
function assert5(_) {
|
|
9982
9993
|
}
|
|
9983
|
-
__name(
|
|
9994
|
+
__name(assert5, "assert");
|
|
9984
9995
|
function getEnumValues(entries) {
|
|
9985
9996
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
9986
9997
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -24361,7 +24372,7 @@ function getSourceMappingPrepareStackTrace(retrieveSourceMap) {
|
|
|
24361
24372
|
}
|
|
24362
24373
|
});
|
|
24363
24374
|
sourceMappingPrepareStackTrace = Error.prepareStackTrace;
|
|
24364
|
-
|
|
24375
|
+
assert4(sourceMappingPrepareStackTrace !== void 0);
|
|
24365
24376
|
Error.prepareStackTrace = originalPrepareStackTrace;
|
|
24366
24377
|
return sourceMappingPrepareStackTrace;
|
|
24367
24378
|
}
|
|
@@ -24423,7 +24434,7 @@ function getSourceMappedString(value, retrieveSourceMap) {
|
|
|
24423
24434
|
}
|
|
24424
24435
|
const callSiteLine = callSiteLines[i][0];
|
|
24425
24436
|
const callSiteAtIndex = callSiteLine.indexOf("at");
|
|
24426
|
-
|
|
24437
|
+
assert4(callSiteAtIndex !== -1);
|
|
24427
24438
|
const callSiteLineLeftPad = callSiteLine.substring(0, callSiteAtIndex);
|
|
24428
24439
|
value = value.replace(
|
|
24429
24440
|
callSiteLine,
|
|
@@ -24888,11 +24899,6 @@ function removeRemoteConfigFieldFromBindings(normalizedConfig) {
|
|
|
24888
24899
|
({ remote: _, ...binding }) => binding
|
|
24889
24900
|
);
|
|
24890
24901
|
}
|
|
24891
|
-
if (normalizedConfig.workflows?.length) {
|
|
24892
|
-
normalizedConfig.workflows = normalizedConfig.workflows.map(
|
|
24893
|
-
({ remote: _, ...binding }) => binding
|
|
24894
|
-
);
|
|
24895
|
-
}
|
|
24896
24902
|
if (normalizedConfig.dispatch_namespaces?.length) {
|
|
24897
24903
|
normalizedConfig.dispatch_namespaces = normalizedConfig.dispatch_namespaces.map(
|
|
24898
24904
|
({ remote: _, ...binding }) => binding
|
|
@@ -25147,10 +25153,10 @@ function populateConfigPatch(diff, patchObj, targetEnvironment) {
|
|
|
25147
25153
|
return;
|
|
25148
25154
|
}
|
|
25149
25155
|
if (Array.isArray(diff)) {
|
|
25150
|
-
|
|
25156
|
+
assert4(Array.isArray(patchObj));
|
|
25151
25157
|
return populateConfigPatchArray(diff, patchObj);
|
|
25152
25158
|
}
|
|
25153
|
-
|
|
25159
|
+
assert4(!Array.isArray(patchObj));
|
|
25154
25160
|
return populateConfigPatchObject(diff, patchObj, targetEnvironment);
|
|
25155
25161
|
}
|
|
25156
25162
|
__name(populateConfigPatch, "populateConfigPatch");
|
|
@@ -25484,7 +25490,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
|
25484
25490
|
if (props.command === "deploy") {
|
|
25485
25491
|
validateEventTriggerTargets(config2, name);
|
|
25486
25492
|
validateRoutes(props.routes, props.assetsOptions);
|
|
25487
|
-
|
|
25493
|
+
assert4(
|
|
25488
25494
|
!config2.site || config2.site.bucket,
|
|
25489
25495
|
"A [site] definition requires a `bucket` field with a path to the site's assets directory."
|
|
25490
25496
|
);
|
|
@@ -25661,6 +25667,21 @@ __name(addWorkersSitesBindings, "addWorkersSitesBindings");
|
|
|
25661
25667
|
|
|
25662
25668
|
// src/deploy/deploy.ts
|
|
25663
25669
|
async function deploy(props, config2, buildResult, callbacks) {
|
|
25670
|
+
const result = await deployWorker(props, config2, buildResult, callbacks);
|
|
25671
|
+
writeOutput({
|
|
25672
|
+
type: "deploy",
|
|
25673
|
+
version: 1,
|
|
25674
|
+
worker_name: props.name ?? null,
|
|
25675
|
+
worker_tag: result.workerTag,
|
|
25676
|
+
version_id: result.versionId,
|
|
25677
|
+
targets: result.targets,
|
|
25678
|
+
wrangler_environment: props.env,
|
|
25679
|
+
worker_name_overridden: props.workerNameOverridden ?? false
|
|
25680
|
+
});
|
|
25681
|
+
return result;
|
|
25682
|
+
}
|
|
25683
|
+
__name(deploy, "deploy");
|
|
25684
|
+
async function deployWorker(props, config2, buildResult, callbacks) {
|
|
25664
25685
|
const { entry, compatibilityDate, compatibilityFlags, keepVars, accountId } = props;
|
|
25665
25686
|
const assetsOptions = resolveAssetOptions(props, config2);
|
|
25666
25687
|
const { name } = validateWorkerProps({ ...props, assetsOptions }, config2);
|
|
@@ -25699,7 +25720,7 @@ async function deploy(props, config2, buildResult, callbacks) {
|
|
|
25699
25720
|
content,
|
|
25700
25721
|
sourceMaps
|
|
25701
25722
|
} = buildResult;
|
|
25702
|
-
const { migrations, exports } = await resolveExportsUploadPayload({
|
|
25723
|
+
const { migrations, exports: exports$1 } = await resolveExportsUploadPayload({
|
|
25703
25724
|
scriptName,
|
|
25704
25725
|
isDryRun,
|
|
25705
25726
|
accountId,
|
|
@@ -25772,7 +25793,7 @@ async function deploy(props, config2, buildResult, callbacks) {
|
|
|
25772
25793
|
name: scriptName,
|
|
25773
25794
|
main,
|
|
25774
25795
|
migrations,
|
|
25775
|
-
exports,
|
|
25796
|
+
exports: exports$1,
|
|
25776
25797
|
modules,
|
|
25777
25798
|
containers: config2.containers,
|
|
25778
25799
|
sourceMaps,
|
|
@@ -25863,7 +25884,7 @@ async function deploy(props, config2, buildResult, callbacks) {
|
|
|
25863
25884
|
{ warnIfNoBindings: true, unsafeMetadata: config2.unsafe?.metadata }
|
|
25864
25885
|
);
|
|
25865
25886
|
} else {
|
|
25866
|
-
|
|
25887
|
+
assert4(accountId, "Missing accountId");
|
|
25867
25888
|
if (assetsOptions?.routerConfig.has_user_worker === false) {
|
|
25868
25889
|
logger.debug("skipping provisioning on assets-only project");
|
|
25869
25890
|
} else if (props.resourcesProvision) {
|
|
@@ -26084,7 +26105,7 @@ async function deploy(props, config2, buildResult, callbacks) {
|
|
|
26084
26105
|
const uploadMs = Date.now() - start;
|
|
26085
26106
|
logger.log("Uploaded", workerName, formatTime(uploadMs));
|
|
26086
26107
|
if (normalisedContainerConfig.length && props.containersRollout !== "none" && callbacks.deployContainers) {
|
|
26087
|
-
|
|
26108
|
+
assert4(versionId && accountId);
|
|
26088
26109
|
await callbacks.deployContainers(config2, normalisedContainerConfig, {
|
|
26089
26110
|
versionId,
|
|
26090
26111
|
accountId,
|
|
@@ -26095,16 +26116,17 @@ async function deploy(props, config2, buildResult, callbacks) {
|
|
|
26095
26116
|
deployWfpUserWorker(props.dispatchNamespace, versionId);
|
|
26096
26117
|
return { versionId, workerTag, assetUploadStats };
|
|
26097
26118
|
}
|
|
26098
|
-
|
|
26119
|
+
assert4(accountId);
|
|
26099
26120
|
const targets = await triggersDeploy({
|
|
26100
26121
|
config: config2,
|
|
26101
26122
|
accountId,
|
|
26102
26123
|
scriptName,
|
|
26103
26124
|
workerTag,
|
|
26104
|
-
env: props.env,
|
|
26105
26125
|
crons: props.triggers,
|
|
26106
26126
|
firstDeploy: !workerExists,
|
|
26107
|
-
routes: props.routes
|
|
26127
|
+
routes: props.routes,
|
|
26128
|
+
validated: true,
|
|
26129
|
+
dryRun: false
|
|
26108
26130
|
});
|
|
26109
26131
|
logger.log("Current Version ID:", versionId);
|
|
26110
26132
|
return {
|
|
@@ -26115,7 +26137,7 @@ async function deploy(props, config2, buildResult, callbacks) {
|
|
|
26115
26137
|
targets: targets ?? []
|
|
26116
26138
|
};
|
|
26117
26139
|
}
|
|
26118
|
-
__name(
|
|
26140
|
+
__name(deployWorker, "deployWorker");
|
|
26119
26141
|
|
|
26120
26142
|
// src/deploy/helpers/binding-depends-on-export.ts
|
|
26121
26143
|
function renderBindingDependsOnExportError(serverMessage) {
|
|
@@ -26129,6 +26151,27 @@ __name(renderBindingDependsOnExportError, "renderBindingDependsOnExportError");
|
|
|
26129
26151
|
|
|
26130
26152
|
// src/deploy/versions-upload.ts
|
|
26131
26153
|
async function versionsUpload(props, config2, buildResult, callbacks) {
|
|
26154
|
+
const result = await uploadWorkerVersion(
|
|
26155
|
+
props,
|
|
26156
|
+
config2,
|
|
26157
|
+
buildResult,
|
|
26158
|
+
callbacks
|
|
26159
|
+
);
|
|
26160
|
+
writeOutput({
|
|
26161
|
+
type: "version-upload",
|
|
26162
|
+
version: 1,
|
|
26163
|
+
worker_name: props.name ?? null,
|
|
26164
|
+
worker_tag: result.workerTag,
|
|
26165
|
+
version_id: result.versionId,
|
|
26166
|
+
preview_url: result.versionPreviewUrl,
|
|
26167
|
+
preview_alias_url: result.versionPreviewAliasUrl,
|
|
26168
|
+
wrangler_environment: props.env,
|
|
26169
|
+
worker_name_overridden: props.workerNameOverridden ?? false
|
|
26170
|
+
});
|
|
26171
|
+
return result;
|
|
26172
|
+
}
|
|
26173
|
+
__name(versionsUpload, "versionsUpload");
|
|
26174
|
+
async function uploadWorkerVersion(props, config2, buildResult, callbacks) {
|
|
26132
26175
|
const { entry, compatibilityDate, compatibilityFlags, keepVars, accountId } = props;
|
|
26133
26176
|
const assetsOptions = resolveAssetOptions(props, config2);
|
|
26134
26177
|
const { name } = validateWorkerProps(props, config2);
|
|
@@ -26159,7 +26202,7 @@ async function versionsUpload(props, config2, buildResult, callbacks) {
|
|
|
26159
26202
|
hidden: true
|
|
26160
26203
|
};
|
|
26161
26204
|
}
|
|
26162
|
-
const { migrations, exports } = await resolveExportsUploadPayload({
|
|
26205
|
+
const { migrations, exports: exports$1 } = await resolveExportsUploadPayload({
|
|
26163
26206
|
scriptName,
|
|
26164
26207
|
isDryRun: props.dryRun,
|
|
26165
26208
|
accountId,
|
|
@@ -26194,7 +26237,7 @@ async function versionsUpload(props, config2, buildResult, callbacks) {
|
|
|
26194
26237
|
name: scriptName,
|
|
26195
26238
|
main,
|
|
26196
26239
|
migrations,
|
|
26197
|
-
exports,
|
|
26240
|
+
exports: exports$1,
|
|
26198
26241
|
modules,
|
|
26199
26242
|
containers: config2.containers,
|
|
26200
26243
|
sourceMaps,
|
|
@@ -26248,7 +26291,7 @@ async function versionsUpload(props, config2, buildResult, callbacks) {
|
|
|
26248
26291
|
{ unsafeMetadata: config2.unsafe?.metadata }
|
|
26249
26292
|
);
|
|
26250
26293
|
} else {
|
|
26251
|
-
|
|
26294
|
+
assert4(accountId, "Missing accountId");
|
|
26252
26295
|
if (assetsOptions?.routerConfig.has_user_worker === false) {
|
|
26253
26296
|
logger.debug("skipping provisioning on assets-only project");
|
|
26254
26297
|
} else if (props.resourcesProvision) {
|
|
@@ -26362,7 +26405,7 @@ async function versionsUpload(props, config2, buildResult, callbacks) {
|
|
|
26362
26405
|
logger.log(`--dry-run: exiting now.`);
|
|
26363
26406
|
return { versionId, workerTag };
|
|
26364
26407
|
}
|
|
26365
|
-
|
|
26408
|
+
assert4(accountId);
|
|
26366
26409
|
const uploadMs = Date.now() - start;
|
|
26367
26410
|
logger.log("Uploaded", workerName, formatTime(uploadMs));
|
|
26368
26411
|
logger.log("Worker Version ID:", versionId);
|
|
@@ -26402,7 +26445,19 @@ Changes to triggers (routes, custom domains, cron schedules, etc) must be applie
|
|
|
26402
26445
|
versionPreviewAliasUrl
|
|
26403
26446
|
};
|
|
26404
26447
|
}
|
|
26405
|
-
__name(
|
|
26448
|
+
__name(uploadWorkerVersion, "uploadWorkerVersion");
|
|
26449
|
+
var SHORT_HASH_LENGTH = 7;
|
|
26450
|
+
function truncateWithSuffix(body, suffix, maxLength) {
|
|
26451
|
+
const maxBodyLength = Math.max(0, maxLength - suffix.length);
|
|
26452
|
+
return `${body.slice(0, maxBodyLength)}${suffix}`;
|
|
26453
|
+
}
|
|
26454
|
+
__name(truncateWithSuffix, "truncateWithSuffix");
|
|
26455
|
+
function shortHash(input) {
|
|
26456
|
+
return createHash("sha256").update(input).digest().readUInt32BE(0).toString(36).padStart(SHORT_HASH_LENGTH, "0");
|
|
26457
|
+
}
|
|
26458
|
+
__name(shortHash, "shortHash");
|
|
26459
|
+
|
|
26460
|
+
// src/deploy/helpers/preview-alias.ts
|
|
26406
26461
|
var MAX_DNS_LABEL_LENGTH = 63;
|
|
26407
26462
|
var HASH_LENGTH = 4;
|
|
26408
26463
|
var ALIAS_VALIDATION_REGEX = /^[a-z](?:[a-z0-9-]*[a-z0-9])?$/i;
|
|
@@ -26424,14 +26479,12 @@ function getBranchName() {
|
|
|
26424
26479
|
}
|
|
26425
26480
|
__name(getBranchName, "getBranchName");
|
|
26426
26481
|
function createTruncatedAlias(branchName, sanitizedAlias, availableSpace) {
|
|
26427
|
-
const
|
|
26428
|
-
const
|
|
26429
|
-
if (
|
|
26482
|
+
const hash2 = createHash("sha256").update(branchName).digest("hex").slice(0, HASH_LENGTH);
|
|
26483
|
+
const suffix = `-${hash2}`;
|
|
26484
|
+
if (availableSpace - suffix.length < 1) {
|
|
26430
26485
|
return void 0;
|
|
26431
26486
|
}
|
|
26432
|
-
|
|
26433
|
-
const truncatedPrefix = sanitizedAlias.slice(0, maxPrefixLength);
|
|
26434
|
-
return `${truncatedPrefix}-${hash2}`;
|
|
26487
|
+
return truncateWithSuffix(sanitizedAlias, suffix, availableSpace);
|
|
26435
26488
|
}
|
|
26436
26489
|
__name(createTruncatedAlias, "createTruncatedAlias");
|
|
26437
26490
|
function generatePreviewAlias(scriptName) {
|
|
@@ -26509,6 +26562,20 @@ function renderInconsistentExportsAcrossVersionsError(serverMessage) {
|
|
|
26509
26562
|
__name(renderInconsistentExportsAcrossVersionsError, "renderInconsistentExportsAcrossVersionsError");
|
|
26510
26563
|
|
|
26511
26564
|
// src/preview/api.ts
|
|
26565
|
+
async function createPreviewParentWorker(config2, accountId, workerName, workersDevEnabled, previewsEnabled) {
|
|
26566
|
+
await fetchResult(config2, `/accounts/${accountId}/workers/workers`, {
|
|
26567
|
+
method: "POST",
|
|
26568
|
+
headers: { "Content-Type": "application/json" },
|
|
26569
|
+
body: JSON.stringify({
|
|
26570
|
+
name: workerName,
|
|
26571
|
+
subdomain: {
|
|
26572
|
+
enabled: workersDevEnabled,
|
|
26573
|
+
previews_enabled: previewsEnabled
|
|
26574
|
+
}
|
|
26575
|
+
})
|
|
26576
|
+
});
|
|
26577
|
+
}
|
|
26578
|
+
__name(createPreviewParentWorker, "createPreviewParentWorker");
|
|
26512
26579
|
async function getPreview(config2, accountId, workerName, previewIdentifier) {
|
|
26513
26580
|
return fetchResult(
|
|
26514
26581
|
config2,
|
|
@@ -26637,6 +26704,7 @@ async function patchPreviewBaseConfig(config2, accountId, workerName, previewBas
|
|
|
26637
26704
|
return worker.previews_base_config ?? {};
|
|
26638
26705
|
}
|
|
26639
26706
|
__name(patchPreviewBaseConfig, "patchPreviewBaseConfig");
|
|
26707
|
+
var MAX_CONTAINER_APP_NAME_LENGTH = 253;
|
|
26640
26708
|
function getBranchName2() {
|
|
26641
26709
|
const workersCIBranch = getWorkersCIBranchName();
|
|
26642
26710
|
if (workersCIBranch) {
|
|
@@ -26910,6 +26978,56 @@ function extractConfigBindings(config2) {
|
|
|
26910
26978
|
return env;
|
|
26911
26979
|
}
|
|
26912
26980
|
__name(extractConfigBindings, "extractConfigBindings");
|
|
26981
|
+
function getDeclaredDOClassNames(config2) {
|
|
26982
|
+
const declared = /* @__PURE__ */ new Set();
|
|
26983
|
+
for (const migration of config2.migrations ?? []) {
|
|
26984
|
+
for (const className of migration.deleted_classes ?? []) {
|
|
26985
|
+
declared.delete(className);
|
|
26986
|
+
}
|
|
26987
|
+
for (const { from, to } of migration.renamed_classes ?? []) {
|
|
26988
|
+
declared.delete(from);
|
|
26989
|
+
declared.add(to);
|
|
26990
|
+
}
|
|
26991
|
+
for (const className of migration.new_classes ?? []) {
|
|
26992
|
+
declared.add(className);
|
|
26993
|
+
}
|
|
26994
|
+
for (const className of migration.new_sqlite_classes ?? []) {
|
|
26995
|
+
declared.add(className);
|
|
26996
|
+
}
|
|
26997
|
+
}
|
|
26998
|
+
for (const [className, entry] of Object.entries(
|
|
26999
|
+
getDurableObjectExports(config2.exports)
|
|
27000
|
+
)) {
|
|
27001
|
+
if (entry.state === void 0 || entry.state === "created" || entry.state === "expecting-transfer") {
|
|
27002
|
+
declared.add(className);
|
|
27003
|
+
}
|
|
27004
|
+
}
|
|
27005
|
+
return declared;
|
|
27006
|
+
}
|
|
27007
|
+
__name(getDeclaredDOClassNames, "getDeclaredDOClassNames");
|
|
27008
|
+
function getPreviewOwnedContainerClassNames(config2, previews) {
|
|
27009
|
+
const owned = getDeclaredDOClassNames(config2);
|
|
27010
|
+
for (const binding of previews?.durable_objects?.bindings ?? []) {
|
|
27011
|
+
if (binding.script_name === void 0) {
|
|
27012
|
+
owned.add(binding.class_name);
|
|
27013
|
+
}
|
|
27014
|
+
}
|
|
27015
|
+
return owned;
|
|
27016
|
+
}
|
|
27017
|
+
__name(getPreviewOwnedContainerClassNames, "getPreviewOwnedContainerClassNames");
|
|
27018
|
+
function previewContainerAppName(parentWorkerName, previewSlug, className) {
|
|
27019
|
+
const composed = `${parentWorkerName}_${previewSlug}_${className}`;
|
|
27020
|
+
const normalised = composed.replace(/[^A-Za-z0-9_-]/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, "").replace(/^(?=[0-9])/, "w");
|
|
27021
|
+
if (normalised === composed && normalised.length <= MAX_CONTAINER_APP_NAME_LENGTH) {
|
|
27022
|
+
return normalised;
|
|
27023
|
+
}
|
|
27024
|
+
return truncateWithSuffix(
|
|
27025
|
+
normalised,
|
|
27026
|
+
`_${shortHash(composed)}`,
|
|
27027
|
+
MAX_CONTAINER_APP_NAME_LENGTH
|
|
27028
|
+
);
|
|
27029
|
+
}
|
|
27030
|
+
__name(previewContainerAppName, "previewContainerAppName");
|
|
26913
27031
|
function assemblePreviewScriptSettings(config2) {
|
|
26914
27032
|
const previews = config2.previews;
|
|
26915
27033
|
const result = {};
|
|
@@ -26950,6 +27068,89 @@ function assemblePreviewDefaults(config2) {
|
|
|
26950
27068
|
return previewDefaults;
|
|
26951
27069
|
}
|
|
26952
27070
|
__name(assemblePreviewDefaults, "assemblePreviewDefaults");
|
|
27071
|
+
function buildPreviewContainerConfig(config2, parentWorkerName, previewSlug, previewContainers) {
|
|
27072
|
+
const previews = config2.previews;
|
|
27073
|
+
const previewDOBindings = previews?.durable_objects?.bindings ?? [];
|
|
27074
|
+
const ownedDOClasses = getPreviewOwnedContainerClassNames(config2, previews);
|
|
27075
|
+
const linkedContainers = previewContainers.map((container) => {
|
|
27076
|
+
const className = container.class_name;
|
|
27077
|
+
if (className === void 0) {
|
|
27078
|
+
throw new UserError(
|
|
27079
|
+
`A container entry in "previews.containers" is missing "class_name". A preview container must name the Durable Object class it backs, even where a Durable Object declared in "exports" names its container instead.`,
|
|
27080
|
+
{
|
|
27081
|
+
telemetryMessage: "preview container missing class_name"
|
|
27082
|
+
}
|
|
27083
|
+
);
|
|
27084
|
+
}
|
|
27085
|
+
return { container, className };
|
|
27086
|
+
});
|
|
27087
|
+
for (const { className } of linkedContainers) {
|
|
27088
|
+
if (ownedDOClasses.has(className) || previewDOBindings.some((b) => b.class_name === className)) {
|
|
27089
|
+
continue;
|
|
27090
|
+
}
|
|
27091
|
+
throw new UserError(
|
|
27092
|
+
`The container class_name "${className}" in "previews.containers" does not match any Durable Object class in your ${configFileName(config2.configPath)} file. Declare the class in "migrations" or "exports", or bind it under "previews.durable_objects".`,
|
|
27093
|
+
{
|
|
27094
|
+
telemetryMessage: "no preview DO class matches container class_name"
|
|
27095
|
+
}
|
|
27096
|
+
);
|
|
27097
|
+
}
|
|
27098
|
+
const filteredContainers = linkedContainers.filter(({ className }) => ownedDOClasses.has(className)).map(({ container, className }) => ({
|
|
27099
|
+
...container,
|
|
27100
|
+
name: previewContainerAppName(parentWorkerName, previewSlug, className)
|
|
27101
|
+
}));
|
|
27102
|
+
if (filteredContainers.length === 0) {
|
|
27103
|
+
return void 0;
|
|
27104
|
+
}
|
|
27105
|
+
const localBindingsFirst = [
|
|
27106
|
+
...previewDOBindings.filter((b) => b.script_name === void 0),
|
|
27107
|
+
...previewDOBindings.filter((b) => b.script_name !== void 0)
|
|
27108
|
+
];
|
|
27109
|
+
const observability = previews?.observability ?? config2.observability;
|
|
27110
|
+
return {
|
|
27111
|
+
...config2,
|
|
27112
|
+
containers: filteredContainers,
|
|
27113
|
+
durable_objects: {
|
|
27114
|
+
bindings: localBindingsFirst
|
|
27115
|
+
},
|
|
27116
|
+
observability
|
|
27117
|
+
};
|
|
27118
|
+
}
|
|
27119
|
+
__name(buildPreviewContainerConfig, "buildPreviewContainerConfig");
|
|
27120
|
+
async function prepareContainersForPreview(config2, workerName, previewSlug, callbacks) {
|
|
27121
|
+
const previewContainers = config2.previews?.containers ?? [];
|
|
27122
|
+
if (previewContainers.length === 0 || !callbacks.getNormalizedContainerOptions) {
|
|
27123
|
+
return { scopedContainerConfig: void 0, normalisedContainerConfig: [] };
|
|
27124
|
+
}
|
|
27125
|
+
const scopedContainerConfig = buildPreviewContainerConfig(
|
|
27126
|
+
config2,
|
|
27127
|
+
workerName,
|
|
27128
|
+
previewSlug,
|
|
27129
|
+
previewContainers
|
|
27130
|
+
);
|
|
27131
|
+
if (!scopedContainerConfig) {
|
|
27132
|
+
return { scopedContainerConfig: void 0, normalisedContainerConfig: [] };
|
|
27133
|
+
}
|
|
27134
|
+
const normalisedContainerConfig = await callbacks.getNormalizedContainerOptions(scopedContainerConfig, {
|
|
27135
|
+
dryRun: false
|
|
27136
|
+
});
|
|
27137
|
+
const containersNeedingDocker = normalisedContainerConfig.filter(
|
|
27138
|
+
(container) => "dockerfile" in container
|
|
27139
|
+
);
|
|
27140
|
+
if (containersNeedingDocker.length > 0) {
|
|
27141
|
+
await verifyDockerInstalled({
|
|
27142
|
+
dockerPath: getDockerPath(),
|
|
27143
|
+
operation: "creating a preview",
|
|
27144
|
+
imageNoun: containersNeedingDocker.length !== 1 ? "the configured images" : "the configured image",
|
|
27145
|
+
hint: 'If you cannot run Docker locally, set "image" to a prebuilt registry image instead of a Dockerfile path for the affected entries in "previews.containers".'
|
|
27146
|
+
});
|
|
27147
|
+
}
|
|
27148
|
+
if (callbacks.verifyContainersScope) {
|
|
27149
|
+
await callbacks.verifyContainersScope(scopedContainerConfig);
|
|
27150
|
+
}
|
|
27151
|
+
return { scopedContainerConfig, normalisedContainerConfig };
|
|
27152
|
+
}
|
|
27153
|
+
__name(prepareContainersForPreview, "prepareContainersForPreview");
|
|
26953
27154
|
function toBase64(content) {
|
|
26954
27155
|
return Buffer.from(content).toString("base64");
|
|
26955
27156
|
}
|
|
@@ -27108,6 +27309,16 @@ async function assemblePreviewDeploymentSettings(config2, buildResult, accountId
|
|
|
27108
27309
|
if (config2.placement) {
|
|
27109
27310
|
request2.placement = parseConfigPlacement(config2);
|
|
27110
27311
|
}
|
|
27312
|
+
const previewContainers = previews?.containers ?? [];
|
|
27313
|
+
if (previewContainers.length > 0) {
|
|
27314
|
+
const ownedDOClasses = getPreviewOwnedContainerClassNames(config2, previews);
|
|
27315
|
+
const containers = previewContainers.flatMap(
|
|
27316
|
+
({ class_name }) => class_name !== void 0 && ownedDOClasses.has(class_name) ? [{ class_name }] : []
|
|
27317
|
+
);
|
|
27318
|
+
if (containers.length > 0) {
|
|
27319
|
+
request2.containers = containers;
|
|
27320
|
+
}
|
|
27321
|
+
}
|
|
27111
27322
|
const env = extractConfigBindings(config2);
|
|
27112
27323
|
if (Object.keys(env).length > 0) {
|
|
27113
27324
|
request2.env = env;
|
|
@@ -27163,7 +27374,37 @@ ${Object.entries(missingBindings).map(
|
|
|
27163
27374
|
Either include these bindings in the ${chalk6.cyan(`"previews"`)} field of your Wrangler config or update the Previews settings of your Worker in the Cloudflare dashboard.`);
|
|
27164
27375
|
}
|
|
27165
27376
|
__name(logMissingPreviewsBindingsWarning, "logMissingPreviewsBindingsWarning");
|
|
27166
|
-
async function
|
|
27377
|
+
async function provisionParentWorker(config2, accountId, workerName, json2) {
|
|
27378
|
+
const confirmed = json2 || await confirm(
|
|
27379
|
+
`Worker "${workerName}" does not exist yet. Would you like to create it for this Preview?`,
|
|
27380
|
+
// Default to true so CI and Workers Builds can create Previews unattended.
|
|
27381
|
+
{ defaultValue: true, fallbackValue: true }
|
|
27382
|
+
);
|
|
27383
|
+
if (!confirmed) {
|
|
27384
|
+
throw new UserError(
|
|
27385
|
+
`Cannot create a Preview because the Worker "${workerName}" does not exist.`,
|
|
27386
|
+
{ telemetryMessage: "preview command parent worker not created" }
|
|
27387
|
+
);
|
|
27388
|
+
}
|
|
27389
|
+
if (!json2) {
|
|
27390
|
+
logger.log(`\u{1F300} Creating new Worker "${workerName}"...`);
|
|
27391
|
+
}
|
|
27392
|
+
const routes = config2.routes ?? (config2.route ? [config2.route] : []);
|
|
27393
|
+
const { workers_dev, preview_urls } = getSubdomainValues(
|
|
27394
|
+
config2.workers_dev,
|
|
27395
|
+
config2.preview_urls,
|
|
27396
|
+
routes
|
|
27397
|
+
);
|
|
27398
|
+
await createPreviewParentWorker(
|
|
27399
|
+
config2,
|
|
27400
|
+
accountId,
|
|
27401
|
+
workerName,
|
|
27402
|
+
workers_dev,
|
|
27403
|
+
preview_urls ?? workers_dev
|
|
27404
|
+
);
|
|
27405
|
+
}
|
|
27406
|
+
__name(provisionParentWorker, "provisionParentWorker");
|
|
27407
|
+
async function preview(accountId, args, config2, buildResult, assetsOptions, callbacks) {
|
|
27167
27408
|
const workerName = resolveWorkerName(args, config2);
|
|
27168
27409
|
let previewName = args.name;
|
|
27169
27410
|
if (!previewName) {
|
|
@@ -27188,7 +27429,14 @@ async function preview(accountId, args, config2, buildResult, assetsOptions) {
|
|
|
27188
27429
|
previewIdentifier
|
|
27189
27430
|
);
|
|
27190
27431
|
} catch (e) {
|
|
27191
|
-
if (
|
|
27432
|
+
if (isWorkerNotFoundError(e)) {
|
|
27433
|
+
await provisionParentWorker(
|
|
27434
|
+
config2,
|
|
27435
|
+
accountId,
|
|
27436
|
+
workerName,
|
|
27437
|
+
args.json ?? false
|
|
27438
|
+
);
|
|
27439
|
+
} else if (!(e instanceof Error && "code" in e && e.code === 10025)) {
|
|
27192
27440
|
throw e;
|
|
27193
27441
|
}
|
|
27194
27442
|
}
|
|
@@ -27216,6 +27464,12 @@ async function preview(accountId, args, config2, buildResult, assetsOptions) {
|
|
|
27216
27464
|
previewResource = existingPreview;
|
|
27217
27465
|
}
|
|
27218
27466
|
}
|
|
27467
|
+
const { scopedContainerConfig, normalisedContainerConfig } = await prepareContainersForPreview(
|
|
27468
|
+
config2,
|
|
27469
|
+
workerName,
|
|
27470
|
+
previewResource.slug,
|
|
27471
|
+
callbacks
|
|
27472
|
+
);
|
|
27219
27473
|
const deploymentRequest = await assemblePreviewDeploymentSettings(
|
|
27220
27474
|
config2,
|
|
27221
27475
|
buildResult,
|
|
@@ -27235,6 +27489,22 @@ async function preview(accountId, args, config2, buildResult, assetsOptions) {
|
|
|
27235
27489
|
previewResource.id,
|
|
27236
27490
|
deploymentRequest
|
|
27237
27491
|
);
|
|
27492
|
+
if (normalisedContainerConfig.length > 0 && scopedContainerConfig && callbacks.deployPreviewContainers) {
|
|
27493
|
+
try {
|
|
27494
|
+
await callbacks.deployPreviewContainers(
|
|
27495
|
+
scopedContainerConfig,
|
|
27496
|
+
normalisedContainerConfig,
|
|
27497
|
+
deployment,
|
|
27498
|
+
accountId,
|
|
27499
|
+
{ quiet: args.json === true }
|
|
27500
|
+
);
|
|
27501
|
+
} catch (error51) {
|
|
27502
|
+
logger.warn(
|
|
27503
|
+
`The preview "${previewResource.name}" was created, but its containers did not come up. Its Durable Objects have no container backing them until the containers are applied successfully.`
|
|
27504
|
+
);
|
|
27505
|
+
throw error51;
|
|
27506
|
+
}
|
|
27507
|
+
}
|
|
27238
27508
|
if (args.json) {
|
|
27239
27509
|
logger.log(
|
|
27240
27510
|
JSON.stringify({ preview: previewResource, deployment }, null, 2)
|
|
@@ -27592,4 +27862,4 @@ __name(previewSettingsUpdate, "previewSettingsUpdate");
|
|
|
27592
27862
|
* THE SOFTWARE.
|
|
27593
27863
|
*/
|
|
27594
27864
|
|
|
27595
|
-
export { ACTOR_BINDING_DEPENDS_ON_EXPORT_CODE, EXPORTS_RECONCILIATION_ERROR_CODE, INCONSISTENT_EXPORTS_ACROSS_VERSIONS_CODE, INVALID_INHERIT_BINDING_CODE, NoInputError, WORKER_LEGACY_ENVIRONMENT_NOT_FOUND_ERR_CODE, WORKER_NOT_FOUND_ERR_CODE, WORKFLOW_CRON_REQUIRES_PAID_PLAN_CODE, WORKFLOW_NOT_FOUND_CODE, addRequiredSecretsInheritBindings, addWorkersSitesBindings, applyServiceAndEnvironmentTags, assemblePreviewDefaults, assemblePreviewScriptSettings, buildAssetManifest, checkRemoteSecretsOverride, checkWorkflowConflicts, collectPackageDependencies, confirmLatestDeploymentOverwrite, createDeployment, createPreview, createPreviewDeployment, createTruncatedAlias, decodeJwtPayload, deletePreview, deletePullConsumer, deleteWorkerConsumer, deploy, deployWfpUserWorker, diagnoseScriptSizeError, diagnoseStartupError, diffJsonObjects, downloadWorkerConfig, drawBox, drawConnectedChildBox, editPreview, editWorkerPreviewDefaults, ensureQueuesExistByConfig, extractConfigBindings, fetchDeployableVersions, fetchDeploymentVersions, fetchLatestDeployment, fetchLatestDeployments, fetchSecrets, fetchVersion, fetchVersions, fetchWorkerConfig, formatAlignedRows, formatBindings, formatPreviewsSettings, generatePreviewAlias, getBindingValue, getBranchName2 as getBranchName, getConfigPatch, getDeployConfirmFunction, getEdgeKvUploadConcurrency, getHeadCommitMessage, getHeadCommitRef, getMigrationsToUpload, getPreview, getPreviewBaseConfig, getPreviewDeployment, getQueue, getRemoteConfigDiff, getSettings, getSourceMappedStack, getSourceMappedString, getSubdomainValues, getSubdomainValuesAPIMock, getWorkerPreviewDefaults, getWorkersDevSubdomain, getZoneForRoute, getZoneIdFromHost, handleMissingSecretsError, hasDefinedEnvironments, hashFile, helpIfErrorIsSizeOrScriptStartup, isExportsReconciliationErrorDetails, isJwtExpired, isModifiedDiffValue, isNonDestructive, isWorkerNotFoundError, listConsumers, listQueues, maybeRetrieveFileSourceMap, mergeDeep, padToVisibleWidth, parseBulkInputToObject, parseConfigPlacement, patchNonVersionedScriptSettings, patchPreviewBaseConfig, patchPreviewDeployment, postConsumer, preview, previewDelete, previewSettingsGet, previewSettingsUpdate, printBindings, printBundleSize, printVersions, provisionBindings, publishCustomDomains, publishRoutes, putConsumer, putConsumerById, renderBindingDependsOnExportError, renderExportsReconciliationError, renderExportsReconciliationSuccess, renderInconsistentExportsAcrossVersionsError, renderRoute, resolveAssetOptions, resolveDoLifecyclePayload, resolveExportsUploadPayload, resolveWorkerName, sanitizeBranchName, shouldUseCIMetadataFallback, stripAnsi, syncAssets, tagsAreEqual, triggersDeploy, updateQueueConsumers, validateEventTriggerTargets, validateFileSecrets, validateNodeCompatMode, validateRoutes, verifyWorkerMatchesCITag, versionsUpload, visibleLength, warnOnErrorUpdatingServiceAndEnvironmentTags, warnOrError, workerNotFoundErrorMessage };
|
|
27865
|
+
export { ACTOR_BINDING_DEPENDS_ON_EXPORT_CODE, EXPORTS_RECONCILIATION_ERROR_CODE, INCONSISTENT_EXPORTS_ACROSS_VERSIONS_CODE, INVALID_INHERIT_BINDING_CODE, NoInputError, WORKER_LEGACY_ENVIRONMENT_NOT_FOUND_ERR_CODE, WORKER_NOT_FOUND_ERR_CODE, WORKFLOW_CRON_REQUIRES_PAID_PLAN_CODE, WORKFLOW_NOT_FOUND_CODE, addRequiredSecretsInheritBindings, addWorkersSitesBindings, applyServiceAndEnvironmentTags, assemblePreviewDefaults, assemblePreviewScriptSettings, buildAssetManifest, checkRemoteSecretsOverride, checkWorkflowConflicts, collectPackageDependencies, confirmLatestDeploymentOverwrite, createDeployment, createPreview, createPreviewDeployment, createPreviewParentWorker, createTruncatedAlias, decodeJwtPayload, deletePreview, deletePullConsumer, deleteWorkerConsumer, deploy, deployWfpUserWorker, diagnoseScriptSizeError, diagnoseStartupError, diffJsonObjects, downloadWorkerConfig, drawBox, drawConnectedChildBox, editPreview, editWorkerPreviewDefaults, ensureQueuesExistByConfig, extractConfigBindings, fetchDeployableVersions, fetchDeploymentVersions, fetchLatestDeployment, fetchLatestDeployments, fetchSecrets, fetchVersion, fetchVersions, fetchWorkerConfig, formatAlignedRows, formatBindings, formatPreviewsSettings, generatePreviewAlias, getBindingValue, getBranchName2 as getBranchName, getConfigPatch, getDeployConfirmFunction, getEdgeKvUploadConcurrency, getHeadCommitMessage, getHeadCommitRef, getMigrationsToUpload, getPreview, getPreviewBaseConfig, getPreviewDeployment, getPreviewOwnedContainerClassNames, getQueue, getRemoteConfigDiff, getSettings, getSourceMappedStack, getSourceMappedString, getSubdomainValues, getSubdomainValuesAPIMock, getWorkerPreviewDefaults, getWorkersDevSubdomain, getZoneForRoute, getZoneIdFromHost, handleMissingSecretsError, hasDefinedEnvironments, hashFile, helpIfErrorIsSizeOrScriptStartup, isExportsReconciliationErrorDetails, isJwtExpired, isModifiedDiffValue, isNonDestructive, isWorkerNotFoundError, listConsumers, listQueues, maybeRetrieveFileSourceMap, mergeDeep, padToVisibleWidth, parseBulkInputToObject, parseConfigPlacement, patchNonVersionedScriptSettings, patchPreviewBaseConfig, patchPreviewDeployment, postConsumer, preview, previewContainerAppName, previewDelete, previewSettingsGet, previewSettingsUpdate, printBindings, printBundleSize, printVersions, provisionBindings, publishCustomDomains, publishRoutes, putConsumer, putConsumerById, renderBindingDependsOnExportError, renderExportsReconciliationError, renderExportsReconciliationSuccess, renderInconsistentExportsAcrossVersionsError, renderRoute, resolveAssetOptions, resolveDoLifecyclePayload, resolveExportsUploadPayload, resolveWorkerName, sanitizeBranchName, shouldUseCIMetadataFallback, stripAnsi, syncAssets, tagsAreEqual, triggersDeploy, updateQueueConsumers, validateEventTriggerTargets, validateFileSecrets, validateNodeCompatMode, validateRoutes, verifyWorkerMatchesCITag, versionsUpload, visibleLength, warnOnErrorUpdatingServiceAndEnvironmentTags, warnOrError, workerNotFoundErrorMessage };
|