@arcgis/api-extractor 5.1.0-next.52 → 5.1.0-next.53
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/ApiExtractor-DvES7pD9.js +2664 -0
- package/dist/extractor/ApiExtractor.js +3 -3
- package/dist/extractor/config.js +2 -2
- package/dist/typeScript-5ydPtCjq.js +64 -0
- package/dist/vite/plugin.js +3 -3
- package/dist/vite/typeScript.js +1 -1
- package/dist/worker-atezcblo.js +3682 -0
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../typeScript-
|
|
2
|
-
import "../worker-
|
|
1
|
+
import "../typeScript-5ydPtCjq.js";
|
|
2
|
+
import "../worker-atezcblo.js";
|
|
3
3
|
import "./processing/links.js";
|
|
4
4
|
import "typescript";
|
|
5
|
-
import { A as x } from "../ApiExtractor-
|
|
5
|
+
import { A as x } from "../ApiExtractor-DvES7pD9.js";
|
|
6
6
|
import "@arcgis/toolkit/function";
|
|
7
7
|
export {
|
|
8
8
|
x as ApiExtractor
|
package/dist/extractor/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@arcgis/components-build-utils";
|
|
2
|
-
import "../typeScript-
|
|
3
|
-
import { l as n, m as A, r as C } from "../worker-
|
|
2
|
+
import "../typeScript-5ydPtCjq.js";
|
|
3
|
+
import { l as n, m as A, r as C } from "../worker-atezcblo.js";
|
|
4
4
|
import "./processing/links.js";
|
|
5
5
|
import "typescript";
|
|
6
6
|
import "fs/promises";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { findPath as v, path as C, toSystemPathSeparators as y } from "@arcgis/components-build-utils";
|
|
2
|
+
import t from "typescript";
|
|
3
|
+
import E, { supportsColorStderr as S } from "chalk";
|
|
4
|
+
import { styleText as w } from "util";
|
|
5
|
+
const P = "@arcgis/api-extractor", D = "5.1.0-next.53", N = {
|
|
6
|
+
name: P,
|
|
7
|
+
version: D
|
|
8
|
+
};
|
|
9
|
+
let u;
|
|
10
|
+
function A(o) {
|
|
11
|
+
return u ??= t.createPrinter(), u.printNode(t.EmitHint.Unspecified, o, void 0);
|
|
12
|
+
}
|
|
13
|
+
function F(o, r) {
|
|
14
|
+
return o.pos !== -1 && o.end !== -1 && r !== void 0 ? o.getText(r) : A(o);
|
|
15
|
+
}
|
|
16
|
+
const p = N.name, g = {
|
|
17
|
+
getCurrentDirectory: process.cwd,
|
|
18
|
+
getCanonicalFileName: (o) => o,
|
|
19
|
+
getNewLine: () => t.sys.newLine
|
|
20
|
+
}, W = function(o, { file: r, node: n, scope: s, start: i, length: c }) {
|
|
21
|
+
this.errorCount += 1, process.exitCode = 1, i ??= n === void 0 || n.pos === -1 ? -1 : n.getStart(r, !1);
|
|
22
|
+
const a = n?.end ?? -1;
|
|
23
|
+
c ??= a === -1 ? -1 : Math.max(1, a - i);
|
|
24
|
+
const e = i >= 0 && c >= 0, d = !e && s !== void 0, f = {
|
|
25
|
+
category: t.DiagnosticCategory.Error,
|
|
26
|
+
code: e ? p : x,
|
|
27
|
+
file: d ? void 0 : r,
|
|
28
|
+
start: e ? i : 0,
|
|
29
|
+
length: e ? c : 0,
|
|
30
|
+
messageText: (d ? `${E.cyan(s)}: ` : "") + o + (e || n === void 0 ? "" : `
|
|
31
|
+
|
|
32
|
+
${F(n, r)}`)
|
|
33
|
+
}, l = t.formatDiagnosticsWithColorAndContext([f], g), m = S ? l : l.replaceAll($, ""), h = e ? m : m.replace(x.toString(), p);
|
|
34
|
+
this.config.context.logger.error(h);
|
|
35
|
+
}, x = 1490, $ = /\x1B\[[0-9;]*m/gu, J = w("cyan", `[${p}] `);
|
|
36
|
+
function U(o = process.cwd(), r, n) {
|
|
37
|
+
const s = r === void 0 ? v("tsconfig.json", o) : C.resolve(o, r);
|
|
38
|
+
if (s === void 0)
|
|
39
|
+
throw Error(
|
|
40
|
+
`Unable to find ${y(String(r))}. Please make sure the file exists, or provide types.tsconfigPath option to useLumina()`
|
|
41
|
+
);
|
|
42
|
+
const i = t.readConfigFile(s, t.sys.readFile);
|
|
43
|
+
if (i.error !== void 0)
|
|
44
|
+
throw Error(t.formatDiagnosticsWithColorAndContext([i.error], g));
|
|
45
|
+
const c = i.config, a = n ? c : {
|
|
46
|
+
...c,
|
|
47
|
+
include: [],
|
|
48
|
+
files: [],
|
|
49
|
+
exclude: []
|
|
50
|
+
}, e = t.parseJsonConfigFileContent(a, t.sys, C.dirname(s)), d = 18002, f = n ? e.errors : e.errors.filter((l) => l.code !== d);
|
|
51
|
+
if (f.length > 0)
|
|
52
|
+
throw Error(t.formatDiagnosticsWithColorAndContext(f, g));
|
|
53
|
+
return {
|
|
54
|
+
configPath: s,
|
|
55
|
+
config: e
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
g as a,
|
|
60
|
+
U as b,
|
|
61
|
+
W as e,
|
|
62
|
+
J as l,
|
|
63
|
+
N as p
|
|
64
|
+
};
|
package/dist/vite/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as O, m as J } from "../worker-
|
|
2
|
-
import { A as S, w as T } from "../ApiExtractor-
|
|
3
|
-
import { p as A, l as C } from "../typeScript-
|
|
1
|
+
import { l as O, m as J } from "../worker-atezcblo.js";
|
|
2
|
+
import { A as S, w as T } from "../ApiExtractor-DvES7pD9.js";
|
|
3
|
+
import { p as A, l as C } from "../typeScript-5ydPtCjq.js";
|
|
4
4
|
import { writeFile as M } from "node:fs/promises";
|
|
5
5
|
import { path as w } from "@arcgis/components-build-utils";
|
|
6
6
|
const N = A.name;
|