wrangler 2.0.26 → 2.0.27

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.
@@ -49717,7 +49717,7 @@ var require_backend = __commonJS({
49717
49717
  var symbolOrNumber = renderer_typeof(type2) === "object" && type2 !== null ? type2.$$typeof : type2;
49718
49718
  return renderer_typeof(symbolOrNumber) === "symbol" ? symbolOrNumber.toString() : symbolOrNumber;
49719
49719
  }
49720
- var _ReactTypeOfWork = ReactTypeOfWork, CacheComponent = _ReactTypeOfWork.CacheComponent, ClassComponent = _ReactTypeOfWork.ClassComponent, IncompleteClassComponent = _ReactTypeOfWork.IncompleteClassComponent, FunctionComponent = _ReactTypeOfWork.FunctionComponent, IndeterminateComponent = _ReactTypeOfWork.IndeterminateComponent, ForwardRef = _ReactTypeOfWork.ForwardRef, HostRoot = _ReactTypeOfWork.HostRoot, HostComponent = _ReactTypeOfWork.HostComponent, HostPortal = _ReactTypeOfWork.HostPortal, HostText = _ReactTypeOfWork.HostText, Fragment = _ReactTypeOfWork.Fragment, LazyComponent = _ReactTypeOfWork.LazyComponent, LegacyHiddenComponent = _ReactTypeOfWork.LegacyHiddenComponent, MemoComponent = _ReactTypeOfWork.MemoComponent, OffscreenComponent = _ReactTypeOfWork.OffscreenComponent, Profiler = _ReactTypeOfWork.Profiler, ScopeComponent = _ReactTypeOfWork.ScopeComponent, SimpleMemoComponent = _ReactTypeOfWork.SimpleMemoComponent, SuspenseComponent = _ReactTypeOfWork.SuspenseComponent, SuspenseListComponent = _ReactTypeOfWork.SuspenseListComponent;
49720
+ var _ReactTypeOfWork = ReactTypeOfWork, CacheComponent = _ReactTypeOfWork.CacheComponent, ClassComponent = _ReactTypeOfWork.ClassComponent, IncompleteClassComponent = _ReactTypeOfWork.IncompleteClassComponent, FunctionComponent = _ReactTypeOfWork.FunctionComponent, IndeterminateComponent = _ReactTypeOfWork.IndeterminateComponent, ForwardRef = _ReactTypeOfWork.ForwardRef, HostRoot = _ReactTypeOfWork.HostRoot, HostComponent = _ReactTypeOfWork.HostComponent, HostPortal = _ReactTypeOfWork.HostPortal, HostText = _ReactTypeOfWork.HostText, Fragment2 = _ReactTypeOfWork.Fragment, LazyComponent = _ReactTypeOfWork.LazyComponent, LegacyHiddenComponent = _ReactTypeOfWork.LegacyHiddenComponent, MemoComponent = _ReactTypeOfWork.MemoComponent, OffscreenComponent = _ReactTypeOfWork.OffscreenComponent, Profiler = _ReactTypeOfWork.Profiler, ScopeComponent = _ReactTypeOfWork.ScopeComponent, SimpleMemoComponent = _ReactTypeOfWork.SimpleMemoComponent, SuspenseComponent = _ReactTypeOfWork.SuspenseComponent, SuspenseListComponent = _ReactTypeOfWork.SuspenseListComponent;
49721
49721
  function resolveFiberType(type2) {
49722
49722
  var typeSymbol = getTypeSymbol(type2);
49723
49723
  switch (typeSymbol) {
@@ -49759,7 +49759,7 @@ var require_backend = __commonJS({
49759
49759
  return type2;
49760
49760
  case HostPortal:
49761
49761
  case HostText:
49762
- case Fragment:
49762
+ case Fragment2:
49763
49763
  return null;
49764
49764
  case LazyComponent:
49765
49765
  return "Lazy";
@@ -49820,7 +49820,7 @@ var require_backend = __commonJS({
49820
49820
  var version2 = renderer.reconcilerVersion || renderer.version;
49821
49821
  var _getInternalReactCons = getInternalReactConstants(version2), getDisplayNameForFiber = _getInternalReactCons.getDisplayNameForFiber, getTypeSymbol = _getInternalReactCons.getTypeSymbol, ReactPriorityLevels = _getInternalReactCons.ReactPriorityLevels, ReactTypeOfWork = _getInternalReactCons.ReactTypeOfWork, ReactTypeOfSideEffect = _getInternalReactCons.ReactTypeOfSideEffect, StrictModeBits = _getInternalReactCons.StrictModeBits;
49822
49822
  var DidCapture = ReactTypeOfSideEffect.DidCapture, Hydrating = ReactTypeOfSideEffect.Hydrating, NoFlags = ReactTypeOfSideEffect.NoFlags, PerformedWork = ReactTypeOfSideEffect.PerformedWork, Placement = ReactTypeOfSideEffect.Placement;
49823
- var CacheComponent = ReactTypeOfWork.CacheComponent, ClassComponent = ReactTypeOfWork.ClassComponent, ContextConsumer = ReactTypeOfWork.ContextConsumer, DehydratedSuspenseComponent = ReactTypeOfWork.DehydratedSuspenseComponent, ForwardRef = ReactTypeOfWork.ForwardRef, Fragment = ReactTypeOfWork.Fragment, FunctionComponent = ReactTypeOfWork.FunctionComponent, HostRoot = ReactTypeOfWork.HostRoot, HostPortal = ReactTypeOfWork.HostPortal, HostComponent = ReactTypeOfWork.HostComponent, HostText = ReactTypeOfWork.HostText, IncompleteClassComponent = ReactTypeOfWork.IncompleteClassComponent, IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent, LegacyHiddenComponent = ReactTypeOfWork.LegacyHiddenComponent, MemoComponent = ReactTypeOfWork.MemoComponent, OffscreenComponent = ReactTypeOfWork.OffscreenComponent, SimpleMemoComponent = ReactTypeOfWork.SimpleMemoComponent, SuspenseComponent = ReactTypeOfWork.SuspenseComponent, SuspenseListComponent = ReactTypeOfWork.SuspenseListComponent;
49823
+ var CacheComponent = ReactTypeOfWork.CacheComponent, ClassComponent = ReactTypeOfWork.ClassComponent, ContextConsumer = ReactTypeOfWork.ContextConsumer, DehydratedSuspenseComponent = ReactTypeOfWork.DehydratedSuspenseComponent, ForwardRef = ReactTypeOfWork.ForwardRef, Fragment2 = ReactTypeOfWork.Fragment, FunctionComponent = ReactTypeOfWork.FunctionComponent, HostRoot = ReactTypeOfWork.HostRoot, HostPortal = ReactTypeOfWork.HostPortal, HostComponent = ReactTypeOfWork.HostComponent, HostText = ReactTypeOfWork.HostText, IncompleteClassComponent = ReactTypeOfWork.IncompleteClassComponent, IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent, LegacyHiddenComponent = ReactTypeOfWork.LegacyHiddenComponent, MemoComponent = ReactTypeOfWork.MemoComponent, OffscreenComponent = ReactTypeOfWork.OffscreenComponent, SimpleMemoComponent = ReactTypeOfWork.SimpleMemoComponent, SuspenseComponent = ReactTypeOfWork.SuspenseComponent, SuspenseListComponent = ReactTypeOfWork.SuspenseListComponent;
49824
49824
  var ImmediatePriority = ReactPriorityLevels.ImmediatePriority, UserBlockingPriority = ReactPriorityLevels.UserBlockingPriority, NormalPriority = ReactPriorityLevels.NormalPriority, LowPriority = ReactPriorityLevels.LowPriority, IdlePriority = ReactPriorityLevels.IdlePriority, NoPriority = ReactPriorityLevels.NoPriority;
49825
49825
  var getLaneLabelMap = renderer.getLaneLabelMap, injectProfilingHooks = renderer.injectProfilingHooks, overrideHookState = renderer.overrideHookState, overrideHookStateDeletePath = renderer.overrideHookStateDeletePath, overrideHookStateRenamePath = renderer.overrideHookStateRenamePath, overrideProps = renderer.overrideProps, overridePropsDeletePath = renderer.overridePropsDeletePath, overridePropsRenamePath = renderer.overridePropsRenamePath, scheduleRefresh = renderer.scheduleRefresh, setErrorHandler = renderer.setErrorHandler, setSuspenseHandler = renderer.setSuspenseHandler, scheduleUpdate = renderer.scheduleUpdate;
49826
49826
  var supportsTogglingError = typeof setErrorHandler === "function" && typeof scheduleUpdate === "function";
@@ -50025,7 +50025,7 @@ var require_backend = __commonJS({
50025
50025
  return true;
50026
50026
  case HostPortal:
50027
50027
  case HostText:
50028
- case Fragment:
50028
+ case Fragment2:
50029
50029
  case LegacyHiddenComponent:
50030
50030
  case OffscreenComponent:
50031
50031
  return true;
@@ -50101,7 +50101,7 @@ var require_backend = __commonJS({
50101
50101
  return types["i"];
50102
50102
  case HostPortal:
50103
50103
  case HostText:
50104
- case Fragment:
50104
+ case Fragment2:
50105
50105
  return types["k"];
50106
50106
  case MemoComponent:
50107
50107
  case SimpleMemoComponent:
@@ -112126,38 +112126,6 @@ var require_object_keys = __commonJS({
112126
112126
  }
112127
112127
  });
112128
112128
 
112129
- // ../../node_modules/has-property-descriptors/index.js
112130
- var require_has_property_descriptors = __commonJS({
112131
- "../../node_modules/has-property-descriptors/index.js"(exports2, module2) {
112132
- "use strict";
112133
- init_import_meta_url();
112134
- var GetIntrinsic = require_get_intrinsic();
112135
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
112136
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
112137
- if ($defineProperty) {
112138
- try {
112139
- $defineProperty({}, "a", { value: 1 });
112140
- return true;
112141
- } catch (e2) {
112142
- return false;
112143
- }
112144
- }
112145
- return false;
112146
- };
112147
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
112148
- if (!hasPropertyDescriptors()) {
112149
- return null;
112150
- }
112151
- try {
112152
- return $defineProperty([], "length", { value: 1 }).length !== 1;
112153
- } catch (e2) {
112154
- return true;
112155
- }
112156
- };
112157
- module2.exports = hasPropertyDescriptors;
112158
- }
112159
- });
112160
-
112161
112129
  // ../../node_modules/define-properties/index.js
112162
112130
  var require_define_properties = __commonJS({
112163
112131
  "../../node_modules/define-properties/index.js"(exports2, module2) {
@@ -112171,8 +112139,19 @@ var require_define_properties = __commonJS({
112171
112139
  var isFunction2 = function(fn) {
112172
112140
  return typeof fn === "function" && toStr.call(fn) === "[object Function]";
112173
112141
  };
112174
- var hasPropertyDescriptors = require_has_property_descriptors()();
112175
- var supportsDescriptors = origDefineProperty && hasPropertyDescriptors;
112142
+ var arePropertyDescriptorsSupported = function() {
112143
+ var obj = {};
112144
+ try {
112145
+ origDefineProperty(obj, "x", { enumerable: false, value: obj });
112146
+ for (var _2 in obj) {
112147
+ return false;
112148
+ }
112149
+ return obj.x === obj;
112150
+ } catch (e2) {
112151
+ return false;
112152
+ }
112153
+ };
112154
+ var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();
112176
112155
  var defineProperty2 = function(object, name, value, predicate) {
112177
112156
  if (name in object && (!isFunction2(predicate) || !predicate())) {
112178
112157
  return;
@@ -120472,6 +120451,284 @@ var require_dist2 = __commonJS({
120472
120451
  }
120473
120452
  });
120474
120453
 
120454
+ // ../../node_modules/ci-info/vendors.json
120455
+ var require_vendors2 = __commonJS({
120456
+ "../../node_modules/ci-info/vendors.json"(exports2, module2) {
120457
+ module2.exports = [
120458
+ {
120459
+ name: "AppVeyor",
120460
+ constant: "APPVEYOR",
120461
+ env: "APPVEYOR",
120462
+ pr: "APPVEYOR_PULL_REQUEST_NUMBER"
120463
+ },
120464
+ {
120465
+ name: "Azure Pipelines",
120466
+ constant: "AZURE_PIPELINES",
120467
+ env: "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",
120468
+ pr: "SYSTEM_PULLREQUEST_PULLREQUESTID"
120469
+ },
120470
+ {
120471
+ name: "Appcircle",
120472
+ constant: "APPCIRCLE",
120473
+ env: "AC_APPCIRCLE"
120474
+ },
120475
+ {
120476
+ name: "Bamboo",
120477
+ constant: "BAMBOO",
120478
+ env: "bamboo_planKey"
120479
+ },
120480
+ {
120481
+ name: "Bitbucket Pipelines",
120482
+ constant: "BITBUCKET",
120483
+ env: "BITBUCKET_COMMIT",
120484
+ pr: "BITBUCKET_PR_ID"
120485
+ },
120486
+ {
120487
+ name: "Bitrise",
120488
+ constant: "BITRISE",
120489
+ env: "BITRISE_IO",
120490
+ pr: "BITRISE_PULL_REQUEST"
120491
+ },
120492
+ {
120493
+ name: "Buddy",
120494
+ constant: "BUDDY",
120495
+ env: "BUDDY_WORKSPACE_ID",
120496
+ pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
120497
+ },
120498
+ {
120499
+ name: "Buildkite",
120500
+ constant: "BUILDKITE",
120501
+ env: "BUILDKITE",
120502
+ pr: { env: "BUILDKITE_PULL_REQUEST", ne: "false" }
120503
+ },
120504
+ {
120505
+ name: "CircleCI",
120506
+ constant: "CIRCLE",
120507
+ env: "CIRCLECI",
120508
+ pr: "CIRCLE_PULL_REQUEST"
120509
+ },
120510
+ {
120511
+ name: "Cirrus CI",
120512
+ constant: "CIRRUS",
120513
+ env: "CIRRUS_CI",
120514
+ pr: "CIRRUS_PR"
120515
+ },
120516
+ {
120517
+ name: "AWS CodeBuild",
120518
+ constant: "CODEBUILD",
120519
+ env: "CODEBUILD_BUILD_ARN"
120520
+ },
120521
+ {
120522
+ name: "Codefresh",
120523
+ constant: "CODEFRESH",
120524
+ env: "CF_BUILD_ID",
120525
+ pr: { any: ["CF_PULL_REQUEST_NUMBER", "CF_PULL_REQUEST_ID"] }
120526
+ },
120527
+ {
120528
+ name: "Codeship",
120529
+ constant: "CODESHIP",
120530
+ env: { CI_NAME: "codeship" }
120531
+ },
120532
+ {
120533
+ name: "Drone",
120534
+ constant: "DRONE",
120535
+ env: "DRONE",
120536
+ pr: { DRONE_BUILD_EVENT: "pull_request" }
120537
+ },
120538
+ {
120539
+ name: "dsari",
120540
+ constant: "DSARI",
120541
+ env: "DSARI"
120542
+ },
120543
+ {
120544
+ name: "Expo Application Services",
120545
+ constant: "EAS",
120546
+ env: "EAS_BUILD"
120547
+ },
120548
+ {
120549
+ name: "GitHub Actions",
120550
+ constant: "GITHUB_ACTIONS",
120551
+ env: "GITHUB_ACTIONS",
120552
+ pr: { GITHUB_EVENT_NAME: "pull_request" }
120553
+ },
120554
+ {
120555
+ name: "GitLab CI",
120556
+ constant: "GITLAB",
120557
+ env: "GITLAB_CI",
120558
+ pr: "CI_MERGE_REQUEST_ID"
120559
+ },
120560
+ {
120561
+ name: "GoCD",
120562
+ constant: "GOCD",
120563
+ env: "GO_PIPELINE_LABEL"
120564
+ },
120565
+ {
120566
+ name: "LayerCI",
120567
+ constant: "LAYERCI",
120568
+ env: "LAYERCI",
120569
+ pr: "LAYERCI_PULL_REQUEST"
120570
+ },
120571
+ {
120572
+ name: "Hudson",
120573
+ constant: "HUDSON",
120574
+ env: "HUDSON_URL"
120575
+ },
120576
+ {
120577
+ name: "Jenkins",
120578
+ constant: "JENKINS",
120579
+ env: ["JENKINS_URL", "BUILD_ID"],
120580
+ pr: { any: ["ghprbPullId", "CHANGE_ID"] }
120581
+ },
120582
+ {
120583
+ name: "Magnum CI",
120584
+ constant: "MAGNUM",
120585
+ env: "MAGNUM"
120586
+ },
120587
+ {
120588
+ name: "Netlify CI",
120589
+ constant: "NETLIFY",
120590
+ env: "NETLIFY",
120591
+ pr: { env: "PULL_REQUEST", ne: "false" }
120592
+ },
120593
+ {
120594
+ name: "Nevercode",
120595
+ constant: "NEVERCODE",
120596
+ env: "NEVERCODE",
120597
+ pr: { env: "NEVERCODE_PULL_REQUEST", ne: "false" }
120598
+ },
120599
+ {
120600
+ name: "Render",
120601
+ constant: "RENDER",
120602
+ env: "RENDER",
120603
+ pr: { IS_PULL_REQUEST: "true" }
120604
+ },
120605
+ {
120606
+ name: "Sail CI",
120607
+ constant: "SAIL",
120608
+ env: "SAILCI",
120609
+ pr: "SAIL_PULL_REQUEST_NUMBER"
120610
+ },
120611
+ {
120612
+ name: "Semaphore",
120613
+ constant: "SEMAPHORE",
120614
+ env: "SEMAPHORE",
120615
+ pr: "PULL_REQUEST_NUMBER"
120616
+ },
120617
+ {
120618
+ name: "Screwdriver",
120619
+ constant: "SCREWDRIVER",
120620
+ env: "SCREWDRIVER",
120621
+ pr: { env: "SD_PULL_REQUEST", ne: "false" }
120622
+ },
120623
+ {
120624
+ name: "Shippable",
120625
+ constant: "SHIPPABLE",
120626
+ env: "SHIPPABLE",
120627
+ pr: { IS_PULL_REQUEST: "true" }
120628
+ },
120629
+ {
120630
+ name: "Solano CI",
120631
+ constant: "SOLANO",
120632
+ env: "TDDIUM",
120633
+ pr: "TDDIUM_PR_ID"
120634
+ },
120635
+ {
120636
+ name: "Strider CD",
120637
+ constant: "STRIDER",
120638
+ env: "STRIDER"
120639
+ },
120640
+ {
120641
+ name: "TaskCluster",
120642
+ constant: "TASKCLUSTER",
120643
+ env: ["TASK_ID", "RUN_ID"]
120644
+ },
120645
+ {
120646
+ name: "TeamCity",
120647
+ constant: "TEAMCITY",
120648
+ env: "TEAMCITY_VERSION"
120649
+ },
120650
+ {
120651
+ name: "Travis CI",
120652
+ constant: "TRAVIS",
120653
+ env: "TRAVIS",
120654
+ pr: { env: "TRAVIS_PULL_REQUEST", ne: "false" }
120655
+ },
120656
+ {
120657
+ name: "Vercel",
120658
+ constant: "VERCEL",
120659
+ env: "NOW_BUILDER"
120660
+ },
120661
+ {
120662
+ name: "Visual Studio App Center",
120663
+ constant: "APPCENTER",
120664
+ env: "APPCENTER_BUILD_ID"
120665
+ }
120666
+ ];
120667
+ }
120668
+ });
120669
+
120670
+ // ../../node_modules/ci-info/index.js
120671
+ var require_ci_info2 = __commonJS({
120672
+ "../../node_modules/ci-info/index.js"(exports2) {
120673
+ "use strict";
120674
+ init_import_meta_url();
120675
+ var vendors = require_vendors2();
120676
+ var env5 = process.env;
120677
+ Object.defineProperty(exports2, "_vendors", {
120678
+ value: vendors.map(function(v) {
120679
+ return v.constant;
120680
+ })
120681
+ });
120682
+ exports2.name = null;
120683
+ exports2.isPR = null;
120684
+ vendors.forEach(function(vendor) {
120685
+ const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
120686
+ const isCI2 = envs.every(function(obj) {
120687
+ return checkEnv(obj);
120688
+ });
120689
+ exports2[vendor.constant] = isCI2;
120690
+ if (isCI2) {
120691
+ exports2.name = vendor.name;
120692
+ switch (typeof vendor.pr) {
120693
+ case "string":
120694
+ exports2.isPR = !!env5[vendor.pr];
120695
+ break;
120696
+ case "object":
120697
+ if ("env" in vendor.pr) {
120698
+ exports2.isPR = vendor.pr.env in env5 && env5[vendor.pr.env] !== vendor.pr.ne;
120699
+ } else if ("any" in vendor.pr) {
120700
+ exports2.isPR = vendor.pr.any.some(function(key2) {
120701
+ return !!env5[key2];
120702
+ });
120703
+ } else {
120704
+ exports2.isPR = checkEnv(vendor.pr);
120705
+ }
120706
+ break;
120707
+ default:
120708
+ exports2.isPR = null;
120709
+ }
120710
+ }
120711
+ });
120712
+ exports2.isCI = !!(env5.CI || env5.CONTINUOUS_INTEGRATION || env5.BUILD_NUMBER || env5.RUN_ID || exports2.name || false);
120713
+ function checkEnv(obj) {
120714
+ if (typeof obj === "string")
120715
+ return !!env5[obj];
120716
+ return Object.keys(obj).every(function(k) {
120717
+ return env5[k] === obj[k];
120718
+ });
120719
+ }
120720
+ }
120721
+ });
120722
+
120723
+ // ../../node_modules/is-ci/index.js
120724
+ var require_is_ci2 = __commonJS({
120725
+ "../../node_modules/is-ci/index.js"(exports2, module2) {
120726
+ "use strict";
120727
+ init_import_meta_url();
120728
+ module2.exports = require_ci_info2().isCI;
120729
+ }
120730
+ });
120731
+
120475
120732
  // ../../node_modules/lodash.isequal/index.js
120476
120733
  var require_lodash2 = __commonJS({
120477
120734
  "../../node_modules/lodash.isequal/index.js"(exports2, module2) {
@@ -124944,284 +125201,6 @@ var require_build4 = __commonJS({
124944
125201
  }
124945
125202
  });
124946
125203
 
124947
- // ../../node_modules/ci-info/vendors.json
124948
- var require_vendors2 = __commonJS({
124949
- "../../node_modules/ci-info/vendors.json"(exports2, module2) {
124950
- module2.exports = [
124951
- {
124952
- name: "AppVeyor",
124953
- constant: "APPVEYOR",
124954
- env: "APPVEYOR",
124955
- pr: "APPVEYOR_PULL_REQUEST_NUMBER"
124956
- },
124957
- {
124958
- name: "Azure Pipelines",
124959
- constant: "AZURE_PIPELINES",
124960
- env: "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",
124961
- pr: "SYSTEM_PULLREQUEST_PULLREQUESTID"
124962
- },
124963
- {
124964
- name: "Appcircle",
124965
- constant: "APPCIRCLE",
124966
- env: "AC_APPCIRCLE"
124967
- },
124968
- {
124969
- name: "Bamboo",
124970
- constant: "BAMBOO",
124971
- env: "bamboo_planKey"
124972
- },
124973
- {
124974
- name: "Bitbucket Pipelines",
124975
- constant: "BITBUCKET",
124976
- env: "BITBUCKET_COMMIT",
124977
- pr: "BITBUCKET_PR_ID"
124978
- },
124979
- {
124980
- name: "Bitrise",
124981
- constant: "BITRISE",
124982
- env: "BITRISE_IO",
124983
- pr: "BITRISE_PULL_REQUEST"
124984
- },
124985
- {
124986
- name: "Buddy",
124987
- constant: "BUDDY",
124988
- env: "BUDDY_WORKSPACE_ID",
124989
- pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
124990
- },
124991
- {
124992
- name: "Buildkite",
124993
- constant: "BUILDKITE",
124994
- env: "BUILDKITE",
124995
- pr: { env: "BUILDKITE_PULL_REQUEST", ne: "false" }
124996
- },
124997
- {
124998
- name: "CircleCI",
124999
- constant: "CIRCLE",
125000
- env: "CIRCLECI",
125001
- pr: "CIRCLE_PULL_REQUEST"
125002
- },
125003
- {
125004
- name: "Cirrus CI",
125005
- constant: "CIRRUS",
125006
- env: "CIRRUS_CI",
125007
- pr: "CIRRUS_PR"
125008
- },
125009
- {
125010
- name: "AWS CodeBuild",
125011
- constant: "CODEBUILD",
125012
- env: "CODEBUILD_BUILD_ARN"
125013
- },
125014
- {
125015
- name: "Codefresh",
125016
- constant: "CODEFRESH",
125017
- env: "CF_BUILD_ID",
125018
- pr: { any: ["CF_PULL_REQUEST_NUMBER", "CF_PULL_REQUEST_ID"] }
125019
- },
125020
- {
125021
- name: "Codeship",
125022
- constant: "CODESHIP",
125023
- env: { CI_NAME: "codeship" }
125024
- },
125025
- {
125026
- name: "Drone",
125027
- constant: "DRONE",
125028
- env: "DRONE",
125029
- pr: { DRONE_BUILD_EVENT: "pull_request" }
125030
- },
125031
- {
125032
- name: "dsari",
125033
- constant: "DSARI",
125034
- env: "DSARI"
125035
- },
125036
- {
125037
- name: "Expo Application Services",
125038
- constant: "EAS",
125039
- env: "EAS_BUILD"
125040
- },
125041
- {
125042
- name: "GitHub Actions",
125043
- constant: "GITHUB_ACTIONS",
125044
- env: "GITHUB_ACTIONS",
125045
- pr: { GITHUB_EVENT_NAME: "pull_request" }
125046
- },
125047
- {
125048
- name: "GitLab CI",
125049
- constant: "GITLAB",
125050
- env: "GITLAB_CI",
125051
- pr: "CI_MERGE_REQUEST_ID"
125052
- },
125053
- {
125054
- name: "GoCD",
125055
- constant: "GOCD",
125056
- env: "GO_PIPELINE_LABEL"
125057
- },
125058
- {
125059
- name: "LayerCI",
125060
- constant: "LAYERCI",
125061
- env: "LAYERCI",
125062
- pr: "LAYERCI_PULL_REQUEST"
125063
- },
125064
- {
125065
- name: "Hudson",
125066
- constant: "HUDSON",
125067
- env: "HUDSON_URL"
125068
- },
125069
- {
125070
- name: "Jenkins",
125071
- constant: "JENKINS",
125072
- env: ["JENKINS_URL", "BUILD_ID"],
125073
- pr: { any: ["ghprbPullId", "CHANGE_ID"] }
125074
- },
125075
- {
125076
- name: "Magnum CI",
125077
- constant: "MAGNUM",
125078
- env: "MAGNUM"
125079
- },
125080
- {
125081
- name: "Netlify CI",
125082
- constant: "NETLIFY",
125083
- env: "NETLIFY",
125084
- pr: { env: "PULL_REQUEST", ne: "false" }
125085
- },
125086
- {
125087
- name: "Nevercode",
125088
- constant: "NEVERCODE",
125089
- env: "NEVERCODE",
125090
- pr: { env: "NEVERCODE_PULL_REQUEST", ne: "false" }
125091
- },
125092
- {
125093
- name: "Render",
125094
- constant: "RENDER",
125095
- env: "RENDER",
125096
- pr: { IS_PULL_REQUEST: "true" }
125097
- },
125098
- {
125099
- name: "Sail CI",
125100
- constant: "SAIL",
125101
- env: "SAILCI",
125102
- pr: "SAIL_PULL_REQUEST_NUMBER"
125103
- },
125104
- {
125105
- name: "Semaphore",
125106
- constant: "SEMAPHORE",
125107
- env: "SEMAPHORE",
125108
- pr: "PULL_REQUEST_NUMBER"
125109
- },
125110
- {
125111
- name: "Screwdriver",
125112
- constant: "SCREWDRIVER",
125113
- env: "SCREWDRIVER",
125114
- pr: { env: "SD_PULL_REQUEST", ne: "false" }
125115
- },
125116
- {
125117
- name: "Shippable",
125118
- constant: "SHIPPABLE",
125119
- env: "SHIPPABLE",
125120
- pr: { IS_PULL_REQUEST: "true" }
125121
- },
125122
- {
125123
- name: "Solano CI",
125124
- constant: "SOLANO",
125125
- env: "TDDIUM",
125126
- pr: "TDDIUM_PR_ID"
125127
- },
125128
- {
125129
- name: "Strider CD",
125130
- constant: "STRIDER",
125131
- env: "STRIDER"
125132
- },
125133
- {
125134
- name: "TaskCluster",
125135
- constant: "TASKCLUSTER",
125136
- env: ["TASK_ID", "RUN_ID"]
125137
- },
125138
- {
125139
- name: "TeamCity",
125140
- constant: "TEAMCITY",
125141
- env: "TEAMCITY_VERSION"
125142
- },
125143
- {
125144
- name: "Travis CI",
125145
- constant: "TRAVIS",
125146
- env: "TRAVIS",
125147
- pr: { env: "TRAVIS_PULL_REQUEST", ne: "false" }
125148
- },
125149
- {
125150
- name: "Vercel",
125151
- constant: "VERCEL",
125152
- env: "NOW_BUILDER"
125153
- },
125154
- {
125155
- name: "Visual Studio App Center",
125156
- constant: "APPCENTER",
125157
- env: "APPCENTER_BUILD_ID"
125158
- }
125159
- ];
125160
- }
125161
- });
125162
-
125163
- // ../../node_modules/ci-info/index.js
125164
- var require_ci_info2 = __commonJS({
125165
- "../../node_modules/ci-info/index.js"(exports2) {
125166
- "use strict";
125167
- init_import_meta_url();
125168
- var vendors = require_vendors2();
125169
- var env5 = process.env;
125170
- Object.defineProperty(exports2, "_vendors", {
125171
- value: vendors.map(function(v) {
125172
- return v.constant;
125173
- })
125174
- });
125175
- exports2.name = null;
125176
- exports2.isPR = null;
125177
- vendors.forEach(function(vendor) {
125178
- const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
125179
- const isCI2 = envs.every(function(obj) {
125180
- return checkEnv(obj);
125181
- });
125182
- exports2[vendor.constant] = isCI2;
125183
- if (isCI2) {
125184
- exports2.name = vendor.name;
125185
- switch (typeof vendor.pr) {
125186
- case "string":
125187
- exports2.isPR = !!env5[vendor.pr];
125188
- break;
125189
- case "object":
125190
- if ("env" in vendor.pr) {
125191
- exports2.isPR = vendor.pr.env in env5 && env5[vendor.pr.env] !== vendor.pr.ne;
125192
- } else if ("any" in vendor.pr) {
125193
- exports2.isPR = vendor.pr.any.some(function(key2) {
125194
- return !!env5[key2];
125195
- });
125196
- } else {
125197
- exports2.isPR = checkEnv(vendor.pr);
125198
- }
125199
- break;
125200
- default:
125201
- exports2.isPR = null;
125202
- }
125203
- }
125204
- });
125205
- exports2.isCI = !!(env5.CI || env5.CONTINUOUS_INTEGRATION || env5.BUILD_NUMBER || env5.RUN_ID || exports2.name || false);
125206
- function checkEnv(obj) {
125207
- if (typeof obj === "string")
125208
- return !!env5[obj];
125209
- return Object.keys(obj).every(function(k) {
125210
- return env5[k] === obj[k];
125211
- });
125212
- }
125213
- }
125214
- });
125215
-
125216
- // ../../node_modules/is-ci/index.js
125217
- var require_is_ci2 = __commonJS({
125218
- "../../node_modules/is-ci/index.js"(exports2, module2) {
125219
- "use strict";
125220
- init_import_meta_url();
125221
- module2.exports = require_ci_info2().isCI;
125222
- }
125223
- });
125224
-
125225
125204
  // ../../node_modules/semiver/dist/semiver.js
125226
125205
  var require_semiver = __commonJS({
125227
125206
  "../../node_modules/semiver/dist/semiver.js"(exports2, module2) {
@@ -132106,7 +132085,7 @@ var validateKVBinding = (diagnostics, field, value) => {
132106
132085
  );
132107
132086
  isValid = false;
132108
132087
  }
132109
- if (!isRequiredProperty(value, "id", "string")) {
132088
+ if (!isRequiredProperty(value, "id", "string") || value.id.length === 0) {
132110
132089
  diagnostics.errors.push(
132111
132090
  `"${field}" bindings should have a string "id" field but got ${JSON.stringify(
132112
132091
  value
@@ -132142,7 +132121,7 @@ var validateR2Binding = (diagnostics, field, value) => {
132142
132121
  );
132143
132122
  isValid = false;
132144
132123
  }
132145
- if (!isRequiredProperty(value, "bucket_name", "string")) {
132124
+ if (!isRequiredProperty(value, "bucket_name", "string") || value.bucket_name.length === 0) {
132146
132125
  diagnostics.errors.push(
132147
132126
  `"${field}" bindings should have a string "bucket_name" field but got ${JSON.stringify(
132148
132127
  value
@@ -134008,7 +133987,7 @@ var import_websocket_server = __toESM(require_websocket_server2(), 1);
134008
133987
  var wrapper_default = import_websocket.default;
134009
133988
 
134010
133989
  // package.json
134011
- var version = "2.0.26";
133990
+ var version = "2.0.27";
134012
133991
  var package_default = {
134013
133992
  name: "wrangler",
134014
133993
  version,
@@ -134388,6 +134367,7 @@ function usePreviewServer({
134388
134367
  };
134389
134368
  }
134390
134369
  const cleanupListeners = [];
134370
+ logger.debug("PREVIEW URL:", `https://${previewToken.host}`);
134391
134371
  const remote = (0, import_node_http2.connect)(`https://${previewToken.host}`);
134392
134372
  cleanupListeners.push(() => remote.destroy());
134393
134373
  remote.on("close", retryServerSetup);
@@ -134420,6 +134400,14 @@ function usePreviewServer({
134420
134400
  }
134421
134401
  }
134422
134402
  const request = message.pipe(remote.request(headers));
134403
+ logger.debug(
134404
+ "WORKER REQUEST",
134405
+ new Date().toLocaleTimeString(),
134406
+ method,
134407
+ url3
134408
+ );
134409
+ logger.debug("HEADERS", JSON.stringify(headers, null, 2));
134410
+ logger.debug("PREVIEW TOKEN", previewToken);
134423
134411
  request.on("response", (responseHeaders) => {
134424
134412
  const status = responseHeaders[":status"] ?? 500;
134425
134413
  logger.log(new Date().toLocaleTimeString(), method, url3, status);
@@ -135606,6 +135594,15 @@ init_import_meta_url();
135606
135594
  var import_fs5 = require("fs");
135607
135595
  var path13 = __toESM(require("path"));
135608
135596
 
135597
+ // src/is-ci.ts
135598
+ init_import_meta_url();
135599
+ var import_is_ci = __toESM(require_is_ci2());
135600
+ var CI = {
135601
+ isCI() {
135602
+ return import_is_ci.default;
135603
+ }
135604
+ };
135605
+
135609
135606
  // src/is-interactive.ts
135610
135607
  init_import_meta_url();
135611
135608
  function isInteractive() {
@@ -135636,7 +135633,7 @@ var arrayFormatter = new Intl.ListFormat("en", {
135636
135633
  type: "conjunction"
135637
135634
  });
135638
135635
  function showCacheMessage(fields, folder) {
135639
- if (!cacheMessageShown && isInteractive()) {
135636
+ if (!cacheMessageShown && isInteractive() && !CI.isCI()) {
135640
135637
  if (fields.length > 0) {
135641
135638
  logger.log(
135642
135639
  `Retrieving cached values for ${arrayFormatter.format(
@@ -136165,14 +136162,15 @@ function readAuthConfigFile() {
136165
136162
  return toml;
136166
136163
  }
136167
136164
  async function loginOrRefreshIfRequired() {
136165
+ const { isCI: isCI2 } = CI;
136168
136166
  if (!getAPIToken()) {
136169
- return isInteractive() && await login();
136167
+ return isInteractive() && !isCI2() && await login();
136170
136168
  } else if (isAccessTokenExpired()) {
136171
136169
  const didRefresh = await refreshToken();
136172
136170
  if (didRefresh) {
136173
136171
  return true;
136174
136172
  } else {
136175
- return isInteractive() && await login();
136173
+ return isInteractive() && !isCI2() && await login();
136176
136174
  }
136177
136175
  } else {
136178
136176
  return true;
@@ -136338,7 +136336,7 @@ async function getAccountId() {
136338
136336
  saveAccountToCache({ id: accounts[0].id, name: accounts[0].name });
136339
136337
  return accounts[0].id;
136340
136338
  }
136341
- if (isInteractive()) {
136339
+ if (isInteractive() && !CI.isCI()) {
136342
136340
  const account = await new Promise(
136343
136341
  (resolve13, reject) => {
136344
136342
  const { unmount } = (0, import_ink2.render)(
@@ -136369,7 +136367,7 @@ Available accounts are ("<name>" - "<id>"):
136369
136367
  async function requireAuth(config) {
136370
136368
  const loggedIn = await loginOrRefreshIfRequired();
136371
136369
  if (!loggedIn) {
136372
- if (!isInteractive()) {
136370
+ if (!isInteractive() || CI.isCI()) {
136373
136371
  throw new Error(
136374
136372
  "In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work. Please go to https://developers.cloudflare.com/api/tokens/create/ for instructions on how to create an api token, and assign its value to CLOUDFLARE_API_TOKEN."
136375
136373
  );
@@ -136423,6 +136421,12 @@ async function fetchInternal(resource, init = {}, queryParams, abortSignal) {
136423
136421
  addUserAgent(headers);
136424
136422
  const queryString = queryParams ? `?${queryParams.toString()}` : "";
136425
136423
  const method = init.method ?? "GET";
136424
+ logger.debug(
136425
+ `-- START CF API REQUEST: ${method} ${getCloudflareAPIBaseURL()}${resource}${queryString}`
136426
+ );
136427
+ logger.debug("HEADERS:", JSON.stringify(headers, null, 2));
136428
+ logger.debug("INIT:", JSON.stringify(init, null, 2));
136429
+ logger.debug("-- END CF API REQUEST");
136426
136430
  const response = await (0, import_undici3.fetch)(
136427
136431
  `${getCloudflareAPIBaseURL()}${resource}${queryString}`,
136428
136432
  {
@@ -136433,6 +136437,14 @@ async function fetchInternal(resource, init = {}, queryParams, abortSignal) {
136433
136437
  }
136434
136438
  );
136435
136439
  const jsonText = await response.text();
136440
+ logger.debug(
136441
+ "-- START CF API RESPONSE:",
136442
+ response.statusText,
136443
+ response.status
136444
+ );
136445
+ logger.debug("HEADERS:", JSON.stringify(response.headers, null, 2));
136446
+ logger.debug("RESPONSE:", jsonText);
136447
+ logger.debug("-- END CF API RESPONSE");
136436
136448
  try {
136437
136449
  return parseJSON(jsonText);
136438
136450
  } catch (err2) {
@@ -138533,15 +138545,6 @@ function select(text, options, initialIndex) {
138533
138545
  });
138534
138546
  }
138535
138547
 
138536
- // src/metrics/is-ci.ts
138537
- init_import_meta_url();
138538
- var import_is_ci = __toESM(require_is_ci2());
138539
- var CI = {
138540
- isCI() {
138541
- return import_is_ci.default;
138542
- }
138543
- };
138544
-
138545
138548
  // src/metrics/metrics-config.ts
138546
138549
  var CURRENT_METRICS_DATE = new Date(2022, 6, 4);
138547
138550
  var USER_ID_CACHE_PATH = "user-id.json";
@@ -138664,7 +138667,7 @@ async function getMetricsDispatcher(options) {
138664
138667
  }
138665
138668
  };
138666
138669
  async function dispatch(event) {
138667
- if (!SPARROW_SOURCE_KEY) {
138670
+ if (false) {
138668
138671
  logger.debug(
138669
138672
  "Metrics dispatcher: Source Key not provided. Be sure to initialize before sending events.",
138670
138673
  event
@@ -138697,7 +138700,7 @@ async function getMetricsDispatcher(options) {
138697
138700
  headers: {
138698
138701
  Accept: "*/*",
138699
138702
  "Content-Type": "application/json",
138700
- "Sparrow-Source-Key": SPARROW_SOURCE_KEY
138703
+ "Sparrow-Source-Key": "50598e014ed44c739ec8074fdc16057c"
138701
138704
  },
138702
138705
  mode: "cors",
138703
138706
  keepalive: true,
@@ -142844,7 +142847,7 @@ Have you considered using Cloudflare Pages instead? See https://pages.cloudflare
142844
142847
  logger.log(
142845
142848
  `Creating a worker in ${import_node_path18.default.basename(creationDirectory)} from ${template}`
142846
142849
  );
142847
- await (0, import_create_cloudflare.setup)(creationDirectory, template, {
142850
+ await (0, import_create_cloudflare.setup)(import_node_path18.default.basename(creationDirectory), template, {
142848
142851
  init: true,
142849
142852
  debug: logger.loggerLevel === "debug",
142850
142853
  force: false
@@ -144240,23 +144243,14 @@ var Handler2 = async ({
144240
144243
  true
144241
144244
  );
144242
144245
  await sendMetricsEvent("run pages dev");
144246
+ CLEANUP_CALLBACKS.push(stop);
144243
144247
  waitUntilExit().then(() => {
144244
144248
  CLEANUP();
144245
- stop();
144246
144249
  process.exit(0);
144247
144250
  });
144248
- process.on("exit", () => {
144249
- CLEANUP();
144250
- stop();
144251
- });
144252
- process.on("SIGINT", () => {
144253
- CLEANUP();
144254
- stop();
144255
- });
144256
- process.on("SIGTERM", () => {
144257
- CLEANUP();
144258
- stop();
144259
- });
144251
+ process.on("exit", CLEANUP);
144252
+ process.on("SIGINT", CLEANUP);
144253
+ process.on("SIGTERM", CLEANUP);
144260
144254
  };
144261
144255
  function isWindows() {
144262
144256
  return process.platform === "win32";
@@ -144336,6 +144330,8 @@ async function spawnProxyProcess({
144336
144330
  });
144337
144331
  proxy2.on("close", (code) => {
144338
144332
  logger.error(`Proxy exited with status ${code}.`);
144333
+ CLEANUP();
144334
+ process.exitCode = code ?? 0;
144339
144335
  });
144340
144336
  while (!proxy2.pid) {
144341
144337
  }
@@ -146862,10 +146858,10 @@ async function listR2Buckets(accountId) {
146862
146858
  return results.buckets;
146863
146859
  }
146864
146860
  async function createR2Bucket(accountId, bucketName) {
146865
- return await fetchResult(
146866
- `/accounts/${accountId}/r2/buckets/${bucketName}`,
146867
- { method: "PUT" }
146868
- );
146861
+ return await fetchResult(`/accounts/${accountId}/r2/buckets`, {
146862
+ method: "POST",
146863
+ body: JSON.stringify({ name: bucketName })
146864
+ });
146869
146865
  }
146870
146866
  async function deleteR2Bucket(accountId, bucketName) {
146871
146867
  return await fetchResult(
@@ -147168,7 +147164,9 @@ function Accounts(props) {
147168
147164
  }
147169
147165
  function Permissions(props) {
147170
147166
  const permissions = props.tokenPermissions?.map((scope) => scope.split(":")) || [];
147171
- return props.tokenType === "OAuth Token" ? props.tokenPermissions ? /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(import_ink10.Text, null, "\u{1F513} Token Permissions: If scopes are missing, you may need to logout and re-login."), /* @__PURE__ */ import_react14.default.createElement(import_ink10.Text, null, "Scope (Access)"), permissions.map(([type2, name]) => /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(import_ink10.Text, null, "- ", type2, " ", name && `(${name})`)))) : null : /* @__PURE__ */ import_react14.default.createElement(import_ink10.Text, null, "\u{1F513} To see token permissions visit https://dash.cloudflare.com/profile/api-tokens");
147167
+ return props.tokenType === "OAuth Token" ? props.tokenPermissions ? /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(import_ink10.Text, null, "\u{1F513} Token Permissions: If scopes are missing, you may need to logout and re-login."), /* @__PURE__ */ import_react14.default.createElement(import_ink10.Text, null, "Scope (Access)"), permissions.map(([scope, access3], index) => /* @__PURE__ */ import_react14.default.createElement(import_react14.Fragment, {
147168
+ key: `${scope}${index}`
147169
+ }, /* @__PURE__ */ import_react14.default.createElement(import_ink10.Text, null, "- ", scope, " ", access3 && `(${access3})`)))) : null : /* @__PURE__ */ import_react14.default.createElement(import_ink10.Text, null, "\u{1F513} To see token permissions visit https://dash.cloudflare.com/profile/api-tokens");
147172
147170
  }
147173
147171
  async function getUserInfo() {
147174
147172
  const apiToken = getAPIToken();