wrangler 4.49.0 → 4.49.1
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/package.json +10 -10
- package/wrangler-dist/cli.js +123 -100
- package/wrangler-dist/metafile-cjs.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.49.
|
|
3
|
+
"version": "4.49.1",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"esbuild": "0.25.4",
|
|
55
55
|
"path-to-regexp": "6.3.0",
|
|
56
56
|
"unenv": "2.0.0-rc.24",
|
|
57
|
-
"workerd": "1.
|
|
57
|
+
"workerd": "1.20251118.0",
|
|
58
58
|
"@cloudflare/kv-asset-handler": "0.4.0",
|
|
59
59
|
"@cloudflare/unenv-preset": "2.7.10",
|
|
60
|
-
"miniflare": "4.
|
|
60
|
+
"miniflare": "4.20251118.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
64
64
|
"@cloudflare/types": "6.18.4",
|
|
65
|
-
"@cloudflare/workers-types": "^4.
|
|
65
|
+
"@cloudflare/workers-types": "^4.20251118.0",
|
|
66
66
|
"@cspotcode/source-map-support": "0.8.1",
|
|
67
67
|
"@netlify/build-info": "^10.0.9",
|
|
68
68
|
"@sentry/node": "^7.86.0",
|
|
@@ -146,17 +146,17 @@
|
|
|
146
146
|
"xxhash-wasm": "^1.0.1",
|
|
147
147
|
"yaml": "^2.8.1",
|
|
148
148
|
"yargs": "^17.7.2",
|
|
149
|
-
"@cloudflare/containers-shared": "0.3.0",
|
|
150
149
|
"@cloudflare/cli": "1.1.3",
|
|
150
|
+
"@cloudflare/containers-shared": "0.3.0",
|
|
151
151
|
"@cloudflare/eslint-config-shared": "1.1.0",
|
|
152
|
-
"@cloudflare/pages-shared": "^0.13.86",
|
|
153
152
|
"@cloudflare/workers-shared": "0.18.8",
|
|
154
|
-
"@cloudflare/
|
|
155
|
-
"@cloudflare/workers-
|
|
156
|
-
"@cloudflare/
|
|
153
|
+
"@cloudflare/workflows-shared": "0.3.8",
|
|
154
|
+
"@cloudflare/workers-utils": "0.1.2",
|
|
155
|
+
"@cloudflare/pages-shared": "^0.13.87",
|
|
156
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
157
157
|
},
|
|
158
158
|
"peerDependencies": {
|
|
159
|
-
"@cloudflare/workers-types": "^4.
|
|
159
|
+
"@cloudflare/workers-types": "^4.20251118.0"
|
|
160
160
|
},
|
|
161
161
|
"peerDependenciesMeta": {
|
|
162
162
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.js
CHANGED
|
@@ -184,23 +184,12 @@ var init_MultipartBody = __esm({
|
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
186
|
|
|
187
|
-
// ../workers-utils/dist/chunk-
|
|
187
|
+
// ../workers-utils/dist/chunk-DBPNILFW.mjs
|
|
188
188
|
function formatCompatibilityDate(date) {
|
|
189
189
|
return date.toISOString().slice(0, 10);
|
|
190
190
|
}
|
|
191
191
|
function assertNever(_value) {
|
|
192
192
|
}
|
|
193
|
-
function createFatalError(message, isJson, code, telemetryMessage) {
|
|
194
|
-
if (isJson) {
|
|
195
|
-
return new JsonFriendlyFatalError(
|
|
196
|
-
JSON.stringify(message),
|
|
197
|
-
code,
|
|
198
|
-
telemetryMessage
|
|
199
|
-
);
|
|
200
|
-
} else {
|
|
201
|
-
return new FatalError(`${message}`, code, telemetryMessage);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
193
|
function mapWorkerMetadataBindings(bindings) {
|
|
205
194
|
return bindings.filter((binding) => binding.type !== "secret_text").reduce((configObj, binding) => {
|
|
206
195
|
switch (binding.type) {
|
|
@@ -460,9 +449,13 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
460
449
|
];
|
|
461
450
|
break;
|
|
462
451
|
case "assets":
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
452
|
+
configObj.assets = {
|
|
453
|
+
binding: binding.name
|
|
454
|
+
// Note: we currently don't get all the assets information from the
|
|
455
|
+
// API, so here we are only able to set the name of the binding
|
|
456
|
+
// hopefully in the future we can properly fully support the binding
|
|
457
|
+
};
|
|
458
|
+
break;
|
|
466
459
|
case "inherit":
|
|
467
460
|
configObj.unsafe = {
|
|
468
461
|
bindings: [...configObj.unsafe?.bindings ?? [], binding],
|
|
@@ -609,9 +602,9 @@ function constructWranglerConfig(workerOrWorkers) {
|
|
|
609
602
|
}
|
|
610
603
|
return combinedConfig;
|
|
611
604
|
}
|
|
612
|
-
var __defProp2, __name2, INHERIT_SYMBOL, SERVICE_TAG_PREFIX, ENVIRONMENT_TAG_PREFIX, PATH_TO_DEPLOY_CONFIG
|
|
613
|
-
var
|
|
614
|
-
"../workers-utils/dist/chunk-
|
|
605
|
+
var __defProp2, __name2, INHERIT_SYMBOL, SERVICE_TAG_PREFIX, ENVIRONMENT_TAG_PREFIX, PATH_TO_DEPLOY_CONFIG;
|
|
606
|
+
var init_chunk_DBPNILFW = __esm({
|
|
607
|
+
"../workers-utils/dist/chunk-DBPNILFW.mjs"() {
|
|
615
608
|
init_import_meta_url();
|
|
616
609
|
__defProp2 = Object.defineProperty;
|
|
617
610
|
__name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
|
|
@@ -623,79 +616,6 @@ var init_chunk_PSOC3TD3 = __esm({
|
|
|
623
616
|
__name2(formatCompatibilityDate, "formatCompatibilityDate");
|
|
624
617
|
__name(assertNever, "assertNever");
|
|
625
618
|
__name2(assertNever, "assertNever");
|
|
626
|
-
UserError = class extends Error {
|
|
627
|
-
static {
|
|
628
|
-
__name(this, "UserError");
|
|
629
|
-
}
|
|
630
|
-
static {
|
|
631
|
-
__name2(this, "UserError");
|
|
632
|
-
}
|
|
633
|
-
telemetryMessage;
|
|
634
|
-
constructor(message, options) {
|
|
635
|
-
super(message, options);
|
|
636
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
637
|
-
this.telemetryMessage = options?.telemetryMessage === true ? message : options?.telemetryMessage;
|
|
638
|
-
}
|
|
639
|
-
};
|
|
640
|
-
(class extends UserError {
|
|
641
|
-
static {
|
|
642
|
-
__name(this, "DeprecationError");
|
|
643
|
-
}
|
|
644
|
-
static {
|
|
645
|
-
__name2(this, "DeprecationError");
|
|
646
|
-
}
|
|
647
|
-
constructor(message, options) {
|
|
648
|
-
super(`Deprecation:
|
|
649
|
-
${message}`, options);
|
|
650
|
-
}
|
|
651
|
-
});
|
|
652
|
-
FatalError = class extends UserError {
|
|
653
|
-
static {
|
|
654
|
-
__name(this, "FatalError");
|
|
655
|
-
}
|
|
656
|
-
constructor(message, code, options) {
|
|
657
|
-
super(message, options);
|
|
658
|
-
this.code = code;
|
|
659
|
-
}
|
|
660
|
-
static {
|
|
661
|
-
__name2(this, "FatalError");
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
CommandLineArgsError = class extends UserError {
|
|
665
|
-
static {
|
|
666
|
-
__name(this, "CommandLineArgsError");
|
|
667
|
-
}
|
|
668
|
-
static {
|
|
669
|
-
__name2(this, "CommandLineArgsError");
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
JsonFriendlyFatalError = class extends FatalError {
|
|
673
|
-
static {
|
|
674
|
-
__name(this, "JsonFriendlyFatalError");
|
|
675
|
-
}
|
|
676
|
-
constructor(message, code, options) {
|
|
677
|
-
super(message, code, options);
|
|
678
|
-
this.code = code;
|
|
679
|
-
}
|
|
680
|
-
static {
|
|
681
|
-
__name2(this, "JsonFriendlyFatalError");
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
MissingConfigError = class extends Error {
|
|
685
|
-
static {
|
|
686
|
-
__name(this, "MissingConfigError");
|
|
687
|
-
}
|
|
688
|
-
static {
|
|
689
|
-
__name2(this, "MissingConfigError");
|
|
690
|
-
}
|
|
691
|
-
telemetryMessage;
|
|
692
|
-
constructor(key) {
|
|
693
|
-
super(`Missing config value for ${key}`);
|
|
694
|
-
this.telemetryMessage = `Missing config value for ${key}`;
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
__name(createFatalError, "createFatalError");
|
|
698
|
-
__name2(createFatalError, "createFatalError");
|
|
699
619
|
__name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
700
620
|
__name2(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
701
621
|
__name(convertWorkerToWranglerConfig, "convertWorkerToWranglerConfig");
|
|
@@ -2662,6 +2582,17 @@ function applyEdits(text, edits) {
|
|
|
2662
2582
|
}
|
|
2663
2583
|
return text;
|
|
2664
2584
|
}
|
|
2585
|
+
function createFatalError(message, isJson, code, telemetryMessage) {
|
|
2586
|
+
if (isJson) {
|
|
2587
|
+
return new JsonFriendlyFatalError(
|
|
2588
|
+
JSON.stringify(message),
|
|
2589
|
+
code,
|
|
2590
|
+
telemetryMessage
|
|
2591
|
+
);
|
|
2592
|
+
} else {
|
|
2593
|
+
return new FatalError(`${message}`, code, telemetryMessage);
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2665
2596
|
function parseTOML(input, file) {
|
|
2666
2597
|
try {
|
|
2667
2598
|
return dist_default.parse(input);
|
|
@@ -4875,12 +4806,12 @@ Pages requires Durable Object bindings to specify the name of the Worker where t
|
|
|
4875
4806
|
}
|
|
4876
4807
|
}
|
|
4877
4808
|
}
|
|
4878
|
-
var defaultWranglerConfig, TomlError2, DATE_TIME_RE, TomlDate, INT_REGEX, FLOAT_REGEX, LEADING_ZERO, ESCAPE_REGEX, ESC_MAP, KEY_PART_RE, BARE_KEY, dist_default, CharacterCodes, ParseOptions, ScanError, SyntaxKind, parse3, ParseErrorCode, ParseError, APIError, units, UNSUPPORTED_BOMS, typeMappings, matchType, toPath, toPath2, findUpStop, esm_default, parseRawConfigFile; exports.experimental_readRawConfig = void 0; exports.experimental_patchConfig = void 0; var getJSONPath, PatchConfigError, ApplicationRollout, BadRequestWithCodeError, CreateApplicationRolloutRequest, DeploymentNotFoundError, ImageRegistryAlreadyExistsError, ImageRegistryIsPublic, ImageRegistryNotAllowedError, ImageRegistryNotFoundError, ImageRegistryProtocolAlreadyExists, ImageRegistryProtocolIsReferencedError, ImageRegistryProtocolNotFound, ProvisionerConfiguration, RolloutStep, SecretNameAlreadyExists, SecretNotFound, SSHPublicKeyNotFoundError, UpdateApplicationRolloutRequest, UserError2, isDockerfile, MAX_WORKFLOW_NAME_LENGTH, ALLOWED_STRING_ID_PATTERN, ALLOWED_WORKFLOW_INSTANCE_ID_REGEX, ALLOWED_WORKFLOW_NAME_REGEX, Diagnostics, appendEnvName, isString, isValidName, isValidDateTimeStringFormat, isStringArray, isOneOf, all, isMutuallyExclusiveWith, isBoolean, validateRequiredProperty, validateAtLeastOnePropertyRequired, validateOptionalProperty, validateTypedArray, validateOptionalTypedArray, isRequiredProperty, isOptionalProperty, hasProperty, validateAdditionalProperties, getBindingNames, isBindingList, isNamespaceList, isRecord, validateUniqueNameProperty, bucketFormatMessage, friendlyBindingNames, ENGLISH, ALLOWED_INSTANCE_TYPES, isRoute, isRouteArray, validateTailConsumers, validateStreamingTailConsumers, validateAndNormalizeRules, validateTriggers, validateRules, validateRule, validateDefines, validateVars, validateBindingsProperty, validateUnsafeSettings, validateDurableObjectBinding, workflowNameFormatMessage, validateWorkflowBinding, validateCflogfwdrObject, validateCflogfwdrBinding, validateAssetsConfig, validateNamedSimpleBinding, validateAIBinding, validateVersionMetadataBinding, validateUnsafeBinding, validateBindingArray, validateCloudchamberConfig, validateKVBinding, validateSendEmailBinding, validateQueueBinding, validateR2Binding, validateD1Binding, validateVectorizeBinding, validateHyperdriveBinding, validateVpcServiceBinding, validateBindingsHaveUniqueNames, validateServiceBinding, validateAnalyticsEngineBinding, validateWorkerNamespaceBinding, validateMTlsCertificateBinding, validateConsumer, validateCompatibilityDate, validatePipelineBinding, validateSecretsStoreSecretBinding, validateHelloWorldBinding, validateWorkerLoaderBinding, validateRateLimitBinding, validateMigrations, validateObservability, validatePythonModules, supportedPagesConfigFields;
|
|
4809
|
+
var defaultWranglerConfig, TomlError2, DATE_TIME_RE, TomlDate, INT_REGEX, FLOAT_REGEX, LEADING_ZERO, ESCAPE_REGEX, ESC_MAP, KEY_PART_RE, BARE_KEY, dist_default, CharacterCodes, ParseOptions, ScanError, SyntaxKind, parse3, ParseErrorCode, UserError, FatalError, CommandLineArgsError, JsonFriendlyFatalError, MissingConfigError, ParseError, APIError, units, UNSUPPORTED_BOMS, typeMappings, matchType, toPath, toPath2, findUpStop, esm_default, parseRawConfigFile; exports.experimental_readRawConfig = void 0; exports.experimental_patchConfig = void 0; var getJSONPath, PatchConfigError, ApplicationRollout, BadRequestWithCodeError, CreateApplicationRolloutRequest, DeploymentNotFoundError, ImageRegistryAlreadyExistsError, ImageRegistryIsPublic, ImageRegistryNotAllowedError, ImageRegistryNotFoundError, ImageRegistryProtocolAlreadyExists, ImageRegistryProtocolIsReferencedError, ImageRegistryProtocolNotFound, ProvisionerConfiguration, RolloutStep, SecretNameAlreadyExists, SecretNotFound, SSHPublicKeyNotFoundError, UpdateApplicationRolloutRequest, UserError2, isDockerfile, MAX_WORKFLOW_NAME_LENGTH, ALLOWED_STRING_ID_PATTERN, ALLOWED_WORKFLOW_INSTANCE_ID_REGEX, ALLOWED_WORKFLOW_NAME_REGEX, Diagnostics, appendEnvName, isString, isValidName, isValidDateTimeStringFormat, isStringArray, isOneOf, all, isMutuallyExclusiveWith, isBoolean, validateRequiredProperty, validateAtLeastOnePropertyRequired, validateOptionalProperty, validateTypedArray, validateOptionalTypedArray, isRequiredProperty, isOptionalProperty, hasProperty, validateAdditionalProperties, getBindingNames, isBindingList, isNamespaceList, isRecord, validateUniqueNameProperty, bucketFormatMessage, friendlyBindingNames, ENGLISH, ALLOWED_INSTANCE_TYPES, isRoute, isRouteArray, validateTailConsumers, validateStreamingTailConsumers, validateAndNormalizeRules, validateTriggers, validateRules, validateRule, validateDefines, validateVars, validateBindingsProperty, validateUnsafeSettings, validateDurableObjectBinding, workflowNameFormatMessage, validateWorkflowBinding, validateCflogfwdrObject, validateCflogfwdrBinding, validateAssetsConfig, validateNamedSimpleBinding, validateAIBinding, validateVersionMetadataBinding, validateUnsafeBinding, validateBindingArray, validateCloudchamberConfig, validateKVBinding, validateSendEmailBinding, validateQueueBinding, validateR2Binding, validateD1Binding, validateVectorizeBinding, validateHyperdriveBinding, validateVpcServiceBinding, validateBindingsHaveUniqueNames, validateServiceBinding, validateAnalyticsEngineBinding, validateWorkerNamespaceBinding, validateMTlsCertificateBinding, validateConsumer, validateCompatibilityDate, validatePipelineBinding, validateSecretsStoreSecretBinding, validateHelloWorldBinding, validateWorkerLoaderBinding, validateRateLimitBinding, validateMigrations, validateObservability, validatePythonModules, supportedPagesConfigFields;
|
|
4879
4810
|
var init_dist = __esm({
|
|
4880
4811
|
"../workers-utils/dist/index.mjs"() {
|
|
4881
4812
|
init_import_meta_url();
|
|
4882
|
-
|
|
4883
|
-
|
|
4813
|
+
init_chunk_DBPNILFW();
|
|
4814
|
+
init_chunk_DBPNILFW();
|
|
4884
4815
|
defaultWranglerConfig = {
|
|
4885
4816
|
/* COMPUTED_FIELDS */
|
|
4886
4817
|
configPath: void 0,
|
|
@@ -5354,6 +5285,79 @@ ${codeblock}`, options);
|
|
|
5354
5285
|
__name2(modify, "modify");
|
|
5355
5286
|
__name(applyEdits, "applyEdits");
|
|
5356
5287
|
__name2(applyEdits, "applyEdits");
|
|
5288
|
+
UserError = class extends Error {
|
|
5289
|
+
static {
|
|
5290
|
+
__name(this, "UserError");
|
|
5291
|
+
}
|
|
5292
|
+
static {
|
|
5293
|
+
__name2(this, "UserError");
|
|
5294
|
+
}
|
|
5295
|
+
telemetryMessage;
|
|
5296
|
+
constructor(message, options) {
|
|
5297
|
+
super(message, options);
|
|
5298
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
5299
|
+
this.telemetryMessage = options?.telemetryMessage === true ? message : options?.telemetryMessage;
|
|
5300
|
+
}
|
|
5301
|
+
};
|
|
5302
|
+
(class extends UserError {
|
|
5303
|
+
static {
|
|
5304
|
+
__name(this, "DeprecationError");
|
|
5305
|
+
}
|
|
5306
|
+
static {
|
|
5307
|
+
__name2(this, "DeprecationError");
|
|
5308
|
+
}
|
|
5309
|
+
constructor(message, options) {
|
|
5310
|
+
super(`Deprecation:
|
|
5311
|
+
${message}`, options);
|
|
5312
|
+
}
|
|
5313
|
+
});
|
|
5314
|
+
FatalError = class extends UserError {
|
|
5315
|
+
static {
|
|
5316
|
+
__name(this, "FatalError");
|
|
5317
|
+
}
|
|
5318
|
+
constructor(message, code, options) {
|
|
5319
|
+
super(message, options);
|
|
5320
|
+
this.code = code;
|
|
5321
|
+
}
|
|
5322
|
+
static {
|
|
5323
|
+
__name2(this, "FatalError");
|
|
5324
|
+
}
|
|
5325
|
+
};
|
|
5326
|
+
CommandLineArgsError = class extends UserError {
|
|
5327
|
+
static {
|
|
5328
|
+
__name(this, "CommandLineArgsError");
|
|
5329
|
+
}
|
|
5330
|
+
static {
|
|
5331
|
+
__name2(this, "CommandLineArgsError");
|
|
5332
|
+
}
|
|
5333
|
+
};
|
|
5334
|
+
JsonFriendlyFatalError = class extends FatalError {
|
|
5335
|
+
static {
|
|
5336
|
+
__name(this, "JsonFriendlyFatalError");
|
|
5337
|
+
}
|
|
5338
|
+
constructor(message, code, options) {
|
|
5339
|
+
super(message, code, options);
|
|
5340
|
+
this.code = code;
|
|
5341
|
+
}
|
|
5342
|
+
static {
|
|
5343
|
+
__name2(this, "JsonFriendlyFatalError");
|
|
5344
|
+
}
|
|
5345
|
+
};
|
|
5346
|
+
MissingConfigError = class extends Error {
|
|
5347
|
+
static {
|
|
5348
|
+
__name(this, "MissingConfigError");
|
|
5349
|
+
}
|
|
5350
|
+
static {
|
|
5351
|
+
__name2(this, "MissingConfigError");
|
|
5352
|
+
}
|
|
5353
|
+
telemetryMessage;
|
|
5354
|
+
constructor(key) {
|
|
5355
|
+
super(`Missing config value for ${key}`);
|
|
5356
|
+
this.telemetryMessage = `Missing config value for ${key}`;
|
|
5357
|
+
}
|
|
5358
|
+
};
|
|
5359
|
+
__name(createFatalError, "createFatalError");
|
|
5360
|
+
__name2(createFatalError, "createFatalError");
|
|
5357
5361
|
ParseError = class extends UserError {
|
|
5358
5362
|
static {
|
|
5359
5363
|
__name(this, "ParseError");
|
|
@@ -47825,7 +47829,7 @@ var name, version;
|
|
|
47825
47829
|
var init_package = __esm({
|
|
47826
47830
|
"package.json"() {
|
|
47827
47831
|
name = "wrangler";
|
|
47828
|
-
version = "4.49.
|
|
47832
|
+
version = "4.49.1";
|
|
47829
47833
|
}
|
|
47830
47834
|
});
|
|
47831
47835
|
|
|
@@ -183763,6 +183767,11 @@ async function downloadWorker(accountId, workerName) {
|
|
|
183763
183767
|
entrypoint,
|
|
183764
183768
|
accountId
|
|
183765
183769
|
);
|
|
183770
|
+
if (config.assets) {
|
|
183771
|
+
throw new FatalError(
|
|
183772
|
+
"`wrangler init --from-dash` is not yet supported for Workers with Assets"
|
|
183773
|
+
);
|
|
183774
|
+
}
|
|
183766
183775
|
return {
|
|
183767
183776
|
modules,
|
|
183768
183777
|
config
|
|
@@ -232381,8 +232390,9 @@ var init_object3 = __esm({
|
|
|
232381
232390
|
r2BulkNamespace = createNamespace({
|
|
232382
232391
|
metadata: {
|
|
232383
232392
|
description: `Interact with multiple R2 objects at once`,
|
|
232384
|
-
status: "
|
|
232385
|
-
owner: "Product: R2"
|
|
232393
|
+
status: "experimental",
|
|
232394
|
+
owner: "Product: R2",
|
|
232395
|
+
hidden: true
|
|
232386
232396
|
}
|
|
232387
232397
|
});
|
|
232388
232398
|
r2ObjectGetCommand = createCommand({
|
|
@@ -232759,8 +232769,9 @@ var init_object3 = __esm({
|
|
|
232759
232769
|
r2BulkPutCommand = createCommand({
|
|
232760
232770
|
metadata: {
|
|
232761
232771
|
description: "Create objects in an R2 bucket",
|
|
232762
|
-
status: "
|
|
232763
|
-
owner: "Product: R2"
|
|
232772
|
+
status: "experimental",
|
|
232773
|
+
owner: "Product: R2",
|
|
232774
|
+
hidden: true
|
|
232764
232775
|
},
|
|
232765
232776
|
positionalArgs: ["bucket"],
|
|
232766
232777
|
args: {
|
|
@@ -247386,6 +247397,11 @@ function normalizeLocalResolvedConfigAsRemote(localResolvedConfig) {
|
|
|
247386
247397
|
observability: normalizeObservability(localResolvedConfig.observability)
|
|
247387
247398
|
};
|
|
247388
247399
|
removeRemoteConfigFieldFromBindings(normalizedConfig);
|
|
247400
|
+
if (normalizedConfig.assets) {
|
|
247401
|
+
normalizedConfig.assets = {
|
|
247402
|
+
binding: normalizedConfig.assets.binding
|
|
247403
|
+
};
|
|
247404
|
+
}
|
|
247389
247405
|
return normalizedConfig;
|
|
247390
247406
|
}
|
|
247391
247407
|
function removeRemoteConfigFieldFromBindings(normalizedConfig) {
|
|
@@ -247492,7 +247508,14 @@ function normalizeObservability(obs) {
|
|
|
247492
247508
|
function normalizeRemoteConfigAsResolvedLocal(remoteConfig, localResolvedConfig) {
|
|
247493
247509
|
let normalizedRemote = {};
|
|
247494
247510
|
Object.entries(localResolvedConfig).forEach(([key, value]) => {
|
|
247495
|
-
if (
|
|
247511
|
+
if (
|
|
247512
|
+
// We want to skip observability since it has a remote default behavior
|
|
247513
|
+
// different from that of wrangler
|
|
247514
|
+
key !== "observability" && // We want to skip assets since it is a special case, the issue being that
|
|
247515
|
+
// remotely assets configs only include at most the binding name and we
|
|
247516
|
+
// already address that in the local config normalization already
|
|
247517
|
+
key !== "assets"
|
|
247518
|
+
) {
|
|
247496
247519
|
normalizedRemote[key] = value;
|
|
247497
247520
|
}
|
|
247498
247521
|
});
|