@ohos-ports/pb33f-openapi-changes 0.2.11-beta.0

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/LICENSE ADDED
@@ -0,0 +1,203 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [2026] [Princess Beef Heavy Industries, LLC]
191
+ https://pb33f.io
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,274 @@
1
+ ![logo](openapi-changes-logo.webp)
2
+
3
+ [![discord](https://img.shields.io/discord/923258363540815912)](https://discord.gg/x7VACVuEGP)
4
+ [![GitHub downloads](https://img.shields.io/github/downloads/pb33f/openapi-changes/total?label=github%20downloads&style=flat-square)](https://github.com/pb33f/openapi-changes/releases)
5
+ [![npm](https://img.shields.io/npm/dm/@pb33f/openapi-changes?style=flat-square&label=npm%20downloads)](https://www.npmjs.com/package/@pb33f/openapi-changes)
6
+ [![Docker Pulls](https://img.shields.io/docker/pulls/pb33f/openapi-changes?style=flat-square)](https://hub.docker.com/r/pb33f/openapi-changes)
7
+
8
+ # OpenAPI Changes
9
+
10
+ ## The world's **_most powerful and complete_** OpenAPI diff tool.
11
+
12
+ `openapi-changes` lets you inspect what changed in an OpenAPI specification between two files,
13
+ between git revisions of the same file, across local git history, or directly from a GitHub-hosted file URL.
14
+
15
+ It can render the same semantic change model as:
16
+
17
+ - an interactive terminal UI
18
+ - a terminal summary
19
+ - a machine-readable JSON report
20
+ - a markdown report
21
+ - a self-contained offline HTML report
22
+
23
+ It works well for local exploration, CI/CD checks, release notes, and API review workflows.
24
+
25
+ ## How is it the 'most powerful and complete?'?
26
+
27
+ openapi-changes gives you the power to view all changes between two OpenAPI contracts, and over time in every which
28
+ way you can possibly think of. Graphs, trees, lists, diffs, JSON, mark down.
29
+
30
+ Has no network dependencies at all. Runs 100% offline, including the HTML report.
31
+
32
+ ---
33
+
34
+ ## Install with Homebrew
35
+
36
+ ```bash
37
+ brew install pb33f/taps/openapi-changes
38
+ ```
39
+
40
+ ## Install with npm or yarn
41
+
42
+ ```bash
43
+ npm i -g @pb33f/openapi-changes
44
+ ```
45
+
46
+ If you prefer yarn:
47
+
48
+ ```bash
49
+ yarn global add @pb33f/openapi-changes
50
+ ```
51
+
52
+ ## Install with cURL
53
+
54
+ ```bash
55
+ curl -fsSL https://pb33f.io/openapi-changes/install.sh | sh
56
+ ```
57
+
58
+ ## Install or run with Docker
59
+
60
+ ```bash
61
+ docker pull pb33f/openapi-changes
62
+ ```
63
+
64
+ Docker images are available for both `linux/amd64` and `linux/arm64`.
65
+
66
+ The published image configures Git to trust mounted repositories, so local git-history commands work without requiring extra `safe.directory` setup inside the container.
67
+
68
+ To run a command, mount the current working directory into the container:
69
+
70
+ ```bash
71
+ docker run --rm -v $PWD:/work:rw pb33f/openapi-changes summary . sample-specs/petstorev3.json
72
+ ```
73
+
74
+ To run the interactive `console` through Docker, allocate a TTY with `-it`:
75
+
76
+ ```bash
77
+ docker run --rm -it -v $PWD:/work:rw pb33f/openapi-changes console . path/to/openapi.yaml
78
+ ```
79
+
80
+ ## Verify the install
81
+
82
+ Print the installed version:
83
+
84
+ ```bash
85
+ openapi-changes version
86
+ ```
87
+
88
+ ---
89
+
90
+ ### Summary view
91
+
92
+ ![](./.github/assets/summary.gif)
93
+
94
+
95
+ ### A full terminal UI
96
+
97
+ Comes in multiple themes! PB33F (Dark), Roger Mode (Light) and Tektronix (Retro Dark)
98
+
99
+ ![](./.github/assets/console.gif)
100
+
101
+
102
+ ### Powerful HTML report with no rival.
103
+
104
+ A self-contained, offline HTML report with interactive timeline, change explorer graph, diff views, and more.
105
+
106
+ #### Timeline overview with change history chart
107
+
108
+ ![](./.github/assets/timeline-overview.png)
109
+
110
+ #### Interactive explorer graph
111
+
112
+ ![](./.github/assets/timline-explorer.png)
113
+
114
+ ![](./.github/assets/explorer-deletion.png)
115
+
116
+ #### Change report breakdown
117
+
118
+ ![](./.github/assets/change-report.png)
119
+
120
+ ![](./.github/assets/change-list.png)
121
+
122
+ #### Side by side, focused, unified or inline diffing
123
+
124
+ ![](./.github/assets/file-diff.png)
125
+
126
+ ![](./.github/assets/focus-diff.png)
127
+
128
+ #### Roger mode (monochrome light theme)
129
+
130
+ ![](./.github/assets/roger-mode-explorer.png)
131
+
132
+ ![](./.github/assets/roger-mode-items.png)
133
+
134
+ #### Tektronix mode (green monochrome)
135
+
136
+ ![](./.github/assets/tektronix.png)
137
+
138
+ ---
139
+
140
+ ## Comparing git revisions
141
+
142
+ Compare a file at different git revisions without checking out branches:
143
+
144
+ ```bash
145
+ openapi-changes summary HEAD~1:openapi.yaml ./openapi.yaml
146
+ openapi-changes html-report main:api/openapi.yaml feature-branch:api/openapi.yaml
147
+ ```
148
+
149
+ The `revision:path` syntax works with any git ref -- branches, tags, `HEAD~N`, commit SHAs.
150
+ The path is relative to the repository root. This works with all commands and supports
151
+ multi-file specs with `$ref` references resolved from the same revision.
152
+
153
+ ---
154
+
155
+ ## Documentation
156
+
157
+ ### [Quick Start Guide 🚀](https://pb33f.io/openapi-changes/quickstart/)
158
+
159
+ Full docs: https://pb33f.io/openapi-changes/
160
+
161
+ - [Installing openapi-changes](https://pb33f.io/openapi-changes/installing/)
162
+ - [Configuring breaking changes](https://pb33f.io/openapi-changes/configuring/)
163
+ - [Command arguments](https://pb33f.io/openapi-changes/command-arguments/)
164
+ - Commands:
165
+ - [`console`](https://pb33f.io/openapi-changes/console/)
166
+ - [`summary`](https://pb33f.io/openapi-changes/summary/)
167
+ - [`report`](https://pb33f.io/openapi-changes/report/)
168
+ - [`markdown-report`](https://pb33f.io/openapi-changes/markdown-report/)
169
+ - [`html-report`](https://pb33f.io/openapi-changes/html-report/)
170
+ - [`completion`](https://pb33f.io/openapi-changes/completion/)
171
+ - [`version`](https://pb33f.io/openapi-changes/version/)
172
+ - [About openapi-changes](https://pb33f.io/openapi-changes/about/)
173
+
174
+ ---
175
+
176
+ ## Build from source
177
+
178
+ `openapi-changes` currently requires Go `1.25.7+`.
179
+
180
+ ```bash
181
+ git clone https://github.com/pb33f/openapi-changes.git
182
+ cd openapi-changes
183
+ go build -o bin/openapi-changes .
184
+ ```
185
+
186
+ Or use `make`:
187
+
188
+ ```bash
189
+ make
190
+ ```
191
+
192
+ ---
193
+
194
+ ## Command overview
195
+
196
+ The current command surface is:
197
+
198
+ - `console` for the interactive terminal UI
199
+ - `summary` for fast terminal and CI output
200
+ - `report` for machine-readable JSON
201
+ - `markdown-report` for shareable markdown output
202
+ - `html-report` for the interactive offline browser report
203
+ - `completion` for shell completion scripts
204
+ - `version` for raw build version output
205
+
206
+ Run `openapi-changes --help` or `openapi-changes <command> --help` for the live CLI surface.
207
+
208
+ ### Terminal themes
209
+
210
+ The terminal-facing commands support multiple presentation modes:
211
+
212
+ - `--no-color` for the light Roger monochrome theme
213
+ - `--roger-mode` as an alias for `--no-color`
214
+ - `--tektronix` for the green monochrome terminal theme
215
+
216
+ See the [command arguments docs](https://pb33f.io/openapi-changes/command-arguments/) for the full shared flag set.
217
+
218
+ ---
219
+
220
+ ## Custom breaking rules configuration
221
+
222
+ `openapi-changes` supports configurable breaking-change rules via `changes-rules.yaml`.
223
+
224
+ ### Use an explicit config file
225
+
226
+ ```bash
227
+ openapi-changes summary -c my-rules.yaml old.yaml new.yaml
228
+ ```
229
+
230
+ ### Or let it auto-discover the default config file
231
+
232
+ ```bash
233
+ openapi-changes summary old.yaml new.yaml
234
+ ```
235
+
236
+ Default lookup locations:
237
+
238
+ 1. `./changes-rules.yaml`
239
+ 2. `~/.config/changes-rules.yaml`
240
+
241
+ ### Example
242
+
243
+ ```yaml
244
+ pathItem:
245
+ get:
246
+ removed: false
247
+ post:
248
+ removed: false
249
+ put:
250
+ removed: false
251
+ delete:
252
+ removed: false
253
+
254
+ schema:
255
+ enum:
256
+ removed: false
257
+
258
+ parameter:
259
+ required:
260
+ modified: false
261
+ ```
262
+
263
+ Each rule supports:
264
+
265
+ - `added`
266
+ - `modified`
267
+ - `removed`
268
+
269
+ For the full rules reference and more examples, see the
270
+ [configuration docs](https://pb33f.io/openapi-changes/configuring/).
271
+
272
+ ---
273
+
274
+ See the full docs at https://pb33f.io/openapi-changes/
Binary file
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ import { execFileSync } from "child_process";
3
+ import path from "path";
4
+ import { exit } from "process";
5
+ import { fileURLToPath } from "url";
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = path.dirname(__filename);
9
+
10
+ try {
11
+ execFileSync(path.resolve(`${__dirname}/openapi-changes`), process.argv.slice(2), {
12
+ stdio: "inherit",
13
+ });
14
+ } catch (e) {
15
+ exit(1)
16
+ }
@@ -0,0 +1,15 @@
1
+ export const CONFIG = {
2
+ name: "openapi-changes",
3
+ path: "./bin",
4
+ url: "https://github.com/pb33f/openapi-changes/releases/download/v{{version}}/{{bin_name}}_{{version}}_{{platform}}_{{arch}}.tar.gz",
5
+ };
6
+ export const ARCH_MAPPING = {
7
+ ia32: "i386",
8
+ x64: "x86_64",
9
+ arm64: "arm64",
10
+ };
11
+ export const PLATFORM_MAPPING = {
12
+ darwin: "darwin",
13
+ linux: "linux",
14
+ win32: "windows",
15
+ };
@@ -0,0 +1,93 @@
1
+ import { createWriteStream } from "fs";
2
+ import * as fs from "fs/promises";
3
+ import { pipeline } from "stream/promises";
4
+ import { execSync } from "child_process";
5
+
6
+ // Third-party dependencies (node-fetch, https-proxy-agent, tar) are loaded
7
+ // dynamically below, only on platforms that actually download the binary.
8
+ // This keeps the openharmony path working with zero npm dependencies,
9
+ // since the openapi-changes binary is pre-bundled (locally compiled) there.
10
+
11
+ // Get proxy URL from environment variables (standard convention)
12
+ function getProxyUrl() {
13
+ return process.env.HTTPS_PROXY ||
14
+ process.env.https_proxy ||
15
+ process.env.HTTP_PROXY ||
16
+ process.env.http_proxy ||
17
+ null;
18
+ }
19
+
20
+ async function install() {
21
+ if (process.platform === "openharmony") {
22
+ console.log(
23
+ "openharmony platform detected: using pre-bundled locally compiled openapi-changes binary (no GitHub download).",
24
+ );
25
+ return;
26
+ }
27
+
28
+ const [
29
+ { default: fetch },
30
+ { HttpsProxyAgent },
31
+ tar,
32
+ { ARCH_MAPPING, CONFIG, PLATFORM_MAPPING },
33
+ ] = await Promise.all([
34
+ import("node-fetch"),
35
+ import("https-proxy-agent"),
36
+ import("tar"),
37
+ import("./config.js"),
38
+ ]);
39
+
40
+ if (process.platform === "android") {
41
+ console.log("Installing, may take a moment...");
42
+ const cmd =
43
+ "pkg upgrade && pkg install golang git -y && git clone https://github.com/pb33f/openapi-changes.git && cd cli/ && go build -o $PREFIX/bin/openapi-changes";
44
+ execSync(cmd, { encoding: "utf-8" });
45
+ console.log("Installation successful!");
46
+ return;
47
+ }
48
+ const packageJson = await fs.readFile("package.json").then(JSON.parse);
49
+ let version = packageJson.version;
50
+
51
+ if (typeof version !== "string") {
52
+ throw new Error("Missing version in package.json");
53
+ }
54
+
55
+ if (version[0] === "v") version = version.slice(1);
56
+
57
+ let { name: binName, path: binPath, url } = CONFIG;
58
+
59
+ url = url.replace(/{{arch}}/g, ARCH_MAPPING[process.arch]);
60
+ url = url.replace(/{{platform}}/g, PLATFORM_MAPPING[process.platform]);
61
+ url = url.replace(/{{version}}/g, version);
62
+ url = url.replace(/{{bin_name}}/g, binName);
63
+
64
+ // Configure fetch options with proxy support
65
+ const fetchOptions = {};
66
+ const proxyUrl = getProxyUrl();
67
+ if (proxyUrl) {
68
+ console.log('Using proxy:', proxyUrl);
69
+ fetchOptions.agent = new HttpsProxyAgent(proxyUrl);
70
+ }
71
+
72
+ console.log('fetching from URL', url)
73
+ const response = await fetch(url, fetchOptions);
74
+ if (!response.ok) {
75
+ throw new Error("Failed fetching the binary: " + response.statusText);
76
+ }
77
+
78
+ const tarFile = "downloaded.tar.gz";
79
+
80
+ await fs.mkdir(binPath, { recursive: true });
81
+ await pipeline(response.body, createWriteStream(tarFile));
82
+ await tar.x({ file: tarFile, cwd: binPath });
83
+ await fs.rm(tarFile);
84
+ }
85
+
86
+ install()
87
+ .then(async () => {
88
+ process.exit(0);
89
+ })
90
+ .catch(async (err) => {
91
+ console.error(err);
92
+ process.exit(1);
93
+ });
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@ohos-ports/pb33f-openapi-changes",
3
+ "version": "0.2.11-beta.0",
4
+ "description": "The world's sexiest and most detailed OpenAPI diff/changelog tool",
5
+ "type": "module",
6
+ "author": "Princess Beef Heavy Industries",
7
+ "license": "Apache-2.0",
8
+ "homepage": "https://pb33f.io/openapi-changes/",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/ohos-ports/ohos-ports.git",
12
+ "directory": "ports/pb33f-openapi-changes/0.2.11"
13
+ },
14
+ "engines": {
15
+ "node": ">=16.0.0"
16
+ },
17
+ "scripts": {
18
+ "postinstall": "node ./npm-install/postinstall.js"
19
+ },
20
+ "bin": {
21
+ "openapi-changes": "bin/openapi-changes.js"
22
+ },
23
+ "files": [
24
+ "npm-install",
25
+ "bin"
26
+ ],
27
+ "dependencies": {
28
+ "https-proxy-agent": "^7.0.6",
29
+ "node-fetch": "^3.3.2",
30
+ "tar": "^7.5.11"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/ohos-ports/ohos-ports/issues"
34
+ },
35
+ "main": "index.js"
36
+ }