create-cloudflare 2.56.0 → 2.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +429 -424
- package/package.json +6 -6
- package/templates/angular/workers/c3.ts +2 -2
- package/templates/hello-world-durable-object/js/src/index.js +1 -1
- package/templates/hello-world-durable-object/py/src/entry.py +1 -1
- package/templates/hello-world-durable-object/ts/src/index.ts +1 -1
- package/templates/hello-world-durable-object-with-assets/js/src/index.js +1 -1
- package/templates/hello-world-durable-object-with-assets/py/src/entry.py +1 -1
- package/templates/hello-world-durable-object-with-assets/ts/src/index.ts +1 -1
- package/templates/pre-existing/c3.ts +4 -4
- package/templates/react/workers/c3.ts +1 -1
- package/templates/react-router/c3.ts +9 -1
- package/templates/react-router/ts/react-router.config.ts +8 -0
- package/templates/solid/c3.ts +1 -9
- package/templates/tanstack-start/c3.ts +1 -1
package/dist/cli.js
CHANGED
|
@@ -526,7 +526,7 @@ var require_XDGAppPaths = __commonJS({
|
|
|
526
526
|
}
|
|
527
527
|
function Adapt(adapter_) {
|
|
528
528
|
var meta = adapter_.meta, path6 = adapter_.path, xdg = adapter_.xdg;
|
|
529
|
-
var XDGAppPaths_ = /* @__PURE__ */ function() {
|
|
529
|
+
var XDGAppPaths_ = /* @__PURE__ */ (function() {
|
|
530
530
|
function XDGAppPaths_2(options_) {
|
|
531
531
|
if (options_ === void 0) {
|
|
532
532
|
options_ = {};
|
|
@@ -593,7 +593,7 @@ var require_XDGAppPaths = __commonJS({
|
|
|
593
593
|
return XDGAppPaths;
|
|
594
594
|
}
|
|
595
595
|
return XDGAppPaths_2;
|
|
596
|
-
}();
|
|
596
|
+
})();
|
|
597
597
|
return { XDGAppPaths: new XDGAppPaths_() };
|
|
598
598
|
}
|
|
599
599
|
exports2.Adapt = Adapt;
|
|
@@ -681,7 +681,7 @@ var require_XDG = __commonJS({
|
|
|
681
681
|
};
|
|
682
682
|
return { cache, config: config46, data, runtime, state };
|
|
683
683
|
};
|
|
684
|
-
var XDG_ = /* @__PURE__ */ function() {
|
|
684
|
+
var XDG_ = /* @__PURE__ */ (function() {
|
|
685
685
|
function XDG_2() {
|
|
686
686
|
function XDG() {
|
|
687
687
|
return new XDG_2();
|
|
@@ -703,7 +703,7 @@ var require_XDG = __commonJS({
|
|
|
703
703
|
return XDG;
|
|
704
704
|
}
|
|
705
705
|
return XDG_2;
|
|
706
|
-
}();
|
|
706
|
+
})();
|
|
707
707
|
return { XDG: new XDG_() };
|
|
708
708
|
}
|
|
709
709
|
exports2.Adapt = Adapt;
|
|
@@ -801,7 +801,7 @@ var require_OSPaths = __commonJS({
|
|
|
801
801
|
}
|
|
802
802
|
return isWinOS ? windows() : posix();
|
|
803
803
|
}
|
|
804
|
-
var OSPaths_ = /* @__PURE__ */ function() {
|
|
804
|
+
var OSPaths_ = /* @__PURE__ */ (function() {
|
|
805
805
|
function OSPaths_2() {
|
|
806
806
|
function OSPaths() {
|
|
807
807
|
return new OSPaths_2();
|
|
@@ -811,7 +811,7 @@ var require_OSPaths = __commonJS({
|
|
|
811
811
|
return OSPaths;
|
|
812
812
|
}
|
|
813
813
|
return OSPaths_2;
|
|
814
|
-
}();
|
|
814
|
+
})();
|
|
815
815
|
return { OSPaths: new OSPaths_() };
|
|
816
816
|
}
|
|
817
817
|
exports2.Adapt = Adapt;
|
|
@@ -822,18 +822,18 @@ var require_OSPaths = __commonJS({
|
|
|
822
822
|
var require_node = __commonJS({
|
|
823
823
|
"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js"(exports2) {
|
|
824
824
|
"use strict";
|
|
825
|
-
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m2, k2, k22) {
|
|
825
|
+
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m2, k2, k22) {
|
|
826
826
|
if (k22 === void 0) k22 = k2;
|
|
827
827
|
Object.defineProperty(o, k22, { enumerable: true, get: function() {
|
|
828
828
|
return m2[k2];
|
|
829
829
|
} });
|
|
830
|
-
} : function(o, m2, k2, k22) {
|
|
830
|
+
}) : (function(o, m2, k2, k22) {
|
|
831
831
|
if (k22 === void 0) k22 = k2;
|
|
832
832
|
o[k22] = m2[k2];
|
|
833
|
-
});
|
|
834
|
-
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) {
|
|
833
|
+
}));
|
|
834
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v2) {
|
|
835
835
|
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
836
|
-
} : function(o, v2) {
|
|
836
|
+
}) : function(o, v2) {
|
|
837
837
|
o["default"] = v2;
|
|
838
838
|
});
|
|
839
839
|
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
@@ -877,18 +877,18 @@ var require_mod_cjs = __commonJS({
|
|
|
877
877
|
var require_node2 = __commonJS({
|
|
878
878
|
"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js"(exports2) {
|
|
879
879
|
"use strict";
|
|
880
|
-
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m2, k2, k22) {
|
|
880
|
+
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m2, k2, k22) {
|
|
881
881
|
if (k22 === void 0) k22 = k2;
|
|
882
882
|
Object.defineProperty(o, k22, { enumerable: true, get: function() {
|
|
883
883
|
return m2[k2];
|
|
884
884
|
} });
|
|
885
|
-
} : function(o, m2, k2, k22) {
|
|
885
|
+
}) : (function(o, m2, k2, k22) {
|
|
886
886
|
if (k22 === void 0) k22 = k2;
|
|
887
887
|
o[k22] = m2[k2];
|
|
888
|
-
});
|
|
889
|
-
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) {
|
|
888
|
+
}));
|
|
889
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v2) {
|
|
890
890
|
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
891
|
-
} : function(o, v2) {
|
|
891
|
+
}) : function(o, v2) {
|
|
892
892
|
o["default"] = v2;
|
|
893
893
|
});
|
|
894
894
|
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
@@ -935,18 +935,18 @@ var require_mod_cjs2 = __commonJS({
|
|
|
935
935
|
var require_node3 = __commonJS({
|
|
936
936
|
"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js"(exports2) {
|
|
937
937
|
"use strict";
|
|
938
|
-
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m2, k2, k22) {
|
|
938
|
+
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m2, k2, k22) {
|
|
939
939
|
if (k22 === void 0) k22 = k2;
|
|
940
940
|
Object.defineProperty(o, k22, { enumerable: true, get: function() {
|
|
941
941
|
return m2[k2];
|
|
942
942
|
} });
|
|
943
|
-
} : function(o, m2, k2, k22) {
|
|
943
|
+
}) : (function(o, m2, k2, k22) {
|
|
944
944
|
if (k22 === void 0) k22 = k2;
|
|
945
945
|
o[k22] = m2[k2];
|
|
946
|
-
});
|
|
947
|
-
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) {
|
|
946
|
+
}));
|
|
947
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v2) {
|
|
948
948
|
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
949
|
-
} : function(o, v2) {
|
|
949
|
+
}) : function(o, v2) {
|
|
950
950
|
o["default"] = v2;
|
|
951
951
|
});
|
|
952
952
|
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
|
@@ -20598,7 +20598,7 @@ var require_fetch = __commonJS({
|
|
|
20598
20598
|
fetchParams.controller.terminate(e);
|
|
20599
20599
|
}
|
|
20600
20600
|
};
|
|
20601
|
-
requestBody = async function* () {
|
|
20601
|
+
requestBody = (async function* () {
|
|
20602
20602
|
try {
|
|
20603
20603
|
for await (const bytes of request2.body.stream) {
|
|
20604
20604
|
yield* processBodyChunk(bytes);
|
|
@@ -20607,7 +20607,7 @@ var require_fetch = __commonJS({
|
|
|
20607
20607
|
} catch (err) {
|
|
20608
20608
|
processBodyError(err);
|
|
20609
20609
|
}
|
|
20610
|
-
}();
|
|
20610
|
+
})();
|
|
20611
20611
|
}
|
|
20612
20612
|
try {
|
|
20613
20613
|
const { body, status: status2, statusText, headersList, socket } = await dispatch({ body: requestBody });
|
|
@@ -31137,7 +31137,7 @@ var require_index_688c5d50 = __commonJS({
|
|
|
31137
31137
|
};
|
|
31138
31138
|
}
|
|
31139
31139
|
if (platform === "win32") {
|
|
31140
|
-
fs4.rename = /* @__PURE__ */ function(fs$rename) {
|
|
31140
|
+
fs4.rename = /* @__PURE__ */ (function(fs$rename) {
|
|
31141
31141
|
return function(from, to, cb) {
|
|
31142
31142
|
var start = Date.now();
|
|
31143
31143
|
var backoff = 0;
|
|
@@ -31158,9 +31158,9 @@ var require_index_688c5d50 = __commonJS({
|
|
|
31158
31158
|
if (cb) cb(er);
|
|
31159
31159
|
});
|
|
31160
31160
|
};
|
|
31161
|
-
}(fs4.rename);
|
|
31161
|
+
})(fs4.rename);
|
|
31162
31162
|
}
|
|
31163
|
-
fs4.read = /* @__PURE__ */ function(fs$read) {
|
|
31163
|
+
fs4.read = /* @__PURE__ */ (function(fs$read) {
|
|
31164
31164
|
return function(fd, buffer, offset, length, position, callback_) {
|
|
31165
31165
|
var callback;
|
|
31166
31166
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -31175,8 +31175,8 @@ var require_index_688c5d50 = __commonJS({
|
|
|
31175
31175
|
}
|
|
31176
31176
|
return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
|
|
31177
31177
|
};
|
|
31178
|
-
}(fs4.read);
|
|
31179
|
-
fs4.readSync = /* @__PURE__ */ function(fs$readSync) {
|
|
31178
|
+
})(fs4.read);
|
|
31179
|
+
fs4.readSync = /* @__PURE__ */ (function(fs$readSync) {
|
|
31180
31180
|
return function(fd, buffer, offset, length, position) {
|
|
31181
31181
|
var eagCounter = 0;
|
|
31182
31182
|
while (true) {
|
|
@@ -31191,7 +31191,7 @@ var require_index_688c5d50 = __commonJS({
|
|
|
31191
31191
|
}
|
|
31192
31192
|
}
|
|
31193
31193
|
};
|
|
31194
|
-
}(fs4.readSync);
|
|
31194
|
+
})(fs4.readSync);
|
|
31195
31195
|
}
|
|
31196
31196
|
function patchLchmod(fs4) {
|
|
31197
31197
|
fs4.lchmod = function(path7, mode, callback) {
|
|
@@ -31457,7 +31457,7 @@ var require_index_688c5d50 = __commonJS({
|
|
|
31457
31457
|
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) {
|
|
31458
31458
|
module3.exports = patch2(fs__default["default"]);
|
|
31459
31459
|
}
|
|
31460
|
-
module3.exports.close = fs__default["default"].close = /* @__PURE__ */ function(fs$close) {
|
|
31460
|
+
module3.exports.close = fs__default["default"].close = /* @__PURE__ */ (function(fs$close) {
|
|
31461
31461
|
return function(fd, cb) {
|
|
31462
31462
|
return fs$close.call(fs__default["default"], fd, function(err) {
|
|
31463
31463
|
if (!err)
|
|
@@ -31466,14 +31466,14 @@ var require_index_688c5d50 = __commonJS({
|
|
|
31466
31466
|
cb.apply(this, arguments);
|
|
31467
31467
|
});
|
|
31468
31468
|
};
|
|
31469
|
-
}(fs__default["default"].close);
|
|
31470
|
-
module3.exports.closeSync = fs__default["default"].closeSync = /* @__PURE__ */ function(fs$closeSync) {
|
|
31469
|
+
})(fs__default["default"].close);
|
|
31470
|
+
module3.exports.closeSync = fs__default["default"].closeSync = /* @__PURE__ */ (function(fs$closeSync) {
|
|
31471
31471
|
return function(fd) {
|
|
31472
31472
|
var rval = fs$closeSync.apply(fs__default["default"], arguments);
|
|
31473
31473
|
retry2();
|
|
31474
31474
|
return rval;
|
|
31475
31475
|
};
|
|
31476
|
-
}(fs__default["default"].closeSync);
|
|
31476
|
+
})(fs__default["default"].closeSync);
|
|
31477
31477
|
function patch2(fs4) {
|
|
31478
31478
|
polyfills(fs4);
|
|
31479
31479
|
fs4.gracefulify = patch2;
|
|
@@ -35831,7 +35831,7 @@ var require_random_seed = __commonJS({
|
|
|
35831
35831
|
return mash;
|
|
35832
35832
|
};
|
|
35833
35833
|
var uheprng = function(seed) {
|
|
35834
|
-
return function() {
|
|
35834
|
+
return (function() {
|
|
35835
35835
|
var o = 48;
|
|
35836
35836
|
var c2 = 1;
|
|
35837
35837
|
var p2 = o;
|
|
@@ -35940,7 +35940,7 @@ var require_random_seed = __commonJS({
|
|
|
35940
35940
|
return Math.floor(random.random() * (max - min + 1)) + min;
|
|
35941
35941
|
};
|
|
35942
35942
|
return random;
|
|
35943
|
-
}();
|
|
35943
|
+
})();
|
|
35944
35944
|
};
|
|
35945
35945
|
uheprng.create = function(seed) {
|
|
35946
35946
|
return new uheprng(seed);
|
|
@@ -36167,7 +36167,7 @@ var require_dist_web = __commonJS({
|
|
|
36167
36167
|
tokenHex: false,
|
|
36168
36168
|
tokenChars: "0123456789"
|
|
36169
36169
|
};
|
|
36170
|
-
var Haikunator2 = /* @__PURE__ */ function() {
|
|
36170
|
+
var Haikunator2 = /* @__PURE__ */ (function() {
|
|
36171
36171
|
function Haikunator3() {
|
|
36172
36172
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
36173
36173
|
_classCallCheck(this, Haikunator3);
|
|
@@ -36209,7 +36209,7 @@ var require_dist_web = __commonJS({
|
|
|
36209
36209
|
}
|
|
36210
36210
|
}]);
|
|
36211
36211
|
return Haikunator3;
|
|
36212
|
-
}();
|
|
36212
|
+
})();
|
|
36213
36213
|
exports2["default"] = Haikunator2;
|
|
36214
36214
|
module2.exports = exports2.default;
|
|
36215
36215
|
}
|
|
@@ -36230,7 +36230,7 @@ var require_esprima = __commonJS({
|
|
|
36230
36230
|
})(exports2, function() {
|
|
36231
36231
|
return (
|
|
36232
36232
|
/******/
|
|
36233
|
-
function(modules) {
|
|
36233
|
+
(function(modules) {
|
|
36234
36234
|
var installedModules = {};
|
|
36235
36235
|
function __webpack_require__(moduleId) {
|
|
36236
36236
|
if (installedModules[moduleId])
|
|
@@ -36252,7 +36252,7 @@ var require_esprima = __commonJS({
|
|
|
36252
36252
|
__webpack_require__.c = installedModules;
|
|
36253
36253
|
__webpack_require__.p = "";
|
|
36254
36254
|
return __webpack_require__(0);
|
|
36255
|
-
}([
|
|
36255
|
+
})([
|
|
36256
36256
|
/* 0 */
|
|
36257
36257
|
/***/
|
|
36258
36258
|
function(module3, exports3, __webpack_require__) {
|
|
@@ -36354,7 +36354,7 @@ var require_esprima = __commonJS({
|
|
|
36354
36354
|
"use strict";
|
|
36355
36355
|
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
36356
36356
|
var syntax_1 = __webpack_require__(2);
|
|
36357
|
-
var CommentHandler = function() {
|
|
36357
|
+
var CommentHandler = (function() {
|
|
36358
36358
|
function CommentHandler2() {
|
|
36359
36359
|
this.attach = false;
|
|
36360
36360
|
this.comments = [];
|
|
@@ -36493,7 +36493,7 @@ var require_esprima = __commonJS({
|
|
|
36493
36493
|
}
|
|
36494
36494
|
};
|
|
36495
36495
|
return CommentHandler2;
|
|
36496
|
-
}();
|
|
36496
|
+
})();
|
|
36497
36497
|
exports3.CommentHandler = CommentHandler;
|
|
36498
36498
|
},
|
|
36499
36499
|
/* 2 */
|
|
@@ -36574,7 +36574,7 @@ var require_esprima = __commonJS({
|
|
|
36574
36574
|
/***/
|
|
36575
36575
|
function(module3, exports3, __webpack_require__) {
|
|
36576
36576
|
"use strict";
|
|
36577
|
-
var __extends2 = this && this.__extends || function() {
|
|
36577
|
+
var __extends2 = this && this.__extends || (function() {
|
|
36578
36578
|
var extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
36579
36579
|
d2.__proto__ = b3;
|
|
36580
36580
|
} || function(d2, b3) {
|
|
@@ -36587,7 +36587,7 @@ var require_esprima = __commonJS({
|
|
|
36587
36587
|
}
|
|
36588
36588
|
d2.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __());
|
|
36589
36589
|
};
|
|
36590
|
-
}();
|
|
36590
|
+
})();
|
|
36591
36591
|
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
36592
36592
|
var character_1 = __webpack_require__(4);
|
|
36593
36593
|
var JSXNode = __webpack_require__(5);
|
|
@@ -36625,7 +36625,7 @@ var require_esprima = __commonJS({
|
|
|
36625
36625
|
}
|
|
36626
36626
|
return qualifiedName;
|
|
36627
36627
|
}
|
|
36628
|
-
var JSXParser = function(_super) {
|
|
36628
|
+
var JSXParser = (function(_super) {
|
|
36629
36629
|
__extends2(JSXParser2, _super);
|
|
36630
36630
|
function JSXParser2(code, options, delegate) {
|
|
36631
36631
|
return _super.call(this, code, options, delegate) || this;
|
|
@@ -37083,7 +37083,7 @@ var require_esprima = __commonJS({
|
|
|
37083
37083
|
return _super.prototype.isStartOfExpression.call(this) || this.match("<");
|
|
37084
37084
|
};
|
|
37085
37085
|
return JSXParser2;
|
|
37086
|
-
}(parser_1.Parser);
|
|
37086
|
+
})(parser_1.Parser);
|
|
37087
37087
|
exports3.JSXParser = JSXParser;
|
|
37088
37088
|
},
|
|
37089
37089
|
/* 4 */
|
|
@@ -37135,15 +37135,15 @@ var require_esprima = __commonJS({
|
|
|
37135
37135
|
"use strict";
|
|
37136
37136
|
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
37137
37137
|
var jsx_syntax_1 = __webpack_require__(6);
|
|
37138
|
-
var JSXClosingElement = /* @__PURE__ */ function() {
|
|
37138
|
+
var JSXClosingElement = /* @__PURE__ */ (function() {
|
|
37139
37139
|
function JSXClosingElement2(name3) {
|
|
37140
37140
|
this.type = jsx_syntax_1.JSXSyntax.JSXClosingElement;
|
|
37141
37141
|
this.name = name3;
|
|
37142
37142
|
}
|
|
37143
37143
|
return JSXClosingElement2;
|
|
37144
|
-
}();
|
|
37144
|
+
})();
|
|
37145
37145
|
exports3.JSXClosingElement = JSXClosingElement;
|
|
37146
|
-
var JSXElement = /* @__PURE__ */ function() {
|
|
37146
|
+
var JSXElement = /* @__PURE__ */ (function() {
|
|
37147
37147
|
function JSXElement2(openingElement, children, closingElement) {
|
|
37148
37148
|
this.type = jsx_syntax_1.JSXSyntax.JSXElement;
|
|
37149
37149
|
this.openingElement = openingElement;
|
|
@@ -37151,59 +37151,59 @@ var require_esprima = __commonJS({
|
|
|
37151
37151
|
this.closingElement = closingElement;
|
|
37152
37152
|
}
|
|
37153
37153
|
return JSXElement2;
|
|
37154
|
-
}();
|
|
37154
|
+
})();
|
|
37155
37155
|
exports3.JSXElement = JSXElement;
|
|
37156
|
-
var JSXEmptyExpression = /* @__PURE__ */ function() {
|
|
37156
|
+
var JSXEmptyExpression = /* @__PURE__ */ (function() {
|
|
37157
37157
|
function JSXEmptyExpression2() {
|
|
37158
37158
|
this.type = jsx_syntax_1.JSXSyntax.JSXEmptyExpression;
|
|
37159
37159
|
}
|
|
37160
37160
|
return JSXEmptyExpression2;
|
|
37161
|
-
}();
|
|
37161
|
+
})();
|
|
37162
37162
|
exports3.JSXEmptyExpression = JSXEmptyExpression;
|
|
37163
|
-
var JSXExpressionContainer = /* @__PURE__ */ function() {
|
|
37163
|
+
var JSXExpressionContainer = /* @__PURE__ */ (function() {
|
|
37164
37164
|
function JSXExpressionContainer2(expression) {
|
|
37165
37165
|
this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer;
|
|
37166
37166
|
this.expression = expression;
|
|
37167
37167
|
}
|
|
37168
37168
|
return JSXExpressionContainer2;
|
|
37169
|
-
}();
|
|
37169
|
+
})();
|
|
37170
37170
|
exports3.JSXExpressionContainer = JSXExpressionContainer;
|
|
37171
|
-
var JSXIdentifier = /* @__PURE__ */ function() {
|
|
37171
|
+
var JSXIdentifier = /* @__PURE__ */ (function() {
|
|
37172
37172
|
function JSXIdentifier2(name3) {
|
|
37173
37173
|
this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier;
|
|
37174
37174
|
this.name = name3;
|
|
37175
37175
|
}
|
|
37176
37176
|
return JSXIdentifier2;
|
|
37177
|
-
}();
|
|
37177
|
+
})();
|
|
37178
37178
|
exports3.JSXIdentifier = JSXIdentifier;
|
|
37179
|
-
var JSXMemberExpression = /* @__PURE__ */ function() {
|
|
37179
|
+
var JSXMemberExpression = /* @__PURE__ */ (function() {
|
|
37180
37180
|
function JSXMemberExpression2(object, property) {
|
|
37181
37181
|
this.type = jsx_syntax_1.JSXSyntax.JSXMemberExpression;
|
|
37182
37182
|
this.object = object;
|
|
37183
37183
|
this.property = property;
|
|
37184
37184
|
}
|
|
37185
37185
|
return JSXMemberExpression2;
|
|
37186
|
-
}();
|
|
37186
|
+
})();
|
|
37187
37187
|
exports3.JSXMemberExpression = JSXMemberExpression;
|
|
37188
|
-
var JSXAttribute = /* @__PURE__ */ function() {
|
|
37188
|
+
var JSXAttribute = /* @__PURE__ */ (function() {
|
|
37189
37189
|
function JSXAttribute2(name3, value) {
|
|
37190
37190
|
this.type = jsx_syntax_1.JSXSyntax.JSXAttribute;
|
|
37191
37191
|
this.name = name3;
|
|
37192
37192
|
this.value = value;
|
|
37193
37193
|
}
|
|
37194
37194
|
return JSXAttribute2;
|
|
37195
|
-
}();
|
|
37195
|
+
})();
|
|
37196
37196
|
exports3.JSXAttribute = JSXAttribute;
|
|
37197
|
-
var JSXNamespacedName = /* @__PURE__ */ function() {
|
|
37197
|
+
var JSXNamespacedName = /* @__PURE__ */ (function() {
|
|
37198
37198
|
function JSXNamespacedName2(namespace, name3) {
|
|
37199
37199
|
this.type = jsx_syntax_1.JSXSyntax.JSXNamespacedName;
|
|
37200
37200
|
this.namespace = namespace;
|
|
37201
37201
|
this.name = name3;
|
|
37202
37202
|
}
|
|
37203
37203
|
return JSXNamespacedName2;
|
|
37204
|
-
}();
|
|
37204
|
+
})();
|
|
37205
37205
|
exports3.JSXNamespacedName = JSXNamespacedName;
|
|
37206
|
-
var JSXOpeningElement = /* @__PURE__ */ function() {
|
|
37206
|
+
var JSXOpeningElement = /* @__PURE__ */ (function() {
|
|
37207
37207
|
function JSXOpeningElement2(name3, selfClosing, attributes) {
|
|
37208
37208
|
this.type = jsx_syntax_1.JSXSyntax.JSXOpeningElement;
|
|
37209
37209
|
this.name = name3;
|
|
@@ -37211,24 +37211,24 @@ var require_esprima = __commonJS({
|
|
|
37211
37211
|
this.attributes = attributes;
|
|
37212
37212
|
}
|
|
37213
37213
|
return JSXOpeningElement2;
|
|
37214
|
-
}();
|
|
37214
|
+
})();
|
|
37215
37215
|
exports3.JSXOpeningElement = JSXOpeningElement;
|
|
37216
|
-
var JSXSpreadAttribute = /* @__PURE__ */ function() {
|
|
37216
|
+
var JSXSpreadAttribute = /* @__PURE__ */ (function() {
|
|
37217
37217
|
function JSXSpreadAttribute2(argument) {
|
|
37218
37218
|
this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute;
|
|
37219
37219
|
this.argument = argument;
|
|
37220
37220
|
}
|
|
37221
37221
|
return JSXSpreadAttribute2;
|
|
37222
|
-
}();
|
|
37222
|
+
})();
|
|
37223
37223
|
exports3.JSXSpreadAttribute = JSXSpreadAttribute;
|
|
37224
|
-
var JSXText = /* @__PURE__ */ function() {
|
|
37224
|
+
var JSXText = /* @__PURE__ */ (function() {
|
|
37225
37225
|
function JSXText2(value, raw) {
|
|
37226
37226
|
this.type = jsx_syntax_1.JSXSyntax.JSXText;
|
|
37227
37227
|
this.value = value;
|
|
37228
37228
|
this.raw = raw;
|
|
37229
37229
|
}
|
|
37230
37230
|
return JSXText2;
|
|
37231
|
-
}();
|
|
37231
|
+
})();
|
|
37232
37232
|
exports3.JSXText = JSXText;
|
|
37233
37233
|
},
|
|
37234
37234
|
/* 6 */
|
|
@@ -37256,23 +37256,23 @@ var require_esprima = __commonJS({
|
|
|
37256
37256
|
"use strict";
|
|
37257
37257
|
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
37258
37258
|
var syntax_1 = __webpack_require__(2);
|
|
37259
|
-
var ArrayExpression = /* @__PURE__ */ function() {
|
|
37259
|
+
var ArrayExpression = /* @__PURE__ */ (function() {
|
|
37260
37260
|
function ArrayExpression2(elements) {
|
|
37261
37261
|
this.type = syntax_1.Syntax.ArrayExpression;
|
|
37262
37262
|
this.elements = elements;
|
|
37263
37263
|
}
|
|
37264
37264
|
return ArrayExpression2;
|
|
37265
|
-
}();
|
|
37265
|
+
})();
|
|
37266
37266
|
exports3.ArrayExpression = ArrayExpression;
|
|
37267
|
-
var ArrayPattern = /* @__PURE__ */ function() {
|
|
37267
|
+
var ArrayPattern = /* @__PURE__ */ (function() {
|
|
37268
37268
|
function ArrayPattern2(elements) {
|
|
37269
37269
|
this.type = syntax_1.Syntax.ArrayPattern;
|
|
37270
37270
|
this.elements = elements;
|
|
37271
37271
|
}
|
|
37272
37272
|
return ArrayPattern2;
|
|
37273
|
-
}();
|
|
37273
|
+
})();
|
|
37274
37274
|
exports3.ArrayPattern = ArrayPattern;
|
|
37275
|
-
var ArrowFunctionExpression = /* @__PURE__ */ function() {
|
|
37275
|
+
var ArrowFunctionExpression = /* @__PURE__ */ (function() {
|
|
37276
37276
|
function ArrowFunctionExpression2(params, body, expression) {
|
|
37277
37277
|
this.type = syntax_1.Syntax.ArrowFunctionExpression;
|
|
37278
37278
|
this.id = null;
|
|
@@ -37283,9 +37283,9 @@ var require_esprima = __commonJS({
|
|
|
37283
37283
|
this.async = false;
|
|
37284
37284
|
}
|
|
37285
37285
|
return ArrowFunctionExpression2;
|
|
37286
|
-
}();
|
|
37286
|
+
})();
|
|
37287
37287
|
exports3.ArrowFunctionExpression = ArrowFunctionExpression;
|
|
37288
|
-
var AssignmentExpression = /* @__PURE__ */ function() {
|
|
37288
|
+
var AssignmentExpression = /* @__PURE__ */ (function() {
|
|
37289
37289
|
function AssignmentExpression2(operator, left2, right2) {
|
|
37290
37290
|
this.type = syntax_1.Syntax.AssignmentExpression;
|
|
37291
37291
|
this.operator = operator;
|
|
@@ -37293,18 +37293,18 @@ var require_esprima = __commonJS({
|
|
|
37293
37293
|
this.right = right2;
|
|
37294
37294
|
}
|
|
37295
37295
|
return AssignmentExpression2;
|
|
37296
|
-
}();
|
|
37296
|
+
})();
|
|
37297
37297
|
exports3.AssignmentExpression = AssignmentExpression;
|
|
37298
|
-
var AssignmentPattern = /* @__PURE__ */ function() {
|
|
37298
|
+
var AssignmentPattern = /* @__PURE__ */ (function() {
|
|
37299
37299
|
function AssignmentPattern2(left2, right2) {
|
|
37300
37300
|
this.type = syntax_1.Syntax.AssignmentPattern;
|
|
37301
37301
|
this.left = left2;
|
|
37302
37302
|
this.right = right2;
|
|
37303
37303
|
}
|
|
37304
37304
|
return AssignmentPattern2;
|
|
37305
|
-
}();
|
|
37305
|
+
})();
|
|
37306
37306
|
exports3.AssignmentPattern = AssignmentPattern;
|
|
37307
|
-
var AsyncArrowFunctionExpression = /* @__PURE__ */ function() {
|
|
37307
|
+
var AsyncArrowFunctionExpression = /* @__PURE__ */ (function() {
|
|
37308
37308
|
function AsyncArrowFunctionExpression2(params, body, expression) {
|
|
37309
37309
|
this.type = syntax_1.Syntax.ArrowFunctionExpression;
|
|
37310
37310
|
this.id = null;
|
|
@@ -37315,9 +37315,9 @@ var require_esprima = __commonJS({
|
|
|
37315
37315
|
this.async = true;
|
|
37316
37316
|
}
|
|
37317
37317
|
return AsyncArrowFunctionExpression2;
|
|
37318
|
-
}();
|
|
37318
|
+
})();
|
|
37319
37319
|
exports3.AsyncArrowFunctionExpression = AsyncArrowFunctionExpression;
|
|
37320
|
-
var AsyncFunctionDeclaration = /* @__PURE__ */ function() {
|
|
37320
|
+
var AsyncFunctionDeclaration = /* @__PURE__ */ (function() {
|
|
37321
37321
|
function AsyncFunctionDeclaration2(id, params, body) {
|
|
37322
37322
|
this.type = syntax_1.Syntax.FunctionDeclaration;
|
|
37323
37323
|
this.id = id;
|
|
@@ -37328,9 +37328,9 @@ var require_esprima = __commonJS({
|
|
|
37328
37328
|
this.async = true;
|
|
37329
37329
|
}
|
|
37330
37330
|
return AsyncFunctionDeclaration2;
|
|
37331
|
-
}();
|
|
37331
|
+
})();
|
|
37332
37332
|
exports3.AsyncFunctionDeclaration = AsyncFunctionDeclaration;
|
|
37333
|
-
var AsyncFunctionExpression = /* @__PURE__ */ function() {
|
|
37333
|
+
var AsyncFunctionExpression = /* @__PURE__ */ (function() {
|
|
37334
37334
|
function AsyncFunctionExpression2(id, params, body) {
|
|
37335
37335
|
this.type = syntax_1.Syntax.FunctionExpression;
|
|
37336
37336
|
this.id = id;
|
|
@@ -37341,17 +37341,17 @@ var require_esprima = __commonJS({
|
|
|
37341
37341
|
this.async = true;
|
|
37342
37342
|
}
|
|
37343
37343
|
return AsyncFunctionExpression2;
|
|
37344
|
-
}();
|
|
37344
|
+
})();
|
|
37345
37345
|
exports3.AsyncFunctionExpression = AsyncFunctionExpression;
|
|
37346
|
-
var AwaitExpression = /* @__PURE__ */ function() {
|
|
37346
|
+
var AwaitExpression = /* @__PURE__ */ (function() {
|
|
37347
37347
|
function AwaitExpression2(argument) {
|
|
37348
37348
|
this.type = syntax_1.Syntax.AwaitExpression;
|
|
37349
37349
|
this.argument = argument;
|
|
37350
37350
|
}
|
|
37351
37351
|
return AwaitExpression2;
|
|
37352
|
-
}();
|
|
37352
|
+
})();
|
|
37353
37353
|
exports3.AwaitExpression = AwaitExpression;
|
|
37354
|
-
var BinaryExpression = /* @__PURE__ */ function() {
|
|
37354
|
+
var BinaryExpression = /* @__PURE__ */ (function() {
|
|
37355
37355
|
function BinaryExpression2(operator, left2, right2) {
|
|
37356
37356
|
var logical = operator === "||" || operator === "&&";
|
|
37357
37357
|
this.type = logical ? syntax_1.Syntax.LogicalExpression : syntax_1.Syntax.BinaryExpression;
|
|
@@ -37360,51 +37360,51 @@ var require_esprima = __commonJS({
|
|
|
37360
37360
|
this.right = right2;
|
|
37361
37361
|
}
|
|
37362
37362
|
return BinaryExpression2;
|
|
37363
|
-
}();
|
|
37363
|
+
})();
|
|
37364
37364
|
exports3.BinaryExpression = BinaryExpression;
|
|
37365
|
-
var BlockStatement = /* @__PURE__ */ function() {
|
|
37365
|
+
var BlockStatement = /* @__PURE__ */ (function() {
|
|
37366
37366
|
function BlockStatement2(body) {
|
|
37367
37367
|
this.type = syntax_1.Syntax.BlockStatement;
|
|
37368
37368
|
this.body = body;
|
|
37369
37369
|
}
|
|
37370
37370
|
return BlockStatement2;
|
|
37371
|
-
}();
|
|
37371
|
+
})();
|
|
37372
37372
|
exports3.BlockStatement = BlockStatement;
|
|
37373
|
-
var BreakStatement = /* @__PURE__ */ function() {
|
|
37373
|
+
var BreakStatement = /* @__PURE__ */ (function() {
|
|
37374
37374
|
function BreakStatement2(label) {
|
|
37375
37375
|
this.type = syntax_1.Syntax.BreakStatement;
|
|
37376
37376
|
this.label = label;
|
|
37377
37377
|
}
|
|
37378
37378
|
return BreakStatement2;
|
|
37379
|
-
}();
|
|
37379
|
+
})();
|
|
37380
37380
|
exports3.BreakStatement = BreakStatement;
|
|
37381
|
-
var CallExpression = /* @__PURE__ */ function() {
|
|
37381
|
+
var CallExpression = /* @__PURE__ */ (function() {
|
|
37382
37382
|
function CallExpression2(callee, args) {
|
|
37383
37383
|
this.type = syntax_1.Syntax.CallExpression;
|
|
37384
37384
|
this.callee = callee;
|
|
37385
37385
|
this.arguments = args;
|
|
37386
37386
|
}
|
|
37387
37387
|
return CallExpression2;
|
|
37388
|
-
}();
|
|
37388
|
+
})();
|
|
37389
37389
|
exports3.CallExpression = CallExpression;
|
|
37390
|
-
var CatchClause = /* @__PURE__ */ function() {
|
|
37390
|
+
var CatchClause = /* @__PURE__ */ (function() {
|
|
37391
37391
|
function CatchClause2(param, body) {
|
|
37392
37392
|
this.type = syntax_1.Syntax.CatchClause;
|
|
37393
37393
|
this.param = param;
|
|
37394
37394
|
this.body = body;
|
|
37395
37395
|
}
|
|
37396
37396
|
return CatchClause2;
|
|
37397
|
-
}();
|
|
37397
|
+
})();
|
|
37398
37398
|
exports3.CatchClause = CatchClause;
|
|
37399
|
-
var ClassBody = /* @__PURE__ */ function() {
|
|
37399
|
+
var ClassBody = /* @__PURE__ */ (function() {
|
|
37400
37400
|
function ClassBody2(body) {
|
|
37401
37401
|
this.type = syntax_1.Syntax.ClassBody;
|
|
37402
37402
|
this.body = body;
|
|
37403
37403
|
}
|
|
37404
37404
|
return ClassBody2;
|
|
37405
|
-
}();
|
|
37405
|
+
})();
|
|
37406
37406
|
exports3.ClassBody = ClassBody;
|
|
37407
|
-
var ClassDeclaration = /* @__PURE__ */ function() {
|
|
37407
|
+
var ClassDeclaration = /* @__PURE__ */ (function() {
|
|
37408
37408
|
function ClassDeclaration2(id, superClass, body) {
|
|
37409
37409
|
this.type = syntax_1.Syntax.ClassDeclaration;
|
|
37410
37410
|
this.id = id;
|
|
@@ -37412,9 +37412,9 @@ var require_esprima = __commonJS({
|
|
|
37412
37412
|
this.body = body;
|
|
37413
37413
|
}
|
|
37414
37414
|
return ClassDeclaration2;
|
|
37415
|
-
}();
|
|
37415
|
+
})();
|
|
37416
37416
|
exports3.ClassDeclaration = ClassDeclaration;
|
|
37417
|
-
var ClassExpression = /* @__PURE__ */ function() {
|
|
37417
|
+
var ClassExpression = /* @__PURE__ */ (function() {
|
|
37418
37418
|
function ClassExpression2(id, superClass, body) {
|
|
37419
37419
|
this.type = syntax_1.Syntax.ClassExpression;
|
|
37420
37420
|
this.id = id;
|
|
@@ -37422,9 +37422,9 @@ var require_esprima = __commonJS({
|
|
|
37422
37422
|
this.body = body;
|
|
37423
37423
|
}
|
|
37424
37424
|
return ClassExpression2;
|
|
37425
|
-
}();
|
|
37425
|
+
})();
|
|
37426
37426
|
exports3.ClassExpression = ClassExpression;
|
|
37427
|
-
var ComputedMemberExpression = /* @__PURE__ */ function() {
|
|
37427
|
+
var ComputedMemberExpression = /* @__PURE__ */ (function() {
|
|
37428
37428
|
function ComputedMemberExpression2(object, property) {
|
|
37429
37429
|
this.type = syntax_1.Syntax.MemberExpression;
|
|
37430
37430
|
this.computed = true;
|
|
@@ -37432,9 +37432,9 @@ var require_esprima = __commonJS({
|
|
|
37432
37432
|
this.property = property;
|
|
37433
37433
|
}
|
|
37434
37434
|
return ComputedMemberExpression2;
|
|
37435
|
-
}();
|
|
37435
|
+
})();
|
|
37436
37436
|
exports3.ComputedMemberExpression = ComputedMemberExpression;
|
|
37437
|
-
var ConditionalExpression = /* @__PURE__ */ function() {
|
|
37437
|
+
var ConditionalExpression = /* @__PURE__ */ (function() {
|
|
37438
37438
|
function ConditionalExpression2(test, consequent, alternate) {
|
|
37439
37439
|
this.type = syntax_1.Syntax.ConditionalExpression;
|
|
37440
37440
|
this.test = test;
|
|
@@ -37442,65 +37442,65 @@ var require_esprima = __commonJS({
|
|
|
37442
37442
|
this.alternate = alternate;
|
|
37443
37443
|
}
|
|
37444
37444
|
return ConditionalExpression2;
|
|
37445
|
-
}();
|
|
37445
|
+
})();
|
|
37446
37446
|
exports3.ConditionalExpression = ConditionalExpression;
|
|
37447
|
-
var ContinueStatement = /* @__PURE__ */ function() {
|
|
37447
|
+
var ContinueStatement = /* @__PURE__ */ (function() {
|
|
37448
37448
|
function ContinueStatement2(label) {
|
|
37449
37449
|
this.type = syntax_1.Syntax.ContinueStatement;
|
|
37450
37450
|
this.label = label;
|
|
37451
37451
|
}
|
|
37452
37452
|
return ContinueStatement2;
|
|
37453
|
-
}();
|
|
37453
|
+
})();
|
|
37454
37454
|
exports3.ContinueStatement = ContinueStatement;
|
|
37455
|
-
var DebuggerStatement = /* @__PURE__ */ function() {
|
|
37455
|
+
var DebuggerStatement = /* @__PURE__ */ (function() {
|
|
37456
37456
|
function DebuggerStatement2() {
|
|
37457
37457
|
this.type = syntax_1.Syntax.DebuggerStatement;
|
|
37458
37458
|
}
|
|
37459
37459
|
return DebuggerStatement2;
|
|
37460
|
-
}();
|
|
37460
|
+
})();
|
|
37461
37461
|
exports3.DebuggerStatement = DebuggerStatement;
|
|
37462
|
-
var Directive = /* @__PURE__ */ function() {
|
|
37462
|
+
var Directive = /* @__PURE__ */ (function() {
|
|
37463
37463
|
function Directive2(expression, directive) {
|
|
37464
37464
|
this.type = syntax_1.Syntax.ExpressionStatement;
|
|
37465
37465
|
this.expression = expression;
|
|
37466
37466
|
this.directive = directive;
|
|
37467
37467
|
}
|
|
37468
37468
|
return Directive2;
|
|
37469
|
-
}();
|
|
37469
|
+
})();
|
|
37470
37470
|
exports3.Directive = Directive;
|
|
37471
|
-
var DoWhileStatement = /* @__PURE__ */ function() {
|
|
37471
|
+
var DoWhileStatement = /* @__PURE__ */ (function() {
|
|
37472
37472
|
function DoWhileStatement2(body, test) {
|
|
37473
37473
|
this.type = syntax_1.Syntax.DoWhileStatement;
|
|
37474
37474
|
this.body = body;
|
|
37475
37475
|
this.test = test;
|
|
37476
37476
|
}
|
|
37477
37477
|
return DoWhileStatement2;
|
|
37478
|
-
}();
|
|
37478
|
+
})();
|
|
37479
37479
|
exports3.DoWhileStatement = DoWhileStatement;
|
|
37480
|
-
var EmptyStatement = /* @__PURE__ */ function() {
|
|
37480
|
+
var EmptyStatement = /* @__PURE__ */ (function() {
|
|
37481
37481
|
function EmptyStatement2() {
|
|
37482
37482
|
this.type = syntax_1.Syntax.EmptyStatement;
|
|
37483
37483
|
}
|
|
37484
37484
|
return EmptyStatement2;
|
|
37485
|
-
}();
|
|
37485
|
+
})();
|
|
37486
37486
|
exports3.EmptyStatement = EmptyStatement;
|
|
37487
|
-
var ExportAllDeclaration = /* @__PURE__ */ function() {
|
|
37487
|
+
var ExportAllDeclaration = /* @__PURE__ */ (function() {
|
|
37488
37488
|
function ExportAllDeclaration2(source) {
|
|
37489
37489
|
this.type = syntax_1.Syntax.ExportAllDeclaration;
|
|
37490
37490
|
this.source = source;
|
|
37491
37491
|
}
|
|
37492
37492
|
return ExportAllDeclaration2;
|
|
37493
|
-
}();
|
|
37493
|
+
})();
|
|
37494
37494
|
exports3.ExportAllDeclaration = ExportAllDeclaration;
|
|
37495
|
-
var ExportDefaultDeclaration = /* @__PURE__ */ function() {
|
|
37495
|
+
var ExportDefaultDeclaration = /* @__PURE__ */ (function() {
|
|
37496
37496
|
function ExportDefaultDeclaration2(declaration) {
|
|
37497
37497
|
this.type = syntax_1.Syntax.ExportDefaultDeclaration;
|
|
37498
37498
|
this.declaration = declaration;
|
|
37499
37499
|
}
|
|
37500
37500
|
return ExportDefaultDeclaration2;
|
|
37501
|
-
}();
|
|
37501
|
+
})();
|
|
37502
37502
|
exports3.ExportDefaultDeclaration = ExportDefaultDeclaration;
|
|
37503
|
-
var ExportNamedDeclaration = /* @__PURE__ */ function() {
|
|
37503
|
+
var ExportNamedDeclaration = /* @__PURE__ */ (function() {
|
|
37504
37504
|
function ExportNamedDeclaration2(declaration, specifiers, source) {
|
|
37505
37505
|
this.type = syntax_1.Syntax.ExportNamedDeclaration;
|
|
37506
37506
|
this.declaration = declaration;
|
|
@@ -37508,26 +37508,26 @@ var require_esprima = __commonJS({
|
|
|
37508
37508
|
this.source = source;
|
|
37509
37509
|
}
|
|
37510
37510
|
return ExportNamedDeclaration2;
|
|
37511
|
-
}();
|
|
37511
|
+
})();
|
|
37512
37512
|
exports3.ExportNamedDeclaration = ExportNamedDeclaration;
|
|
37513
|
-
var ExportSpecifier = /* @__PURE__ */ function() {
|
|
37513
|
+
var ExportSpecifier = /* @__PURE__ */ (function() {
|
|
37514
37514
|
function ExportSpecifier2(local, exported) {
|
|
37515
37515
|
this.type = syntax_1.Syntax.ExportSpecifier;
|
|
37516
37516
|
this.exported = exported;
|
|
37517
37517
|
this.local = local;
|
|
37518
37518
|
}
|
|
37519
37519
|
return ExportSpecifier2;
|
|
37520
|
-
}();
|
|
37520
|
+
})();
|
|
37521
37521
|
exports3.ExportSpecifier = ExportSpecifier;
|
|
37522
|
-
var ExpressionStatement = /* @__PURE__ */ function() {
|
|
37522
|
+
var ExpressionStatement = /* @__PURE__ */ (function() {
|
|
37523
37523
|
function ExpressionStatement2(expression) {
|
|
37524
37524
|
this.type = syntax_1.Syntax.ExpressionStatement;
|
|
37525
37525
|
this.expression = expression;
|
|
37526
37526
|
}
|
|
37527
37527
|
return ExpressionStatement2;
|
|
37528
|
-
}();
|
|
37528
|
+
})();
|
|
37529
37529
|
exports3.ExpressionStatement = ExpressionStatement;
|
|
37530
|
-
var ForInStatement = /* @__PURE__ */ function() {
|
|
37530
|
+
var ForInStatement = /* @__PURE__ */ (function() {
|
|
37531
37531
|
function ForInStatement2(left2, right2, body) {
|
|
37532
37532
|
this.type = syntax_1.Syntax.ForInStatement;
|
|
37533
37533
|
this.left = left2;
|
|
@@ -37536,9 +37536,9 @@ var require_esprima = __commonJS({
|
|
|
37536
37536
|
this.each = false;
|
|
37537
37537
|
}
|
|
37538
37538
|
return ForInStatement2;
|
|
37539
|
-
}();
|
|
37539
|
+
})();
|
|
37540
37540
|
exports3.ForInStatement = ForInStatement;
|
|
37541
|
-
var ForOfStatement = /* @__PURE__ */ function() {
|
|
37541
|
+
var ForOfStatement = /* @__PURE__ */ (function() {
|
|
37542
37542
|
function ForOfStatement2(left2, right2, body) {
|
|
37543
37543
|
this.type = syntax_1.Syntax.ForOfStatement;
|
|
37544
37544
|
this.left = left2;
|
|
@@ -37546,9 +37546,9 @@ var require_esprima = __commonJS({
|
|
|
37546
37546
|
this.body = body;
|
|
37547
37547
|
}
|
|
37548
37548
|
return ForOfStatement2;
|
|
37549
|
-
}();
|
|
37549
|
+
})();
|
|
37550
37550
|
exports3.ForOfStatement = ForOfStatement;
|
|
37551
|
-
var ForStatement = /* @__PURE__ */ function() {
|
|
37551
|
+
var ForStatement = /* @__PURE__ */ (function() {
|
|
37552
37552
|
function ForStatement2(init, test, update, body) {
|
|
37553
37553
|
this.type = syntax_1.Syntax.ForStatement;
|
|
37554
37554
|
this.init = init;
|
|
@@ -37557,9 +37557,9 @@ var require_esprima = __commonJS({
|
|
|
37557
37557
|
this.body = body;
|
|
37558
37558
|
}
|
|
37559
37559
|
return ForStatement2;
|
|
37560
|
-
}();
|
|
37560
|
+
})();
|
|
37561
37561
|
exports3.ForStatement = ForStatement;
|
|
37562
|
-
var FunctionDeclaration = /* @__PURE__ */ function() {
|
|
37562
|
+
var FunctionDeclaration = /* @__PURE__ */ (function() {
|
|
37563
37563
|
function FunctionDeclaration2(id, params, body, generator) {
|
|
37564
37564
|
this.type = syntax_1.Syntax.FunctionDeclaration;
|
|
37565
37565
|
this.id = id;
|
|
@@ -37570,9 +37570,9 @@ var require_esprima = __commonJS({
|
|
|
37570
37570
|
this.async = false;
|
|
37571
37571
|
}
|
|
37572
37572
|
return FunctionDeclaration2;
|
|
37573
|
-
}();
|
|
37573
|
+
})();
|
|
37574
37574
|
exports3.FunctionDeclaration = FunctionDeclaration;
|
|
37575
|
-
var FunctionExpression = /* @__PURE__ */ function() {
|
|
37575
|
+
var FunctionExpression = /* @__PURE__ */ (function() {
|
|
37576
37576
|
function FunctionExpression2(id, params, body, generator) {
|
|
37577
37577
|
this.type = syntax_1.Syntax.FunctionExpression;
|
|
37578
37578
|
this.id = id;
|
|
@@ -37583,17 +37583,17 @@ var require_esprima = __commonJS({
|
|
|
37583
37583
|
this.async = false;
|
|
37584
37584
|
}
|
|
37585
37585
|
return FunctionExpression2;
|
|
37586
|
-
}();
|
|
37586
|
+
})();
|
|
37587
37587
|
exports3.FunctionExpression = FunctionExpression;
|
|
37588
|
-
var Identifier = /* @__PURE__ */ function() {
|
|
37588
|
+
var Identifier = /* @__PURE__ */ (function() {
|
|
37589
37589
|
function Identifier2(name3) {
|
|
37590
37590
|
this.type = syntax_1.Syntax.Identifier;
|
|
37591
37591
|
this.name = name3;
|
|
37592
37592
|
}
|
|
37593
37593
|
return Identifier2;
|
|
37594
|
-
}();
|
|
37594
|
+
})();
|
|
37595
37595
|
exports3.Identifier = Identifier;
|
|
37596
|
-
var IfStatement = /* @__PURE__ */ function() {
|
|
37596
|
+
var IfStatement = /* @__PURE__ */ (function() {
|
|
37597
37597
|
function IfStatement2(test, consequent, alternate) {
|
|
37598
37598
|
this.type = syntax_1.Syntax.IfStatement;
|
|
37599
37599
|
this.test = test;
|
|
@@ -37601,70 +37601,70 @@ var require_esprima = __commonJS({
|
|
|
37601
37601
|
this.alternate = alternate;
|
|
37602
37602
|
}
|
|
37603
37603
|
return IfStatement2;
|
|
37604
|
-
}();
|
|
37604
|
+
})();
|
|
37605
37605
|
exports3.IfStatement = IfStatement;
|
|
37606
|
-
var ImportDeclaration = /* @__PURE__ */ function() {
|
|
37606
|
+
var ImportDeclaration = /* @__PURE__ */ (function() {
|
|
37607
37607
|
function ImportDeclaration2(specifiers, source) {
|
|
37608
37608
|
this.type = syntax_1.Syntax.ImportDeclaration;
|
|
37609
37609
|
this.specifiers = specifiers;
|
|
37610
37610
|
this.source = source;
|
|
37611
37611
|
}
|
|
37612
37612
|
return ImportDeclaration2;
|
|
37613
|
-
}();
|
|
37613
|
+
})();
|
|
37614
37614
|
exports3.ImportDeclaration = ImportDeclaration;
|
|
37615
|
-
var ImportDefaultSpecifier = /* @__PURE__ */ function() {
|
|
37615
|
+
var ImportDefaultSpecifier = /* @__PURE__ */ (function() {
|
|
37616
37616
|
function ImportDefaultSpecifier2(local) {
|
|
37617
37617
|
this.type = syntax_1.Syntax.ImportDefaultSpecifier;
|
|
37618
37618
|
this.local = local;
|
|
37619
37619
|
}
|
|
37620
37620
|
return ImportDefaultSpecifier2;
|
|
37621
|
-
}();
|
|
37621
|
+
})();
|
|
37622
37622
|
exports3.ImportDefaultSpecifier = ImportDefaultSpecifier;
|
|
37623
|
-
var ImportNamespaceSpecifier = /* @__PURE__ */ function() {
|
|
37623
|
+
var ImportNamespaceSpecifier = /* @__PURE__ */ (function() {
|
|
37624
37624
|
function ImportNamespaceSpecifier2(local) {
|
|
37625
37625
|
this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
|
|
37626
37626
|
this.local = local;
|
|
37627
37627
|
}
|
|
37628
37628
|
return ImportNamespaceSpecifier2;
|
|
37629
|
-
}();
|
|
37629
|
+
})();
|
|
37630
37630
|
exports3.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
|
|
37631
|
-
var ImportSpecifier = /* @__PURE__ */ function() {
|
|
37631
|
+
var ImportSpecifier = /* @__PURE__ */ (function() {
|
|
37632
37632
|
function ImportSpecifier2(local, imported) {
|
|
37633
37633
|
this.type = syntax_1.Syntax.ImportSpecifier;
|
|
37634
37634
|
this.local = local;
|
|
37635
37635
|
this.imported = imported;
|
|
37636
37636
|
}
|
|
37637
37637
|
return ImportSpecifier2;
|
|
37638
|
-
}();
|
|
37638
|
+
})();
|
|
37639
37639
|
exports3.ImportSpecifier = ImportSpecifier;
|
|
37640
|
-
var LabeledStatement = /* @__PURE__ */ function() {
|
|
37640
|
+
var LabeledStatement = /* @__PURE__ */ (function() {
|
|
37641
37641
|
function LabeledStatement2(label, body) {
|
|
37642
37642
|
this.type = syntax_1.Syntax.LabeledStatement;
|
|
37643
37643
|
this.label = label;
|
|
37644
37644
|
this.body = body;
|
|
37645
37645
|
}
|
|
37646
37646
|
return LabeledStatement2;
|
|
37647
|
-
}();
|
|
37647
|
+
})();
|
|
37648
37648
|
exports3.LabeledStatement = LabeledStatement;
|
|
37649
|
-
var Literal = /* @__PURE__ */ function() {
|
|
37649
|
+
var Literal = /* @__PURE__ */ (function() {
|
|
37650
37650
|
function Literal2(value, raw) {
|
|
37651
37651
|
this.type = syntax_1.Syntax.Literal;
|
|
37652
37652
|
this.value = value;
|
|
37653
37653
|
this.raw = raw;
|
|
37654
37654
|
}
|
|
37655
37655
|
return Literal2;
|
|
37656
|
-
}();
|
|
37656
|
+
})();
|
|
37657
37657
|
exports3.Literal = Literal;
|
|
37658
|
-
var MetaProperty = /* @__PURE__ */ function() {
|
|
37658
|
+
var MetaProperty = /* @__PURE__ */ (function() {
|
|
37659
37659
|
function MetaProperty2(meta, property) {
|
|
37660
37660
|
this.type = syntax_1.Syntax.MetaProperty;
|
|
37661
37661
|
this.meta = meta;
|
|
37662
37662
|
this.property = property;
|
|
37663
37663
|
}
|
|
37664
37664
|
return MetaProperty2;
|
|
37665
|
-
}();
|
|
37665
|
+
})();
|
|
37666
37666
|
exports3.MetaProperty = MetaProperty;
|
|
37667
|
-
var MethodDefinition = /* @__PURE__ */ function() {
|
|
37667
|
+
var MethodDefinition = /* @__PURE__ */ (function() {
|
|
37668
37668
|
function MethodDefinition2(key, computed, value, kind, isStatic) {
|
|
37669
37669
|
this.type = syntax_1.Syntax.MethodDefinition;
|
|
37670
37670
|
this.key = key;
|
|
@@ -37674,43 +37674,43 @@ var require_esprima = __commonJS({
|
|
|
37674
37674
|
this.static = isStatic;
|
|
37675
37675
|
}
|
|
37676
37676
|
return MethodDefinition2;
|
|
37677
|
-
}();
|
|
37677
|
+
})();
|
|
37678
37678
|
exports3.MethodDefinition = MethodDefinition;
|
|
37679
|
-
var Module = /* @__PURE__ */ function() {
|
|
37679
|
+
var Module = /* @__PURE__ */ (function() {
|
|
37680
37680
|
function Module2(body) {
|
|
37681
37681
|
this.type = syntax_1.Syntax.Program;
|
|
37682
37682
|
this.body = body;
|
|
37683
37683
|
this.sourceType = "module";
|
|
37684
37684
|
}
|
|
37685
37685
|
return Module2;
|
|
37686
|
-
}();
|
|
37686
|
+
})();
|
|
37687
37687
|
exports3.Module = Module;
|
|
37688
|
-
var NewExpression = /* @__PURE__ */ function() {
|
|
37688
|
+
var NewExpression = /* @__PURE__ */ (function() {
|
|
37689
37689
|
function NewExpression2(callee, args) {
|
|
37690
37690
|
this.type = syntax_1.Syntax.NewExpression;
|
|
37691
37691
|
this.callee = callee;
|
|
37692
37692
|
this.arguments = args;
|
|
37693
37693
|
}
|
|
37694
37694
|
return NewExpression2;
|
|
37695
|
-
}();
|
|
37695
|
+
})();
|
|
37696
37696
|
exports3.NewExpression = NewExpression;
|
|
37697
|
-
var ObjectExpression = /* @__PURE__ */ function() {
|
|
37697
|
+
var ObjectExpression = /* @__PURE__ */ (function() {
|
|
37698
37698
|
function ObjectExpression2(properties) {
|
|
37699
37699
|
this.type = syntax_1.Syntax.ObjectExpression;
|
|
37700
37700
|
this.properties = properties;
|
|
37701
37701
|
}
|
|
37702
37702
|
return ObjectExpression2;
|
|
37703
|
-
}();
|
|
37703
|
+
})();
|
|
37704
37704
|
exports3.ObjectExpression = ObjectExpression;
|
|
37705
|
-
var ObjectPattern = /* @__PURE__ */ function() {
|
|
37705
|
+
var ObjectPattern = /* @__PURE__ */ (function() {
|
|
37706
37706
|
function ObjectPattern2(properties) {
|
|
37707
37707
|
this.type = syntax_1.Syntax.ObjectPattern;
|
|
37708
37708
|
this.properties = properties;
|
|
37709
37709
|
}
|
|
37710
37710
|
return ObjectPattern2;
|
|
37711
|
-
}();
|
|
37711
|
+
})();
|
|
37712
37712
|
exports3.ObjectPattern = ObjectPattern;
|
|
37713
|
-
var Property = /* @__PURE__ */ function() {
|
|
37713
|
+
var Property = /* @__PURE__ */ (function() {
|
|
37714
37714
|
function Property2(kind, key, computed, value, method, shorthand) {
|
|
37715
37715
|
this.type = syntax_1.Syntax.Property;
|
|
37716
37716
|
this.key = key;
|
|
@@ -37721,9 +37721,9 @@ var require_esprima = __commonJS({
|
|
|
37721
37721
|
this.shorthand = shorthand;
|
|
37722
37722
|
}
|
|
37723
37723
|
return Property2;
|
|
37724
|
-
}();
|
|
37724
|
+
})();
|
|
37725
37725
|
exports3.Property = Property;
|
|
37726
|
-
var RegexLiteral = /* @__PURE__ */ function() {
|
|
37726
|
+
var RegexLiteral = /* @__PURE__ */ (function() {
|
|
37727
37727
|
function RegexLiteral2(value, raw, pattern, flags) {
|
|
37728
37728
|
this.type = syntax_1.Syntax.Literal;
|
|
37729
37729
|
this.value = value;
|
|
@@ -37731,50 +37731,50 @@ var require_esprima = __commonJS({
|
|
|
37731
37731
|
this.regex = { pattern, flags };
|
|
37732
37732
|
}
|
|
37733
37733
|
return RegexLiteral2;
|
|
37734
|
-
}();
|
|
37734
|
+
})();
|
|
37735
37735
|
exports3.RegexLiteral = RegexLiteral;
|
|
37736
|
-
var RestElement = /* @__PURE__ */ function() {
|
|
37736
|
+
var RestElement = /* @__PURE__ */ (function() {
|
|
37737
37737
|
function RestElement2(argument) {
|
|
37738
37738
|
this.type = syntax_1.Syntax.RestElement;
|
|
37739
37739
|
this.argument = argument;
|
|
37740
37740
|
}
|
|
37741
37741
|
return RestElement2;
|
|
37742
|
-
}();
|
|
37742
|
+
})();
|
|
37743
37743
|
exports3.RestElement = RestElement;
|
|
37744
|
-
var ReturnStatement = /* @__PURE__ */ function() {
|
|
37744
|
+
var ReturnStatement = /* @__PURE__ */ (function() {
|
|
37745
37745
|
function ReturnStatement2(argument) {
|
|
37746
37746
|
this.type = syntax_1.Syntax.ReturnStatement;
|
|
37747
37747
|
this.argument = argument;
|
|
37748
37748
|
}
|
|
37749
37749
|
return ReturnStatement2;
|
|
37750
|
-
}();
|
|
37750
|
+
})();
|
|
37751
37751
|
exports3.ReturnStatement = ReturnStatement;
|
|
37752
|
-
var Script = /* @__PURE__ */ function() {
|
|
37752
|
+
var Script = /* @__PURE__ */ (function() {
|
|
37753
37753
|
function Script2(body) {
|
|
37754
37754
|
this.type = syntax_1.Syntax.Program;
|
|
37755
37755
|
this.body = body;
|
|
37756
37756
|
this.sourceType = "script";
|
|
37757
37757
|
}
|
|
37758
37758
|
return Script2;
|
|
37759
|
-
}();
|
|
37759
|
+
})();
|
|
37760
37760
|
exports3.Script = Script;
|
|
37761
|
-
var SequenceExpression = /* @__PURE__ */ function() {
|
|
37761
|
+
var SequenceExpression = /* @__PURE__ */ (function() {
|
|
37762
37762
|
function SequenceExpression2(expressions) {
|
|
37763
37763
|
this.type = syntax_1.Syntax.SequenceExpression;
|
|
37764
37764
|
this.expressions = expressions;
|
|
37765
37765
|
}
|
|
37766
37766
|
return SequenceExpression2;
|
|
37767
|
-
}();
|
|
37767
|
+
})();
|
|
37768
37768
|
exports3.SequenceExpression = SequenceExpression;
|
|
37769
|
-
var SpreadElement = /* @__PURE__ */ function() {
|
|
37769
|
+
var SpreadElement = /* @__PURE__ */ (function() {
|
|
37770
37770
|
function SpreadElement2(argument) {
|
|
37771
37771
|
this.type = syntax_1.Syntax.SpreadElement;
|
|
37772
37772
|
this.argument = argument;
|
|
37773
37773
|
}
|
|
37774
37774
|
return SpreadElement2;
|
|
37775
|
-
}();
|
|
37775
|
+
})();
|
|
37776
37776
|
exports3.SpreadElement = SpreadElement;
|
|
37777
|
-
var StaticMemberExpression = /* @__PURE__ */ function() {
|
|
37777
|
+
var StaticMemberExpression = /* @__PURE__ */ (function() {
|
|
37778
37778
|
function StaticMemberExpression2(object, property) {
|
|
37779
37779
|
this.type = syntax_1.Syntax.MemberExpression;
|
|
37780
37780
|
this.computed = false;
|
|
@@ -37782,76 +37782,76 @@ var require_esprima = __commonJS({
|
|
|
37782
37782
|
this.property = property;
|
|
37783
37783
|
}
|
|
37784
37784
|
return StaticMemberExpression2;
|
|
37785
|
-
}();
|
|
37785
|
+
})();
|
|
37786
37786
|
exports3.StaticMemberExpression = StaticMemberExpression;
|
|
37787
|
-
var Super = /* @__PURE__ */ function() {
|
|
37787
|
+
var Super = /* @__PURE__ */ (function() {
|
|
37788
37788
|
function Super2() {
|
|
37789
37789
|
this.type = syntax_1.Syntax.Super;
|
|
37790
37790
|
}
|
|
37791
37791
|
return Super2;
|
|
37792
|
-
}();
|
|
37792
|
+
})();
|
|
37793
37793
|
exports3.Super = Super;
|
|
37794
|
-
var SwitchCase = /* @__PURE__ */ function() {
|
|
37794
|
+
var SwitchCase = /* @__PURE__ */ (function() {
|
|
37795
37795
|
function SwitchCase2(test, consequent) {
|
|
37796
37796
|
this.type = syntax_1.Syntax.SwitchCase;
|
|
37797
37797
|
this.test = test;
|
|
37798
37798
|
this.consequent = consequent;
|
|
37799
37799
|
}
|
|
37800
37800
|
return SwitchCase2;
|
|
37801
|
-
}();
|
|
37801
|
+
})();
|
|
37802
37802
|
exports3.SwitchCase = SwitchCase;
|
|
37803
|
-
var SwitchStatement = /* @__PURE__ */ function() {
|
|
37803
|
+
var SwitchStatement = /* @__PURE__ */ (function() {
|
|
37804
37804
|
function SwitchStatement2(discriminant, cases) {
|
|
37805
37805
|
this.type = syntax_1.Syntax.SwitchStatement;
|
|
37806
37806
|
this.discriminant = discriminant;
|
|
37807
37807
|
this.cases = cases;
|
|
37808
37808
|
}
|
|
37809
37809
|
return SwitchStatement2;
|
|
37810
|
-
}();
|
|
37810
|
+
})();
|
|
37811
37811
|
exports3.SwitchStatement = SwitchStatement;
|
|
37812
|
-
var TaggedTemplateExpression = /* @__PURE__ */ function() {
|
|
37812
|
+
var TaggedTemplateExpression = /* @__PURE__ */ (function() {
|
|
37813
37813
|
function TaggedTemplateExpression2(tag, quasi) {
|
|
37814
37814
|
this.type = syntax_1.Syntax.TaggedTemplateExpression;
|
|
37815
37815
|
this.tag = tag;
|
|
37816
37816
|
this.quasi = quasi;
|
|
37817
37817
|
}
|
|
37818
37818
|
return TaggedTemplateExpression2;
|
|
37819
|
-
}();
|
|
37819
|
+
})();
|
|
37820
37820
|
exports3.TaggedTemplateExpression = TaggedTemplateExpression;
|
|
37821
|
-
var TemplateElement = /* @__PURE__ */ function() {
|
|
37821
|
+
var TemplateElement = /* @__PURE__ */ (function() {
|
|
37822
37822
|
function TemplateElement2(value, tail) {
|
|
37823
37823
|
this.type = syntax_1.Syntax.TemplateElement;
|
|
37824
37824
|
this.value = value;
|
|
37825
37825
|
this.tail = tail;
|
|
37826
37826
|
}
|
|
37827
37827
|
return TemplateElement2;
|
|
37828
|
-
}();
|
|
37828
|
+
})();
|
|
37829
37829
|
exports3.TemplateElement = TemplateElement;
|
|
37830
|
-
var TemplateLiteral = /* @__PURE__ */ function() {
|
|
37830
|
+
var TemplateLiteral = /* @__PURE__ */ (function() {
|
|
37831
37831
|
function TemplateLiteral2(quasis, expressions) {
|
|
37832
37832
|
this.type = syntax_1.Syntax.TemplateLiteral;
|
|
37833
37833
|
this.quasis = quasis;
|
|
37834
37834
|
this.expressions = expressions;
|
|
37835
37835
|
}
|
|
37836
37836
|
return TemplateLiteral2;
|
|
37837
|
-
}();
|
|
37837
|
+
})();
|
|
37838
37838
|
exports3.TemplateLiteral = TemplateLiteral;
|
|
37839
|
-
var ThisExpression = /* @__PURE__ */ function() {
|
|
37839
|
+
var ThisExpression = /* @__PURE__ */ (function() {
|
|
37840
37840
|
function ThisExpression2() {
|
|
37841
37841
|
this.type = syntax_1.Syntax.ThisExpression;
|
|
37842
37842
|
}
|
|
37843
37843
|
return ThisExpression2;
|
|
37844
|
-
}();
|
|
37844
|
+
})();
|
|
37845
37845
|
exports3.ThisExpression = ThisExpression;
|
|
37846
|
-
var ThrowStatement = /* @__PURE__ */ function() {
|
|
37846
|
+
var ThrowStatement = /* @__PURE__ */ (function() {
|
|
37847
37847
|
function ThrowStatement2(argument) {
|
|
37848
37848
|
this.type = syntax_1.Syntax.ThrowStatement;
|
|
37849
37849
|
this.argument = argument;
|
|
37850
37850
|
}
|
|
37851
37851
|
return ThrowStatement2;
|
|
37852
|
-
}();
|
|
37852
|
+
})();
|
|
37853
37853
|
exports3.ThrowStatement = ThrowStatement;
|
|
37854
|
-
var TryStatement = /* @__PURE__ */ function() {
|
|
37854
|
+
var TryStatement = /* @__PURE__ */ (function() {
|
|
37855
37855
|
function TryStatement2(block, handler, finalizer) {
|
|
37856
37856
|
this.type = syntax_1.Syntax.TryStatement;
|
|
37857
37857
|
this.block = block;
|
|
@@ -37859,9 +37859,9 @@ var require_esprima = __commonJS({
|
|
|
37859
37859
|
this.finalizer = finalizer;
|
|
37860
37860
|
}
|
|
37861
37861
|
return TryStatement2;
|
|
37862
|
-
}();
|
|
37862
|
+
})();
|
|
37863
37863
|
exports3.TryStatement = TryStatement;
|
|
37864
|
-
var UnaryExpression = /* @__PURE__ */ function() {
|
|
37864
|
+
var UnaryExpression = /* @__PURE__ */ (function() {
|
|
37865
37865
|
function UnaryExpression2(operator, argument) {
|
|
37866
37866
|
this.type = syntax_1.Syntax.UnaryExpression;
|
|
37867
37867
|
this.operator = operator;
|
|
@@ -37869,9 +37869,9 @@ var require_esprima = __commonJS({
|
|
|
37869
37869
|
this.prefix = true;
|
|
37870
37870
|
}
|
|
37871
37871
|
return UnaryExpression2;
|
|
37872
|
-
}();
|
|
37872
|
+
})();
|
|
37873
37873
|
exports3.UnaryExpression = UnaryExpression;
|
|
37874
|
-
var UpdateExpression = /* @__PURE__ */ function() {
|
|
37874
|
+
var UpdateExpression = /* @__PURE__ */ (function() {
|
|
37875
37875
|
function UpdateExpression2(operator, argument, prefix) {
|
|
37876
37876
|
this.type = syntax_1.Syntax.UpdateExpression;
|
|
37877
37877
|
this.operator = operator;
|
|
@@ -37879,52 +37879,52 @@ var require_esprima = __commonJS({
|
|
|
37879
37879
|
this.prefix = prefix;
|
|
37880
37880
|
}
|
|
37881
37881
|
return UpdateExpression2;
|
|
37882
|
-
}();
|
|
37882
|
+
})();
|
|
37883
37883
|
exports3.UpdateExpression = UpdateExpression;
|
|
37884
|
-
var VariableDeclaration = /* @__PURE__ */ function() {
|
|
37884
|
+
var VariableDeclaration = /* @__PURE__ */ (function() {
|
|
37885
37885
|
function VariableDeclaration2(declarations, kind) {
|
|
37886
37886
|
this.type = syntax_1.Syntax.VariableDeclaration;
|
|
37887
37887
|
this.declarations = declarations;
|
|
37888
37888
|
this.kind = kind;
|
|
37889
37889
|
}
|
|
37890
37890
|
return VariableDeclaration2;
|
|
37891
|
-
}();
|
|
37891
|
+
})();
|
|
37892
37892
|
exports3.VariableDeclaration = VariableDeclaration;
|
|
37893
|
-
var VariableDeclarator = /* @__PURE__ */ function() {
|
|
37893
|
+
var VariableDeclarator = /* @__PURE__ */ (function() {
|
|
37894
37894
|
function VariableDeclarator2(id, init) {
|
|
37895
37895
|
this.type = syntax_1.Syntax.VariableDeclarator;
|
|
37896
37896
|
this.id = id;
|
|
37897
37897
|
this.init = init;
|
|
37898
37898
|
}
|
|
37899
37899
|
return VariableDeclarator2;
|
|
37900
|
-
}();
|
|
37900
|
+
})();
|
|
37901
37901
|
exports3.VariableDeclarator = VariableDeclarator;
|
|
37902
|
-
var WhileStatement = /* @__PURE__ */ function() {
|
|
37902
|
+
var WhileStatement = /* @__PURE__ */ (function() {
|
|
37903
37903
|
function WhileStatement2(test, body) {
|
|
37904
37904
|
this.type = syntax_1.Syntax.WhileStatement;
|
|
37905
37905
|
this.test = test;
|
|
37906
37906
|
this.body = body;
|
|
37907
37907
|
}
|
|
37908
37908
|
return WhileStatement2;
|
|
37909
|
-
}();
|
|
37909
|
+
})();
|
|
37910
37910
|
exports3.WhileStatement = WhileStatement;
|
|
37911
|
-
var WithStatement = /* @__PURE__ */ function() {
|
|
37911
|
+
var WithStatement = /* @__PURE__ */ (function() {
|
|
37912
37912
|
function WithStatement2(object, body) {
|
|
37913
37913
|
this.type = syntax_1.Syntax.WithStatement;
|
|
37914
37914
|
this.object = object;
|
|
37915
37915
|
this.body = body;
|
|
37916
37916
|
}
|
|
37917
37917
|
return WithStatement2;
|
|
37918
|
-
}();
|
|
37918
|
+
})();
|
|
37919
37919
|
exports3.WithStatement = WithStatement;
|
|
37920
|
-
var YieldExpression = /* @__PURE__ */ function() {
|
|
37920
|
+
var YieldExpression = /* @__PURE__ */ (function() {
|
|
37921
37921
|
function YieldExpression2(argument, delegate) {
|
|
37922
37922
|
this.type = syntax_1.Syntax.YieldExpression;
|
|
37923
37923
|
this.argument = argument;
|
|
37924
37924
|
this.delegate = delegate;
|
|
37925
37925
|
}
|
|
37926
37926
|
return YieldExpression2;
|
|
37927
|
-
}();
|
|
37927
|
+
})();
|
|
37928
37928
|
exports3.YieldExpression = YieldExpression;
|
|
37929
37929
|
},
|
|
37930
37930
|
/* 8 */
|
|
@@ -37940,7 +37940,7 @@ var require_esprima = __commonJS({
|
|
|
37940
37940
|
var syntax_1 = __webpack_require__(2);
|
|
37941
37941
|
var token_1 = __webpack_require__(13);
|
|
37942
37942
|
var ArrowParameterPlaceHolder = "ArrowParameterPlaceHolder";
|
|
37943
|
-
var Parser2 = function() {
|
|
37943
|
+
var Parser2 = (function() {
|
|
37944
37944
|
function Parser3(code, options, delegate) {
|
|
37945
37945
|
if (options === void 0) {
|
|
37946
37946
|
options = {};
|
|
@@ -40779,7 +40779,7 @@ var require_esprima = __commonJS({
|
|
|
40779
40779
|
return exportDeclaration;
|
|
40780
40780
|
};
|
|
40781
40781
|
return Parser3;
|
|
40782
|
-
}();
|
|
40782
|
+
})();
|
|
40783
40783
|
exports3.Parser = Parser2;
|
|
40784
40784
|
},
|
|
40785
40785
|
/* 9 */
|
|
@@ -40799,7 +40799,7 @@ var require_esprima = __commonJS({
|
|
|
40799
40799
|
function(module3, exports3) {
|
|
40800
40800
|
"use strict";
|
|
40801
40801
|
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
40802
|
-
var ErrorHandler = function() {
|
|
40802
|
+
var ErrorHandler = (function() {
|
|
40803
40803
|
function ErrorHandler2() {
|
|
40804
40804
|
this.errors = [];
|
|
40805
40805
|
this.tolerant = false;
|
|
@@ -40846,7 +40846,7 @@ var require_esprima = __commonJS({
|
|
|
40846
40846
|
}
|
|
40847
40847
|
};
|
|
40848
40848
|
return ErrorHandler2;
|
|
40849
|
-
}();
|
|
40849
|
+
})();
|
|
40850
40850
|
exports3.ErrorHandler = ErrorHandler;
|
|
40851
40851
|
},
|
|
40852
40852
|
/* 11 */
|
|
@@ -40929,7 +40929,7 @@ var require_esprima = __commonJS({
|
|
|
40929
40929
|
function octalValue(ch) {
|
|
40930
40930
|
return "01234567".indexOf(ch);
|
|
40931
40931
|
}
|
|
40932
|
-
var Scanner = function() {
|
|
40932
|
+
var Scanner = (function() {
|
|
40933
40933
|
function Scanner2(code, handler) {
|
|
40934
40934
|
this.source = code;
|
|
40935
40935
|
this.errorHandler = handler;
|
|
@@ -41943,7 +41943,7 @@ var require_esprima = __commonJS({
|
|
|
41943
41943
|
return this.scanPunctuator();
|
|
41944
41944
|
};
|
|
41945
41945
|
return Scanner2;
|
|
41946
|
-
}();
|
|
41946
|
+
})();
|
|
41947
41947
|
exports3.Scanner = Scanner;
|
|
41948
41948
|
},
|
|
41949
41949
|
/* 13 */
|
|
@@ -42261,7 +42261,7 @@ var require_esprima = __commonJS({
|
|
|
42261
42261
|
var error_handler_1 = __webpack_require__(10);
|
|
42262
42262
|
var scanner_1 = __webpack_require__(12);
|
|
42263
42263
|
var token_1 = __webpack_require__(13);
|
|
42264
|
-
var Reader = function() {
|
|
42264
|
+
var Reader = (function() {
|
|
42265
42265
|
function Reader2() {
|
|
42266
42266
|
this.values = [];
|
|
42267
42267
|
this.curly = this.paren = -1;
|
|
@@ -42366,8 +42366,8 @@ var require_esprima = __commonJS({
|
|
|
42366
42366
|
}
|
|
42367
42367
|
};
|
|
42368
42368
|
return Reader2;
|
|
42369
|
-
}();
|
|
42370
|
-
var Tokenizer = function() {
|
|
42369
|
+
})();
|
|
42370
|
+
var Tokenizer = (function() {
|
|
42371
42371
|
function Tokenizer2(code, config46) {
|
|
42372
42372
|
this.errorHandler = new error_handler_1.ErrorHandler();
|
|
42373
42373
|
this.errorHandler.tolerant = config46 ? typeof config46.tolerant === "boolean" && config46.tolerant : false;
|
|
@@ -42440,7 +42440,7 @@ var require_esprima = __commonJS({
|
|
|
42440
42440
|
return this.buffer.shift();
|
|
42441
42441
|
};
|
|
42442
42442
|
return Tokenizer2;
|
|
42443
|
-
}();
|
|
42443
|
+
})();
|
|
42444
42444
|
exports3.Tokenizer = Tokenizer;
|
|
42445
42445
|
}
|
|
42446
42446
|
/******/
|
|
@@ -44896,7 +44896,7 @@ var init_tslib_es6 = __esm({
|
|
|
44896
44896
|
};
|
|
44897
44897
|
return __assign.apply(this, arguments);
|
|
44898
44898
|
};
|
|
44899
|
-
__createBinding = Object.create ? function(o, m2, k2, k22) {
|
|
44899
|
+
__createBinding = Object.create ? (function(o, m2, k2, k22) {
|
|
44900
44900
|
if (k22 === void 0) k22 = k2;
|
|
44901
44901
|
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
44902
44902
|
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -44905,13 +44905,13 @@ var init_tslib_es6 = __esm({
|
|
|
44905
44905
|
} };
|
|
44906
44906
|
}
|
|
44907
44907
|
Object.defineProperty(o, k22, desc);
|
|
44908
|
-
} : function(o, m2, k2, k22) {
|
|
44908
|
+
}) : (function(o, m2, k2, k22) {
|
|
44909
44909
|
if (k22 === void 0) k22 = k2;
|
|
44910
44910
|
o[k22] = m2[k2];
|
|
44911
|
-
};
|
|
44912
|
-
__setModuleDefault = Object.create ? function(o, v2) {
|
|
44911
|
+
});
|
|
44912
|
+
__setModuleDefault = Object.create ? (function(o, v2) {
|
|
44913
44913
|
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
44914
|
-
} : function(o, v2) {
|
|
44914
|
+
}) : function(o, v2) {
|
|
44915
44915
|
o["default"] = v2;
|
|
44916
44916
|
};
|
|
44917
44917
|
ownKeys = function(o) {
|
|
@@ -44975,7 +44975,7 @@ var require_types = __commonJS({
|
|
|
44975
44975
|
var hasOwn = Op.hasOwnProperty;
|
|
44976
44976
|
var BaseType = (
|
|
44977
44977
|
/** @class */
|
|
44978
|
-
function() {
|
|
44978
|
+
(function() {
|
|
44979
44979
|
function BaseType2() {
|
|
44980
44980
|
}
|
|
44981
44981
|
BaseType2.prototype.assert = function(value, deep) {
|
|
@@ -44990,11 +44990,11 @@ var require_types = __commonJS({
|
|
|
44990
44990
|
return new ArrayType(elemType);
|
|
44991
44991
|
};
|
|
44992
44992
|
return BaseType2;
|
|
44993
|
-
}()
|
|
44993
|
+
})()
|
|
44994
44994
|
);
|
|
44995
44995
|
var ArrayType = (
|
|
44996
44996
|
/** @class */
|
|
44997
|
-
function(_super) {
|
|
44997
|
+
(function(_super) {
|
|
44998
44998
|
(0, tslib_1.__extends)(ArrayType2, _super);
|
|
44999
44999
|
function ArrayType2(elemType) {
|
|
45000
45000
|
var _this = _super.call(this) || this;
|
|
@@ -45012,11 +45012,11 @@ var require_types = __commonJS({
|
|
|
45012
45012
|
});
|
|
45013
45013
|
};
|
|
45014
45014
|
return ArrayType2;
|
|
45015
|
-
}(BaseType)
|
|
45015
|
+
})(BaseType)
|
|
45016
45016
|
);
|
|
45017
45017
|
var IdentityType = (
|
|
45018
45018
|
/** @class */
|
|
45019
|
-
function(_super) {
|
|
45019
|
+
(function(_super) {
|
|
45020
45020
|
(0, tslib_1.__extends)(IdentityType2, _super);
|
|
45021
45021
|
function IdentityType2(value) {
|
|
45022
45022
|
var _this = _super.call(this) || this;
|
|
@@ -45035,11 +45035,11 @@ var require_types = __commonJS({
|
|
|
45035
45035
|
return result;
|
|
45036
45036
|
};
|
|
45037
45037
|
return IdentityType2;
|
|
45038
|
-
}(BaseType)
|
|
45038
|
+
})(BaseType)
|
|
45039
45039
|
);
|
|
45040
45040
|
var ObjectType = (
|
|
45041
45041
|
/** @class */
|
|
45042
|
-
function(_super) {
|
|
45042
|
+
(function(_super) {
|
|
45043
45043
|
(0, tslib_1.__extends)(ObjectType2, _super);
|
|
45044
45044
|
function ObjectType2(fields) {
|
|
45045
45045
|
var _this = _super.call(this) || this;
|
|
@@ -45056,11 +45056,11 @@ var require_types = __commonJS({
|
|
|
45056
45056
|
});
|
|
45057
45057
|
};
|
|
45058
45058
|
return ObjectType2;
|
|
45059
|
-
}(BaseType)
|
|
45059
|
+
})(BaseType)
|
|
45060
45060
|
);
|
|
45061
45061
|
var OrType = (
|
|
45062
45062
|
/** @class */
|
|
45063
|
-
function(_super) {
|
|
45063
|
+
(function(_super) {
|
|
45064
45064
|
(0, tslib_1.__extends)(OrType2, _super);
|
|
45065
45065
|
function OrType2(types12) {
|
|
45066
45066
|
var _this = _super.call(this) || this;
|
|
@@ -45077,11 +45077,11 @@ var require_types = __commonJS({
|
|
|
45077
45077
|
});
|
|
45078
45078
|
};
|
|
45079
45079
|
return OrType2;
|
|
45080
|
-
}(BaseType)
|
|
45080
|
+
})(BaseType)
|
|
45081
45081
|
);
|
|
45082
45082
|
var PredicateType = (
|
|
45083
45083
|
/** @class */
|
|
45084
|
-
function(_super) {
|
|
45084
|
+
(function(_super) {
|
|
45085
45085
|
(0, tslib_1.__extends)(PredicateType2, _super);
|
|
45086
45086
|
function PredicateType2(name3, predicate) {
|
|
45087
45087
|
var _this = _super.call(this) || this;
|
|
@@ -45101,11 +45101,11 @@ var require_types = __commonJS({
|
|
|
45101
45101
|
return result;
|
|
45102
45102
|
};
|
|
45103
45103
|
return PredicateType2;
|
|
45104
|
-
}(BaseType)
|
|
45104
|
+
})(BaseType)
|
|
45105
45105
|
);
|
|
45106
45106
|
var Def = (
|
|
45107
45107
|
/** @class */
|
|
45108
|
-
function() {
|
|
45108
|
+
(function() {
|
|
45109
45109
|
function Def2(type, typeName) {
|
|
45110
45110
|
this.type = type;
|
|
45111
45111
|
this.typeName = typeName;
|
|
@@ -45167,12 +45167,12 @@ var require_types = __commonJS({
|
|
|
45167
45167
|
return this;
|
|
45168
45168
|
};
|
|
45169
45169
|
return Def2;
|
|
45170
|
-
}()
|
|
45170
|
+
})()
|
|
45171
45171
|
);
|
|
45172
45172
|
exports2.Def = Def;
|
|
45173
45173
|
var Field = (
|
|
45174
45174
|
/** @class */
|
|
45175
|
-
function() {
|
|
45175
|
+
(function() {
|
|
45176
45176
|
function Field2(name3, type, defaultFn, hidden2) {
|
|
45177
45177
|
this.name = name3;
|
|
45178
45178
|
this.type = type;
|
|
@@ -45193,7 +45193,7 @@ var require_types = __commonJS({
|
|
|
45193
45193
|
return value;
|
|
45194
45194
|
};
|
|
45195
45195
|
return Field2;
|
|
45196
|
-
}()
|
|
45196
|
+
})()
|
|
45197
45197
|
);
|
|
45198
45198
|
function shallowStringify(value) {
|
|
45199
45199
|
if (Array.isArray(value)) {
|
|
@@ -45314,7 +45314,7 @@ var require_types = __commonJS({
|
|
|
45314
45314
|
}
|
|
45315
45315
|
var DefImpl = (
|
|
45316
45316
|
/** @class */
|
|
45317
|
-
function(_super) {
|
|
45317
|
+
(function(_super) {
|
|
45318
45318
|
(0, tslib_1.__extends)(DefImpl2, _super);
|
|
45319
45319
|
function DefImpl2(typeName) {
|
|
45320
45320
|
var _this = _super.call(this, new PredicateType(typeName, function(value, deep) {
|
|
@@ -45478,7 +45478,7 @@ var require_types = __commonJS({
|
|
|
45478
45478
|
}
|
|
45479
45479
|
};
|
|
45480
45480
|
return DefImpl2;
|
|
45481
|
-
}(Def)
|
|
45481
|
+
})(Def)
|
|
45482
45482
|
);
|
|
45483
45483
|
function getSupertypeNames(typeName) {
|
|
45484
45484
|
if (!hasOwn.call(defCache, typeName)) {
|
|
@@ -48550,10 +48550,10 @@ var require_util8 = __commonJS({
|
|
|
48550
48550
|
return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
|
|
48551
48551
|
}
|
|
48552
48552
|
exports2.relative = relative3;
|
|
48553
|
-
var supportsNullProto = function() {
|
|
48553
|
+
var supportsNullProto = (function() {
|
|
48554
48554
|
var obj = /* @__PURE__ */ Object.create(null);
|
|
48555
48555
|
return !("__proto__" in obj);
|
|
48556
|
-
}();
|
|
48556
|
+
})();
|
|
48557
48557
|
function identity(s) {
|
|
48558
48558
|
return s;
|
|
48559
48559
|
}
|
|
@@ -50437,7 +50437,7 @@ var require_mapping = __commonJS({
|
|
|
50437
50437
|
var util_1 = require_util9();
|
|
50438
50438
|
var Mapping = (
|
|
50439
50439
|
/** @class */
|
|
50440
|
-
function() {
|
|
50440
|
+
(function() {
|
|
50441
50441
|
function Mapping2(sourceLines, sourceLoc, targetLoc) {
|
|
50442
50442
|
if (targetLoc === void 0) {
|
|
50443
50443
|
targetLoc = sourceLoc;
|
|
@@ -50559,7 +50559,7 @@ var require_mapping = __commonJS({
|
|
|
50559
50559
|
return new Mapping2(this.sourceLines, this.sourceLoc, targetLoc);
|
|
50560
50560
|
};
|
|
50561
50561
|
return Mapping2;
|
|
50562
|
-
}()
|
|
50562
|
+
})()
|
|
50563
50563
|
);
|
|
50564
50564
|
exports2.default = Mapping;
|
|
50565
50565
|
function addPos(toPos, line, column) {
|
|
@@ -50632,7 +50632,7 @@ var require_lines = __commonJS({
|
|
|
50632
50632
|
var mapping_1 = tslib_1.__importDefault(require_mapping());
|
|
50633
50633
|
var Lines = (
|
|
50634
50634
|
/** @class */
|
|
50635
|
-
function() {
|
|
50635
|
+
(function() {
|
|
50636
50636
|
function Lines2(infos, sourceFileName) {
|
|
50637
50637
|
if (sourceFileName === void 0) {
|
|
50638
50638
|
sourceFileName = null;
|
|
@@ -51120,7 +51120,7 @@ var require_lines = __commonJS({
|
|
|
51120
51120
|
return emptyLines.join(list);
|
|
51121
51121
|
};
|
|
51122
51122
|
return Lines2;
|
|
51123
|
-
}()
|
|
51123
|
+
})()
|
|
51124
51124
|
);
|
|
51125
51125
|
exports2.Lines = Lines;
|
|
51126
51126
|
var fromStringCache = {};
|
|
@@ -68725,7 +68725,7 @@ var require_babel2 = __commonJS({
|
|
|
68725
68725
|
exports2.parse = exports2.parser = void 0;
|
|
68726
68726
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
68727
68727
|
var _babel_options_1 = tslib_1.__importDefault(require_babel_options());
|
|
68728
|
-
exports2.parser = function() {
|
|
68728
|
+
exports2.parser = (function() {
|
|
68729
68729
|
try {
|
|
68730
68730
|
return require_lib();
|
|
68731
68731
|
} catch (_a2) {
|
|
@@ -68735,7 +68735,7 @@ var require_babel2 = __commonJS({
|
|
|
68735
68735
|
throw new Error("Install @babel/parser to use the `typescript`, `flow`, or `babel` parsers");
|
|
68736
68736
|
}
|
|
68737
68737
|
}
|
|
68738
|
-
}();
|
|
68738
|
+
})();
|
|
68739
68739
|
function parse7(source, options) {
|
|
68740
68740
|
var babelOptions = _babel_options_1.default(options);
|
|
68741
68741
|
babelOptions.plugins.push("jsx", "flow");
|
|
@@ -70089,12 +70089,12 @@ __export(cli_exports, {
|
|
|
70089
70089
|
setupProjectDirectory: () => setupProjectDirectory
|
|
70090
70090
|
});
|
|
70091
70091
|
module.exports = __toCommonJS(cli_exports);
|
|
70092
|
-
var
|
|
70093
|
-
var
|
|
70094
|
-
var
|
|
70092
|
+
var import_node_fs14 = require("node:fs");
|
|
70093
|
+
var import_node_path18 = require("node:path");
|
|
70094
|
+
var import_node_process7 = require("node:process");
|
|
70095
70095
|
|
|
70096
70096
|
// ../cli/index.ts
|
|
70097
|
-
var
|
|
70097
|
+
var import_node_process2 = require("node:process");
|
|
70098
70098
|
|
|
70099
70099
|
// ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
70100
70100
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
@@ -70821,7 +70821,7 @@ var hyperlink = (url, label = url) => {
|
|
|
70821
70821
|
};
|
|
70822
70822
|
var crash = (msg, extra) => {
|
|
70823
70823
|
error(msg, extra);
|
|
70824
|
-
(0,
|
|
70824
|
+
(0, import_node_process2.exit)(1);
|
|
70825
70825
|
};
|
|
70826
70826
|
var error = (msg, extra, corner = shapes.corners.bl) => {
|
|
70827
70827
|
const currentLevel = getLogLevel();
|
|
@@ -70843,7 +70843,7 @@ var CancelError = class extends Error {
|
|
|
70843
70843
|
|
|
70844
70844
|
// ../../node_modules/.pnpm/@clack+core@0.3.2/node_modules/@clack/core/dist/index.mjs
|
|
70845
70845
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
70846
|
-
var
|
|
70846
|
+
var import_node_process3 = require("node:process");
|
|
70847
70847
|
var import_node_readline = __toESM(require("node:readline"), 1);
|
|
70848
70848
|
var import_node_tty2 = require("node:tty");
|
|
70849
70849
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -71049,7 +71049,7 @@ function g(t2, u) {
|
|
|
71049
71049
|
var V = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]);
|
|
71050
71050
|
var tD = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
|
|
71051
71051
|
var h = class {
|
|
71052
|
-
constructor({ render: u, input: F =
|
|
71052
|
+
constructor({ render: u, input: F = import_node_process3.stdin, output: e = import_node_process3.stdout, ...s }, C = true) {
|
|
71053
71053
|
this._track = false, this._cursor = 0, this.state = "initial", this.error = "", this.subscribers = /* @__PURE__ */ new Map(), this._prevFrame = "", this.opts = s, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u.bind(this), this._track = C, this.input = F, this.output = e;
|
|
71054
71054
|
}
|
|
71055
71055
|
prompt() {
|
|
@@ -71217,7 +71217,7 @@ var oD = class extends h {
|
|
|
71217
71217
|
};
|
|
71218
71218
|
|
|
71219
71219
|
// ../../node_modules/.pnpm/log-update@5.0.1/node_modules/log-update/index.js
|
|
71220
|
-
var
|
|
71220
|
+
var import_node_process6 = __toESM(require("node:process"), 1);
|
|
71221
71221
|
|
|
71222
71222
|
// ../../node_modules/.pnpm/ansi-escapes@5.0.0/node_modules/ansi-escapes/index.js
|
|
71223
71223
|
var ESC = "\x1B[";
|
|
@@ -71342,15 +71342,15 @@ ansiEscapes.iTerm = {
|
|
|
71342
71342
|
var ansi_escapes_default = ansiEscapes;
|
|
71343
71343
|
|
|
71344
71344
|
// ../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
|
|
71345
|
-
var
|
|
71345
|
+
var import_node_process5 = __toESM(require("node:process"), 1);
|
|
71346
71346
|
|
|
71347
71347
|
// ../../node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
|
|
71348
|
-
var
|
|
71348
|
+
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
71349
71349
|
var import_onetime = __toESM(require_onetime(), 1);
|
|
71350
71350
|
var import_signal_exit = __toESM(require_signal_exit(), 1);
|
|
71351
71351
|
var restoreCursor = (0, import_onetime.default)(() => {
|
|
71352
71352
|
(0, import_signal_exit.default)(() => {
|
|
71353
|
-
|
|
71353
|
+
import_node_process4.default.stderr.write("\x1B[?25h");
|
|
71354
71354
|
}, { alwaysLast: true });
|
|
71355
71355
|
});
|
|
71356
71356
|
var restore_cursor_default = restoreCursor;
|
|
@@ -71358,14 +71358,14 @@ var restore_cursor_default = restoreCursor;
|
|
|
71358
71358
|
// ../../node_modules/.pnpm/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
|
|
71359
71359
|
var isHidden = false;
|
|
71360
71360
|
var cliCursor = {};
|
|
71361
|
-
cliCursor.show = (writableStream =
|
|
71361
|
+
cliCursor.show = (writableStream = import_node_process5.default.stderr) => {
|
|
71362
71362
|
if (!writableStream.isTTY) {
|
|
71363
71363
|
return;
|
|
71364
71364
|
}
|
|
71365
71365
|
isHidden = false;
|
|
71366
71366
|
writableStream.write("\x1B[?25h");
|
|
71367
71367
|
};
|
|
71368
|
-
cliCursor.hide = (writableStream =
|
|
71368
|
+
cliCursor.hide = (writableStream = import_node_process5.default.stderr) => {
|
|
71369
71369
|
if (!writableStream.isTTY) {
|
|
71370
71370
|
return;
|
|
71371
71371
|
}
|
|
@@ -71949,8 +71949,8 @@ function createLogUpdate(stream, { showCursor = false } = {}) {
|
|
|
71949
71949
|
};
|
|
71950
71950
|
return render;
|
|
71951
71951
|
}
|
|
71952
|
-
var logUpdate = createLogUpdate(
|
|
71953
|
-
var logUpdateStderr = createLogUpdate(
|
|
71952
|
+
var logUpdate = createLogUpdate(import_node_process6.default.stdout);
|
|
71953
|
+
var logUpdateStderr = createLogUpdate(import_node_process6.default.stderr);
|
|
71954
71954
|
|
|
71955
71955
|
// ../cli/select-list.ts
|
|
71956
71956
|
var SelectRefreshablePrompt = class extends h {
|
|
@@ -77302,7 +77302,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
77302
77302
|
var yargs_default = Yargs;
|
|
77303
77303
|
|
|
77304
77304
|
// package.json
|
|
77305
|
-
var version = "2.
|
|
77305
|
+
var version = "2.57.1";
|
|
77306
77306
|
|
|
77307
77307
|
// src/metrics.ts
|
|
77308
77308
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -77380,8 +77380,8 @@ function getDeviceId(config46) {
|
|
|
77380
77380
|
}
|
|
77381
77381
|
|
|
77382
77382
|
// src/helpers/packageManagers.ts
|
|
77383
|
-
var
|
|
77384
|
-
var
|
|
77383
|
+
var import_node_fs3 = require("node:fs");
|
|
77384
|
+
var import_node_path3 = __toESM(require("node:path"));
|
|
77385
77385
|
var import_semver = __toESM(require_semver2());
|
|
77386
77386
|
var import_which_pm_runs = __toESM(require_which_pm_runs());
|
|
77387
77387
|
|
|
@@ -77592,13 +77592,13 @@ var rectifyPmMismatch = async (ctx) => {
|
|
|
77592
77592
|
if (!detectPmMismatch(ctx)) {
|
|
77593
77593
|
return;
|
|
77594
77594
|
}
|
|
77595
|
-
const nodeModulesPath =
|
|
77596
|
-
if ((0,
|
|
77597
|
-
(0,
|
|
77595
|
+
const nodeModulesPath = import_node_path3.default.join(ctx.project.path, "node_modules");
|
|
77596
|
+
if ((0, import_node_fs3.existsSync)(nodeModulesPath)) {
|
|
77597
|
+
(0, import_node_fs3.rmSync)(nodeModulesPath, { recursive: true });
|
|
77598
77598
|
}
|
|
77599
|
-
const lockfilePath =
|
|
77600
|
-
if ((0,
|
|
77601
|
-
(0,
|
|
77599
|
+
const lockfilePath = import_node_path3.default.join(ctx.project.path, "package-lock.json");
|
|
77600
|
+
if ((0, import_node_fs3.existsSync)(lockfilePath)) {
|
|
77601
|
+
(0, import_node_fs3.rmSync)(lockfilePath);
|
|
77602
77602
|
}
|
|
77603
77603
|
await runCommand([npm24, "install"], {
|
|
77604
77604
|
silent: true,
|
|
@@ -77614,11 +77614,11 @@ var detectPmMismatch = (ctx) => {
|
|
|
77614
77614
|
case "npm":
|
|
77615
77615
|
return false;
|
|
77616
77616
|
case "yarn":
|
|
77617
|
-
return !(0,
|
|
77617
|
+
return !(0, import_node_fs3.existsSync)(import_node_path3.default.join(projectPath, "yarn.lock"));
|
|
77618
77618
|
case "pnpm":
|
|
77619
|
-
return !(0,
|
|
77619
|
+
return !(0, import_node_fs3.existsSync)(import_node_path3.default.join(projectPath, "pnpm-lock.yaml"));
|
|
77620
77620
|
case "bun":
|
|
77621
|
-
return !(0,
|
|
77621
|
+
return !(0, import_node_fs3.existsSync)(import_node_path3.default.join(projectPath, "bun.lockb")) && !(0, import_node_fs3.existsSync)(import_node_path3.default.join(projectPath, "bun.lock"));
|
|
77622
77622
|
}
|
|
77623
77623
|
};
|
|
77624
77624
|
|
|
@@ -77864,10 +77864,10 @@ var runTelemetryCommand = (action) => {
|
|
|
77864
77864
|
};
|
|
77865
77865
|
|
|
77866
77866
|
// src/templates.ts
|
|
77867
|
-
var
|
|
77868
|
-
var import_promises4 = require("fs/promises");
|
|
77869
|
-
var
|
|
77870
|
-
var
|
|
77867
|
+
var import_node_fs11 = require("node:fs");
|
|
77868
|
+
var import_promises4 = require("node:fs/promises");
|
|
77869
|
+
var import_node_os5 = require("node:os");
|
|
77870
|
+
var import_node_path13 = require("node:path");
|
|
77871
77871
|
var import_deepmerge = __toESM(require_cjs());
|
|
77872
77872
|
var import_degit = __toESM(require_dist());
|
|
77873
77873
|
|
|
@@ -77875,14 +77875,14 @@ var import_degit = __toESM(require_dist());
|
|
|
77875
77875
|
var import_haikunator = __toESM(require_dist_web());
|
|
77876
77876
|
|
|
77877
77877
|
// src/helpers/packages.ts
|
|
77878
|
-
var
|
|
77879
|
-
var
|
|
77880
|
-
var
|
|
77878
|
+
var import_node_assert2 = __toESM(require("node:assert"));
|
|
77879
|
+
var import_node_fs5 = require("node:fs");
|
|
77880
|
+
var import_node_path5 = __toESM(require("node:path"));
|
|
77881
77881
|
var import_undici2 = __toESM(require_undici());
|
|
77882
77882
|
|
|
77883
77883
|
// src/helpers/files.ts
|
|
77884
|
-
var
|
|
77885
|
-
var
|
|
77884
|
+
var import_node_fs4 = __toESM(require("node:fs"));
|
|
77885
|
+
var import_node_path4 = require("node:path");
|
|
77886
77886
|
var import_comment_json = __toESM(require_src3());
|
|
77887
77887
|
|
|
77888
77888
|
// ../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js
|
|
@@ -78733,35 +78733,35 @@ var dist_default = { parse, stringify, TomlDate, TomlError };
|
|
|
78733
78733
|
// src/helpers/files.ts
|
|
78734
78734
|
var writeFile2 = (path6, content) => {
|
|
78735
78735
|
try {
|
|
78736
|
-
|
|
78736
|
+
import_node_fs4.default.writeFileSync(path6, content);
|
|
78737
78737
|
} catch (error2) {
|
|
78738
78738
|
throw new Error(error2);
|
|
78739
78739
|
}
|
|
78740
78740
|
};
|
|
78741
78741
|
var appendFile = (path6, content) => {
|
|
78742
78742
|
try {
|
|
78743
|
-
|
|
78743
|
+
import_node_fs4.default.appendFileSync(path6, content);
|
|
78744
78744
|
} catch (error2) {
|
|
78745
78745
|
throw new Error(error2);
|
|
78746
78746
|
}
|
|
78747
78747
|
};
|
|
78748
78748
|
var readFile = (path6) => {
|
|
78749
78749
|
try {
|
|
78750
|
-
return
|
|
78750
|
+
return import_node_fs4.default.readFileSync(path6, "utf-8");
|
|
78751
78751
|
} catch (error2) {
|
|
78752
78752
|
throw new Error(error2);
|
|
78753
78753
|
}
|
|
78754
78754
|
};
|
|
78755
78755
|
var removeFile = (path6) => {
|
|
78756
78756
|
try {
|
|
78757
|
-
|
|
78757
|
+
import_node_fs4.default.rmSync(path6, { force: true });
|
|
78758
78758
|
} catch (error2) {
|
|
78759
78759
|
throw new Error(`Remove file failed: ${path6}`, { cause: error2 });
|
|
78760
78760
|
}
|
|
78761
78761
|
};
|
|
78762
78762
|
var directoryExists = (path6) => {
|
|
78763
78763
|
try {
|
|
78764
|
-
const stat = (0,
|
|
78764
|
+
const stat = (0, import_node_fs4.statSync)(path6);
|
|
78765
78765
|
return stat.isDirectory();
|
|
78766
78766
|
} catch (error2) {
|
|
78767
78767
|
if (error2.code === "ENOENT") {
|
|
@@ -78781,7 +78781,7 @@ var usesTypescript = (ctx) => {
|
|
|
78781
78781
|
return hasTsConfig(ctx.project.path);
|
|
78782
78782
|
};
|
|
78783
78783
|
var hasTsConfig = (path6) => {
|
|
78784
|
-
return (0,
|
|
78784
|
+
return (0, import_node_fs4.existsSync)((0, import_node_path4.join)(`${path6}`, `tsconfig.json`));
|
|
78785
78785
|
};
|
|
78786
78786
|
|
|
78787
78787
|
// src/helpers/packages.ts
|
|
@@ -78825,10 +78825,10 @@ var installPackages = async (packages, config46 = {}) => {
|
|
|
78825
78825
|
}
|
|
78826
78826
|
);
|
|
78827
78827
|
if (npm24 === "npm") {
|
|
78828
|
-
const pkgJsonPath =
|
|
78828
|
+
const pkgJsonPath = import_node_path5.default.join(process.cwd(), "package.json");
|
|
78829
78829
|
const pkgJson = readJSON(pkgJsonPath);
|
|
78830
78830
|
const deps = config46.dev ? pkgJson.devDependencies : pkgJson.dependencies;
|
|
78831
|
-
(0,
|
|
78831
|
+
(0, import_node_assert2.default)(deps, "dependencies should be defined");
|
|
78832
78832
|
for (const pkg of packages) {
|
|
78833
78833
|
const versionMarker = pkg.lastIndexOf("@");
|
|
78834
78834
|
if (versionMarker > 0) {
|
|
@@ -78843,8 +78843,8 @@ var installPackages = async (packages, config46 = {}) => {
|
|
|
78843
78843
|
}
|
|
78844
78844
|
};
|
|
78845
78845
|
var npmInstall = async (ctx) => {
|
|
78846
|
-
const nodeModulesPath =
|
|
78847
|
-
if ((0,
|
|
78846
|
+
const nodeModulesPath = import_node_path5.default.join(ctx.project.path, "node_modules");
|
|
78847
|
+
if ((0, import_node_fs5.existsSync)(nodeModulesPath)) {
|
|
78848
78848
|
return;
|
|
78849
78849
|
}
|
|
78850
78850
|
const { npm: npm24 } = detectPackageManager();
|
|
@@ -78933,7 +78933,7 @@ var package_default = {
|
|
|
78933
78933
|
dependencies: {
|
|
78934
78934
|
"create-astro": "4.13.2",
|
|
78935
78935
|
"create-analog": "1.8.1",
|
|
78936
|
-
"@angular/create": "21.0.
|
|
78936
|
+
"@angular/create": "21.0.1",
|
|
78937
78937
|
"create-docusaurus": "3.9.2",
|
|
78938
78938
|
"create-hono": "0.19.3",
|
|
78939
78939
|
"create-next-app": "15.5.6",
|
|
@@ -78942,11 +78942,11 @@ var package_default = {
|
|
|
78942
78942
|
"create-rwsdk": "3.1.0",
|
|
78943
78943
|
"create-react-router": "7.9.6",
|
|
78944
78944
|
"create-solid": "0.6.11",
|
|
78945
|
-
"create-vue": "3.18.
|
|
78945
|
+
"create-vue": "3.18.3",
|
|
78946
78946
|
"create-waku": "0.12.5-0.27.1-0",
|
|
78947
|
-
"@tanstack/create-start": "0.
|
|
78947
|
+
"@tanstack/create-start": "0.40.0",
|
|
78948
78948
|
gatsby: "5.15.0",
|
|
78949
|
-
sv: "0.
|
|
78949
|
+
sv: "0.10.5",
|
|
78950
78950
|
nuxi: "3.30.0"
|
|
78951
78951
|
}
|
|
78952
78952
|
};
|
|
@@ -78978,16 +78978,16 @@ var runFrameworkGenerator = async (ctx, args) => {
|
|
|
78978
78978
|
};
|
|
78979
78979
|
|
|
78980
78980
|
// src/helpers/codemod.ts
|
|
78981
|
-
var
|
|
78982
|
-
var
|
|
78981
|
+
var import_node_fs6 = require("node:fs");
|
|
78982
|
+
var import_node_path6 = __toESM(require("node:path"));
|
|
78983
78983
|
var recast = __toESM(require_main2());
|
|
78984
78984
|
var esprimaParser = __toESM(require_esprima3());
|
|
78985
78985
|
var typescriptParser = __toESM(require_typescript2());
|
|
78986
78986
|
var parseFile = (filePath) => {
|
|
78987
|
-
const lang =
|
|
78987
|
+
const lang = import_node_path6.default.extname(filePath).slice(1);
|
|
78988
78988
|
const parser2 = lang === "js" ? esprimaParser : typescriptParser;
|
|
78989
78989
|
try {
|
|
78990
|
-
const fileContents = readFile(
|
|
78990
|
+
const fileContents = readFile(import_node_path6.default.resolve(filePath));
|
|
78991
78991
|
if (fileContents) {
|
|
78992
78992
|
return recast.parse(fileContents, { parser: parser2 }).program;
|
|
78993
78993
|
}
|
|
@@ -79004,20 +79004,20 @@ var transformFile = (filePath, methods) => {
|
|
|
79004
79004
|
}
|
|
79005
79005
|
};
|
|
79006
79006
|
var loadSnippets = (parentFolder) => {
|
|
79007
|
-
const snippetsPath = (0,
|
|
79008
|
-
if (!(0,
|
|
79007
|
+
const snippetsPath = (0, import_node_path6.join)(parentFolder, "snippets");
|
|
79008
|
+
if (!(0, import_node_fs6.existsSync)(snippetsPath)) {
|
|
79009
79009
|
return {};
|
|
79010
79010
|
}
|
|
79011
|
-
if (!(0,
|
|
79011
|
+
if (!(0, import_node_fs6.lstatSync)(snippetsPath).isDirectory) {
|
|
79012
79012
|
return {};
|
|
79013
79013
|
}
|
|
79014
|
-
const files = (0,
|
|
79015
|
-
return files.filter((fileName) => (0,
|
|
79014
|
+
const files = (0, import_node_fs6.readdirSync)(snippetsPath);
|
|
79015
|
+
return files.filter((fileName) => (0, import_node_fs6.lstatSync)((0, import_node_path6.join)(snippetsPath, fileName)).isFile).filter((fileName) => [".js", ".ts"].includes((0, import_node_path6.extname)(fileName))).reduce((acc, snippetPath) => {
|
|
79016
79016
|
const [file, ext] = snippetPath.split(".");
|
|
79017
79017
|
const key = `${file}${ext === "js" ? "Js" : "Ts"}`;
|
|
79018
79018
|
return {
|
|
79019
79019
|
...acc,
|
|
79020
|
-
[key]: parseFile((0,
|
|
79020
|
+
[key]: parseFile((0, import_node_path6.join)(snippetsPath, snippetPath))?.body
|
|
79021
79021
|
};
|
|
79022
79022
|
}, {});
|
|
79023
79023
|
};
|
|
@@ -79141,7 +79141,7 @@ var config = {
|
|
|
79141
79141
|
var c3_default = config;
|
|
79142
79142
|
|
|
79143
79143
|
// templates/angular/pages/c3.ts
|
|
79144
|
-
var
|
|
79144
|
+
var import_node_path7 = require("node:path");
|
|
79145
79145
|
var { npm: npm2 } = detectPackageManager();
|
|
79146
79146
|
var generate2 = async (ctx) => {
|
|
79147
79147
|
await runFrameworkGenerator(ctx, [ctx.project.name, "--ssr"]);
|
|
@@ -79163,23 +79163,23 @@ async function updateAppCode() {
|
|
|
79163
79163
|
const s = spinner();
|
|
79164
79164
|
s.start(`Updating application code`);
|
|
79165
79165
|
const appConfigPath = "src/app/app.config.ts";
|
|
79166
|
-
const appConfig = readFile((0,
|
|
79166
|
+
const appConfig = readFile((0, import_node_path7.resolve)(appConfigPath));
|
|
79167
79167
|
const newAppConfig = "import { provideHttpClient, withFetch } from '@angular/common/http';\n" + appConfig.replace(
|
|
79168
79168
|
"providers: [",
|
|
79169
79169
|
"providers: [provideHttpClient(withFetch()), "
|
|
79170
79170
|
);
|
|
79171
|
-
writeFile2((0,
|
|
79171
|
+
writeFile2((0, import_node_path7.resolve)(appConfigPath), newAppConfig);
|
|
79172
79172
|
s.stop(`${brandColor(`updated`)} ${dim(appConfigPath)}`);
|
|
79173
79173
|
const appServerRoutesPath = "src/app/app.routes.server.ts";
|
|
79174
|
-
const appRoutes = readFile((0,
|
|
79174
|
+
const appRoutes = readFile((0, import_node_path7.resolve)(appServerRoutesPath));
|
|
79175
79175
|
const newAppRoutes = appRoutes.replace(
|
|
79176
79176
|
"RenderMode.Prerender",
|
|
79177
79177
|
"RenderMode.Server"
|
|
79178
79178
|
);
|
|
79179
|
-
writeFile2((0,
|
|
79179
|
+
writeFile2((0, import_node_path7.resolve)(appServerRoutesPath), newAppRoutes);
|
|
79180
79180
|
s.stop(`${brandColor(`updated`)} ${dim(appServerRoutesPath)}`);
|
|
79181
79181
|
s.start(`Updating package.json`);
|
|
79182
|
-
const packageJsonPath = (0,
|
|
79182
|
+
const packageJsonPath = (0, import_node_path7.resolve)("package.json");
|
|
79183
79183
|
const packageManifest = readJSON(packageJsonPath);
|
|
79184
79184
|
delete packageManifest["dependencies"]?.["express"];
|
|
79185
79185
|
delete packageManifest["devDependencies"]?.["@types/express"];
|
|
@@ -79195,7 +79195,7 @@ function updateAngularJson(ctx) {
|
|
|
79195
79195
|
architectSection.build.options.outputMode = "server";
|
|
79196
79196
|
architectSection.build.options.ssr.experimentalPlatform = "neutral";
|
|
79197
79197
|
architectSection.build.options.assets.push("src/_routes.json");
|
|
79198
|
-
writeFile2((0,
|
|
79198
|
+
writeFile2((0, import_node_path7.resolve)("angular.json"), JSON.stringify(angularJson, null, 2));
|
|
79199
79199
|
s.stop(`${brandColor(`updated`)} ${dim(`\`angular.json\``)}`);
|
|
79200
79200
|
}
|
|
79201
79201
|
var config2 = {
|
|
@@ -79227,7 +79227,7 @@ var config2 = {
|
|
|
79227
79227
|
var c3_default2 = config2;
|
|
79228
79228
|
|
|
79229
79229
|
// templates/angular/workers/c3.ts
|
|
79230
|
-
var
|
|
79230
|
+
var import_node_path8 = require("node:path");
|
|
79231
79231
|
var { npm: npm3 } = detectPackageManager();
|
|
79232
79232
|
var generate3 = async (ctx) => {
|
|
79233
79233
|
await runFrameworkGenerator(ctx, [ctx.project.name, "--ssr"]);
|
|
@@ -79249,23 +79249,23 @@ async function updateAppCode2() {
|
|
|
79249
79249
|
const s = spinner();
|
|
79250
79250
|
s.start(`Updating application code`);
|
|
79251
79251
|
const appConfigPath = "src/app/app.config.ts";
|
|
79252
|
-
const appConfig = readFile((0,
|
|
79252
|
+
const appConfig = readFile((0, import_node_path8.resolve)(appConfigPath));
|
|
79253
79253
|
const newAppConfig = "import { provideHttpClient, withFetch } from '@angular/common/http';\n" + appConfig.replace(
|
|
79254
79254
|
"providers: [",
|
|
79255
79255
|
"providers: [provideHttpClient(withFetch()), "
|
|
79256
79256
|
);
|
|
79257
|
-
writeFile2((0,
|
|
79257
|
+
writeFile2((0, import_node_path8.resolve)(appConfigPath), newAppConfig);
|
|
79258
79258
|
s.stop(`${brandColor(`updated`)} ${dim(appConfigPath)}`);
|
|
79259
79259
|
const appServerRoutesPath = "src/app/app.routes.server.ts";
|
|
79260
|
-
const appRoutes = readFile((0,
|
|
79260
|
+
const appRoutes = readFile((0, import_node_path8.resolve)(appServerRoutesPath));
|
|
79261
79261
|
const newAppRoutes = appRoutes.replace(
|
|
79262
79262
|
"RenderMode.Prerender",
|
|
79263
79263
|
"RenderMode.Server"
|
|
79264
79264
|
);
|
|
79265
|
-
writeFile2((0,
|
|
79265
|
+
writeFile2((0, import_node_path8.resolve)(appServerRoutesPath), newAppRoutes);
|
|
79266
79266
|
s.stop(`${brandColor(`updated`)} ${dim(appServerRoutesPath)}`);
|
|
79267
79267
|
s.start(`Updating package.json`);
|
|
79268
|
-
const packageJsonPath = (0,
|
|
79268
|
+
const packageJsonPath = (0, import_node_path8.resolve)("package.json");
|
|
79269
79269
|
const packageManifest = readJSON(packageJsonPath);
|
|
79270
79270
|
delete packageManifest["dependencies"]?.["express"];
|
|
79271
79271
|
delete packageManifest["devDependencies"]?.["@types/express"];
|
|
@@ -79275,12 +79275,12 @@ async function updateAppCode2() {
|
|
|
79275
79275
|
function updateAngularJson2(ctx) {
|
|
79276
79276
|
const s = spinner();
|
|
79277
79277
|
s.start(`Updating angular.json config`);
|
|
79278
|
-
const angularJson = readJSON((0,
|
|
79278
|
+
const angularJson = readJSON((0, import_node_path8.resolve)("angular.json"));
|
|
79279
79279
|
const architectSection = angularJson.projects[ctx.project.name].architect;
|
|
79280
79280
|
architectSection.build.options.outputPath = "dist";
|
|
79281
79281
|
architectSection.build.options.outputMode = "server";
|
|
79282
79282
|
architectSection.build.options.ssr.experimentalPlatform = "neutral";
|
|
79283
|
-
writeFile2((0,
|
|
79283
|
+
writeFile2((0, import_node_path8.resolve)("angular.json"), JSON.stringify(angularJson, null, 2));
|
|
79284
79284
|
s.stop(`${brandColor(`updated`)} ${dim(`\`angular.json\``)}`);
|
|
79285
79285
|
}
|
|
79286
79286
|
var config3 = {
|
|
@@ -79295,12 +79295,12 @@ var config3 = {
|
|
|
79295
79295
|
path: "templates/angular/workers",
|
|
79296
79296
|
devScript: "start",
|
|
79297
79297
|
deployScript: "deploy",
|
|
79298
|
-
previewScript: "
|
|
79298
|
+
previewScript: "preview",
|
|
79299
79299
|
generate: generate3,
|
|
79300
79300
|
configure: configure3,
|
|
79301
79301
|
transformPackageJson: async () => ({
|
|
79302
79302
|
scripts: {
|
|
79303
|
-
|
|
79303
|
+
preview: `${npm3} run build && wrangler dev`,
|
|
79304
79304
|
build: `ng build`,
|
|
79305
79305
|
deploy: `${npm3} run build && wrangler deploy`,
|
|
79306
79306
|
"cf-typegen": `wrangler types`
|
|
@@ -79777,7 +79777,7 @@ var c3_default19 = {
|
|
|
79777
79777
|
|
|
79778
79778
|
// templates/hello-world/c3.ts
|
|
79779
79779
|
var import_promises2 = require("node:fs/promises");
|
|
79780
|
-
var
|
|
79780
|
+
var import_node_path9 = require("node:path");
|
|
79781
79781
|
var c3_default20 = {
|
|
79782
79782
|
configVersion: 1,
|
|
79783
79783
|
id: "hello-world",
|
|
@@ -79787,11 +79787,11 @@ var c3_default20 = {
|
|
|
79787
79787
|
async configure(ctx) {
|
|
79788
79788
|
if (ctx.args.lang === "python") {
|
|
79789
79789
|
const contents = await (0, import_promises2.readFile)(
|
|
79790
|
-
(0,
|
|
79790
|
+
(0, import_node_path9.resolve)(ctx.project.path, "pyproject.toml"),
|
|
79791
79791
|
"utf8"
|
|
79792
79792
|
);
|
|
79793
79793
|
const updated = contents.replaceAll(/<TBD>/g, ctx.project.name);
|
|
79794
|
-
await (0, import_promises2.writeFile)((0,
|
|
79794
|
+
await (0, import_promises2.writeFile)((0, import_node_path9.resolve)(ctx.project.path, "pyproject.toml"), updated);
|
|
79795
79795
|
}
|
|
79796
79796
|
},
|
|
79797
79797
|
copyFiles: {
|
|
@@ -80143,10 +80143,10 @@ var config25 = {
|
|
|
80143
80143
|
var c3_default28 = config25;
|
|
80144
80144
|
|
|
80145
80145
|
// templates/pre-existing/c3.ts
|
|
80146
|
-
var
|
|
80147
|
-
var import_promises3 = require("fs/promises");
|
|
80148
|
-
var
|
|
80149
|
-
var
|
|
80146
|
+
var import_node_fs7 = require("node:fs");
|
|
80147
|
+
var import_promises3 = require("node:fs/promises");
|
|
80148
|
+
var import_node_os4 = require("node:os");
|
|
80149
|
+
var import_node_path10 = require("node:path");
|
|
80150
80150
|
|
|
80151
80151
|
// src/wrangler/accounts.ts
|
|
80152
80152
|
var chooseAccount = async (ctx) => {
|
|
@@ -80259,7 +80259,7 @@ async function copyExistingWorkerFiles(ctx) {
|
|
|
80259
80259
|
}
|
|
80260
80260
|
);
|
|
80261
80261
|
}
|
|
80262
|
-
const tempdir = await (0, import_promises3.mkdtemp)((0,
|
|
80262
|
+
const tempdir = await (0, import_promises3.mkdtemp)((0, import_node_path10.join)((0, import_node_os4.tmpdir)(), "c3-wrangler-init--from-dash-"));
|
|
80263
80263
|
await runCommand(
|
|
80264
80264
|
[
|
|
80265
80265
|
...dlx,
|
|
@@ -80282,16 +80282,16 @@ async function copyExistingWorkerFiles(ctx) {
|
|
|
80282
80282
|
}
|
|
80283
80283
|
);
|
|
80284
80284
|
await (0, import_promises3.cp)(
|
|
80285
|
-
(0,
|
|
80286
|
-
(0,
|
|
80285
|
+
(0, import_node_path10.join)(tempdir, ctx.args.existingScript, "src"),
|
|
80286
|
+
(0, import_node_path10.join)(ctx.project.path, "src"),
|
|
80287
80287
|
{ recursive: true }
|
|
80288
80288
|
);
|
|
80289
80289
|
const configFiles = ["wrangler.jsonc", "wrangler.json", "wrangler.toml"];
|
|
80290
80290
|
let configFileCopied = false;
|
|
80291
80291
|
for (const configFile of configFiles) {
|
|
80292
|
-
const sourcePath = (0,
|
|
80293
|
-
if ((0,
|
|
80294
|
-
await (0, import_promises3.cp)(sourcePath, (0,
|
|
80292
|
+
const sourcePath = (0, import_node_path10.join)(tempdir, ctx.args.existingScript, configFile);
|
|
80293
|
+
if ((0, import_node_fs7.existsSync)(sourcePath)) {
|
|
80294
|
+
await (0, import_promises3.cp)(sourcePath, (0, import_node_path10.join)(ctx.project.path, configFile));
|
|
80295
80295
|
configFileCopied = true;
|
|
80296
80296
|
break;
|
|
80297
80297
|
}
|
|
@@ -80608,9 +80608,17 @@ var config31 = {
|
|
|
80608
80608
|
platform: "workers",
|
|
80609
80609
|
frameworkCli: "create-react-router",
|
|
80610
80610
|
displayName: "React Router (formerly Remix)",
|
|
80611
|
+
copyFiles: {
|
|
80612
|
+
path: "./ts"
|
|
80613
|
+
},
|
|
80611
80614
|
generate: generate17,
|
|
80612
|
-
// configure,
|
|
80613
80615
|
transformPackageJson: async () => ({
|
|
80616
|
+
dependencies: {
|
|
80617
|
+
"react-router": "^7.10.0"
|
|
80618
|
+
},
|
|
80619
|
+
devDependencies: {
|
|
80620
|
+
"@react-router/dev": "^7.10.0"
|
|
80621
|
+
},
|
|
80614
80622
|
scripts: {
|
|
80615
80623
|
deploy: `${npm12} run build && wrangler deploy`,
|
|
80616
80624
|
preview: `${npm12} run build && vite preview`,
|
|
@@ -80679,7 +80687,7 @@ var config32 = {
|
|
|
80679
80687
|
var c3_default35 = config32;
|
|
80680
80688
|
|
|
80681
80689
|
// templates/react/workers/c3.ts
|
|
80682
|
-
var
|
|
80690
|
+
var import_node_assert3 = __toESM(require("node:assert"));
|
|
80683
80691
|
var recast9 = __toESM(require_main2());
|
|
80684
80692
|
var b2 = recast9.types.builders;
|
|
80685
80693
|
var t = recast9.types.namedTypes;
|
|
@@ -80726,9 +80734,9 @@ function transformViteConfig(ctx) {
|
|
|
80726
80734
|
return this.traverse(n);
|
|
80727
80735
|
}
|
|
80728
80736
|
const config46 = n.node.arguments[0];
|
|
80729
|
-
(0,
|
|
80737
|
+
(0, import_node_assert3.default)(t.ObjectExpression.check(config46));
|
|
80730
80738
|
const pluginsProp = config46.properties.find((prop) => isPluginsProp(prop));
|
|
80731
|
-
(0,
|
|
80739
|
+
(0, import_node_assert3.default)(pluginsProp && t.ArrayExpression.check(pluginsProp.value));
|
|
80732
80740
|
pluginsProp.value.elements.push(
|
|
80733
80741
|
b2.callExpression(b2.identifier("cloudflare"), [])
|
|
80734
80742
|
);
|
|
@@ -80781,7 +80789,7 @@ async function getVariant() {
|
|
|
80781
80789
|
defaultValue: variantsOptions2[0].value
|
|
80782
80790
|
});
|
|
80783
80791
|
const selected = variantsOptions2.find((variant) => variant.value === value);
|
|
80784
|
-
(0,
|
|
80792
|
+
(0, import_node_assert3.default)(selected, "Expected a variant to be selected");
|
|
80785
80793
|
return selected;
|
|
80786
80794
|
}
|
|
80787
80795
|
var config33 = {
|
|
@@ -80870,8 +80878,8 @@ var config36 = {
|
|
|
80870
80878
|
var c3_default39 = config36;
|
|
80871
80879
|
|
|
80872
80880
|
// src/helpers/compatDate.ts
|
|
80873
|
-
var
|
|
80874
|
-
var
|
|
80881
|
+
var import_node_fs8 = require("node:fs");
|
|
80882
|
+
var import_node_path11 = require("node:path");
|
|
80875
80883
|
async function getWorkerdCompatibilityDate() {
|
|
80876
80884
|
const s = spinner();
|
|
80877
80885
|
s.start("Retrieving current workerd compatibility date");
|
|
@@ -80899,14 +80907,14 @@ async function getWorkerdCompatibilityDate() {
|
|
|
80899
80907
|
return fallbackDate;
|
|
80900
80908
|
}
|
|
80901
80909
|
function getLatestTypesEntrypoint(ctx) {
|
|
80902
|
-
const workersTypesPath = (0,
|
|
80910
|
+
const workersTypesPath = (0, import_node_path11.resolve)(
|
|
80903
80911
|
ctx.project.path,
|
|
80904
80912
|
"node_modules",
|
|
80905
80913
|
"@cloudflare",
|
|
80906
80914
|
"workers-types"
|
|
80907
80915
|
);
|
|
80908
80916
|
try {
|
|
80909
|
-
const entrypoints = (0,
|
|
80917
|
+
const entrypoints = (0, import_node_fs8.readdirSync)(workersTypesPath);
|
|
80910
80918
|
const sorted = entrypoints.filter((filename) => filename.match(/(\d{4})-(\d{2})-(\d{2})/)).sort().reverse();
|
|
80911
80919
|
if (sorted.length === 0) {
|
|
80912
80920
|
return null;
|
|
@@ -80925,12 +80933,6 @@ var generate21 = async (ctx) => {
|
|
|
80925
80933
|
logRaw("");
|
|
80926
80934
|
};
|
|
80927
80935
|
var configure11 = async (ctx) => {
|
|
80928
|
-
const packages = ["nitropack"];
|
|
80929
|
-
await installPackages(packages, {
|
|
80930
|
-
dev: true,
|
|
80931
|
-
startText: "Installing nitro module `nitropack`",
|
|
80932
|
-
doneText: `${brandColor("installed")} ${dim(`via \`${npm16} install\``)}`
|
|
80933
|
-
});
|
|
80934
80936
|
usesTypescript(ctx);
|
|
80935
80937
|
const filePath = `app.config.${usesTypescript(ctx) ? "ts" : "js"}`;
|
|
80936
80938
|
const compatDate = await getWorkerdCompatibilityDate();
|
|
@@ -80991,7 +80993,7 @@ var config37 = {
|
|
|
80991
80993
|
var c3_default40 = config37;
|
|
80992
80994
|
|
|
80993
80995
|
// templates/svelte/pages/c3.ts
|
|
80994
|
-
var
|
|
80996
|
+
var import_node_fs9 = require("node:fs");
|
|
80995
80997
|
var recast11 = __toESM(require_main2());
|
|
80996
80998
|
var { npm: npm17 } = detectPackageManager();
|
|
80997
80999
|
var generate22 = async (ctx) => {
|
|
@@ -81023,7 +81025,7 @@ var updateSvelteConfig = () => {
|
|
|
81023
81025
|
};
|
|
81024
81026
|
var updatePlaywrightConfig = (shouldUseTypescript) => {
|
|
81025
81027
|
const filePath = `playwright.config.${shouldUseTypescript ? "ts" : "js"}`;
|
|
81026
|
-
if (!(0,
|
|
81028
|
+
if (!(0, import_node_fs9.existsSync)(filePath)) {
|
|
81027
81029
|
return;
|
|
81028
81030
|
}
|
|
81029
81031
|
updateStatus(`Changing webServer port in ${blue(filePath)}`);
|
|
@@ -81250,7 +81252,7 @@ var config41 = {
|
|
|
81250
81252
|
}),
|
|
81251
81253
|
devScript: "dev",
|
|
81252
81254
|
deployScript: "deploy",
|
|
81253
|
-
previewScript: "
|
|
81255
|
+
previewScript: "serve"
|
|
81254
81256
|
};
|
|
81255
81257
|
var c3_default44 = config41;
|
|
81256
81258
|
|
|
@@ -81395,10 +81397,10 @@ var config45 = {
|
|
|
81395
81397
|
var c3_default48 = config45;
|
|
81396
81398
|
|
|
81397
81399
|
// src/git.ts
|
|
81398
|
-
var
|
|
81400
|
+
var import_node_assert4 = __toESM(require("node:assert"));
|
|
81399
81401
|
|
|
81400
81402
|
// ../wrangler/package.json
|
|
81401
|
-
var version2 = "4.
|
|
81403
|
+
var version2 = "4.52.1";
|
|
81402
81404
|
|
|
81403
81405
|
// src/git.ts
|
|
81404
81406
|
var offerGit = async (ctx) => {
|
|
@@ -81434,7 +81436,7 @@ var offerGit = async (ctx) => {
|
|
|
81434
81436
|
}
|
|
81435
81437
|
};
|
|
81436
81438
|
var gitCommit = async (ctx) => {
|
|
81437
|
-
|
|
81439
|
+
import_node_assert4.default.notStrictEqual(
|
|
81438
81440
|
ctx.args.git,
|
|
81439
81441
|
void 0,
|
|
81440
81442
|
"Expected git context to be defined by now"
|
|
@@ -81576,8 +81578,8 @@ async function getProductionBranch(cwd) {
|
|
|
81576
81578
|
}
|
|
81577
81579
|
|
|
81578
81580
|
// src/validators.ts
|
|
81579
|
-
var
|
|
81580
|
-
var
|
|
81581
|
+
var import_node_fs10 = require("node:fs");
|
|
81582
|
+
var import_node_path12 = require("node:path");
|
|
81581
81583
|
var TEMPLATE_REGEX = /^(?:(?:https:\/\/)?(?<httpsUrl>[^:/]+\.[^:/]+)\/|git@(?<gitUrl>[^:/]+)[:/]|(?<shorthandUrl>[^/]+):)?(?<user>[^/\s]+)\/(?<repository>[^/\s#]+)(?:(?<subdirectoryPath>(?:\/[^/\s#]+)+))?(?:\/)?(?:#(?<tag>.+))?/;
|
|
81582
81584
|
var validateTemplateUrl = (value) => {
|
|
81583
81585
|
if (!String(value).match(TEMPLATE_REGEX)) {
|
|
@@ -81585,17 +81587,17 @@ var validateTemplateUrl = (value) => {
|
|
|
81585
81587
|
}
|
|
81586
81588
|
};
|
|
81587
81589
|
var validateProjectDirectory = (relativePath, args) => {
|
|
81588
|
-
const path6 = (0,
|
|
81589
|
-
const existsAlready = (0,
|
|
81590
|
+
const path6 = (0, import_node_path12.resolve)(relativePath);
|
|
81591
|
+
const existsAlready = (0, import_node_fs10.existsSync)(path6);
|
|
81590
81592
|
if (existsAlready) {
|
|
81591
|
-
for (const file of (0,
|
|
81593
|
+
for (const file of (0, import_node_fs10.readdirSync)(path6)) {
|
|
81592
81594
|
if (!isAllowedExistingFile(file)) {
|
|
81593
81595
|
return `Directory \`${relativePath}\` already exists and contains files that might conflict. Please choose a new name.`;
|
|
81594
81596
|
}
|
|
81595
81597
|
}
|
|
81596
81598
|
}
|
|
81597
81599
|
if (!args.existingScript) {
|
|
81598
|
-
const projectName = (0,
|
|
81600
|
+
const projectName = (0, import_node_path12.basename)(path6);
|
|
81599
81601
|
const invalidChars = /[^a-z0-9-]/;
|
|
81600
81602
|
const invalidStartEnd = /^-|-$/;
|
|
81601
81603
|
if (projectName.match(invalidStartEnd)) {
|
|
@@ -81685,7 +81687,10 @@ function getFrameworkMap({ experimental = false }) {
|
|
|
81685
81687
|
gatsby: c3_default14,
|
|
81686
81688
|
svelte: c3_default43,
|
|
81687
81689
|
docusaurus: c3_default11,
|
|
81688
|
-
astro: c3_default7
|
|
81690
|
+
astro: c3_default7,
|
|
81691
|
+
"tanstack-start": c3_default44,
|
|
81692
|
+
angular: c3_default4,
|
|
81693
|
+
solid: c3_default40
|
|
81689
81694
|
};
|
|
81690
81695
|
} else {
|
|
81691
81696
|
return {
|
|
@@ -82021,7 +82026,7 @@ var createContext = async (args, prevArgs) => {
|
|
|
82021
82026
|
envInterfaceName: "Env",
|
|
82022
82027
|
...template
|
|
82023
82028
|
};
|
|
82024
|
-
const path6 = (0,
|
|
82029
|
+
const path6 = (0, import_node_path13.resolve)(projectName);
|
|
82025
82030
|
const languageVariants = template.copyFiles && !isVariantInfo(template.copyFiles) && !template.copyFiles.selectVariant ? Object.keys(template.copyFiles.variants) : [];
|
|
82026
82031
|
if (languageVariants.length > 0) {
|
|
82027
82032
|
if (hasTsConfig(path6)) {
|
|
@@ -82047,8 +82052,8 @@ var createContext = async (args, prevArgs) => {
|
|
|
82047
82052
|
}
|
|
82048
82053
|
}
|
|
82049
82054
|
}
|
|
82050
|
-
const name3 = (0,
|
|
82051
|
-
const directory = (0,
|
|
82055
|
+
const name3 = (0, import_node_path13.basename)(path6);
|
|
82056
|
+
const directory = (0, import_node_path13.dirname)(path6);
|
|
82052
82057
|
const originalCWD = process.cwd();
|
|
82053
82058
|
return {
|
|
82054
82059
|
project: { name: name3, path: path6 },
|
|
@@ -82068,7 +82073,7 @@ async function copyTemplateFiles(ctx) {
|
|
|
82068
82073
|
const { copyFiles } = ctx.template;
|
|
82069
82074
|
let srcdir;
|
|
82070
82075
|
if (isVariantInfo(copyFiles)) {
|
|
82071
|
-
srcdir = (0,
|
|
82076
|
+
srcdir = (0, import_node_path13.join)(getTemplatePath(ctx), copyFiles.path);
|
|
82072
82077
|
} else {
|
|
82073
82078
|
const selectVariant = copyFiles.selectVariant ?? defaultSelectVariant;
|
|
82074
82079
|
const variant = await selectVariant(ctx);
|
|
@@ -82078,16 +82083,16 @@ async function copyTemplateFiles(ctx) {
|
|
|
82078
82083
|
`Unknown variant provided: ${JSON.stringify(variant ?? "")}`
|
|
82079
82084
|
);
|
|
82080
82085
|
}
|
|
82081
|
-
srcdir = (0,
|
|
82086
|
+
srcdir = (0, import_node_path13.join)(getTemplatePath(ctx), variantInfo.path);
|
|
82082
82087
|
}
|
|
82083
82088
|
const copyDestDir = getCopyFilesDestinationDir(ctx);
|
|
82084
|
-
const destdir = (0,
|
|
82089
|
+
const destdir = (0, import_node_path13.join)(ctx.project.path, ...copyDestDir ? [copyDestDir] : []);
|
|
82085
82090
|
const s = spinner();
|
|
82086
82091
|
s.start(`Copying template files`);
|
|
82087
82092
|
await (0, import_promises4.cp)(srcdir, destdir, { recursive: true, force: true });
|
|
82088
|
-
const dummyGitIgnorePath = (0,
|
|
82089
|
-
if ((0,
|
|
82090
|
-
await (0, import_promises4.rename)(dummyGitIgnorePath, (0,
|
|
82093
|
+
const dummyGitIgnorePath = (0, import_node_path13.join)(destdir, "__dot__gitignore");
|
|
82094
|
+
if ((0, import_node_fs11.existsSync)(dummyGitIgnorePath)) {
|
|
82095
|
+
await (0, import_promises4.rename)(dummyGitIgnorePath, (0, import_node_path13.join)(destdir, ".gitignore"));
|
|
82091
82096
|
}
|
|
82092
82097
|
s.stop(`${brandColor("files")} ${dim("copied to project directory")}`);
|
|
82093
82098
|
}
|
|
@@ -82117,26 +82122,26 @@ var validateTemplate = (path6, config46) => {
|
|
|
82117
82122
|
return;
|
|
82118
82123
|
}
|
|
82119
82124
|
if (isVariantInfo(config46.copyFiles)) {
|
|
82120
|
-
validateTemplateSrcDirectory((0,
|
|
82125
|
+
validateTemplateSrcDirectory((0, import_node_path13.resolve)(path6, config46.copyFiles.path), config46);
|
|
82121
82126
|
} else {
|
|
82122
82127
|
for (const variant of Object.values(config46.copyFiles.variants)) {
|
|
82123
|
-
validateTemplateSrcDirectory((0,
|
|
82128
|
+
validateTemplateSrcDirectory((0, import_node_path13.resolve)(path6, variant.path), config46);
|
|
82124
82129
|
}
|
|
82125
82130
|
}
|
|
82126
82131
|
};
|
|
82127
82132
|
var validateTemplateSrcDirectory = (path6, config46) => {
|
|
82128
82133
|
if (config46.platform === "workers") {
|
|
82129
|
-
const wranglerTomlPath = (0,
|
|
82130
|
-
const wranglerJsonPath = (0,
|
|
82131
|
-
const wranglerJsoncPath = (0,
|
|
82132
|
-
if (!(0,
|
|
82134
|
+
const wranglerTomlPath = (0, import_node_path13.resolve)(path6, "wrangler.toml");
|
|
82135
|
+
const wranglerJsonPath = (0, import_node_path13.resolve)(path6, "wrangler.json");
|
|
82136
|
+
const wranglerJsoncPath = (0, import_node_path13.resolve)(path6, "wrangler.jsonc");
|
|
82137
|
+
if (!(0, import_node_fs11.existsSync)(wranglerTomlPath) && !(0, import_node_fs11.existsSync)(wranglerJsonPath) && !(0, import_node_fs11.existsSync)(wranglerJsoncPath)) {
|
|
82133
82138
|
throw new Error(
|
|
82134
82139
|
`create-cloudflare templates must contain a "wrangler.toml" or "wrangler.json(c)" file.`
|
|
82135
82140
|
);
|
|
82136
82141
|
}
|
|
82137
82142
|
}
|
|
82138
|
-
const pkgJsonPath = (0,
|
|
82139
|
-
if (!(0,
|
|
82143
|
+
const pkgJsonPath = (0, import_node_path13.resolve)(path6, "package.json");
|
|
82144
|
+
if (!(0, import_node_fs11.existsSync)(pkgJsonPath)) {
|
|
82140
82145
|
throw new Error(
|
|
82141
82146
|
`create-cloudflare templates must contain a "package.json" file.`
|
|
82142
82147
|
);
|
|
@@ -82153,10 +82158,10 @@ var inferTemplateConfig = (path6) => {
|
|
|
82153
82158
|
};
|
|
82154
82159
|
var inferCopyFilesDefinition = (path6) => {
|
|
82155
82160
|
const variants = {};
|
|
82156
|
-
if ((0,
|
|
82161
|
+
if ((0, import_node_fs11.existsSync)((0, import_node_path13.join)(path6, "js"))) {
|
|
82157
82162
|
variants["js"] = { path: "./js" };
|
|
82158
82163
|
}
|
|
82159
|
-
if ((0,
|
|
82164
|
+
if ((0, import_node_fs11.existsSync)((0, import_node_path13.join)(path6, "ts"))) {
|
|
82160
82165
|
variants["ts"] = { path: "./ts" };
|
|
82161
82166
|
}
|
|
82162
82167
|
const copyFiles = Object.keys(variants).length !== 0 ? { variants } : { path: "." };
|
|
@@ -82171,7 +82176,7 @@ var downloadRemoteTemplate = async (src, mode) => {
|
|
|
82171
82176
|
force: true,
|
|
82172
82177
|
mode
|
|
82173
82178
|
});
|
|
82174
|
-
const tmpDir = await (0, import_promises4.mkdtemp)((0,
|
|
82179
|
+
const tmpDir = await (0, import_promises4.mkdtemp)((0, import_node_path13.join)((0, import_node_os5.tmpdir)(), "c3-template"));
|
|
82175
82180
|
await emitter.clone(tmpDir);
|
|
82176
82181
|
return tmpDir;
|
|
82177
82182
|
} catch {
|
|
@@ -82180,8 +82185,8 @@ var downloadRemoteTemplate = async (src, mode) => {
|
|
|
82180
82185
|
}
|
|
82181
82186
|
};
|
|
82182
82187
|
function updatePythonPackageName(path6, projectName) {
|
|
82183
|
-
const pyprojectTomlPath = (0,
|
|
82184
|
-
if (!(0,
|
|
82188
|
+
const pyprojectTomlPath = (0, import_node_path13.resolve)(path6, "pyproject.toml");
|
|
82189
|
+
if (!(0, import_node_fs11.existsSync)(pyprojectTomlPath)) {
|
|
82185
82190
|
return;
|
|
82186
82191
|
}
|
|
82187
82192
|
const s = spinner();
|
|
@@ -82196,7 +82201,7 @@ function updatePythonPackageName(path6, projectName) {
|
|
|
82196
82201
|
}
|
|
82197
82202
|
var updatePackageName = async (ctx) => {
|
|
82198
82203
|
const placeholderNames = ["<TBD>", "TBD", ""];
|
|
82199
|
-
const pkgJsonPath = (0,
|
|
82204
|
+
const pkgJsonPath = (0, import_node_path13.resolve)(ctx.project.path, "package.json");
|
|
82200
82205
|
const pkgJson = readJSON(pkgJsonPath);
|
|
82201
82206
|
if (!placeholderNames.includes(pkgJson.name)) {
|
|
82202
82207
|
return;
|
|
@@ -82214,7 +82219,7 @@ var updatePackageScripts = async (ctx) => {
|
|
|
82214
82219
|
}
|
|
82215
82220
|
const s = spinner();
|
|
82216
82221
|
s.start("Updating `package.json` scripts");
|
|
82217
|
-
const pkgJsonPath = (0,
|
|
82222
|
+
const pkgJsonPath = (0, import_node_path13.resolve)(ctx.project.path, "package.json");
|
|
82218
82223
|
let pkgJson = readJSON(pkgJsonPath);
|
|
82219
82224
|
const transformed = await ctx.template.transformPackageJson(pkgJson, ctx);
|
|
82220
82225
|
pkgJson = (0, import_deepmerge.default)(pkgJson, transformed);
|
|
@@ -82223,9 +82228,9 @@ var updatePackageScripts = async (ctx) => {
|
|
|
82223
82228
|
};
|
|
82224
82229
|
var getTemplatePath = (ctx) => {
|
|
82225
82230
|
if (ctx.template.path) {
|
|
82226
|
-
return (0,
|
|
82231
|
+
return (0, import_node_path13.resolve)(__dirname, "..", ctx.template.path);
|
|
82227
82232
|
}
|
|
82228
|
-
return (0,
|
|
82233
|
+
return (0, import_node_path13.resolve)(__dirname, "..", "templates", ctx.template.id);
|
|
82229
82234
|
};
|
|
82230
82235
|
var isVariantInfo = (copyFiles) => {
|
|
82231
82236
|
return "path" in copyFiles;
|
|
@@ -82242,7 +82247,7 @@ var getCopyFilesDestinationDir = (ctx) => {
|
|
|
82242
82247
|
};
|
|
82243
82248
|
var addWranglerToGitIgnore = (ctx) => {
|
|
82244
82249
|
const gitIgnorePath = `${ctx.project.path}/.gitignore`;
|
|
82245
|
-
const gitIgnorePreExisted = (0,
|
|
82250
|
+
const gitIgnorePreExisted = (0, import_node_fs11.existsSync)(gitIgnorePath);
|
|
82246
82251
|
const gitDirExists = directoryExists(`${ctx.project.path}/.git`);
|
|
82247
82252
|
if (!gitIgnorePreExisted && !gitDirExists) {
|
|
82248
82253
|
return;
|
|
@@ -82643,8 +82648,8 @@ var processArgument = async (args, key, promptConfig) => {
|
|
|
82643
82648
|
|
|
82644
82649
|
// src/deploy.ts
|
|
82645
82650
|
var import_promises6 = require("node:fs/promises");
|
|
82646
|
-
var
|
|
82647
|
-
var
|
|
82651
|
+
var import_node_os6 = require("node:os");
|
|
82652
|
+
var import_node_path15 = require("node:path");
|
|
82648
82653
|
|
|
82649
82654
|
// src/helpers/poll.ts
|
|
82650
82655
|
var import_promises5 = require("node:timers/promises");
|
|
@@ -82736,8 +82741,8 @@ function secondsSince(start) {
|
|
|
82736
82741
|
}
|
|
82737
82742
|
|
|
82738
82743
|
// src/wrangler/config.ts
|
|
82739
|
-
var
|
|
82740
|
-
var
|
|
82744
|
+
var import_node_fs12 = require("node:fs");
|
|
82745
|
+
var import_node_path14 = require("node:path");
|
|
82741
82746
|
|
|
82742
82747
|
// src/helpers/json.ts
|
|
82743
82748
|
var import_comment_json2 = __toESM(require_src3());
|
|
@@ -82875,22 +82880,22 @@ var updateWranglerConfig = async (ctx) => {
|
|
|
82875
82880
|
}
|
|
82876
82881
|
};
|
|
82877
82882
|
var getWranglerTomlPath = (ctx) => {
|
|
82878
|
-
return (0,
|
|
82883
|
+
return (0, import_node_path14.resolve)(ctx.project.path, "wrangler.toml");
|
|
82879
82884
|
};
|
|
82880
82885
|
var getWranglerJsonPath = (ctx) => {
|
|
82881
|
-
return (0,
|
|
82886
|
+
return (0, import_node_path14.resolve)(ctx.project.path, "wrangler.json");
|
|
82882
82887
|
};
|
|
82883
82888
|
var getWranglerJsoncPath = (ctx) => {
|
|
82884
|
-
return (0,
|
|
82889
|
+
return (0, import_node_path14.resolve)(ctx.project.path, "wrangler.jsonc");
|
|
82885
82890
|
};
|
|
82886
82891
|
var wranglerTomlExists = (ctx) => {
|
|
82887
82892
|
const wranglerTomlPath = getWranglerTomlPath(ctx);
|
|
82888
|
-
return (0,
|
|
82893
|
+
return (0, import_node_fs12.existsSync)(wranglerTomlPath);
|
|
82889
82894
|
};
|
|
82890
82895
|
var wranglerJsonExists = (ctx) => {
|
|
82891
82896
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
82892
82897
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
82893
|
-
return (0,
|
|
82898
|
+
return (0, import_node_fs12.existsSync)(wranglerJsonPath) || (0, import_node_fs12.existsSync)(wranglerJsoncPath);
|
|
82894
82899
|
};
|
|
82895
82900
|
var readWranglerToml = (ctx) => {
|
|
82896
82901
|
const wranglerTomlPath = getWranglerTomlPath(ctx);
|
|
@@ -82898,7 +82903,7 @@ var readWranglerToml = (ctx) => {
|
|
|
82898
82903
|
};
|
|
82899
82904
|
var readWranglerJson = (ctx) => {
|
|
82900
82905
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
82901
|
-
if ((0,
|
|
82906
|
+
if ((0, import_node_fs12.existsSync)(wranglerJsonPath)) {
|
|
82902
82907
|
return readJSONWithComments(wranglerJsonPath);
|
|
82903
82908
|
}
|
|
82904
82909
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
@@ -82910,7 +82915,7 @@ var writeWranglerToml = (ctx, contents) => {
|
|
|
82910
82915
|
};
|
|
82911
82916
|
var writeWranglerJson = (ctx, config46) => {
|
|
82912
82917
|
const wranglerJsonPath = getWranglerJsonPath(ctx);
|
|
82913
|
-
if ((0,
|
|
82918
|
+
if ((0, import_node_fs12.existsSync)(wranglerJsonPath)) {
|
|
82914
82919
|
return writeJSONWithComments(wranglerJsonPath, config46);
|
|
82915
82920
|
}
|
|
82916
82921
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
@@ -82918,10 +82923,10 @@ var writeWranglerJson = (ctx, config46) => {
|
|
|
82918
82923
|
};
|
|
82919
82924
|
var addVscodeConfig = (ctx) => {
|
|
82920
82925
|
const settingsPath = `${ctx.project.path}/.vscode/settings.json`;
|
|
82921
|
-
if ((0,
|
|
82926
|
+
if ((0, import_node_fs12.existsSync)(settingsPath)) {
|
|
82922
82927
|
return;
|
|
82923
82928
|
}
|
|
82924
|
-
(0,
|
|
82929
|
+
(0, import_node_fs12.mkdirSync)(`${ctx.project.path}/.vscode`, { recursive: true });
|
|
82925
82930
|
writeJSON(settingsPath, {
|
|
82926
82931
|
"files.associations": {
|
|
82927
82932
|
"wrangler.json": "jsonc"
|
|
@@ -83000,8 +83005,8 @@ var runDeploy = async (ctx) => {
|
|
|
83000
83005
|
JSON.stringify(ctx.commitMessage)
|
|
83001
83006
|
] : []
|
|
83002
83007
|
];
|
|
83003
|
-
const outputFile = (0,
|
|
83004
|
-
await (0, import_promises6.mkdtemp)((0,
|
|
83008
|
+
const outputFile = (0, import_node_path15.join)(
|
|
83009
|
+
await (0, import_promises6.mkdtemp)((0, import_node_path15.join)((0, import_node_os6.tmpdir)(), "c3-wrangler-deploy-")),
|
|
83005
83010
|
"output.json"
|
|
83006
83011
|
);
|
|
83007
83012
|
await runCommand(deployCmd, {
|
|
@@ -83063,7 +83068,7 @@ var hasBinding = (node) => {
|
|
|
83063
83068
|
};
|
|
83064
83069
|
|
|
83065
83070
|
// src/dialog.ts
|
|
83066
|
-
var
|
|
83071
|
+
var import_node_path16 = require("node:path");
|
|
83067
83072
|
function createDialog(lines) {
|
|
83068
83073
|
const screenWidth = process.stdout.columns;
|
|
83069
83074
|
const maxLineWidth = Math.max(
|
|
@@ -83103,7 +83108,7 @@ function printWelcomeMessage(version3, telemetryEnabled, args) {
|
|
|
83103
83108
|
}
|
|
83104
83109
|
var printSummary = (ctx) => {
|
|
83105
83110
|
const dashboardUrl = ctx.account ? `https://dash.cloudflare.com/?to=/:account/workers/services/view/${ctx.project.name}` : null;
|
|
83106
|
-
const relativePath = (0,
|
|
83111
|
+
const relativePath = (0, import_node_path16.relative)(ctx.originalCWD, ctx.project.path);
|
|
83107
83112
|
const cdCommand = relativePath ? `cd ${relativePath}` : null;
|
|
83108
83113
|
const { npm: npm24 } = detectPackageManager();
|
|
83109
83114
|
const deployCommand = quoteShellArgs([
|
|
@@ -83574,8 +83579,8 @@ var createProject = async (ctx) => {
|
|
|
83574
83579
|
};
|
|
83575
83580
|
|
|
83576
83581
|
// src/workers.ts
|
|
83577
|
-
var
|
|
83578
|
-
var
|
|
83582
|
+
var import_node_fs13 = require("node:fs");
|
|
83583
|
+
var import_node_path17 = require("node:path");
|
|
83579
83584
|
|
|
83580
83585
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
83581
83586
|
function createScanner(text, ignoreTrivia = false) {
|
|
@@ -84905,8 +84910,8 @@ async function addTypes(ctx) {
|
|
|
84905
84910
|
await updateTsConfig(ctx, { usesNodeCompat });
|
|
84906
84911
|
}
|
|
84907
84912
|
async function generateWorkersTypes(ctx, npm24) {
|
|
84908
|
-
const packageJsonPath = (0,
|
|
84909
|
-
if (!(0,
|
|
84913
|
+
const packageJsonPath = (0, import_node_path17.join)(ctx.project.path, "package.json");
|
|
84914
|
+
if (!(0, import_node_fs13.existsSync)(packageJsonPath)) {
|
|
84910
84915
|
return;
|
|
84911
84916
|
}
|
|
84912
84917
|
const packageManifest = readJSON(packageJsonPath);
|
|
@@ -84945,8 +84950,8 @@ var maybeInstallNodeTypes = async (ctx, npm24) => {
|
|
|
84945
84950
|
return false;
|
|
84946
84951
|
};
|
|
84947
84952
|
async function updateTsConfig(ctx, { usesNodeCompat }) {
|
|
84948
|
-
const tsconfigPath = (0,
|
|
84949
|
-
if (!(0,
|
|
84953
|
+
const tsconfigPath = (0, import_node_path17.join)(ctx.project.path, "tsconfig.json");
|
|
84954
|
+
if (!(0, import_node_fs13.existsSync)(tsconfigPath)) {
|
|
84950
84955
|
return;
|
|
84951
84956
|
}
|
|
84952
84957
|
const tsconfig = readFile(tsconfigPath);
|
|
@@ -85069,9 +85074,9 @@ var setupProjectDirectory = (ctx) => {
|
|
|
85069
85074
|
if (err) {
|
|
85070
85075
|
throw new Error(err);
|
|
85071
85076
|
}
|
|
85072
|
-
const directory = (0,
|
|
85073
|
-
(0,
|
|
85074
|
-
(0,
|
|
85077
|
+
const directory = (0, import_node_path18.dirname)(path6);
|
|
85078
|
+
(0, import_node_fs14.mkdirSync)(directory, { recursive: true });
|
|
85079
|
+
(0, import_node_process7.chdir)(directory);
|
|
85075
85080
|
};
|
|
85076
85081
|
var create = async (ctx) => {
|
|
85077
85082
|
const { template } = ctx;
|
|
@@ -85083,7 +85088,7 @@ var create = async (ctx) => {
|
|
|
85083
85088
|
await copyTemplateFiles(ctx);
|
|
85084
85089
|
}
|
|
85085
85090
|
await updatePackageName(ctx);
|
|
85086
|
-
(0,
|
|
85091
|
+
(0, import_node_process7.chdir)(ctx.project.path);
|
|
85087
85092
|
await npmInstall(ctx);
|
|
85088
85093
|
await rectifyPmMismatch(ctx);
|
|
85089
85094
|
endSection(`Application created`);
|