create-cloudflare 2.64.6 → 2.64.8
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/cli.js +231 -256
- package/package.json +7 -7
- package/templates/astro/workers/c3.ts +3 -41
- package/templates/nuxt/pages/templates/{env.d.ts → _cloudflare/env.d.ts} +1 -1
- package/templates/nuxt/pages/templates/app/env.d.ts +1 -0
- package/templates/nuxt/pages/templates/server/env.d.ts +1 -0
- package/templates/nuxt/workers/templates/{env.d.ts → _cloudflare/env.d.ts} +1 -1
- package/templates/nuxt/workers/templates/app/env.d.ts +1 -0
- package/templates/nuxt/workers/templates/server/env.d.ts +1 -0
- package/templates/react/pages/c3.ts +6 -1
- package/templates/react/workers/c3.ts +1 -0
- package/templates/astro/workers/templates/js/wrangler.jsonc +0 -16
- package/templates/astro/workers/templates/ts/wrangler.jsonc +0 -16
package/dist/cli.js
CHANGED
|
@@ -8086,7 +8086,7 @@ var require_runtime_features = __commonJS({
|
|
|
8086
8086
|
var require_webidl = __commonJS({
|
|
8087
8087
|
"../../node_modules/.pnpm/undici@7.18.2/node_modules/undici/lib/web/webidl/index.js"(exports2, module3) {
|
|
8088
8088
|
"use strict";
|
|
8089
|
-
var { types:
|
|
8089
|
+
var { types: types11, inspect: inspect2 } = require("node:util");
|
|
8090
8090
|
var { runtimeFeatures } = require_runtime_features();
|
|
8091
8091
|
var UNDEFINED = 1;
|
|
8092
8092
|
var BOOLEAN = 2;
|
|
@@ -8288,10 +8288,10 @@ var require_webidl = __commonJS({
|
|
|
8288
8288
|
}
|
|
8289
8289
|
};
|
|
8290
8290
|
webidl.util.IsResizableArrayBuffer = function(V2) {
|
|
8291
|
-
if (
|
|
8291
|
+
if (types11.isArrayBuffer(V2)) {
|
|
8292
8292
|
return V2.resizable;
|
|
8293
8293
|
}
|
|
8294
|
-
if (
|
|
8294
|
+
if (types11.isSharedArrayBuffer(V2)) {
|
|
8295
8295
|
return V2.growable;
|
|
8296
8296
|
}
|
|
8297
8297
|
throw webidl.errors.exception({
|
|
@@ -8338,7 +8338,7 @@ var require_webidl = __commonJS({
|
|
|
8338
8338
|
});
|
|
8339
8339
|
}
|
|
8340
8340
|
const result = {};
|
|
8341
|
-
if (!
|
|
8341
|
+
if (!types11.isProxy(O2)) {
|
|
8342
8342
|
const keys2 = [...Object.getOwnPropertyNames(O2), ...Object.getOwnPropertySymbols(O2)];
|
|
8343
8343
|
for (const key of keys2) {
|
|
8344
8344
|
const keyName = webidl.util.Stringify(key);
|
|
@@ -8428,7 +8428,7 @@ var require_webidl = __commonJS({
|
|
|
8428
8428
|
webidl.is.AbortSignal = webidl.util.MakeTypeAssertion(AbortSignal);
|
|
8429
8429
|
webidl.is.MessagePort = webidl.util.MakeTypeAssertion(MessagePort);
|
|
8430
8430
|
webidl.is.BufferSource = function(V2) {
|
|
8431
|
-
return
|
|
8431
|
+
return types11.isArrayBuffer(V2) || ArrayBuffer.isView(V2) && types11.isArrayBuffer(V2.buffer);
|
|
8432
8432
|
};
|
|
8433
8433
|
webidl.converters.DOMString = function(V2, prefix, argument, flags) {
|
|
8434
8434
|
if (V2 === null && webidl.util.HasFlag(flags, webidl.attributes.LegacyNullToEmptyString)) {
|
|
@@ -8489,7 +8489,7 @@ var require_webidl = __commonJS({
|
|
|
8489
8489
|
return x2;
|
|
8490
8490
|
};
|
|
8491
8491
|
webidl.converters.ArrayBuffer = function(V2, prefix, argument, flags) {
|
|
8492
|
-
if (webidl.util.Type(V2) !== OBJECT || !
|
|
8492
|
+
if (webidl.util.Type(V2) !== OBJECT || !types11.isArrayBuffer(V2)) {
|
|
8493
8493
|
throw webidl.errors.conversionFailed({
|
|
8494
8494
|
prefix,
|
|
8495
8495
|
argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
|
|
@@ -8505,7 +8505,7 @@ var require_webidl = __commonJS({
|
|
|
8505
8505
|
return V2;
|
|
8506
8506
|
};
|
|
8507
8507
|
webidl.converters.SharedArrayBuffer = function(V2, prefix, argument, flags) {
|
|
8508
|
-
if (webidl.util.Type(V2) !== OBJECT || !
|
|
8508
|
+
if (webidl.util.Type(V2) !== OBJECT || !types11.isSharedArrayBuffer(V2)) {
|
|
8509
8509
|
throw webidl.errors.conversionFailed({
|
|
8510
8510
|
prefix,
|
|
8511
8511
|
argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
|
|
@@ -8521,14 +8521,14 @@ var require_webidl = __commonJS({
|
|
|
8521
8521
|
return V2;
|
|
8522
8522
|
};
|
|
8523
8523
|
webidl.converters.TypedArray = function(V2, T2, prefix, argument, flags) {
|
|
8524
|
-
if (webidl.util.Type(V2) !== OBJECT || !
|
|
8524
|
+
if (webidl.util.Type(V2) !== OBJECT || !types11.isTypedArray(V2) || V2.constructor.name !== T2.name) {
|
|
8525
8525
|
throw webidl.errors.conversionFailed({
|
|
8526
8526
|
prefix,
|
|
8527
8527
|
argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
|
|
8528
8528
|
types: [T2.name]
|
|
8529
8529
|
});
|
|
8530
8530
|
}
|
|
8531
|
-
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) &&
|
|
8531
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types11.isSharedArrayBuffer(V2.buffer)) {
|
|
8532
8532
|
throw webidl.errors.exception({
|
|
8533
8533
|
header: prefix,
|
|
8534
8534
|
message: `${argument} cannot be a view on a shared array buffer.`
|
|
@@ -8543,14 +8543,14 @@ var require_webidl = __commonJS({
|
|
|
8543
8543
|
return V2;
|
|
8544
8544
|
};
|
|
8545
8545
|
webidl.converters.DataView = function(V2, prefix, argument, flags) {
|
|
8546
|
-
if (webidl.util.Type(V2) !== OBJECT || !
|
|
8546
|
+
if (webidl.util.Type(V2) !== OBJECT || !types11.isDataView(V2)) {
|
|
8547
8547
|
throw webidl.errors.conversionFailed({
|
|
8548
8548
|
prefix,
|
|
8549
8549
|
argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
|
|
8550
8550
|
types: ["DataView"]
|
|
8551
8551
|
});
|
|
8552
8552
|
}
|
|
8553
|
-
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) &&
|
|
8553
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types11.isSharedArrayBuffer(V2.buffer)) {
|
|
8554
8554
|
throw webidl.errors.exception({
|
|
8555
8555
|
header: prefix,
|
|
8556
8556
|
message: `${argument} cannot be a view on a shared array buffer.`
|
|
@@ -8565,14 +8565,14 @@ var require_webidl = __commonJS({
|
|
|
8565
8565
|
return V2;
|
|
8566
8566
|
};
|
|
8567
8567
|
webidl.converters.ArrayBufferView = function(V2, prefix, argument, flags) {
|
|
8568
|
-
if (webidl.util.Type(V2) !== OBJECT || !
|
|
8568
|
+
if (webidl.util.Type(V2) !== OBJECT || !types11.isArrayBufferView(V2)) {
|
|
8569
8569
|
throw webidl.errors.conversionFailed({
|
|
8570
8570
|
prefix,
|
|
8571
8571
|
argument: `${argument} ("${webidl.util.Stringify(V2)}")`,
|
|
8572
8572
|
types: ["ArrayBufferView"]
|
|
8573
8573
|
});
|
|
8574
8574
|
}
|
|
8575
|
-
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) &&
|
|
8575
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types11.isSharedArrayBuffer(V2.buffer)) {
|
|
8576
8576
|
throw webidl.errors.exception({
|
|
8577
8577
|
header: prefix,
|
|
8578
8578
|
message: `${argument} cannot be a view on a shared array buffer.`
|
|
@@ -8587,14 +8587,14 @@ var require_webidl = __commonJS({
|
|
|
8587
8587
|
return V2;
|
|
8588
8588
|
};
|
|
8589
8589
|
webidl.converters.BufferSource = function(V2, prefix, argument, flags) {
|
|
8590
|
-
if (
|
|
8590
|
+
if (types11.isArrayBuffer(V2)) {
|
|
8591
8591
|
return webidl.converters.ArrayBuffer(V2, prefix, argument, flags);
|
|
8592
8592
|
}
|
|
8593
|
-
if (
|
|
8593
|
+
if (types11.isArrayBufferView(V2)) {
|
|
8594
8594
|
flags &= ~webidl.attributes.AllowShared;
|
|
8595
8595
|
return webidl.converters.ArrayBufferView(V2, prefix, argument, flags);
|
|
8596
8596
|
}
|
|
8597
|
-
if (
|
|
8597
|
+
if (types11.isSharedArrayBuffer(V2)) {
|
|
8598
8598
|
throw webidl.errors.exception({
|
|
8599
8599
|
header: prefix,
|
|
8600
8600
|
message: `${argument} cannot be a SharedArrayBuffer.`
|
|
@@ -8607,13 +8607,13 @@ var require_webidl = __commonJS({
|
|
|
8607
8607
|
});
|
|
8608
8608
|
};
|
|
8609
8609
|
webidl.converters.AllowSharedBufferSource = function(V2, prefix, argument, flags) {
|
|
8610
|
-
if (
|
|
8610
|
+
if (types11.isArrayBuffer(V2)) {
|
|
8611
8611
|
return webidl.converters.ArrayBuffer(V2, prefix, argument, flags);
|
|
8612
8612
|
}
|
|
8613
|
-
if (
|
|
8613
|
+
if (types11.isSharedArrayBuffer(V2)) {
|
|
8614
8614
|
return webidl.converters.SharedArrayBuffer(V2, prefix, argument, flags);
|
|
8615
8615
|
}
|
|
8616
|
-
if (
|
|
8616
|
+
if (types11.isArrayBufferView(V2)) {
|
|
8617
8617
|
flags |= webidl.attributes.AllowShared;
|
|
8618
8618
|
return webidl.converters.ArrayBufferView(V2, prefix, argument, flags);
|
|
8619
8619
|
}
|
|
@@ -28667,7 +28667,7 @@ var require_index_688c5d50 = __commonJS({
|
|
|
28667
28667
|
}
|
|
28668
28668
|
}
|
|
28669
28669
|
};
|
|
28670
|
-
var
|
|
28670
|
+
var types11 = createCommonjsModule(function(module4, exports3) {
|
|
28671
28671
|
exports3.name = /* @__PURE__ */ new Map([
|
|
28672
28672
|
["0", "File"],
|
|
28673
28673
|
// same as File
|
|
@@ -28921,14 +28921,14 @@ var require_index_688c5d50 = __commonJS({
|
|
|
28921
28921
|
}
|
|
28922
28922
|
}
|
|
28923
28923
|
get type() {
|
|
28924
|
-
return
|
|
28924
|
+
return types11.name.get(this[TYPE]) || this[TYPE];
|
|
28925
28925
|
}
|
|
28926
28926
|
get typeKey() {
|
|
28927
28927
|
return this[TYPE];
|
|
28928
28928
|
}
|
|
28929
28929
|
set type(type) {
|
|
28930
|
-
if (
|
|
28931
|
-
this[TYPE] =
|
|
28930
|
+
if (types11.code.has(type))
|
|
28931
|
+
this[TYPE] = types11.code.get(type);
|
|
28932
28932
|
else
|
|
28933
28933
|
this[TYPE] = type;
|
|
28934
28934
|
}
|
|
@@ -32042,7 +32042,7 @@ var require_index_688c5d50 = __commonJS({
|
|
|
32042
32042
|
exports3.WriteEntry = writeEntry;
|
|
32043
32043
|
exports3.Header = header;
|
|
32044
32044
|
exports3.Pax = pax;
|
|
32045
|
-
exports3.types =
|
|
32045
|
+
exports3.types = types11;
|
|
32046
32046
|
});
|
|
32047
32047
|
var colorName = {
|
|
32048
32048
|
"aliceblue": [240, 248, 255],
|
|
@@ -47679,9 +47679,9 @@ var require_types = __commonJS({
|
|
|
47679
47679
|
/** @class */
|
|
47680
47680
|
(function(_super) {
|
|
47681
47681
|
(0, tslib_1.__extends)(OrType2, _super);
|
|
47682
|
-
function OrType2(
|
|
47682
|
+
function OrType2(types11) {
|
|
47683
47683
|
var _this = _super.call(this) || this;
|
|
47684
|
-
_this.types =
|
|
47684
|
+
_this.types = types11;
|
|
47685
47685
|
_this.kind = "OrType";
|
|
47686
47686
|
return _this;
|
|
47687
47687
|
}
|
|
@@ -47826,11 +47826,11 @@ var require_types = __commonJS({
|
|
|
47826
47826
|
function typesPlugin(_fork) {
|
|
47827
47827
|
var Type = {
|
|
47828
47828
|
or: function() {
|
|
47829
|
-
var
|
|
47829
|
+
var types11 = [];
|
|
47830
47830
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
47831
|
-
|
|
47831
|
+
types11[_i] = arguments[_i];
|
|
47832
47832
|
}
|
|
47833
|
-
return new OrType(
|
|
47833
|
+
return new OrType(types11.map(function(type) {
|
|
47834
47834
|
return Type.from(type);
|
|
47835
47835
|
}));
|
|
47836
47836
|
},
|
|
@@ -48280,9 +48280,9 @@ var require_path = __commonJS({
|
|
|
48280
48280
|
var Op = Object.prototype;
|
|
48281
48281
|
var hasOwn = Op.hasOwnProperty;
|
|
48282
48282
|
function pathPlugin(fork) {
|
|
48283
|
-
var
|
|
48284
|
-
var isArray =
|
|
48285
|
-
var isNumber =
|
|
48283
|
+
var types11 = fork.use(types_1.default);
|
|
48284
|
+
var isArray = types11.builtInTypes.array;
|
|
48285
|
+
var isNumber = types11.builtInTypes.number;
|
|
48286
48286
|
var Path = function Path2(value, parentPath, name3) {
|
|
48287
48287
|
if (!(this instanceof Path2)) {
|
|
48288
48288
|
throw new Error("Path constructor cannot be invoked without 'new'");
|
|
@@ -48582,13 +48582,13 @@ var require_scope = __commonJS({
|
|
|
48582
48582
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
48583
48583
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
48584
48584
|
function scopePlugin(fork) {
|
|
48585
|
-
var
|
|
48586
|
-
var Type =
|
|
48587
|
-
var namedTypes =
|
|
48585
|
+
var types11 = fork.use(types_1.default);
|
|
48586
|
+
var Type = types11.Type;
|
|
48587
|
+
var namedTypes = types11.namedTypes;
|
|
48588
48588
|
var Node = namedTypes.Node;
|
|
48589
48589
|
var Expression = namedTypes.Expression;
|
|
48590
|
-
var isArray =
|
|
48591
|
-
var b3 =
|
|
48590
|
+
var isArray = types11.builtInTypes.array;
|
|
48591
|
+
var b3 = types11.builders;
|
|
48592
48592
|
var Scope = function Scope2(path4, parentScope) {
|
|
48593
48593
|
if (!(this instanceof Scope2)) {
|
|
48594
48594
|
throw new Error("Scope constructor cannot be invoked without 'new'");
|
|
@@ -48656,7 +48656,7 @@ var require_scope = __commonJS({
|
|
|
48656
48656
|
++index;
|
|
48657
48657
|
}
|
|
48658
48658
|
var name3 = prefix + index;
|
|
48659
|
-
return this.bindings[name3] =
|
|
48659
|
+
return this.bindings[name3] = types11.builders.identifier(name3);
|
|
48660
48660
|
};
|
|
48661
48661
|
Sp.injectTemporary = function(identifier, init) {
|
|
48662
48662
|
identifier || (identifier = this.declareTemporary());
|
|
@@ -48736,7 +48736,7 @@ var require_scope = __commonJS({
|
|
|
48736
48736
|
bindings
|
|
48737
48737
|
);
|
|
48738
48738
|
} else if (Node.check(node) && !Expression.check(node)) {
|
|
48739
|
-
|
|
48739
|
+
types11.eachField(node, function(name3, child) {
|
|
48740
48740
|
var childPath = path4.get(name3);
|
|
48741
48741
|
if (!pathHasValue(childPath, child)) {
|
|
48742
48742
|
throw new Error("");
|
|
@@ -48815,24 +48815,24 @@ var require_scope = __commonJS({
|
|
|
48815
48815
|
addPattern(patternPath.get("argument"), bindings);
|
|
48816
48816
|
}
|
|
48817
48817
|
}
|
|
48818
|
-
function addTypePattern(patternPath,
|
|
48818
|
+
function addTypePattern(patternPath, types12) {
|
|
48819
48819
|
var pattern = patternPath.value;
|
|
48820
48820
|
namedTypes.Pattern.assert(pattern);
|
|
48821
48821
|
if (namedTypes.Identifier.check(pattern)) {
|
|
48822
|
-
if (hasOwn.call(
|
|
48823
|
-
|
|
48822
|
+
if (hasOwn.call(types12, pattern.name)) {
|
|
48823
|
+
types12[pattern.name].push(patternPath);
|
|
48824
48824
|
} else {
|
|
48825
|
-
|
|
48825
|
+
types12[pattern.name] = [patternPath];
|
|
48826
48826
|
}
|
|
48827
48827
|
}
|
|
48828
48828
|
}
|
|
48829
|
-
function addTypeParameter(parameterPath,
|
|
48829
|
+
function addTypeParameter(parameterPath, types12) {
|
|
48830
48830
|
var parameter = parameterPath.value;
|
|
48831
48831
|
FlowOrTSTypeParameterType.assert(parameter);
|
|
48832
|
-
if (hasOwn.call(
|
|
48833
|
-
|
|
48832
|
+
if (hasOwn.call(types12, parameter.name)) {
|
|
48833
|
+
types12[parameter.name].push(parameterPath);
|
|
48834
48834
|
} else {
|
|
48835
|
-
|
|
48835
|
+
types12[parameter.name] = [parameterPath];
|
|
48836
48836
|
}
|
|
48837
48837
|
}
|
|
48838
48838
|
Sp.lookup = function(name3) {
|
|
@@ -48870,11 +48870,11 @@ var require_node_path = __commonJS({
|
|
|
48870
48870
|
var path_1 = (0, tslib_1.__importDefault)(require_path());
|
|
48871
48871
|
var scope_1 = (0, tslib_1.__importDefault)(require_scope());
|
|
48872
48872
|
function nodePathPlugin(fork) {
|
|
48873
|
-
var
|
|
48874
|
-
var n =
|
|
48875
|
-
var b3 =
|
|
48876
|
-
var isNumber =
|
|
48877
|
-
var isArray =
|
|
48873
|
+
var types11 = fork.use(types_1.default);
|
|
48874
|
+
var n = types11.namedTypes;
|
|
48875
|
+
var b3 = types11.builders;
|
|
48876
|
+
var isNumber = types11.builtInTypes.number;
|
|
48877
|
+
var isArray = types11.builtInTypes.array;
|
|
48878
48878
|
var Path = fork.use(path_1.default);
|
|
48879
48879
|
var Scope = fork.use(scope_1.default);
|
|
48880
48880
|
var NodePath = function NodePath2(value, parentPath, name3) {
|
|
@@ -48965,7 +48965,7 @@ var require_node_path = __commonJS({
|
|
|
48965
48965
|
return scope || null;
|
|
48966
48966
|
};
|
|
48967
48967
|
NPp.getValueProperty = function(name3) {
|
|
48968
|
-
return
|
|
48968
|
+
return types11.getFieldValue(this.value, name3);
|
|
48969
48969
|
};
|
|
48970
48970
|
NPp.needsParens = function(assumeExpressionContext) {
|
|
48971
48971
|
var pp = this.parentPath;
|
|
@@ -49107,7 +49107,7 @@ var require_node_path = __commonJS({
|
|
|
49107
49107
|
return node.some(containsCallExpression);
|
|
49108
49108
|
}
|
|
49109
49109
|
if (n.Node.check(node)) {
|
|
49110
|
-
return
|
|
49110
|
+
return types11.someField(node, function(_name, child) {
|
|
49111
49111
|
return containsCallExpression(child);
|
|
49112
49112
|
});
|
|
49113
49113
|
}
|
|
@@ -49225,11 +49225,11 @@ var require_path_visitor = __commonJS({
|
|
|
49225
49225
|
var node_path_1 = (0, tslib_1.__importDefault)(require_node_path());
|
|
49226
49226
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
49227
49227
|
function pathVisitorPlugin(fork) {
|
|
49228
|
-
var
|
|
49228
|
+
var types11 = fork.use(types_1.default);
|
|
49229
49229
|
var NodePath = fork.use(node_path_1.default);
|
|
49230
|
-
var isArray =
|
|
49231
|
-
var isObject =
|
|
49232
|
-
var isFunction2 =
|
|
49230
|
+
var isArray = types11.builtInTypes.array;
|
|
49231
|
+
var isObject = types11.builtInTypes.object;
|
|
49232
|
+
var isFunction2 = types11.builtInTypes.function;
|
|
49233
49233
|
var undefined2;
|
|
49234
49234
|
var PathVisitor = function PathVisitor2() {
|
|
49235
49235
|
if (!(this instanceof PathVisitor2)) {
|
|
@@ -49249,7 +49249,7 @@ var require_path_visitor = __commonJS({
|
|
|
49249
49249
|
typeNames[methodName.slice("visit".length)] = true;
|
|
49250
49250
|
}
|
|
49251
49251
|
}
|
|
49252
|
-
var supertypeTable =
|
|
49252
|
+
var supertypeTable = types11.computeSupertypeLookupTable(typeNames);
|
|
49253
49253
|
var methodNameTable = /* @__PURE__ */ Object.create(null);
|
|
49254
49254
|
var typeNameKeys = Object.keys(supertypeTable);
|
|
49255
49255
|
var typeNameCount = typeNameKeys.length;
|
|
@@ -49368,7 +49368,7 @@ var require_path_visitor = __commonJS({
|
|
|
49368
49368
|
path4.each(visitor.visitWithoutReset, visitor);
|
|
49369
49369
|
} else if (!isObject.check(value)) {
|
|
49370
49370
|
} else {
|
|
49371
|
-
var childNames =
|
|
49371
|
+
var childNames = types11.getFieldNames(value);
|
|
49372
49372
|
if (visitor._shouldVisitComments && value.comments && childNames.indexOf("comments") < 0) {
|
|
49373
49373
|
childNames.push("comments");
|
|
49374
49374
|
}
|
|
@@ -49377,7 +49377,7 @@ var require_path_visitor = __commonJS({
|
|
|
49377
49377
|
for (var i = 0; i < childCount; ++i) {
|
|
49378
49378
|
var childName = childNames[i];
|
|
49379
49379
|
if (!hasOwn.call(value, childName)) {
|
|
49380
|
-
value[childName] =
|
|
49380
|
+
value[childName] = types11.getFieldValue(value, childName);
|
|
49381
49381
|
}
|
|
49382
49382
|
childPaths.push(path4.get(childName));
|
|
49383
49383
|
}
|
|
@@ -49517,13 +49517,13 @@ var require_equiv = __commonJS({
|
|
|
49517
49517
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
49518
49518
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
49519
49519
|
function default_1(fork) {
|
|
49520
|
-
var
|
|
49521
|
-
var getFieldNames =
|
|
49522
|
-
var getFieldValue =
|
|
49523
|
-
var isArray =
|
|
49524
|
-
var isObject =
|
|
49525
|
-
var isDate =
|
|
49526
|
-
var isRegExp =
|
|
49520
|
+
var types11 = fork.use(types_1.default);
|
|
49521
|
+
var getFieldNames = types11.getFieldNames;
|
|
49522
|
+
var getFieldValue = types11.getFieldValue;
|
|
49523
|
+
var isArray = types11.builtInTypes.array;
|
|
49524
|
+
var isObject = types11.builtInTypes.object;
|
|
49525
|
+
var isDate = types11.builtInTypes.Date;
|
|
49526
|
+
var isRegExp = types11.builtInTypes.RegExp;
|
|
49527
49527
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
49528
49528
|
function astNodesAreEquivalent(a, b3, problemPath) {
|
|
49529
49529
|
if (isArray.check(problemPath)) {
|
|
@@ -49673,24 +49673,24 @@ var require_fork = __commonJS({
|
|
|
49673
49673
|
var node_path_1 = (0, tslib_1.__importDefault)(require_node_path());
|
|
49674
49674
|
function default_1(plugins) {
|
|
49675
49675
|
var fork = createFork();
|
|
49676
|
-
var
|
|
49676
|
+
var types11 = fork.use(types_1.default);
|
|
49677
49677
|
plugins.forEach(fork.use);
|
|
49678
|
-
|
|
49678
|
+
types11.finalize();
|
|
49679
49679
|
var PathVisitor = fork.use(path_visitor_1.default);
|
|
49680
49680
|
return {
|
|
49681
|
-
Type:
|
|
49682
|
-
builtInTypes:
|
|
49683
|
-
namedTypes:
|
|
49684
|
-
builders:
|
|
49685
|
-
defineMethod:
|
|
49686
|
-
getFieldNames:
|
|
49687
|
-
getFieldValue:
|
|
49688
|
-
eachField:
|
|
49689
|
-
someField:
|
|
49690
|
-
getSupertypeNames:
|
|
49691
|
-
getBuilderName:
|
|
49681
|
+
Type: types11.Type,
|
|
49682
|
+
builtInTypes: types11.builtInTypes,
|
|
49683
|
+
namedTypes: types11.namedTypes,
|
|
49684
|
+
builders: types11.builders,
|
|
49685
|
+
defineMethod: types11.defineMethod,
|
|
49686
|
+
getFieldNames: types11.getFieldNames,
|
|
49687
|
+
getFieldValue: types11.getFieldValue,
|
|
49688
|
+
eachField: types11.eachField,
|
|
49689
|
+
someField: types11.someField,
|
|
49690
|
+
getSupertypeNames: types11.getSupertypeNames,
|
|
49691
|
+
getBuilderName: types11.getBuilderName,
|
|
49692
49692
|
astNodesAreEquivalent: fork.use(equiv_1.default),
|
|
49693
|
-
finalize:
|
|
49693
|
+
finalize: types11.finalize,
|
|
49694
49694
|
Path: fork.use(path_1.default),
|
|
49695
49695
|
NodePath: fork.use(node_path_1.default),
|
|
49696
49696
|
PathVisitor,
|
|
@@ -49726,9 +49726,9 @@ var require_shared = __commonJS({
|
|
|
49726
49726
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
49727
49727
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
49728
49728
|
function default_1(fork) {
|
|
49729
|
-
var
|
|
49730
|
-
var Type =
|
|
49731
|
-
var builtin =
|
|
49729
|
+
var types11 = fork.use(types_1.default);
|
|
49730
|
+
var Type = types11.Type;
|
|
49731
|
+
var builtin = types11.builtInTypes;
|
|
49732
49732
|
var isNumber = builtin.number;
|
|
49733
49733
|
function geq(than) {
|
|
49734
49734
|
return Type.from(function(value) {
|
|
@@ -49907,8 +49907,8 @@ var require_core2 = __commonJS({
|
|
|
49907
49907
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
49908
49908
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
49909
49909
|
function default_1(fork) {
|
|
49910
|
-
var
|
|
49911
|
-
var Type =
|
|
49910
|
+
var types11 = fork.use(types_1.default);
|
|
49911
|
+
var Type = types11.Type;
|
|
49912
49912
|
var def = Type.def;
|
|
49913
49913
|
var or = Type.or;
|
|
49914
49914
|
var shared = fork.use(shared_1.default);
|
|
@@ -49998,9 +49998,9 @@ var require_es6 = __commonJS({
|
|
|
49998
49998
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
49999
49999
|
function default_1(fork) {
|
|
50000
50000
|
fork.use(core_1.default);
|
|
50001
|
-
var
|
|
50002
|
-
var def =
|
|
50003
|
-
var or =
|
|
50001
|
+
var types11 = fork.use(types_1.default);
|
|
50002
|
+
var def = types11.Type.def;
|
|
50003
|
+
var or = types11.Type.or;
|
|
50004
50004
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50005
50005
|
def("Function").field("generator", Boolean, defaults["false"]).field("expression", Boolean, defaults["false"]).field("defaults", [or(def("Expression"), null)], defaults.emptyArray).field("rest", or(def("Identifier"), null), defaults["null"]);
|
|
50006
50006
|
def("RestElement").bases("Pattern").build("argument").field("argument", def("Pattern")).field(
|
|
@@ -50086,8 +50086,8 @@ var require_es2017 = __commonJS({
|
|
|
50086
50086
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
50087
50087
|
function default_1(fork) {
|
|
50088
50088
|
fork.use(es2016_1.default);
|
|
50089
|
-
var
|
|
50090
|
-
var def =
|
|
50089
|
+
var types11 = fork.use(types_1.default);
|
|
50090
|
+
var def = types11.Type.def;
|
|
50091
50091
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50092
50092
|
def("Function").field("async", Boolean, defaults["false"]);
|
|
50093
50093
|
def("AwaitExpression").bases("Expression").build("argument").field("argument", def("Expression"));
|
|
@@ -50108,9 +50108,9 @@ var require_es2018 = __commonJS({
|
|
|
50108
50108
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
50109
50109
|
function default_1(fork) {
|
|
50110
50110
|
fork.use(es2017_1.default);
|
|
50111
|
-
var
|
|
50112
|
-
var def =
|
|
50113
|
-
var or =
|
|
50111
|
+
var types11 = fork.use(types_1.default);
|
|
50112
|
+
var def = types11.Type.def;
|
|
50113
|
+
var or = types11.Type.or;
|
|
50114
50114
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50115
50115
|
def("ForOfStatement").field("await", Boolean, defaults["false"]);
|
|
50116
50116
|
def("SpreadProperty").bases("Node").build("argument").field("argument", def("Expression"));
|
|
@@ -50140,9 +50140,9 @@ var require_es2019 = __commonJS({
|
|
|
50140
50140
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
50141
50141
|
function default_1(fork) {
|
|
50142
50142
|
fork.use(es2018_1.default);
|
|
50143
|
-
var
|
|
50144
|
-
var def =
|
|
50145
|
-
var or =
|
|
50143
|
+
var types11 = fork.use(types_1.default);
|
|
50144
|
+
var def = types11.Type.def;
|
|
50145
|
+
var or = types11.Type.or;
|
|
50146
50146
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50147
50147
|
def("CatchClause").field("param", or(def("Pattern"), null), defaults["null"]);
|
|
50148
50148
|
}
|
|
@@ -50164,9 +50164,9 @@ var require_es20202 = __commonJS({
|
|
|
50164
50164
|
function default_1(fork) {
|
|
50165
50165
|
fork.use(es2020_1.default);
|
|
50166
50166
|
fork.use(es2019_1.default);
|
|
50167
|
-
var
|
|
50168
|
-
var def =
|
|
50169
|
-
var or =
|
|
50167
|
+
var types11 = fork.use(types_1.default);
|
|
50168
|
+
var def = types11.Type.def;
|
|
50169
|
+
var or = types11.Type.or;
|
|
50170
50170
|
var shared = fork.use(shared_1.default);
|
|
50171
50171
|
var defaults = shared.defaults;
|
|
50172
50172
|
def("ImportExpression").bases("Expression").build("source").field("source", def("Expression"));
|
|
@@ -50210,8 +50210,8 @@ var require_es2022 = __commonJS({
|
|
|
50210
50210
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
50211
50211
|
function default_1(fork) {
|
|
50212
50212
|
fork.use(es2021_1.default);
|
|
50213
|
-
var
|
|
50214
|
-
var def =
|
|
50213
|
+
var types11 = fork.use(types_1.default);
|
|
50214
|
+
var def = types11.Type.def;
|
|
50215
50215
|
def("StaticBlock").bases("Declaration").build("body").field("body", [def("Statement")]);
|
|
50216
50216
|
}
|
|
50217
50217
|
exports2.default = default_1;
|
|
@@ -50230,9 +50230,9 @@ var require_es_proposals = __commonJS({
|
|
|
50230
50230
|
var es2022_1 = (0, tslib_1.__importDefault)(require_es2022());
|
|
50231
50231
|
function default_1(fork) {
|
|
50232
50232
|
fork.use(es2022_1.default);
|
|
50233
|
-
var
|
|
50234
|
-
var Type =
|
|
50235
|
-
var def =
|
|
50233
|
+
var types11 = fork.use(types_1.default);
|
|
50234
|
+
var Type = types11.Type;
|
|
50235
|
+
var def = types11.Type.def;
|
|
50236
50236
|
var or = Type.or;
|
|
50237
50237
|
var shared = fork.use(shared_1.default);
|
|
50238
50238
|
var defaults = shared.defaults;
|
|
@@ -50270,9 +50270,9 @@ var require_jsx = __commonJS({
|
|
|
50270
50270
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
50271
50271
|
function default_1(fork) {
|
|
50272
50272
|
fork.use(es_proposals_1.default);
|
|
50273
|
-
var
|
|
50274
|
-
var def =
|
|
50275
|
-
var or =
|
|
50273
|
+
var types11 = fork.use(types_1.default);
|
|
50274
|
+
var def = types11.Type.def;
|
|
50275
|
+
var or = types11.Type.or;
|
|
50276
50276
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50277
50277
|
def("JSXAttribute").bases("Node").build("name", "value").field("name", or(def("JSXIdentifier"), def("JSXNamespacedName"))).field("value", or(
|
|
50278
50278
|
def("Literal"),
|
|
@@ -50334,9 +50334,9 @@ var require_type_annotations = __commonJS({
|
|
|
50334
50334
|
var types_1 = (0, tslib_1.__importDefault)(require_types());
|
|
50335
50335
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
50336
50336
|
function default_1(fork) {
|
|
50337
|
-
var
|
|
50338
|
-
var def =
|
|
50339
|
-
var or =
|
|
50337
|
+
var types11 = fork.use(types_1.default);
|
|
50338
|
+
var def = types11.Type.def;
|
|
50339
|
+
var or = types11.Type.or;
|
|
50340
50340
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50341
50341
|
var TypeAnnotation = or(def("TypeAnnotation"), def("TSTypeAnnotation"), null);
|
|
50342
50342
|
var TypeParamDecl = or(def("TypeParameterDeclaration"), def("TSTypeParameterDeclaration"), null);
|
|
@@ -50369,9 +50369,9 @@ var require_flow = __commonJS({
|
|
|
50369
50369
|
function default_1(fork) {
|
|
50370
50370
|
fork.use(es_proposals_1.default);
|
|
50371
50371
|
fork.use(type_annotations_1.default);
|
|
50372
|
-
var
|
|
50373
|
-
var def =
|
|
50374
|
-
var or =
|
|
50372
|
+
var types11 = fork.use(types_1.default);
|
|
50373
|
+
var def = types11.Type.def;
|
|
50374
|
+
var or = types11.Type.or;
|
|
50375
50375
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50376
50376
|
def("Flow").bases("Node");
|
|
50377
50377
|
def("FlowType").bases("Flow");
|
|
@@ -50486,10 +50486,10 @@ var require_esprima2 = __commonJS({
|
|
|
50486
50486
|
var shared_1 = (0, tslib_1.__importDefault)(require_shared());
|
|
50487
50487
|
function default_1(fork) {
|
|
50488
50488
|
fork.use(es_proposals_1.default);
|
|
50489
|
-
var
|
|
50489
|
+
var types11 = fork.use(types_1.default);
|
|
50490
50490
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50491
|
-
var def =
|
|
50492
|
-
var or =
|
|
50491
|
+
var def = types11.Type.def;
|
|
50492
|
+
var or = types11.Type.or;
|
|
50493
50493
|
def("VariableDeclaration").field("declarations", [or(
|
|
50494
50494
|
def("VariableDeclarator"),
|
|
50495
50495
|
def("Identifier")
|
|
@@ -50546,11 +50546,11 @@ var require_babel_core = __commonJS({
|
|
|
50546
50546
|
function default_1(fork) {
|
|
50547
50547
|
var _a2, _b2, _c2, _d, _e;
|
|
50548
50548
|
fork.use(es_proposals_1.default);
|
|
50549
|
-
var
|
|
50549
|
+
var types11 = fork.use(types_1.default);
|
|
50550
50550
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50551
|
-
var def =
|
|
50552
|
-
var or =
|
|
50553
|
-
var isUndefined =
|
|
50551
|
+
var def = types11.Type.def;
|
|
50552
|
+
var or = types11.Type.or;
|
|
50553
|
+
var isUndefined = types11.builtInTypes.undefined;
|
|
50554
50554
|
def("Noop").bases("Statement").build();
|
|
50555
50555
|
def("DoExpression").bases("Expression").build("body").field("body", [def("Statement")]);
|
|
50556
50556
|
def("BindExpression").bases("Expression").build("object", "callee").field("object", or(def("Expression"), null)).field("callee", def("Expression"));
|
|
@@ -50585,7 +50585,7 @@ var require_babel_core = __commonJS({
|
|
|
50585
50585
|
raw: String
|
|
50586
50586
|
},
|
|
50587
50587
|
function getDefault() {
|
|
50588
|
-
var value =
|
|
50588
|
+
var value = types11.getFieldValue(this, "value");
|
|
50589
50589
|
return {
|
|
50590
50590
|
rawValue: value,
|
|
50591
50591
|
raw: toRaw ? toRaw(value) : String(value)
|
|
@@ -50676,8 +50676,8 @@ var require_babel = __commonJS({
|
|
|
50676
50676
|
var babel_core_1 = (0, tslib_1.__importDefault)(require_babel_core());
|
|
50677
50677
|
var flow_1 = (0, tslib_1.__importDefault)(require_flow());
|
|
50678
50678
|
function default_1(fork) {
|
|
50679
|
-
var
|
|
50680
|
-
var def =
|
|
50679
|
+
var types11 = fork.use(types_1.default);
|
|
50680
|
+
var def = types11.Type.def;
|
|
50681
50681
|
fork.use(babel_core_1.default);
|
|
50682
50682
|
fork.use(flow_1.default);
|
|
50683
50683
|
def("V8IntrinsicIdentifier").bases("Expression").build("name").field("name", String);
|
|
@@ -50701,12 +50701,12 @@ var require_typescript = __commonJS({
|
|
|
50701
50701
|
function default_1(fork) {
|
|
50702
50702
|
fork.use(babel_core_1.default);
|
|
50703
50703
|
fork.use(type_annotations_1.default);
|
|
50704
|
-
var
|
|
50705
|
-
var n =
|
|
50706
|
-
var def =
|
|
50707
|
-
var or =
|
|
50704
|
+
var types11 = fork.use(types_1.default);
|
|
50705
|
+
var n = types11.namedTypes;
|
|
50706
|
+
var def = types11.Type.def;
|
|
50707
|
+
var or = types11.Type.or;
|
|
50708
50708
|
var defaults = fork.use(shared_1.default).defaults;
|
|
50709
|
-
var StringLiteral =
|
|
50709
|
+
var StringLiteral = types11.Type.from(function(value, deep) {
|
|
50710
50710
|
if (n.StringLiteral && n.StringLiteral.check(value, deep)) {
|
|
50711
50711
|
return true;
|
|
50712
50712
|
}
|
|
@@ -52683,8 +52683,8 @@ var require_util9 = __commonJS({
|
|
|
52683
52683
|
exports2.isTrailingCommaEnabled = exports2.getParentExportDeclaration = exports2.isExportDeclaration = exports2.fixFaultyLocations = exports2.getTrueLoc = exports2.composeSourceMaps = exports2.copyPos = exports2.comparePos = exports2.getUnionOfKeys = exports2.getOption = exports2.isBrowser = exports2.getLineTerminator = void 0;
|
|
52684
52684
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
52685
52685
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
52686
|
-
var
|
|
52687
|
-
var n =
|
|
52686
|
+
var types11 = tslib_1.__importStar(require_main());
|
|
52687
|
+
var n = types11.namedTypes;
|
|
52688
52688
|
var source_map_1 = tslib_1.__importDefault(require_source_map());
|
|
52689
52689
|
var SourceMapConsumer = source_map_1.default.SourceMapConsumer;
|
|
52690
52690
|
var SourceMapGenerator = source_map_1.default.SourceMapGenerator;
|
|
@@ -53865,10 +53865,10 @@ var require_comments = __commonJS({
|
|
|
53865
53865
|
exports2.printComments = exports2.attach = void 0;
|
|
53866
53866
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
53867
53867
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
53868
|
-
var
|
|
53869
|
-
var n =
|
|
53870
|
-
var isArray =
|
|
53871
|
-
var isObject =
|
|
53868
|
+
var types11 = tslib_1.__importStar(require_main());
|
|
53869
|
+
var n = types11.namedTypes;
|
|
53870
|
+
var isArray = types11.builtInTypes.array;
|
|
53871
|
+
var isObject = types11.builtInTypes.object;
|
|
53872
53872
|
var lines_1 = require_lines();
|
|
53873
53873
|
var util_1 = require_util9();
|
|
53874
53874
|
var childNodesCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -53899,7 +53899,7 @@ var require_comments = __commonJS({
|
|
|
53899
53899
|
if (isArray.check(node)) {
|
|
53900
53900
|
names = Object.keys(node);
|
|
53901
53901
|
} else if (isObject.check(node)) {
|
|
53902
|
-
names =
|
|
53902
|
+
names = types11.getFieldNames(node);
|
|
53903
53903
|
} else {
|
|
53904
53904
|
return resultArray;
|
|
53905
53905
|
}
|
|
@@ -54079,7 +54079,7 @@ var require_comments = __commonJS({
|
|
|
54079
54079
|
function printComments(path4, print2) {
|
|
54080
54080
|
var value = path4.getValue();
|
|
54081
54081
|
var innerLines = print2(path4);
|
|
54082
|
-
var comments = n.Node.check(value) &&
|
|
54082
|
+
var comments = n.Node.check(value) && types11.getFieldValue(value, "comments");
|
|
54083
54083
|
if (!comments || comments.length === 0) {
|
|
54084
54084
|
return innerLines;
|
|
54085
54085
|
}
|
|
@@ -54087,8 +54087,8 @@ var require_comments = __commonJS({
|
|
|
54087
54087
|
var trailingParts = [innerLines];
|
|
54088
54088
|
path4.each(function(commentPath) {
|
|
54089
54089
|
var comment = commentPath.getValue();
|
|
54090
|
-
var leading =
|
|
54091
|
-
var trailing =
|
|
54090
|
+
var leading = types11.getFieldValue(comment, "leading");
|
|
54091
|
+
var trailing = types11.getFieldValue(comment, "trailing");
|
|
54092
54092
|
if (leading || trailing && !(n.Statement.check(value) || comment.type === "Block" || comment.type === "CommentBlock")) {
|
|
54093
54093
|
leadingParts.push(printLeadingComment(commentPath, print2));
|
|
54094
54094
|
} else if (trailing) {
|
|
@@ -54110,10 +54110,10 @@ var require_parser = __commonJS({
|
|
|
54110
54110
|
exports2.parse = void 0;
|
|
54111
54111
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
54112
54112
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
54113
|
-
var
|
|
54114
|
-
var b3 =
|
|
54115
|
-
var isObject =
|
|
54116
|
-
var isArray =
|
|
54113
|
+
var types11 = tslib_1.__importStar(require_main());
|
|
54114
|
+
var b3 = types11.builders;
|
|
54115
|
+
var isObject = types11.builtInTypes.object;
|
|
54116
|
+
var isArray = types11.builtInTypes.array;
|
|
54117
54117
|
var options_1 = require_options();
|
|
54118
54118
|
var lines_1 = require_lines();
|
|
54119
54119
|
var comments_1 = require_comments();
|
|
@@ -54300,11 +54300,11 @@ var require_fast_path = __commonJS({
|
|
|
54300
54300
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
54301
54301
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
54302
54302
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
54303
|
-
var
|
|
54303
|
+
var types11 = tslib_1.__importStar(require_main());
|
|
54304
54304
|
var util = tslib_1.__importStar(require_util9());
|
|
54305
|
-
var n =
|
|
54306
|
-
var isArray =
|
|
54307
|
-
var isNumber =
|
|
54305
|
+
var n = types11.namedTypes;
|
|
54306
|
+
var isArray = types11.builtInTypes.array;
|
|
54307
|
+
var isNumber = types11.builtInTypes.number;
|
|
54308
54308
|
var PRECEDENCE = {};
|
|
54309
54309
|
[
|
|
54310
54310
|
["??"],
|
|
@@ -54333,7 +54333,7 @@ var require_fast_path = __commonJS({
|
|
|
54333
54333
|
if (obj instanceof FastPath) {
|
|
54334
54334
|
return obj.copy();
|
|
54335
54335
|
}
|
|
54336
|
-
if (obj instanceof
|
|
54336
|
+
if (obj instanceof types11.NodePath) {
|
|
54337
54337
|
var copy = Object.create(FastPath.prototype);
|
|
54338
54338
|
var stack = [obj.value];
|
|
54339
54339
|
for (var pp = void 0; pp = obj.parentPath; obj = pp)
|
|
@@ -54645,7 +54645,7 @@ var require_fast_path = __commonJS({
|
|
|
54645
54645
|
return node.some(containsCallExpression);
|
|
54646
54646
|
}
|
|
54647
54647
|
if (n.Node.check(node)) {
|
|
54648
|
-
return
|
|
54648
|
+
return types11.someField(node, function(_name, child) {
|
|
54649
54649
|
return containsCallExpression(child);
|
|
54650
54650
|
});
|
|
54651
54651
|
}
|
|
@@ -54735,16 +54735,16 @@ var require_patcher = __commonJS({
|
|
|
54735
54735
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
54736
54736
|
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
54737
54737
|
var linesModule = tslib_1.__importStar(require_lines());
|
|
54738
|
-
var
|
|
54739
|
-
var Printable =
|
|
54740
|
-
var Expression =
|
|
54741
|
-
var ReturnStatement =
|
|
54742
|
-
var SourceLocation =
|
|
54738
|
+
var types11 = tslib_1.__importStar(require_main());
|
|
54739
|
+
var Printable = types11.namedTypes.Printable;
|
|
54740
|
+
var Expression = types11.namedTypes.Expression;
|
|
54741
|
+
var ReturnStatement = types11.namedTypes.ReturnStatement;
|
|
54742
|
+
var SourceLocation = types11.namedTypes.SourceLocation;
|
|
54743
54743
|
var util_1 = require_util9();
|
|
54744
54744
|
var fast_path_1 = tslib_1.__importDefault(require_fast_path());
|
|
54745
|
-
var isObject =
|
|
54746
|
-
var isArray =
|
|
54747
|
-
var isString2 =
|
|
54745
|
+
var isObject = types11.builtInTypes.object;
|
|
54746
|
+
var isArray = types11.builtInTypes.array;
|
|
54747
|
+
var isString2 = types11.builtInTypes.string;
|
|
54748
54748
|
var riskyAdjoiningCharExp = /[0-9a-z_$]/i;
|
|
54749
54749
|
var Patcher = function Patcher2(lines) {
|
|
54750
54750
|
assert_1.default.ok(this instanceof Patcher2);
|
|
@@ -55023,8 +55023,8 @@ var require_patcher = __commonJS({
|
|
|
55023
55023
|
if (k2.charAt(0) === "_") {
|
|
55024
55024
|
continue;
|
|
55025
55025
|
}
|
|
55026
|
-
newPath.stack.push(k2,
|
|
55027
|
-
oldPath.stack.push(k2,
|
|
55026
|
+
newPath.stack.push(k2, types11.getFieldValue(newNode, k2));
|
|
55027
|
+
oldPath.stack.push(k2, types11.getFieldValue(oldNode, k2));
|
|
55028
55028
|
var canReprint = findAnyReprints(newPath, oldPath, reprints);
|
|
55029
55029
|
newPath.stack.length -= 2;
|
|
55030
55030
|
oldPath.stack.length -= 2;
|
|
@@ -55052,10 +55052,10 @@ var require_printer = __commonJS({
|
|
|
55052
55052
|
var lines_1 = require_lines();
|
|
55053
55053
|
var options_1 = require_options();
|
|
55054
55054
|
var patcher_1 = require_patcher();
|
|
55055
|
-
var
|
|
55056
|
-
var namedTypes =
|
|
55057
|
-
var isString2 =
|
|
55058
|
-
var isObject =
|
|
55055
|
+
var types11 = tslib_1.__importStar(require_main());
|
|
55056
|
+
var namedTypes = types11.namedTypes;
|
|
55057
|
+
var isString2 = types11.builtInTypes.string;
|
|
55058
|
+
var isObject = types11.builtInTypes.object;
|
|
55059
55059
|
var fast_path_1 = tslib_1.__importDefault(require_fast_path());
|
|
55060
55060
|
var util = tslib_1.__importStar(require_util9());
|
|
55061
55061
|
var PrintResult = function PrintResult2(code, sourceMap) {
|
|
@@ -55230,7 +55230,7 @@ var require_printer = __commonJS({
|
|
|
55230
55230
|
case "OptionalMemberExpression": {
|
|
55231
55231
|
parts.push(path4.call(print2, "object"));
|
|
55232
55232
|
var property = path4.call(print2, "property");
|
|
55233
|
-
var optional =
|
|
55233
|
+
var optional = types11.getFieldValue(n, "optional");
|
|
55234
55234
|
if (n.computed) {
|
|
55235
55235
|
parts.push(optional ? "?.[" : "[", property, "]");
|
|
55236
55236
|
} else {
|
|
@@ -55507,7 +55507,7 @@ var require_printer = __commonJS({
|
|
|
55507
55507
|
if (n.typeArguments) {
|
|
55508
55508
|
parts.push(path4.call(print2, "typeArguments"));
|
|
55509
55509
|
}
|
|
55510
|
-
if (
|
|
55510
|
+
if (types11.getFieldValue(n, "optional")) {
|
|
55511
55511
|
parts.push("?.");
|
|
55512
55512
|
}
|
|
55513
55513
|
parts.push(printArgumentsList(path4, options, print2));
|
|
@@ -57177,8 +57177,8 @@ var require_printer = __commonJS({
|
|
|
57177
57177
|
});
|
|
57178
57178
|
}
|
|
57179
57179
|
function getPossibleRaw(node) {
|
|
57180
|
-
var value =
|
|
57181
|
-
var extra =
|
|
57180
|
+
var value = types11.getFieldValue(node, "value");
|
|
57181
|
+
var extra = types11.getFieldValue(node, "extra");
|
|
57182
57182
|
if (extra && typeof extra.raw === "string" && value == extra.rawValue) {
|
|
57183
57183
|
return extra.raw;
|
|
57184
57184
|
}
|
|
@@ -57226,8 +57226,8 @@ var require_main2 = __commonJS({
|
|
|
57226
57226
|
exports2.run = exports2.prettyPrint = exports2.print = exports2.visit = exports2.types = exports2.parse = void 0;
|
|
57227
57227
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
57228
57228
|
var fs_1 = tslib_1.__importDefault(require("fs"));
|
|
57229
|
-
var
|
|
57230
|
-
exports2.types =
|
|
57229
|
+
var types11 = tslib_1.__importStar(require_main());
|
|
57230
|
+
exports2.types = types11;
|
|
57231
57231
|
var parser_1 = require_parser();
|
|
57232
57232
|
Object.defineProperty(exports2, "parse", { enumerable: true, get: function() {
|
|
57233
57233
|
return parser_1.parse;
|
|
@@ -58101,14 +58101,14 @@ var require_lib = __commonJS({
|
|
|
58101
58101
|
this.preserveSpace = !!preserveSpace;
|
|
58102
58102
|
}
|
|
58103
58103
|
};
|
|
58104
|
-
var
|
|
58104
|
+
var types11 = {
|
|
58105
58105
|
brace: new TokContext("{"),
|
|
58106
58106
|
j_oTag: new TokContext("<tag"),
|
|
58107
58107
|
j_cTag: new TokContext("</tag"),
|
|
58108
58108
|
j_expr: new TokContext("<tag>...</tag>", true)
|
|
58109
58109
|
};
|
|
58110
58110
|
{
|
|
58111
|
-
|
|
58111
|
+
types11.template = new TokContext("`", true);
|
|
58112
58112
|
}
|
|
58113
58113
|
var beforeExpr = true;
|
|
58114
58114
|
var startsExpr = true;
|
|
@@ -58646,17 +58646,17 @@ var require_lib = __commonJS({
|
|
|
58646
58646
|
context.pop();
|
|
58647
58647
|
};
|
|
58648
58648
|
tokenTypes[5].updateContext = tokenTypes[7].updateContext = tokenTypes[23].updateContext = (context) => {
|
|
58649
|
-
context.push(
|
|
58649
|
+
context.push(types11.brace);
|
|
58650
58650
|
};
|
|
58651
58651
|
tokenTypes[22].updateContext = (context) => {
|
|
58652
|
-
if (context[context.length - 1] ===
|
|
58652
|
+
if (context[context.length - 1] === types11.template) {
|
|
58653
58653
|
context.pop();
|
|
58654
58654
|
} else {
|
|
58655
|
-
context.push(
|
|
58655
|
+
context.push(types11.template);
|
|
58656
58656
|
}
|
|
58657
58657
|
};
|
|
58658
58658
|
tokenTypes[143].updateContext = (context) => {
|
|
58659
|
-
context.push(
|
|
58659
|
+
context.push(types11.j_expr, types11.j_oTag);
|
|
58660
58660
|
};
|
|
58661
58661
|
}
|
|
58662
58662
|
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
@@ -59211,7 +59211,7 @@ var require_lib = __commonJS({
|
|
|
59211
59211
|
this.end = 0;
|
|
59212
59212
|
this.lastTokEndLoc = null;
|
|
59213
59213
|
this.lastTokStartLoc = null;
|
|
59214
|
-
this.context = [
|
|
59214
|
+
this.context = [types11.brace];
|
|
59215
59215
|
this.firstInvalidTemplateEscapePos = null;
|
|
59216
59216
|
this.strictErrors = /* @__PURE__ */ new Map();
|
|
59217
59217
|
this.tokensLength = 0;
|
|
@@ -62978,7 +62978,7 @@ var require_lib = __commonJS({
|
|
|
62978
62978
|
context
|
|
62979
62979
|
} = this.state;
|
|
62980
62980
|
const currentContext = context[context.length - 1];
|
|
62981
|
-
if (currentContext ===
|
|
62981
|
+
if (currentContext === types11.j_oTag || currentContext === types11.j_expr) {
|
|
62982
62982
|
context.pop();
|
|
62983
62983
|
}
|
|
62984
62984
|
}
|
|
@@ -63985,9 +63985,9 @@ var require_lib = __commonJS({
|
|
|
63985
63985
|
switch (this.state.type) {
|
|
63986
63986
|
case 5:
|
|
63987
63987
|
node = this.startNode();
|
|
63988
|
-
this.setContext(
|
|
63988
|
+
this.setContext(types11.brace);
|
|
63989
63989
|
this.next();
|
|
63990
|
-
node = this.jsxParseExpressionContainer(node,
|
|
63990
|
+
node = this.jsxParseExpressionContainer(node, types11.j_oTag);
|
|
63991
63991
|
if (node.expression.type === "JSXEmptyExpression") {
|
|
63992
63992
|
this.raise(JsxErrors.AttributeIsEmpty, node);
|
|
63993
63993
|
}
|
|
@@ -64006,7 +64006,7 @@ var require_lib = __commonJS({
|
|
|
64006
64006
|
jsxParseSpreadChild(node) {
|
|
64007
64007
|
this.next();
|
|
64008
64008
|
node.expression = this.parseExpression();
|
|
64009
|
-
this.setContext(
|
|
64009
|
+
this.setContext(types11.j_expr);
|
|
64010
64010
|
this.state.canStartJSXElement = true;
|
|
64011
64011
|
this.expect(8);
|
|
64012
64012
|
return this.finishNode(node, "JSXSpreadChild");
|
|
@@ -64026,11 +64026,11 @@ var require_lib = __commonJS({
|
|
|
64026
64026
|
jsxParseAttribute() {
|
|
64027
64027
|
const node = this.startNode();
|
|
64028
64028
|
if (this.match(5)) {
|
|
64029
|
-
this.setContext(
|
|
64029
|
+
this.setContext(types11.brace);
|
|
64030
64030
|
this.next();
|
|
64031
64031
|
this.expect(21);
|
|
64032
64032
|
node.argument = this.parseMaybeAssignAllowIn();
|
|
64033
|
-
this.setContext(
|
|
64033
|
+
this.setContext(types11.j_oTag);
|
|
64034
64034
|
this.state.canStartJSXElement = true;
|
|
64035
64035
|
this.expect(8);
|
|
64036
64036
|
return this.finishNode(node, "JSXSpreadAttribute");
|
|
@@ -64088,12 +64088,12 @@ var require_lib = __commonJS({
|
|
|
64088
64088
|
break;
|
|
64089
64089
|
case 5: {
|
|
64090
64090
|
const node2 = this.startNode();
|
|
64091
|
-
this.setContext(
|
|
64091
|
+
this.setContext(types11.brace);
|
|
64092
64092
|
this.next();
|
|
64093
64093
|
if (this.match(21)) {
|
|
64094
64094
|
children.push(this.jsxParseSpreadChild(node2));
|
|
64095
64095
|
} else {
|
|
64096
|
-
children.push(this.jsxParseExpressionContainer(node2,
|
|
64096
|
+
children.push(this.jsxParseExpressionContainer(node2, types11.j_expr));
|
|
64097
64097
|
}
|
|
64098
64098
|
break;
|
|
64099
64099
|
}
|
|
@@ -64155,11 +64155,11 @@ var require_lib = __commonJS({
|
|
|
64155
64155
|
}
|
|
64156
64156
|
getTokenFromCode(code2) {
|
|
64157
64157
|
const context = this.curContext();
|
|
64158
|
-
if (context ===
|
|
64158
|
+
if (context === types11.j_expr) {
|
|
64159
64159
|
this.jsxReadToken();
|
|
64160
64160
|
return;
|
|
64161
64161
|
}
|
|
64162
|
-
if (context ===
|
|
64162
|
+
if (context === types11.j_oTag || context === types11.j_cTag) {
|
|
64163
64163
|
if (isIdentifierStart(code2)) {
|
|
64164
64164
|
this.jsxReadWord();
|
|
64165
64165
|
return;
|
|
@@ -64169,7 +64169,7 @@ var require_lib = __commonJS({
|
|
|
64169
64169
|
this.finishToken(144);
|
|
64170
64170
|
return;
|
|
64171
64171
|
}
|
|
64172
|
-
if ((code2 === 34 || code2 === 39) && context ===
|
|
64172
|
+
if ((code2 === 34 || code2 === 39) && context === types11.j_oTag) {
|
|
64173
64173
|
this.jsxReadString(code2);
|
|
64174
64174
|
return;
|
|
64175
64175
|
}
|
|
@@ -64187,17 +64187,17 @@ var require_lib = __commonJS({
|
|
|
64187
64187
|
type
|
|
64188
64188
|
} = this.state;
|
|
64189
64189
|
if (type === 56 && prevType === 143) {
|
|
64190
|
-
context.splice(-2, 2,
|
|
64190
|
+
context.splice(-2, 2, types11.j_cTag);
|
|
64191
64191
|
this.state.canStartJSXElement = false;
|
|
64192
64192
|
} else if (type === 143) {
|
|
64193
|
-
context.push(
|
|
64193
|
+
context.push(types11.j_oTag);
|
|
64194
64194
|
} else if (type === 144) {
|
|
64195
64195
|
const out = context[context.length - 1];
|
|
64196
|
-
if (out ===
|
|
64196
|
+
if (out === types11.j_oTag && prevType === 56 || out === types11.j_cTag) {
|
|
64197
64197
|
context.pop();
|
|
64198
|
-
this.state.canStartJSXElement = context[context.length - 1] ===
|
|
64198
|
+
this.state.canStartJSXElement = context[context.length - 1] === types11.j_expr;
|
|
64199
64199
|
} else {
|
|
64200
|
-
this.setContext(
|
|
64200
|
+
this.setContext(types11.j_expr);
|
|
64201
64201
|
this.state.canStartJSXElement = true;
|
|
64202
64202
|
}
|
|
64203
64203
|
} else {
|
|
@@ -65583,14 +65583,14 @@ var require_lib = __commonJS({
|
|
|
65583
65583
|
tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) {
|
|
65584
65584
|
const node = this.startNode();
|
|
65585
65585
|
const hasLeadingOperator = this.eat(operator);
|
|
65586
|
-
const
|
|
65586
|
+
const types12 = [];
|
|
65587
65587
|
do {
|
|
65588
|
-
|
|
65588
|
+
types12.push(parseConstituentType());
|
|
65589
65589
|
} while (this.eat(operator));
|
|
65590
|
-
if (
|
|
65591
|
-
return
|
|
65590
|
+
if (types12.length === 1 && !hasLeadingOperator) {
|
|
65591
|
+
return types12[0];
|
|
65592
65592
|
}
|
|
65593
|
-
node.types =
|
|
65593
|
+
node.types = types12;
|
|
65594
65594
|
return this.finishNode(node, kind);
|
|
65595
65595
|
}
|
|
65596
65596
|
tsParseIntersectionTypeOrHigher() {
|
|
@@ -66151,7 +66151,7 @@ var require_lib = __commonJS({
|
|
|
66151
66151
|
}));
|
|
66152
66152
|
if (node.params.length === 0) {
|
|
66153
66153
|
this.raise(TSErrors.EmptyTypeArguments, node);
|
|
66154
|
-
} else if (!this.state.inType && this.curContext() ===
|
|
66154
|
+
} else if (!this.state.inType && this.curContext() === types11.brace) {
|
|
66155
66155
|
this.reScan_lt_gt();
|
|
66156
66156
|
}
|
|
66157
66157
|
this.expect(48);
|
|
@@ -66759,7 +66759,7 @@ var require_lib = __commonJS({
|
|
|
66759
66759
|
context
|
|
66760
66760
|
} = this.state;
|
|
66761
66761
|
const currentContext = context[context.length - 1];
|
|
66762
|
-
if (currentContext ===
|
|
66762
|
+
if (currentContext === types11.j_oTag || currentContext === types11.j_expr) {
|
|
66763
66763
|
context.pop();
|
|
66764
66764
|
}
|
|
66765
66765
|
}
|
|
@@ -88632,7 +88632,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
88632
88632
|
var yargs_default = Yargs;
|
|
88633
88633
|
|
|
88634
88634
|
// package.json
|
|
88635
|
-
var version = "2.64.
|
|
88635
|
+
var version = "2.64.8";
|
|
88636
88636
|
|
|
88637
88637
|
// src/metrics.ts
|
|
88638
88638
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -90241,7 +90241,7 @@ var package_default = {
|
|
|
90241
90241
|
dependencies: {
|
|
90242
90242
|
"create-astro": "4.13.2",
|
|
90243
90243
|
"create-analog": "2.3.1",
|
|
90244
|
-
"@angular/create": "21.2.
|
|
90244
|
+
"@angular/create": "21.2.1",
|
|
90245
90245
|
"create-docusaurus": "3.9.2",
|
|
90246
90246
|
"create-hono": "0.19.4",
|
|
90247
90247
|
"create-next-app": "15.5.6",
|
|
@@ -90250,7 +90250,7 @@ var package_default = {
|
|
|
90250
90250
|
"create-rwsdk": "3.1.3",
|
|
90251
90251
|
"create-react-router": "7.13.1",
|
|
90252
90252
|
"create-solid": "0.6.13",
|
|
90253
|
-
"create-vike": "0.0.
|
|
90253
|
+
"create-vike": "0.0.592",
|
|
90254
90254
|
"create-vue": "3.22.0",
|
|
90255
90255
|
"create-waku": "0.12.5-1.0.0-alpha.5-0",
|
|
90256
90256
|
"@tanstack/create-start": "0.59.8",
|
|
@@ -90732,7 +90732,6 @@ var config5 = {
|
|
|
90732
90732
|
var c3_default5 = config5;
|
|
90733
90733
|
|
|
90734
90734
|
// templates/astro/workers/c3.ts
|
|
90735
|
-
var recast4 = __toESM(require_main2());
|
|
90736
90735
|
var { npx: npx2 } = detectPackageManager();
|
|
90737
90736
|
var generate5 = async (ctx) => {
|
|
90738
90737
|
await runFrameworkGenerator(ctx, [
|
|
@@ -90752,36 +90751,6 @@ var configure5 = async () => {
|
|
|
90752
90751
|
`via \`${npx2} astro add cloudflare\``
|
|
90753
90752
|
)}`
|
|
90754
90753
|
});
|
|
90755
|
-
const filePath = "astro.config.mjs";
|
|
90756
|
-
updateStatus(`Updating configuration in ${blue(filePath)}`);
|
|
90757
|
-
transformFile(filePath, {
|
|
90758
|
-
visitCallExpression: function(n) {
|
|
90759
|
-
const callee = n.node.callee;
|
|
90760
|
-
if (callee.name !== "cloudflare") {
|
|
90761
|
-
return this.traverse(n);
|
|
90762
|
-
}
|
|
90763
|
-
const b3 = recast4.types.builders;
|
|
90764
|
-
n.node.arguments = [
|
|
90765
|
-
b3.objectExpression([
|
|
90766
|
-
// platformProxy: {
|
|
90767
|
-
// enabled: true,
|
|
90768
|
-
// },
|
|
90769
|
-
b3.objectProperty(
|
|
90770
|
-
b3.identifier("platformProxy"),
|
|
90771
|
-
b3.objectExpression([
|
|
90772
|
-
b3.objectProperty(b3.identifier("enabled"), b3.booleanLiteral(true))
|
|
90773
|
-
])
|
|
90774
|
-
),
|
|
90775
|
-
// imageService: "cloudflare",
|
|
90776
|
-
b3.objectProperty(
|
|
90777
|
-
b3.identifier("imageService"),
|
|
90778
|
-
b3.stringLiteral("cloudflare")
|
|
90779
|
-
)
|
|
90780
|
-
])
|
|
90781
|
-
];
|
|
90782
|
-
return false;
|
|
90783
|
-
}
|
|
90784
|
-
});
|
|
90785
90754
|
};
|
|
90786
90755
|
var config6 = {
|
|
90787
90756
|
configVersion: 1,
|
|
@@ -90811,7 +90780,7 @@ var config6 = {
|
|
|
90811
90780
|
transformPackageJson: async (pkgJson, ctx) => ({
|
|
90812
90781
|
scripts: {
|
|
90813
90782
|
deploy: `astro build && wrangler deploy`,
|
|
90814
|
-
preview: `astro build &&
|
|
90783
|
+
preview: `astro build && astro preview`,
|
|
90815
90784
|
...usesTypescript(ctx) && { "cf-typegen": `wrangler types` }
|
|
90816
90785
|
}
|
|
90817
90786
|
})
|
|
@@ -91262,7 +91231,7 @@ var experimental_c3_default = {
|
|
|
91262
91231
|
};
|
|
91263
91232
|
|
|
91264
91233
|
// templates/nuxt/pages/c3.ts
|
|
91265
|
-
var
|
|
91234
|
+
var recast4 = __toESM(require_main2());
|
|
91266
91235
|
var { npm: npm8, name: pm } = detectPackageManager();
|
|
91267
91236
|
var generate14 = async (ctx) => {
|
|
91268
91237
|
const gitFlag = ctx.args.git ? `--gitInit` : `--no-gitInit`;
|
|
@@ -91293,7 +91262,7 @@ var updateNuxtConfig = () => {
|
|
|
91293
91262
|
const s = spinner();
|
|
91294
91263
|
const configFile = "nuxt.config.ts";
|
|
91295
91264
|
s.start(`Updating \`${configFile}\``);
|
|
91296
|
-
const b3 =
|
|
91265
|
+
const b3 = recast4.types.builders;
|
|
91297
91266
|
const presetDef = b3.objectProperty(
|
|
91298
91267
|
b3.identifier("nitro"),
|
|
91299
91268
|
b3.objectExpression([
|
|
@@ -91358,7 +91327,7 @@ var config22 = {
|
|
|
91358
91327
|
var c3_default25 = config22;
|
|
91359
91328
|
|
|
91360
91329
|
// templates/nuxt/workers/c3.ts
|
|
91361
|
-
var
|
|
91330
|
+
var recast5 = __toESM(require_main2());
|
|
91362
91331
|
var { npm: npm9, name: pm2 } = detectPackageManager();
|
|
91363
91332
|
var generate15 = async (ctx) => {
|
|
91364
91333
|
const gitFlag = ctx.args.git ? `--gitInit` : `--no-gitInit`;
|
|
@@ -91389,7 +91358,7 @@ var updateNuxtConfig2 = () => {
|
|
|
91389
91358
|
const s = spinner();
|
|
91390
91359
|
const configFile = "nuxt.config.ts";
|
|
91391
91360
|
s.start(`Updating \`${configFile}\``);
|
|
91392
|
-
const b3 =
|
|
91361
|
+
const b3 = recast5.types.builders;
|
|
91393
91362
|
const presetDef = b3.objectProperty(
|
|
91394
91363
|
b3.identifier("nitro"),
|
|
91395
91364
|
b3.objectExpression([
|
|
@@ -91698,7 +91667,7 @@ var config27 = {
|
|
|
91698
91667
|
var c3_default30 = config27;
|
|
91699
91668
|
|
|
91700
91669
|
// templates/qwik/pages/c3.ts
|
|
91701
|
-
var
|
|
91670
|
+
var recast6 = __toESM(require_main2());
|
|
91702
91671
|
var { npm: npm10, npx: npx3, name } = detectPackageManager();
|
|
91703
91672
|
var generate16 = async (ctx) => {
|
|
91704
91673
|
await runFrameworkGenerator(ctx, ["playground", ctx.project.name]);
|
|
@@ -91716,7 +91685,7 @@ var addBindingsProxy = (ctx) => {
|
|
|
91716
91685
|
const s = spinner();
|
|
91717
91686
|
s.start("Updating `vite.config.ts`");
|
|
91718
91687
|
const snippets = loadTemplateSnippets(ctx);
|
|
91719
|
-
const b3 =
|
|
91688
|
+
const b3 = recast6.types.builders;
|
|
91720
91689
|
transformFile("vite.config.ts", {
|
|
91721
91690
|
// Insert the env declaration after the last import (but before the rest of the body)
|
|
91722
91691
|
visitProgram: function(n) {
|
|
@@ -91780,7 +91749,7 @@ var config28 = {
|
|
|
91780
91749
|
var c3_default31 = config28;
|
|
91781
91750
|
|
|
91782
91751
|
// templates/qwik/workers/c3.ts
|
|
91783
|
-
var
|
|
91752
|
+
var recast7 = __toESM(require_main2());
|
|
91784
91753
|
var { npm: npm11, npx: npx4, name: name2 } = detectPackageManager();
|
|
91785
91754
|
var generate17 = async (ctx) => {
|
|
91786
91755
|
await runFrameworkGenerator(ctx, ["playground", ctx.project.name]);
|
|
@@ -91799,7 +91768,7 @@ var addBindingsProxy2 = (ctx) => {
|
|
|
91799
91768
|
const s = spinner();
|
|
91800
91769
|
s.start("Updating `vite.config.ts`");
|
|
91801
91770
|
const snippets = loadTemplateSnippets(ctx);
|
|
91802
|
-
const b3 =
|
|
91771
|
+
const b3 = recast7.types.builders;
|
|
91803
91772
|
transformFile("vite.config.ts", {
|
|
91804
91773
|
// Insert the env declaration after the last import (but before the rest of the body)
|
|
91805
91774
|
visitProgram: function(n) {
|
|
@@ -91917,7 +91886,12 @@ var c3_default34 = config31;
|
|
|
91917
91886
|
var { npm: npm13 } = detectPackageManager();
|
|
91918
91887
|
var generate19 = async (ctx) => {
|
|
91919
91888
|
const variant = await getVariant(ctx);
|
|
91920
|
-
await runFrameworkGenerator(ctx, [
|
|
91889
|
+
await runFrameworkGenerator(ctx, [
|
|
91890
|
+
ctx.project.name,
|
|
91891
|
+
"--template",
|
|
91892
|
+
variant,
|
|
91893
|
+
"--no-immediate"
|
|
91894
|
+
]);
|
|
91921
91895
|
logRaw("");
|
|
91922
91896
|
};
|
|
91923
91897
|
var variantsOptions = [
|
|
@@ -91982,9 +91956,9 @@ var c3_default35 = config32;
|
|
|
91982
91956
|
|
|
91983
91957
|
// templates/react/workers/c3.ts
|
|
91984
91958
|
var import_node_assert5 = __toESM(require("node:assert"));
|
|
91985
|
-
var
|
|
91986
|
-
var b2 =
|
|
91987
|
-
var t =
|
|
91959
|
+
var recast8 = __toESM(require_main2());
|
|
91960
|
+
var b2 = recast8.types.builders;
|
|
91961
|
+
var t = recast8.types.namedTypes;
|
|
91988
91962
|
var { npm: npm14 } = detectPackageManager();
|
|
91989
91963
|
var generate20 = async (ctx) => {
|
|
91990
91964
|
const variant = await getVariant2(ctx);
|
|
@@ -91992,7 +91966,8 @@ var generate20 = async (ctx) => {
|
|
|
91992
91966
|
await runFrameworkGenerator(ctx, [
|
|
91993
91967
|
ctx.project.name,
|
|
91994
91968
|
"--template",
|
|
91995
|
-
variant.value
|
|
91969
|
+
variant.value,
|
|
91970
|
+
"--no-immediate"
|
|
91996
91971
|
]);
|
|
91997
91972
|
logRaw("");
|
|
91998
91973
|
};
|
|
@@ -92183,7 +92158,7 @@ var config36 = {
|
|
|
92183
92158
|
var c3_default39 = config36;
|
|
92184
92159
|
|
|
92185
92160
|
// templates/solid/c3.ts
|
|
92186
|
-
var
|
|
92161
|
+
var recast9 = __toESM(require_main2());
|
|
92187
92162
|
var { npm: npm16 } = detectPackageManager();
|
|
92188
92163
|
var generate22 = async (ctx) => {
|
|
92189
92164
|
await runFrameworkGenerator(ctx, ["-p", ctx.project.name, "-s"]);
|
|
@@ -92199,7 +92174,7 @@ var configure11 = async (ctx) => {
|
|
|
92199
92174
|
if (callee.name !== "nitro") {
|
|
92200
92175
|
return this.traverse(n);
|
|
92201
92176
|
}
|
|
92202
|
-
const b3 =
|
|
92177
|
+
const b3 = recast9.types.builders;
|
|
92203
92178
|
const presetProp = b3.objectProperty(
|
|
92204
92179
|
b3.identifier("preset"),
|
|
92205
92180
|
b3.stringLiteral("cloudflare-module")
|
|
@@ -92243,7 +92218,7 @@ var c3_default40 = config37;
|
|
|
92243
92218
|
|
|
92244
92219
|
// templates/svelte/pages/c3.ts
|
|
92245
92220
|
var import_node_fs11 = require("node:fs");
|
|
92246
|
-
var
|
|
92221
|
+
var recast10 = __toESM(require_main2());
|
|
92247
92222
|
var { npm: npm17 } = detectPackageManager();
|
|
92248
92223
|
var generate23 = async (ctx) => {
|
|
92249
92224
|
await runFrameworkGenerator(ctx, ["create", ctx.project.name]);
|
|
@@ -92299,7 +92274,7 @@ var updateTypeDefinitions = (ctx) => {
|
|
|
92299
92274
|
return;
|
|
92300
92275
|
}
|
|
92301
92276
|
updateStatus(`Updating global type definitions in ${blue("app.d.ts")}`);
|
|
92302
|
-
const b3 =
|
|
92277
|
+
const b3 = recast10.types.builders;
|
|
92303
92278
|
transformFile("src/app.d.ts", {
|
|
92304
92279
|
visitTSModuleDeclaration(n) {
|
|
92305
92280
|
if (n.value.id.name === "App" && n.node.body) {
|
|
@@ -92366,7 +92341,7 @@ var config38 = {
|
|
|
92366
92341
|
var c3_default41 = config38;
|
|
92367
92342
|
|
|
92368
92343
|
// templates/svelte/workers/c3.ts
|
|
92369
|
-
var
|
|
92344
|
+
var recast11 = __toESM(require_main2());
|
|
92370
92345
|
var { npm: npm18 } = detectPackageManager();
|
|
92371
92346
|
var generate24 = async (ctx) => {
|
|
92372
92347
|
await runFrameworkGenerator(ctx, ["create", ctx.project.name]);
|
|
@@ -92399,7 +92374,7 @@ var updateTypeDefinitions2 = (ctx) => {
|
|
|
92399
92374
|
return;
|
|
92400
92375
|
}
|
|
92401
92376
|
updateStatus(`Updating global type definitions in ${blue("app.d.ts")}`);
|
|
92402
|
-
const b3 =
|
|
92377
|
+
const b3 = recast11.types.builders;
|
|
92403
92378
|
transformFile("src/app.d.ts", {
|
|
92404
92379
|
visitTSModuleDeclaration(n) {
|
|
92405
92380
|
if (n.value.id.name === "App" && n.node.body) {
|
|
@@ -92764,7 +92739,7 @@ Retrieve API references and limits from:
|
|
|
92764
92739
|
var import_node_assert6 = __toESM(require("node:assert"));
|
|
92765
92740
|
|
|
92766
92741
|
// ../wrangler/package.json
|
|
92767
|
-
var version2 = "4.
|
|
92742
|
+
var version2 = "4.74.0";
|
|
92768
92743
|
|
|
92769
92744
|
// src/git.ts
|
|
92770
92745
|
var offerGit = async (ctx) => {
|
|
@@ -94580,7 +94555,7 @@ function printWelcomeMessage(version3, telemetryEnabled, args) {
|
|
|
94580
94555
|
logRaw(dialog);
|
|
94581
94556
|
}
|
|
94582
94557
|
var printSummary = (ctx) => {
|
|
94583
|
-
const dashboardUrl = ctx.account ? `https://dash.cloudflare.com/?to=/:account/workers/services/view/${ctx.project.name}` : null;
|
|
94558
|
+
const dashboardUrl = ctx.account ? `https://dash.cloudflare.com/?to=/:account/workers/services/view/${ctx.project.name}/production` : null;
|
|
94584
94559
|
const relativePath = (0, import_node_path18.relative)(ctx.originalCWD, ctx.project.path);
|
|
94585
94560
|
const cdCommand = relativePath ? `cd ${relativePath}` : null;
|
|
94586
94561
|
const { npm: npm25 } = detectPackageManager();
|