@arcgis/api-extractor 5.0.0-next.71 → 5.0.0-next.72
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/diffTypes/index.js +16 -16
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/diffTypes/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { path as
|
|
1
|
+
import { path as r, sh as c } from "@arcgis/components-build-utils";
|
|
2
2
|
import { mkdir as d, writeFile as m } from "node:fs/promises";
|
|
3
|
-
const a = "diff --
|
|
3
|
+
const a = "diff --new-file --recursive", u = `${a} --unified=2`;
|
|
4
4
|
async function I({
|
|
5
5
|
originalDtsPath: t,
|
|
6
6
|
newDtsPath: n,
|
|
7
7
|
outputMdPath: e = "types-diff.md",
|
|
8
8
|
truncate: i = !0
|
|
9
9
|
}) {
|
|
10
|
-
n =
|
|
11
|
-
const
|
|
10
|
+
n = r.join(r.resolve(n), "/");
|
|
11
|
+
const s = c(`${u} ${t} ${n} || true`);
|
|
12
12
|
let o = "";
|
|
13
|
-
if (
|
|
13
|
+
if (s.length === 0)
|
|
14
14
|
console.log("Public types did not change.");
|
|
15
15
|
else {
|
|
16
16
|
o = `### Public types changes
|
|
@@ -18,18 +18,18 @@ async function I({
|
|
|
18
18
|
🧐 please verify that the changes to the public API/doc below are intentional.
|
|
19
19
|
🟥 If removing/changing APIs, remember the semver promise.
|
|
20
20
|
🟩 If adding APIs, add to release notes.`;
|
|
21
|
-
let
|
|
21
|
+
let l = h(s.split(`
|
|
22
22
|
`), n);
|
|
23
|
-
i &&
|
|
24
|
-
> Too many changes. Only displaying the first ${f} lines (total ${
|
|
23
|
+
i && l.length > f && (o += `> [!WARNING]
|
|
24
|
+
> Too many changes. Only displaying the first ${f} lines (total ${l.length}) of the diff. If you need to see complete diff, re-run this command with --no-truncate.
|
|
25
25
|
|
|
26
|
-
`,
|
|
26
|
+
`, l = l.slice(0, f)), o += `${g(l)}
|
|
27
27
|
|
|
28
28
|
`, console.log(`Wrote diff to ${e}`);
|
|
29
29
|
}
|
|
30
|
-
await d(
|
|
30
|
+
await d(r.dirname(e), { recursive: !0 }), await m(e, o);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function h(t, n) {
|
|
33
33
|
for (let e = 0; e < t.length; e++) {
|
|
34
34
|
const i = t[e];
|
|
35
35
|
if (
|
|
@@ -38,16 +38,16 @@ function u(t, n) {
|
|
|
38
38
|
i.startsWith("---") || // Not important
|
|
39
39
|
i === "\") && (t.splice(e, 1), e--), i.startsWith("+++")
|
|
40
40
|
) {
|
|
41
|
-
const
|
|
42
|
-
let o = i.slice(4,
|
|
41
|
+
const s = i.indexOf(" ");
|
|
42
|
+
let o = i.slice(4, s === -1 ? i.length : s);
|
|
43
43
|
o.startsWith(n) && (o = o.slice(n.length)), t[e] = `🟦 ${o}`;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
return t;
|
|
47
47
|
}
|
|
48
48
|
const f = 1e3;
|
|
49
|
-
function
|
|
50
|
-
const n = t.length, e =
|
|
49
|
+
function g(t) {
|
|
50
|
+
const n = t.length, e = p(t.join(`
|
|
51
51
|
`));
|
|
52
52
|
return n <= 10 ? e : `<details><summary>See diff</summary>
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ ${e}
|
|
|
55
55
|
|
|
56
56
|
</details>`;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function p(t) {
|
|
59
59
|
return `\`\`\`diff
|
|
60
60
|
${t}
|
|
61
61
|
\`\`\``;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import d from "typescript";
|
|
|
2
2
|
import $, { supportsColorStderr as z } from "chalk";
|
|
3
3
|
import { path as q } from "@arcgis/components-build-utils";
|
|
4
4
|
import { mappedFind as J } from "@arcgis/toolkit/array";
|
|
5
|
-
const j = "@arcgis/api-extractor", X = "5.0.0-next.
|
|
5
|
+
const j = "@arcgis/api-extractor", X = "5.0.0-next.72", P = {
|
|
6
6
|
name: j,
|
|
7
7
|
version: X
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/api-extractor",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.72",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"bin": "./dist/cli.js",
|
|
19
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcgis/components-build-utils": "5.0.0-next.
|
|
22
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
21
|
+
"@arcgis/components-build-utils": "5.0.0-next.72",
|
|
22
|
+
"@arcgis/toolkit": "5.0.0-next.72",
|
|
23
23
|
"@commander-js/extra-typings": "^14.0.0",
|
|
24
24
|
"chalk": "^5.4.1",
|
|
25
25
|
"commander": "^14.0.0",
|