@valbuild/shared 0.150.8 → 0.150.11
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/CHANGELOG.md +30 -0
- package/client/dist/valbuild-shared-client.cjs.dev.js +16 -2
- package/client/dist/valbuild-shared-client.cjs.prod.js +16 -2
- package/client/dist/valbuild-shared-client.esm.js +2 -2
- package/dist/{acquireTypes-dd976839.cjs.prod.js → acquireTypes-6250a305.cjs.prod.js} +46 -46
- package/dist/{acquireTypes-6e2f7961.esm.js → acquireTypes-c2227b23.esm.js} +2 -2
- package/dist/{acquireTypes-84a4077a.cjs.dev.js → acquireTypes-c9e757a1.cjs.dev.js} +46 -46
- package/dist/{slicedToArray-22567815.esm.js → createForOfIteratorHelper-9b80f1a2.esm.js} +136 -106
- package/dist/{slicedToArray-d99b4e2e.cjs.prod.js → createForOfIteratorHelper-9ca2078d.cjs.prod.js} +142 -111
- package/dist/{slicedToArray-c8a29f6b.cjs.dev.js → createForOfIteratorHelper-f2d7ac6d.cjs.dev.js} +142 -111
- package/dist/declarations/src/client/index.d.ts +2 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +23 -0
- package/dist/declarations/src/internal/index.d.ts +2 -0
- package/dist/declarations/src/internal/pageInspection.d.ts +117 -0
- package/dist/declarations/src/internal/quickPreview.d.ts +91 -0
- package/dist/declarations/src/internal/valCanvasProtocol.d.ts +53 -0
- package/dist/declarations/src/publish/buildProposal.d.ts +16 -1
- package/dist/declarations/src/publish/buildQuickPreview.d.ts +46 -0
- package/dist/declarations/src/publish/index.d.ts +3 -2
- package/dist/declarations/src/publish/runStudioDeploy.d.ts +10 -0
- package/dist/getSitemapTree-5354ce90.cjs.prod.js +1421 -0
- package/dist/getSitemapTree-97b3166f.esm.js +1381 -0
- package/dist/getSitemapTree-d934ff9c.cjs.dev.js +1421 -0
- package/dist/{proposalProject-689c24cc.esm.js → proposalProject-5da177d5.esm.js} +1 -2
- package/dist/{proposalProject-926f2c68.cjs.dev.js → proposalProject-76caa377.cjs.prod.js} +2 -3
- package/dist/{proposalProject-fab0c026.cjs.prod.js → proposalProject-81fee08f.cjs.dev.js} +2 -3
- package/dist/{protocol-7ddc1a71.esm.js → protocol-55cfa3cf.esm.js} +1 -1
- package/dist/{protocol-4e2a455b.cjs.prod.js → protocol-b1055ef0.cjs.prod.js} +6 -6
- package/dist/{protocol-ac1c3ec7.cjs.dev.js → protocol-d0efb8cd.cjs.dev.js} +6 -6
- package/dist/wrapNativeSuper-639b12b7.esm.js +107 -0
- package/dist/wrapNativeSuper-8673414f.cjs.prod.js +113 -0
- package/dist/wrapNativeSuper-933f991e.cjs.dev.js +113 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +72 -34
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +72 -34
- package/internal/dist/valbuild-shared-internal.esm.js +30 -7
- package/package.json +2 -2
- package/publish/dist/valbuild-shared-publish.cjs.dev.js +589 -237
- package/publish/dist/valbuild-shared-publish.cjs.prod.js +589 -237
- package/publish/dist/valbuild-shared-publish.esm.js +504 -155
- package/typecheck/dist/valbuild-shared-typecheck.cjs.dev.js +34 -34
- package/typecheck/dist/valbuild-shared-typecheck.cjs.prod.js +34 -34
- package/typecheck/dist/valbuild-shared-typecheck.esm.js +5 -5
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.dev.js +7 -7
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.prod.js +7 -7
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.esm.js +3 -3
- package/dist/createForOfIteratorHelper-666a6d17.esm.js +0 -137
- package/dist/createForOfIteratorHelper-87a33eff.cjs.dev.js +0 -145
- package/dist/createForOfIteratorHelper-fef4fa7d.cjs.prod.js +0 -145
- package/dist/getSitemapTree-873f7266.cjs.prod.js +0 -743
- package/dist/getSitemapTree-b6161fd8.esm.js +0 -717
- package/dist/getSitemapTree-be70d9fc.cjs.dev.js +0 -743
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-87a33eff.cjs.dev.js');
|
|
5
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-f2d7ac6d.cjs.dev.js');
|
|
7
6
|
var yaml = require('yaml');
|
|
8
|
-
var acquireTypes = require('../../dist/acquireTypes-
|
|
9
|
-
var
|
|
7
|
+
var acquireTypes = require('../../dist/acquireTypes-c9e757a1.cjs.dev.js');
|
|
8
|
+
var wrapNativeSuper = require('../../dist/wrapNativeSuper-933f991e.cjs.dev.js');
|
|
9
|
+
var proposalProject = require('../../dist/proposalProject-81fee08f.cjs.dev.js');
|
|
10
10
|
|
|
11
11
|
function _regeneratorValues(e) {
|
|
12
12
|
if (null != e) {
|
|
@@ -141,12 +141,12 @@ function isTypeScript(value) {
|
|
|
141
141
|
/** A TypeScript that does not have what a typecheck needs. */
|
|
142
142
|
var CompilerError = /*#__PURE__*/function (_Error) {
|
|
143
143
|
function CompilerError() {
|
|
144
|
-
|
|
145
|
-
return
|
|
144
|
+
wrapNativeSuper._classCallCheck(this, CompilerError);
|
|
145
|
+
return wrapNativeSuper._callSuper(this, CompilerError, arguments);
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
return
|
|
149
|
-
}(/*#__PURE__*/
|
|
147
|
+
wrapNativeSuper._inherits(CompilerError, _Error);
|
|
148
|
+
return wrapNativeSuper._createClass(CompilerError);
|
|
149
|
+
}(/*#__PURE__*/wrapNativeSuper._wrapNativeSuper(Error));
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Evaluates `lib/typescript.js` and returns its API.
|
|
@@ -427,10 +427,10 @@ function typecheckProject(_x) {
|
|
|
427
427
|
return _typecheckProject.apply(this, arguments);
|
|
428
428
|
}
|
|
429
429
|
function _typecheckProject() {
|
|
430
|
-
_typecheckProject =
|
|
430
|
+
_typecheckProject = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(input) {
|
|
431
431
|
var _input$onProgress;
|
|
432
432
|
var started, progress, layoutStarted, _layoutOf, layout, layoutMs, compilerStarted, wanted, choice, compiler, source, ts, compilerMs, fs, _i2, _Object$entries, _Object$entries$_i, path, text, projectFiles, _i3, _Object$entries2, _Object$entries2$_i, _path, _text, absolute, typesStarted, configs, acquisition, reportFetching, _iterator3, _step3, _config$options$types, config, dir, _iterator5, _step5, name, _text2, _iterator6, _step6, types, jsxSource, registry, rounds, _loop, typesMs, checkStarted, errors, programs, _iterator4, _step4, _config2, service, program, found, sourceFiles, checkMs, stats, _t, _t2;
|
|
433
|
-
return
|
|
433
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
434
434
|
while (1) switch (_context2.p = _context2.n) {
|
|
435
435
|
case 0:
|
|
436
436
|
started = performance.now();
|
|
@@ -493,7 +493,7 @@ function _typecheckProject() {
|
|
|
493
493
|
compilerMs = elapsed(compilerStarted);
|
|
494
494
|
fs = new acquireTypes.LinkedFileSystem(layout.links);
|
|
495
495
|
for (_i2 = 0, _Object$entries = Object.entries(compiler.files); _i2 < _Object$entries.length; _i2++) {
|
|
496
|
-
_Object$entries$_i =
|
|
496
|
+
_Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i2], 2), path = _Object$entries$_i[0], text = _Object$entries$_i[1];
|
|
497
497
|
if (path.startsWith("lib/") && path.endsWith(".d.ts")) {
|
|
498
498
|
fs.writeFile("".concat(COMPILER_ROOT, "/").concat(path), text);
|
|
499
499
|
}
|
|
@@ -505,7 +505,7 @@ function _typecheckProject() {
|
|
|
505
505
|
_context2.n = 11;
|
|
506
506
|
break;
|
|
507
507
|
}
|
|
508
|
-
_Object$entries2$_i =
|
|
508
|
+
_Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i3], 2), _path = _Object$entries2$_i[0], _text = _Object$entries2$_i[1];
|
|
509
509
|
absolute = acquireTypes.normalizePath("".concat(PROJECT_ROOT, "/").concat(_path));
|
|
510
510
|
if (!absolute.includes("/node_modules/")) {
|
|
511
511
|
_context2.n = 9;
|
|
@@ -578,9 +578,9 @@ function _typecheckProject() {
|
|
|
578
578
|
*/
|
|
579
579
|
registry = ts.createDocumentRegistry(true, PROJECT_ROOT);
|
|
580
580
|
rounds = 0;
|
|
581
|
-
_loop = /*#__PURE__*/
|
|
581
|
+
_loop = /*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _loop() {
|
|
582
582
|
var looked, _iterator7, _step7, _config, _iterator8, _step8, _dir;
|
|
583
|
-
return
|
|
583
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
584
584
|
while (1) switch (_context.n) {
|
|
585
585
|
case 0:
|
|
586
586
|
looked = new Set();
|
|
@@ -786,15 +786,15 @@ function isTextFiles(value) {
|
|
|
786
786
|
var AnswerError = /*#__PURE__*/function (_Error) {
|
|
787
787
|
function AnswerError(statusCode, message, body) {
|
|
788
788
|
var _this;
|
|
789
|
-
|
|
790
|
-
_this =
|
|
789
|
+
wrapNativeSuper._classCallCheck(this, AnswerError);
|
|
790
|
+
_this = wrapNativeSuper._callSuper(this, AnswerError, [message]);
|
|
791
791
|
_this.statusCode = statusCode;
|
|
792
792
|
_this.body = body;
|
|
793
793
|
return _this;
|
|
794
794
|
}
|
|
795
|
-
|
|
796
|
-
return
|
|
797
|
-
}(/*#__PURE__*/
|
|
795
|
+
wrapNativeSuper._inherits(AnswerError, _Error);
|
|
796
|
+
return wrapNativeSuper._createClass(AnswerError);
|
|
797
|
+
}(/*#__PURE__*/wrapNativeSuper._wrapNativeSuper(Error));
|
|
798
798
|
/** Not now: a timeout, too many requests, a server or gateway error. */
|
|
799
799
|
var isTransient = function isTransient(status) {
|
|
800
800
|
return status >= 500 || status === 408 || status === 429;
|
|
@@ -824,9 +824,9 @@ function getJson(_x, _x2, _x3) {
|
|
|
824
824
|
}
|
|
825
825
|
/** `fetch` as the caller's global has it, when no other is given. */
|
|
826
826
|
function _getJson() {
|
|
827
|
-
_getJson =
|
|
827
|
+
_getJson = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee4(fetchImpl, url, init) {
|
|
828
828
|
var res, text, parsed, message;
|
|
829
|
-
return
|
|
829
|
+
return createForOfIteratorHelper._regenerator().w(function (_context4) {
|
|
830
830
|
while (1) switch (_context4.n) {
|
|
831
831
|
case 0:
|
|
832
832
|
_context4.n = 1;
|
|
@@ -878,9 +878,9 @@ function adeptSources(options) {
|
|
|
878
878
|
headers: options.headers
|
|
879
879
|
} : {});
|
|
880
880
|
var get = /*#__PURE__*/function () {
|
|
881
|
-
var _ref =
|
|
881
|
+
var _ref = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(url, what) {
|
|
882
882
|
var _t;
|
|
883
|
-
return
|
|
883
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
884
884
|
while (1) switch (_context.p = _context.n) {
|
|
885
885
|
case 0:
|
|
886
886
|
_context.p = 0;
|
|
@@ -902,9 +902,9 @@ function adeptSources(options) {
|
|
|
902
902
|
};
|
|
903
903
|
}();
|
|
904
904
|
var fetchCompiler = /*#__PURE__*/function () {
|
|
905
|
-
var _ref2 =
|
|
905
|
+
var _ref2 = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2(url, version) {
|
|
906
906
|
var what, answer;
|
|
907
|
-
return
|
|
907
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
908
908
|
while (1) switch (_context2.n) {
|
|
909
909
|
case 0:
|
|
910
910
|
what = "TypeScript ".concat(version);
|
|
@@ -931,9 +931,9 @@ function adeptSources(options) {
|
|
|
931
931
|
}();
|
|
932
932
|
return {
|
|
933
933
|
types: function types(pkg) {
|
|
934
|
-
return
|
|
934
|
+
return createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee3() {
|
|
935
935
|
var what, query, answer, stubs;
|
|
936
|
-
return
|
|
936
|
+
return createForOfIteratorHelper._regenerator().w(function (_context3) {
|
|
937
937
|
while (1) switch (_context3.n) {
|
|
938
938
|
case 0:
|
|
939
939
|
what = "The types of ".concat(pkg.name, "@").concat(pkg.version);
|
|
@@ -1035,10 +1035,10 @@ function runProposalTypecheck(_x) {
|
|
|
1035
1035
|
|
|
1036
1036
|
/** New errors by file, each file's in order: how the dialog lists them. */
|
|
1037
1037
|
function _runProposalTypecheck() {
|
|
1038
|
-
_runProposalTypecheck =
|
|
1038
|
+
_runProposalTypecheck = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2(deps) {
|
|
1039
1039
|
var _deps$onStep, _yield$deps$siteSourc, _ref7, _recorded$WORKSPACE, _project$LOCKFILE, _project$WORKSPACE, _base$errors;
|
|
1040
1040
|
var read, inputs, site, recorded, computed, baseLockfile, baseWorkspace, withoutLockfile, project, checkOne, next, base, errors, typecheck, _t, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9;
|
|
1041
|
-
return
|
|
1041
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
1042
1042
|
while (1) switch (_context2.n) {
|
|
1043
1043
|
case 0:
|
|
1044
1044
|
(_deps$onStep = deps.onStep) === null || _deps$onStep === void 0 || _deps$onStep.call(deps, {
|
|
@@ -1085,10 +1085,10 @@ function _runProposalTypecheck() {
|
|
|
1085
1085
|
recorded = _context2.v;
|
|
1086
1086
|
computed = null;
|
|
1087
1087
|
baseLockfile = /*#__PURE__*/function () {
|
|
1088
|
-
var _ref5 =
|
|
1088
|
+
var _ref5 = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee() {
|
|
1089
1089
|
var _ref6, _recorded$LOCKFILE, _deps$onStep2;
|
|
1090
1090
|
var lockfile, packageJson;
|
|
1091
|
-
return
|
|
1091
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
1092
1092
|
while (1) switch (_context.n) {
|
|
1093
1093
|
case 0:
|
|
1094
1094
|
lockfile = (_ref6 = (_recorded$LOCKFILE = recorded[LOCKFILE]) !== null && _recorded$LOCKFILE !== void 0 ? _recorded$LOCKFILE : site[LOCKFILE]) !== null && _ref6 !== void 0 ? _ref6 : computed;
|
|
@@ -1223,9 +1223,9 @@ function errorsByFile(errors) {
|
|
|
1223
1223
|
_iterator.f();
|
|
1224
1224
|
}
|
|
1225
1225
|
return createForOfIteratorHelper._toConsumableArray(files).sort(function (_ref, _ref2) {
|
|
1226
|
-
var _ref3 =
|
|
1226
|
+
var _ref3 = createForOfIteratorHelper._slicedToArray(_ref, 1),
|
|
1227
1227
|
a = _ref3[0];
|
|
1228
|
-
var _ref4 =
|
|
1228
|
+
var _ref4 = createForOfIteratorHelper._slicedToArray(_ref2, 1),
|
|
1229
1229
|
b = _ref4[0];
|
|
1230
1230
|
return a.localeCompare(b);
|
|
1231
1231
|
});
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-fef4fa7d.cjs.prod.js');
|
|
5
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-9ca2078d.cjs.prod.js');
|
|
7
6
|
var yaml = require('yaml');
|
|
8
|
-
var acquireTypes = require('../../dist/acquireTypes-
|
|
9
|
-
var
|
|
7
|
+
var acquireTypes = require('../../dist/acquireTypes-6250a305.cjs.prod.js');
|
|
8
|
+
var wrapNativeSuper = require('../../dist/wrapNativeSuper-8673414f.cjs.prod.js');
|
|
9
|
+
var proposalProject = require('../../dist/proposalProject-76caa377.cjs.prod.js');
|
|
10
10
|
|
|
11
11
|
function _regeneratorValues(e) {
|
|
12
12
|
if (null != e) {
|
|
@@ -141,12 +141,12 @@ function isTypeScript(value) {
|
|
|
141
141
|
/** A TypeScript that does not have what a typecheck needs. */
|
|
142
142
|
var CompilerError = /*#__PURE__*/function (_Error) {
|
|
143
143
|
function CompilerError() {
|
|
144
|
-
|
|
145
|
-
return
|
|
144
|
+
wrapNativeSuper._classCallCheck(this, CompilerError);
|
|
145
|
+
return wrapNativeSuper._callSuper(this, CompilerError, arguments);
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
return
|
|
149
|
-
}(/*#__PURE__*/
|
|
147
|
+
wrapNativeSuper._inherits(CompilerError, _Error);
|
|
148
|
+
return wrapNativeSuper._createClass(CompilerError);
|
|
149
|
+
}(/*#__PURE__*/wrapNativeSuper._wrapNativeSuper(Error));
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Evaluates `lib/typescript.js` and returns its API.
|
|
@@ -427,10 +427,10 @@ function typecheckProject(_x) {
|
|
|
427
427
|
return _typecheckProject.apply(this, arguments);
|
|
428
428
|
}
|
|
429
429
|
function _typecheckProject() {
|
|
430
|
-
_typecheckProject =
|
|
430
|
+
_typecheckProject = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(input) {
|
|
431
431
|
var _input$onProgress;
|
|
432
432
|
var started, progress, layoutStarted, _layoutOf, layout, layoutMs, compilerStarted, wanted, choice, compiler, source, ts, compilerMs, fs, _i2, _Object$entries, _Object$entries$_i, path, text, projectFiles, _i3, _Object$entries2, _Object$entries2$_i, _path, _text, absolute, typesStarted, configs, acquisition, reportFetching, _iterator3, _step3, _config$options$types, config, dir, _iterator5, _step5, name, _text2, _iterator6, _step6, types, jsxSource, registry, rounds, _loop, typesMs, checkStarted, errors, programs, _iterator4, _step4, _config2, service, program, found, sourceFiles, checkMs, stats, _t, _t2;
|
|
433
|
-
return
|
|
433
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
434
434
|
while (1) switch (_context2.p = _context2.n) {
|
|
435
435
|
case 0:
|
|
436
436
|
started = performance.now();
|
|
@@ -493,7 +493,7 @@ function _typecheckProject() {
|
|
|
493
493
|
compilerMs = elapsed(compilerStarted);
|
|
494
494
|
fs = new acquireTypes.LinkedFileSystem(layout.links);
|
|
495
495
|
for (_i2 = 0, _Object$entries = Object.entries(compiler.files); _i2 < _Object$entries.length; _i2++) {
|
|
496
|
-
_Object$entries$_i =
|
|
496
|
+
_Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i2], 2), path = _Object$entries$_i[0], text = _Object$entries$_i[1];
|
|
497
497
|
if (path.startsWith("lib/") && path.endsWith(".d.ts")) {
|
|
498
498
|
fs.writeFile("".concat(COMPILER_ROOT, "/").concat(path), text);
|
|
499
499
|
}
|
|
@@ -505,7 +505,7 @@ function _typecheckProject() {
|
|
|
505
505
|
_context2.n = 11;
|
|
506
506
|
break;
|
|
507
507
|
}
|
|
508
|
-
_Object$entries2$_i =
|
|
508
|
+
_Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i3], 2), _path = _Object$entries2$_i[0], _text = _Object$entries2$_i[1];
|
|
509
509
|
absolute = acquireTypes.normalizePath("".concat(PROJECT_ROOT, "/").concat(_path));
|
|
510
510
|
if (!absolute.includes("/node_modules/")) {
|
|
511
511
|
_context2.n = 9;
|
|
@@ -578,9 +578,9 @@ function _typecheckProject() {
|
|
|
578
578
|
*/
|
|
579
579
|
registry = ts.createDocumentRegistry(true, PROJECT_ROOT);
|
|
580
580
|
rounds = 0;
|
|
581
|
-
_loop = /*#__PURE__*/
|
|
581
|
+
_loop = /*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _loop() {
|
|
582
582
|
var looked, _iterator7, _step7, _config, _iterator8, _step8, _dir;
|
|
583
|
-
return
|
|
583
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
584
584
|
while (1) switch (_context.n) {
|
|
585
585
|
case 0:
|
|
586
586
|
looked = new Set();
|
|
@@ -786,15 +786,15 @@ function isTextFiles(value) {
|
|
|
786
786
|
var AnswerError = /*#__PURE__*/function (_Error) {
|
|
787
787
|
function AnswerError(statusCode, message, body) {
|
|
788
788
|
var _this;
|
|
789
|
-
|
|
790
|
-
_this =
|
|
789
|
+
wrapNativeSuper._classCallCheck(this, AnswerError);
|
|
790
|
+
_this = wrapNativeSuper._callSuper(this, AnswerError, [message]);
|
|
791
791
|
_this.statusCode = statusCode;
|
|
792
792
|
_this.body = body;
|
|
793
793
|
return _this;
|
|
794
794
|
}
|
|
795
|
-
|
|
796
|
-
return
|
|
797
|
-
}(/*#__PURE__*/
|
|
795
|
+
wrapNativeSuper._inherits(AnswerError, _Error);
|
|
796
|
+
return wrapNativeSuper._createClass(AnswerError);
|
|
797
|
+
}(/*#__PURE__*/wrapNativeSuper._wrapNativeSuper(Error));
|
|
798
798
|
/** Not now: a timeout, too many requests, a server or gateway error. */
|
|
799
799
|
var isTransient = function isTransient(status) {
|
|
800
800
|
return status >= 500 || status === 408 || status === 429;
|
|
@@ -824,9 +824,9 @@ function getJson(_x, _x2, _x3) {
|
|
|
824
824
|
}
|
|
825
825
|
/** `fetch` as the caller's global has it, when no other is given. */
|
|
826
826
|
function _getJson() {
|
|
827
|
-
_getJson =
|
|
827
|
+
_getJson = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee4(fetchImpl, url, init) {
|
|
828
828
|
var res, text, parsed, message;
|
|
829
|
-
return
|
|
829
|
+
return createForOfIteratorHelper._regenerator().w(function (_context4) {
|
|
830
830
|
while (1) switch (_context4.n) {
|
|
831
831
|
case 0:
|
|
832
832
|
_context4.n = 1;
|
|
@@ -878,9 +878,9 @@ function adeptSources(options) {
|
|
|
878
878
|
headers: options.headers
|
|
879
879
|
} : {});
|
|
880
880
|
var get = /*#__PURE__*/function () {
|
|
881
|
-
var _ref =
|
|
881
|
+
var _ref = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(url, what) {
|
|
882
882
|
var _t;
|
|
883
|
-
return
|
|
883
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
884
884
|
while (1) switch (_context.p = _context.n) {
|
|
885
885
|
case 0:
|
|
886
886
|
_context.p = 0;
|
|
@@ -902,9 +902,9 @@ function adeptSources(options) {
|
|
|
902
902
|
};
|
|
903
903
|
}();
|
|
904
904
|
var fetchCompiler = /*#__PURE__*/function () {
|
|
905
|
-
var _ref2 =
|
|
905
|
+
var _ref2 = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2(url, version) {
|
|
906
906
|
var what, answer;
|
|
907
|
-
return
|
|
907
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
908
908
|
while (1) switch (_context2.n) {
|
|
909
909
|
case 0:
|
|
910
910
|
what = "TypeScript ".concat(version);
|
|
@@ -931,9 +931,9 @@ function adeptSources(options) {
|
|
|
931
931
|
}();
|
|
932
932
|
return {
|
|
933
933
|
types: function types(pkg) {
|
|
934
|
-
return
|
|
934
|
+
return createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee3() {
|
|
935
935
|
var what, query, answer, stubs;
|
|
936
|
-
return
|
|
936
|
+
return createForOfIteratorHelper._regenerator().w(function (_context3) {
|
|
937
937
|
while (1) switch (_context3.n) {
|
|
938
938
|
case 0:
|
|
939
939
|
what = "The types of ".concat(pkg.name, "@").concat(pkg.version);
|
|
@@ -1035,10 +1035,10 @@ function runProposalTypecheck(_x) {
|
|
|
1035
1035
|
|
|
1036
1036
|
/** New errors by file, each file's in order: how the dialog lists them. */
|
|
1037
1037
|
function _runProposalTypecheck() {
|
|
1038
|
-
_runProposalTypecheck =
|
|
1038
|
+
_runProposalTypecheck = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2(deps) {
|
|
1039
1039
|
var _deps$onStep, _yield$deps$siteSourc, _ref7, _recorded$WORKSPACE, _project$LOCKFILE, _project$WORKSPACE, _base$errors;
|
|
1040
1040
|
var read, inputs, site, recorded, computed, baseLockfile, baseWorkspace, withoutLockfile, project, checkOne, next, base, errors, typecheck, _t, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9;
|
|
1041
|
-
return
|
|
1041
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
1042
1042
|
while (1) switch (_context2.n) {
|
|
1043
1043
|
case 0:
|
|
1044
1044
|
(_deps$onStep = deps.onStep) === null || _deps$onStep === void 0 || _deps$onStep.call(deps, {
|
|
@@ -1085,10 +1085,10 @@ function _runProposalTypecheck() {
|
|
|
1085
1085
|
recorded = _context2.v;
|
|
1086
1086
|
computed = null;
|
|
1087
1087
|
baseLockfile = /*#__PURE__*/function () {
|
|
1088
|
-
var _ref5 =
|
|
1088
|
+
var _ref5 = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee() {
|
|
1089
1089
|
var _ref6, _recorded$LOCKFILE, _deps$onStep2;
|
|
1090
1090
|
var lockfile, packageJson;
|
|
1091
|
-
return
|
|
1091
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
1092
1092
|
while (1) switch (_context.n) {
|
|
1093
1093
|
case 0:
|
|
1094
1094
|
lockfile = (_ref6 = (_recorded$LOCKFILE = recorded[LOCKFILE]) !== null && _recorded$LOCKFILE !== void 0 ? _recorded$LOCKFILE : site[LOCKFILE]) !== null && _ref6 !== void 0 ? _ref6 : computed;
|
|
@@ -1223,9 +1223,9 @@ function errorsByFile(errors) {
|
|
|
1223
1223
|
_iterator.f();
|
|
1224
1224
|
}
|
|
1225
1225
|
return createForOfIteratorHelper._toConsumableArray(files).sort(function (_ref, _ref2) {
|
|
1226
|
-
var _ref3 =
|
|
1226
|
+
var _ref3 = createForOfIteratorHelper._slicedToArray(_ref, 1),
|
|
1227
1227
|
a = _ref3[0];
|
|
1228
|
-
var _ref4 =
|
|
1228
|
+
var _ref4 = createForOfIteratorHelper._slicedToArray(_ref2, 1),
|
|
1229
1229
|
b = _ref4[0];
|
|
1230
1230
|
return a.localeCompare(b);
|
|
1231
1231
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as _createForOfIteratorHelper, _ as _typeof, a as _objectSpread2, b as _toConsumableArray } from '../../dist/createForOfIteratorHelper-666a6d17.esm.js';
|
|
1
|
+
import { f as _createForOfIteratorHelper, _ as _typeof, d as _objectSpread2, b as _asyncToGenerator, c as _regenerator, e as _toConsumableArray, a as _slicedToArray } from '../../dist/createForOfIteratorHelper-9b80f1a2.esm.js';
|
|
3
2
|
import { parse } from 'yaml';
|
|
4
|
-
import { p as parsePnpmLockfile, c as computePnpmLayout, l as layoutOptionsOfWorkspace, a as packageDirOf, T as TypeAcquisition, b as parentOf, n as normalizePath, L as LinkedFileSystem, S as SourceError } from '../../dist/acquireTypes-
|
|
5
|
-
export { e as LockfileError, S as SourceError, U as UnsupportedLayoutError, d as packageNameOf, t as typesPackageOf } from '../../dist/acquireTypes-
|
|
6
|
-
import {
|
|
3
|
+
import { p as parsePnpmLockfile, c as computePnpmLayout, l as layoutOptionsOfWorkspace, a as packageDirOf, T as TypeAcquisition, b as parentOf, n as normalizePath, L as LinkedFileSystem, S as SourceError } from '../../dist/acquireTypes-c2227b23.esm.js';
|
|
4
|
+
export { e as LockfileError, S as SourceError, U as UnsupportedLayoutError, d as packageNameOf, t as typesPackageOf } from '../../dist/acquireTypes-c2227b23.esm.js';
|
|
5
|
+
import { _ as _inherits, a as _createClass, b as _wrapNativeSuper, c as _classCallCheck, d as _callSuper } from '../../dist/wrapNativeSuper-639b12b7.esm.js';
|
|
6
|
+
import { p as proposalProject } from '../../dist/proposalProject-5da177d5.esm.js';
|
|
7
7
|
|
|
8
8
|
function _regeneratorValues(e) {
|
|
9
9
|
if (null != e) {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var createForOfIteratorHelper = require('../../../dist/createForOfIteratorHelper-87a33eff.cjs.dev.js');
|
|
5
|
+
var createForOfIteratorHelper = require('../../../dist/createForOfIteratorHelper-f2d7ac6d.cjs.dev.js');
|
|
7
6
|
var fs = require('node:fs');
|
|
8
7
|
var path = require('node:path');
|
|
9
|
-
var acquireTypes = require('../../../dist/acquireTypes-
|
|
8
|
+
var acquireTypes = require('../../../dist/acquireTypes-c9e757a1.cjs.dev.js');
|
|
9
|
+
require('../../../dist/wrapNativeSuper-933f991e.cjs.dev.js');
|
|
10
10
|
require('yaml');
|
|
11
11
|
|
|
12
12
|
function _interopNamespace(e) {
|
|
@@ -135,9 +135,9 @@ function nodeModulesSources(root) {
|
|
|
135
135
|
};
|
|
136
136
|
return {
|
|
137
137
|
types: function types(pkg) {
|
|
138
|
-
return
|
|
138
|
+
return createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee() {
|
|
139
139
|
var dir;
|
|
140
|
-
return
|
|
140
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
141
141
|
while (1) switch (_context.n) {
|
|
142
142
|
case 0:
|
|
143
143
|
dir = find(pkg.name, pkg.version);
|
|
@@ -153,9 +153,9 @@ function nodeModulesSources(root) {
|
|
|
153
153
|
}))();
|
|
154
154
|
},
|
|
155
155
|
compiler: function compiler(version) {
|
|
156
|
-
return
|
|
156
|
+
return createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2() {
|
|
157
157
|
var dir, lib, files, _iterator4, _step4, entry;
|
|
158
|
-
return
|
|
158
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
159
159
|
while (1) switch (_context2.n) {
|
|
160
160
|
case 0:
|
|
161
161
|
if (!(Number(version.split(".")[0]) >= 7)) {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var createForOfIteratorHelper = require('../../../dist/createForOfIteratorHelper-fef4fa7d.cjs.prod.js');
|
|
5
|
+
var createForOfIteratorHelper = require('../../../dist/createForOfIteratorHelper-9ca2078d.cjs.prod.js');
|
|
7
6
|
var fs = require('node:fs');
|
|
8
7
|
var path = require('node:path');
|
|
9
|
-
var acquireTypes = require('../../../dist/acquireTypes-
|
|
8
|
+
var acquireTypes = require('../../../dist/acquireTypes-6250a305.cjs.prod.js');
|
|
9
|
+
require('../../../dist/wrapNativeSuper-8673414f.cjs.prod.js');
|
|
10
10
|
require('yaml');
|
|
11
11
|
|
|
12
12
|
function _interopNamespace(e) {
|
|
@@ -135,9 +135,9 @@ function nodeModulesSources(root) {
|
|
|
135
135
|
};
|
|
136
136
|
return {
|
|
137
137
|
types: function types(pkg) {
|
|
138
|
-
return
|
|
138
|
+
return createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee() {
|
|
139
139
|
var dir;
|
|
140
|
-
return
|
|
140
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
141
141
|
while (1) switch (_context.n) {
|
|
142
142
|
case 0:
|
|
143
143
|
dir = find(pkg.name, pkg.version);
|
|
@@ -153,9 +153,9 @@ function nodeModulesSources(root) {
|
|
|
153
153
|
}))();
|
|
154
154
|
},
|
|
155
155
|
compiler: function compiler(version) {
|
|
156
|
-
return
|
|
156
|
+
return createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2() {
|
|
157
157
|
var dir, lib, files, _iterator4, _step4, entry;
|
|
158
|
-
return
|
|
158
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
159
159
|
while (1) switch (_context2.n) {
|
|
160
160
|
case 0:
|
|
161
161
|
if (!(Number(version.split(".")[0]) >= 7)) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as _asyncToGenerator,
|
|
2
|
-
import { b as _toConsumableArray, c as _createForOfIteratorHelper } from '../../../dist/createForOfIteratorHelper-666a6d17.esm.js';
|
|
1
|
+
import { e as _toConsumableArray, b as _asyncToGenerator, f as _createForOfIteratorHelper, c as _regenerator } from '../../../dist/createForOfIteratorHelper-9b80f1a2.esm.js';
|
|
3
2
|
import * as fs from 'node:fs';
|
|
4
3
|
import * as path from 'node:path';
|
|
5
|
-
import { S as SourceError } from '../../../dist/acquireTypes-
|
|
4
|
+
import { S as SourceError } from '../../../dist/acquireTypes-c2227b23.esm.js';
|
|
5
|
+
import '../../../dist/wrapNativeSuper-639b12b7.esm.js';
|
|
6
6
|
import 'yaml';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
function _typeof(o) {
|
|
2
|
-
"@babel/helpers - typeof";
|
|
3
|
-
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
-
return typeof o;
|
|
6
|
-
} : function (o) {
|
|
7
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
-
}, _typeof(o);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _arrayLikeToArray(r, a) {
|
|
12
|
-
(null == a || a > r.length) && (a = r.length);
|
|
13
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
14
|
-
return n;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function _arrayWithoutHoles(r) {
|
|
18
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function _iterableToArray(r) {
|
|
22
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function _unsupportedIterableToArray(r, a) {
|
|
26
|
-
if (r) {
|
|
27
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
28
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
29
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function _nonIterableSpread() {
|
|
34
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function _toConsumableArray(r) {
|
|
38
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function _toPrimitive(t, r) {
|
|
42
|
-
if ("object" != typeof t || !t) return t;
|
|
43
|
-
var e = t[Symbol.toPrimitive];
|
|
44
|
-
if (void 0 !== e) {
|
|
45
|
-
var i = e.call(t, r || "default");
|
|
46
|
-
if ("object" != typeof i) return i;
|
|
47
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
48
|
-
}
|
|
49
|
-
return ("string" === r ? String : Number)(t);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _toPropertyKey(t) {
|
|
53
|
-
var i = _toPrimitive(t, "string");
|
|
54
|
-
return "symbol" == typeof i ? i : i + "";
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function _defineProperty(e, r, t) {
|
|
58
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
59
|
-
value: t,
|
|
60
|
-
enumerable: !0,
|
|
61
|
-
configurable: !0,
|
|
62
|
-
writable: !0
|
|
63
|
-
}) : e[r] = t, e;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function ownKeys(e, r) {
|
|
67
|
-
var t = Object.keys(e);
|
|
68
|
-
if (Object.getOwnPropertySymbols) {
|
|
69
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
70
|
-
r && (o = o.filter(function (r) {
|
|
71
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
72
|
-
})), t.push.apply(t, o);
|
|
73
|
-
}
|
|
74
|
-
return t;
|
|
75
|
-
}
|
|
76
|
-
function _objectSpread2(e) {
|
|
77
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
78
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
79
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
80
|
-
_defineProperty(e, r, t[r]);
|
|
81
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
82
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
return e;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function _createForOfIteratorHelper(r, e) {
|
|
89
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
90
|
-
if (!t) {
|
|
91
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
92
|
-
t && (r = t);
|
|
93
|
-
var n = 0,
|
|
94
|
-
F = function () {};
|
|
95
|
-
return {
|
|
96
|
-
s: F,
|
|
97
|
-
n: function () {
|
|
98
|
-
return n >= r.length ? {
|
|
99
|
-
done: !0
|
|
100
|
-
} : {
|
|
101
|
-
done: !1,
|
|
102
|
-
value: r[n++]
|
|
103
|
-
};
|
|
104
|
-
},
|
|
105
|
-
e: function (r) {
|
|
106
|
-
throw r;
|
|
107
|
-
},
|
|
108
|
-
f: F
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
112
|
-
}
|
|
113
|
-
var o,
|
|
114
|
-
a = !0,
|
|
115
|
-
u = !1;
|
|
116
|
-
return {
|
|
117
|
-
s: function () {
|
|
118
|
-
t = t.call(r);
|
|
119
|
-
},
|
|
120
|
-
n: function () {
|
|
121
|
-
var r = t.next();
|
|
122
|
-
return a = r.done, r;
|
|
123
|
-
},
|
|
124
|
-
e: function (r) {
|
|
125
|
-
u = !0, o = r;
|
|
126
|
-
},
|
|
127
|
-
f: function () {
|
|
128
|
-
try {
|
|
129
|
-
a || null == t.return || t.return();
|
|
130
|
-
} finally {
|
|
131
|
-
if (u) throw o;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export { _typeof as _, _objectSpread2 as a, _toConsumableArray as b, _createForOfIteratorHelper as c, _defineProperty as d, _toPropertyKey as e, _unsupportedIterableToArray as f };
|