@arcgis/api-extractor 5.2.0-next.5 → 5.2.0-next.50

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