Add capacitorjs runtime

This commit is contained in:
olcxja 2026-05-03 17:09:55 +02:00
commit f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions

573
node_modules/conventional-changelog-core/CHANGELOG.md generated vendored Normal file
View file

@ -0,0 +1,573 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
### [4.2.4](https://www.github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core-v4.2.3...conventional-changelog-core-v4.2.4) (2021-09-09)
### Bug Fixes
* **conventional-commits-parser:** address CVE-2021-23425 ([#841](https://www.github.com/conventional-changelog/conventional-changelog/issues/841)) ([02b3d53](https://www.github.com/conventional-changelog/conventional-changelog/commit/02b3d53a0c142f0c28ee7d190d210c76a62887c2))
### [4.2.3](https://www.github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core-v4.2.2...conventional-changelog-core-v4.2.3) (2021-07-03)
### Bug Fixes
* **deps:** update dependency conventional-changelog-writer to v5 ([#731](https://www.github.com/conventional-changelog/conventional-changelog/issues/731)) ([b5951fb](https://www.github.com/conventional-changelog/conventional-changelog/commit/b5951fb5c58ada8d480d17213703d717acb1cd42))
* **deps:** update get-pkg-repo to ^4.0.0 ([#820](https://www.github.com/conventional-changelog/conventional-changelog/issues/820)) ([97bce29](https://www.github.com/conventional-changelog/conventional-changelog/commit/97bce29eda2494a05becd8b35bca851d36a4b403))
### [4.2.2](https://www.github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.2.1...v4.2.2) (2020-12-30)
### Bug Fixes
* **deps:** update dependency git-raw-commits to v2.0.8 ([#723](https://www.github.com/conventional-changelog/conventional-changelog/issues/723)) ([9682305](https://www.github.com/conventional-changelog/conventional-changelog/commit/968230536914a680237e830ccc8e125c56b0f0aa))
## [4.2.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.2.0...conventional-changelog-core@4.2.1) (2020-11-05)
### Bug Fixes
* **deps:** update dependency normalize-package-data to v3 ([#687](https://github.com/conventional-changelog/conventional-changelog/issues/687)) ([7b6ec0a](https://github.com/conventional-changelog/conventional-changelog/commit/7b6ec0add30915bc1569f82a007bb4d1d6df8e3e))
* **deps:** update dependency through2 to v4 ([#657](https://github.com/conventional-changelog/conventional-changelog/issues/657)) ([7ae618c](https://github.com/conventional-changelog/conventional-changelog/commit/7ae618c81491841e5b1d796d3933aac0c54bc312))
# [4.2.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.1.8...conventional-changelog-core@4.2.0) (2020-08-12)
### Features
* add support for '--skip-unstable' option ([#656](https://github.com/conventional-changelog/conventional-changelog/issues/656)) ([#656](https://github.com/conventional-changelog/conventional-changelog/issues/656)) ([0679d7a](https://github.com/conventional-changelog/conventional-changelog/commit/0679d7a1d7a8715918326f31ec3f6168c2341fd6))
## [4.1.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.1.7...conventional-changelog-core@4.1.8) (2020-06-20)
**Note:** Version bump only for package conventional-changelog-core
## [4.1.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.1.6...conventional-changelog-core@4.1.7) (2020-05-08)
**Note:** Version bump only for package conventional-changelog-core
## [4.1.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.1.2...conventional-changelog-core@4.1.6) (2020-05-08)
### Bug Fixes
* **conventional-changelog-core:** check if HEAD ref exists before using it ([#578](https://github.com/conventional-changelog/conventional-changelog/issues/578)) ([a49b19a](https://github.com/conventional-changelog/conventional-changelog/commit/a49b19a8c4b1d13559ebb02020d4f623189fae6a))
* **conventional-changelog-core:** fix duplicated commits when `from` is specified ([#573](https://github.com/conventional-changelog/conventional-changelog/issues/573)) ([287a801](https://github.com/conventional-changelog/conventional-changelog/commit/287a801ecde0a3856b6531cef53474d3a8b808b3)), closes [#567](https://github.com/conventional-changelog/conventional-changelog/issues/567)
* **conventional-changelog-core:** read current version properly when tagPrefix is provided ([#563](https://github.com/conventional-changelog/conventional-changelog/issues/563)) ([1deb63f](https://github.com/conventional-changelog/conventional-changelog/commit/1deb63fff9a07848c3964264c5ef4d082d654223)), closes [#562](https://github.com/conventional-changelog/conventional-changelog/issues/562) [#337](https://github.com/conventional-changelog/conventional-changelog/issues/337)
## [4.1.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.1.1...conventional-changelog-core@4.1.2) (2019-11-21)
### Bug Fixes
* call gitRawCommits with ranges [tag1..tag2, tag2..tag3, ..., tagX..HEAD] to make sure commits are returned in right order. ([2fba5c7](https://github.com/conventional-changelog/conventional-changelog/commit/2fba5c7a02e0e34093a6bd9a01109457db9b84c5)), closes [#408](https://github.com/conventional-changelog/conventional-changelog/issues/408)
## [4.1.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.1.0...conventional-changelog-core@4.1.1) (2019-11-14)
**Note:** Version bump only for package conventional-changelog-core
# [4.1.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.0.3...conventional-changelog-core@4.1.0) (2019-11-07)
### Features
* **conventional-changelog-core:** provide facility to define gitExecOpts. ([#480](https://github.com/conventional-changelog/conventional-changelog/issues/480)) ([814f878](https://github.com/conventional-changelog/conventional-changelog/commit/814f878054ca3c9ec00c3147478eb1e6a2762e9a))
## [4.0.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.0.2...conventional-changelog-core@4.0.3) (2019-10-24)
### Bug Fixes
* **deps:** update lodash to fix security issues ([#535](https://github.com/conventional-changelog/conventional-changelog/issues/535)) ([ac43f51](https://github.com/conventional-changelog/conventional-changelog/commit/ac43f51de1f3b597c32f7f8442917a2d06199018))
## [4.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@4.0.0...conventional-changelog-core@4.0.1) (2019-10-02)
**Note:** Version bump only for package conventional-changelog-core
# [4.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.2.3...conventional-changelog-core@4.0.0) (2019-07-29)
* refactor!: modify gitSemverTags to take options first (#390) ([dc8aeda](https://github.com/conventional-changelog/conventional-changelog/commit/dc8aeda)), closes [#390](https://github.com/conventional-changelog/conventional-changelog/issues/390)
### BREAKING CHANGES
* gitSemverTags now takes options followed by callback.
## [3.2.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.2.2...conventional-changelog-core@3.2.3) (2019-05-18)
**Note:** Version bump only for package conventional-changelog-core
## [3.2.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.2.1...conventional-changelog-core@3.2.2) (2019-04-11)
**Note:** Version bump only for package conventional-changelog-core
## [3.2.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.2.0...conventional-changelog-core@3.2.1) (2019-04-11)
**Note:** Version bump only for package conventional-changelog-core
# [3.2.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.1.6...conventional-changelog-core@3.2.0) (2019-04-10)
### Bug Fixes
* **deps:** update dependency through2 to v3 ([#392](https://github.com/conventional-changelog/conventional-changelog/issues/392)) ([26fe91f](https://github.com/conventional-changelog/conventional-changelog/commit/26fe91f))
### Features
* creating highly configurable preset, based on conventionalcommits.org ([#421](https://github.com/conventional-changelog/conventional-changelog/issues/421)) ([f2fb240](https://github.com/conventional-changelog/conventional-changelog/commit/f2fb240))
## [3.1.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.1.5...conventional-changelog-core@3.1.6) (2019-02-14)
**Note:** Version bump only for package conventional-changelog-core
## [3.1.5](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.1.4...conventional-changelog-core@3.1.5) (2018-11-01)
**Note:** Version bump only for package conventional-changelog-core
## [3.1.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.1.3...conventional-changelog-core@3.1.4) (2018-11-01)
**Note:** Version bump only for package conventional-changelog-core
## [3.1.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.1.2...conventional-changelog-core@3.1.3) (2018-11-01)
### Bug Fixes
* pin git-raw-commits until I have publication rights ([e41777c](https://github.com/conventional-changelog/conventional-changelog/commit/e41777c))
## [3.1.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.1.1...conventional-changelog-core@3.1.2) (2018-11-01)
**Note:** Version bump only for package conventional-changelog-core
## [3.1.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.1.0...conventional-changelog-core@3.1.1) (2018-11-01)
### Bug Fixes
* Upgrade to Lerna 3, fix Node.js v11 error ([#385](https://github.com/conventional-changelog/conventional-changelog/issues/385)) ([cdef282](https://github.com/conventional-changelog/conventional-changelog/commit/cdef282))
<a name="3.1.0"></a>
# [3.1.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@3.0.0...conventional-changelog-core@3.1.0) (2018-08-21)
### Features
* ability to reset changelog from scratch ([#350](https://github.com/conventional-changelog/conventional-changelog/issues/350)) ([0eea0af](https://github.com/conventional-changelog/conventional-changelog/commit/0eea0af))
<a name="3.0.0"></a>
# [3.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.11...conventional-changelog-core@3.0.0) (2018-05-29)
### Chores
* **package:** set Node requirement to oldest supported LTS ([#329](https://github.com/conventional-changelog/conventional-changelog/issues/329)) ([cae2fe0](https://github.com/conventional-changelog/conventional-changelog/commit/cae2fe0))
### BREAKING CHANGES
* **package:** Set the package's minimum required Node version to be the oldest LTS
currently supported by the Node Release working group. At this time,
that is Node 6 (which is in its Maintenance LTS phase).
<a name="2.0.11"></a>
## [2.0.11](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.10...conventional-changelog-core@2.0.11) (2018-04-16)
### Bug Fixes
* `tagPrefix` was not passed properly in conventional-changelog-core ([#300](https://github.com/conventional-changelog/conventional-changelog/issues/300)) ([be48f70](https://github.com/conventional-changelog/conventional-changelog/commit/be48f70))
<a name="2.0.10"></a>
## [2.0.10](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.9...conventional-changelog-core@2.0.10) (2018-03-28)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.9"></a>
## [2.0.9](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.8...conventional-changelog-core@2.0.9) (2018-03-27)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.8"></a>
## [2.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.7...conventional-changelog-core@2.0.8) (2018-03-27)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.7"></a>
## [2.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.6...conventional-changelog-core@2.0.7) (2018-03-27)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.6"></a>
## [2.0.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.5...conventional-changelog-core@2.0.6) (2018-03-22)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.5"></a>
## [2.0.5](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.4...conventional-changelog-core@2.0.5) (2018-02-24)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.4"></a>
## [2.0.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-core@2.0.3...conventional-changelog-core@2.0.4) (2018-02-20)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.3"></a>
## [2.0.3](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@2.0.2...conventional-changelog-core@2.0.3) (2018-02-13)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.2"></a>
## [2.0.2](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@2.0.1...conventional-changelog-core@2.0.2) (2018-02-13)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.1"></a>
## [2.0.1](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@2.0.0...conventional-changelog-core@2.0.1) (2018-02-05)
**Note:** Version bump only for package conventional-changelog-core
<a name="2.0.0"></a>
# [2.0.0](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@1.9.5...conventional-changelog-core@2.0.0) (2018-01-29)
### Bug Fixes
* **writer:** normalize release headings ([#237](https://github.com/conventional-changelog/conventional-changelog-core/issues/237)) ([9e87dc3](https://github.com/conventional-changelog/conventional-changelog-core/commit/9e87dc3)), closes [/github.com/conventional-changelog/conventional-changelog/issues/214#issuecomment-326681934](https://github.com//github.com/conventional-changelog/conventional-changelog/issues/214/issues/issuecomment-326681934)
### BREAKING CHANGES
* **writer:** Logic for generating release headings has been changed to make all
heading levels the same (`##`/`h2`) for better compatibility with
screen readers and parsers, and to conform to HTML semantics. Patch
release titles are now wrapped in a `<small>` tag to maintain the
visual hierarchy of the previous style.
Fixes https://github.com/conventional-changelog/conventional-changelog/issues/214
<a name="1.9.5"></a>
## [1.9.5](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@1.9.4...conventional-changelog-core@1.9.5) (2017-12-18)
**Note:** Version bump only for package conventional-changelog-core
<a name="1.9.4"></a>
## [1.9.4](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@1.9.3...conventional-changelog-core@1.9.4) (2017-12-08)
**Note:** Version bump only for package conventional-changelog-core
<a name="1.9.3"></a>
## [1.9.3](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@1.9.2...conventional-changelog-core@1.9.3) (2017-11-13)
**Note:** Version bump only for package conventional-changelog-core
<a name="1.9.2"></a>
## [1.9.2](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@1.9.1...conventional-changelog-core@1.9.2) (2017-10-01)
<a name="1.9.1"></a>
## [1.9.1](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@1.9.0...conventional-changelog-core@1.9.1) (2017-09-01)
<a name="1.9.0"></a>
# [1.9.0](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@1.8.0...conventional-changelog-core@1.9.0) (2017-07-17)
### Features
* **context:** default currentTag may not prefix with v ([#179](https://github.com/conventional-changelog/conventional-changelog/issues/179)) ([431598a](https://github.com/conventional-changelog/conventional-changelog-core/commit/431598a))
<a name="1.8.0"></a>
# [1.8.0](https://github.com/conventional-changelog/conventional-changelog-core/compare/conventional-changelog-core@1.7.0...conventional-changelog-core@1.8.0) (2017-03-11)
### Features
* context.currentTag should take into account lerna tag format ([#178](https://github.com/conventional-changelog/conventional-changelog/issues/178)) ([f0e5875](https://github.com/conventional-changelog/conventional-changelog-core/commit/f0e5875))
<a name="1.5.0"></a>
# [1.5.0](https://github.com/conventional-changelog/conventional-changelog-core/compare/v1.4.0...v1.5.0) (2016-05-10)
### Features
* **context:** fallback to repoUrl([da0b096](https://github.com/conventional-changelog/conventional-changelog-core/commit/da0b096)), closes [#7](https://github.com/conventional-changelog/conventional-changelog-core/issues/7)
<a name="1.4.0"></a>
# [1.4.0](https://github.com/conventional-changelog/conventional-changelog-core/compare/v1.3.4...v1.4.0) (2016-05-08)
### Features
* **debug:** make options.debug as default writeOpts.debug([eeb7e8f](https://github.com/conventional-changelog/conventional-changelog-core/commit/eeb7e8f))
<a name="1.3.4"></a>
## [1.3.4](https://github.com/conventional-changelog/conventional-changelog-core/compare/v1.3.3...v1.3.4) (2016-05-07)
### Bug Fixes
* **mergeConfig:** respect issuePrefixes option ([4be052b](https://github.com/conventional-changelog/conventional-changelog-core/commit/4be052b)), closes [#6](https://github.com/conventional-changelog/conventional-changelog-core/issues/6) [#8](https://github.com/conventional-changelog/conventional-changelog-core/issues/8)
<a name="1.3.3"></a>
## [1.3.3](https://github.com/conventional-changelog/conventional-changelog-core/compare/v1.3.2...v1.3.3) (2016-04-19)
### Bug Fixes
* **unknownHost:** default context.repository ([eaa3b6f](https://github.com/conventional-changelog/conventional-changelog-core/commit/eaa3b6f))
<a name="1.3.2"></a>
## [1.3.2](https://github.com/conventional-changelog/conventional-changelog-core/compare/v1.3.1...v1.3.2) (2016-04-17)
<a name="1.3.1"></a>
## [1.3.1](https://github.com/conventional-changelog/conventional-changelog-core/compare/v1.3.0...v1.3.1) (2016-04-09)
### Bug Fixes
* **defaults:** context tags ([2571038](https://github.com/conventional-changelog/conventional-changelog-core/commit/2571038))
<a name="1.3.0"></a>
# [1.3.0](https://github.com/stevemao/conventional-changelog-core/compare/v1.2.0...v1.3.0) (2016-02-13)
### Features
* **debug:** add options.debug function ([aa56ae6](https://github.com/stevemao/conventional-changelog-core/commit/aa56ae6))
<a name="1.2.0"></a>
# [1.2.0](https://github.com/stevemao/conventional-changelog-core/compare/v1.1.0...v1.2.0) (2016-02-11)
### Features
* **merge:** ignore merge commits ([8f788dc](https://github.com/stevemao/conventional-changelog-core/commit/8f788dc))
<a name="1.1.0"></a>
# [1.1.0](https://github.com/stevemao/conventional-changelog-core/compare/v1.0.2...v1.1.0) (2016-02-08)
### Bug Fixes
* **default:** firstCommit and lastCommit should based on original unfiltered commits ([7fc49c9](https://github.com/stevemao/conventional-changelog-core/commit/7fc49c9)), closes [#2](https://github.com/stevemao/conventional-changelog-core/issues/2)
<a name="1.0.2"></a>
## [1.0.2](https://github.com/stevemao/conventional-changelog-core/compare/v1.0.1...v1.0.2) (2016-02-06)
### Bug Fixes
* **currentTag:** if unreleased, currentTag should be last commit hash ([e3d25ae](https://github.com/stevemao/conventional-changelog-core/commit/e3d25ae))
<a name="1.0.1"></a>
## [1.0.1](https://github.com/stevemao/conventional-changelog-core/compare/v1.0.0...v1.0.1) (2016-02-06)
### Bug Fixes
* **unreleased:** now it can output unreleased commits ([87b7340](https://github.com/stevemao/conventional-changelog-core/commit/87b7340))
<a name="1.0.0"></a>
# [1.0.0](https://github.com/stevemao/conventional-changelog-core/compare/v0.0.2...v1.0.0) (2016-02-05)
### Bug Fixes
* **oldNode:** git remote origin url feature is only available under node>=4 ([c69db53](https://github.com/stevemao/conventional-changelog-core/commit/c69db53))
### Features
* **pkg:** fallback to git remote origin url ([5b56952](https://github.com/stevemao/conventional-changelog-core/commit/5b56952))
* **unreleased:** option to output or not unreleased changelog ([9dfe8d8](https://github.com/stevemao/conventional-changelog-core/commit/9dfe8d8)), closes [ajoslin/conventional-changelog#120](https://github.com/ajoslin/conventional-changelog/issues/120)
### BREAKING CHANGES
* unreleased: If `context.version` is the same as the version of the last release, by default the unreleased chagnelog will not output.
<a name="0.0.2"></a>
## [0.0.2](https://github.com/stevemao/conventional-changelog-core/compare/v0.0.1...v0.0.2) (2016-01-30)
### Bug Fixes
* **error:** better error handling ([614ce1a](https://github.com/stevemao/conventional-changelog-core/commit/614ce1a)), closes [ajoslin/conventional-changelog#130](https://github.com/ajoslin/conventional-changelog/issues/130)
<a name="0.0.1"></a>
## 0.0.1 (2015-12-26)
### Features
* **config:** change preset to config ([85fd9d9](https://github.com/stevemao/conventional-changelog-core/commit/85fd9d9))
* **init:** extract core from conventional-changelog ([4a4bca3](https://github.com/stevemao/conventional-changelog-core/commit/4a4bca3))
### BREAKING CHANGES
* config: `options.preset` is removed in favour of `options.config`

21
node_modules/conventional-changelog-core/LICENSE.md generated vendored Normal file
View file

@ -0,0 +1,21 @@
### MIT License
Copyright © [conventional-changelog team](https://github.com/conventional-changelog)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

255
node_modules/conventional-changelog-core/README.md generated vendored Normal file
View file

@ -0,0 +1,255 @@
# [![NPM version][npm-image]][npm-url] [![Build Status: Linux][travis-image]][travis-url] [![Build Status: Windows][appveyor-image]][appveyor-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
> [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) core
You are probably looking for the [cli](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli) module. Or use one of the plugins if you are already using the tool: [grunt](https://github.com/btford/grunt-conventional-changelog)/[gulp](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/gulp-conventional-changelog)/[atom](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-atom).
## Usage
```sh
$ npm install --save conventional-changelog-core
```
```js
var conventionalChangelogCore = require('conventional-changelog-core');
conventionalChangelogCore()
.pipe(process.stdout); // or any writable stream
```
## API
### conventionalChangelogCore([options, [context, [gitRawCommitsOpts, [parserOpts, [writerOpts]]]]])
Returns a readable stream.
*Note:* [`options.transform`](#transform-1), [`options.pkg.transform`](#transform) and [`writerOpts.transform`](https://github.com/conventional-changelog/conventional-changelog-writer#transform) are different. If you have a better naming suggestion, please send a PR.
#### options
##### config
Type: `promise`, `function` or `object`
This should serve as default values for other arguments of `conventionalChangelogCore` so you don't need to rewrite the same or similar config across your projects. Any value in this could be overwritten.
If this is a promise (recommended if async), it should resolve with the config.
If this is a function, it expects a node style callback with the config object.
If this is an object, it is the config object. The config object should include `context`, `gitRawCommitsOpts`, `parserOpts` and `writerOpts`.
##### pkg
Type: `object`
###### path
Type: `string` Default: [closest package.json](https://github.com/sindresorhus/read-pkg-up).
The location of your "package.json".
###### transform
Type: `function` Default: pass through.
A function that takes `package.json` data as the argument and returns the modified data. Note this is performed before normalizing package.json data. Useful when you need to add a leading 'v' to your version or modify your repository url, etc.
##### append
Type: `boolean` Default: `false`
Should the log be appended to existing data.
##### releaseCount
Type: `number` Default: `1`
How many releases of changelog you want to generate. It counts from the upcoming release. Useful when you forgot to generate any previous changelog. Set to `0` to regenerate all.
##### skipUnstable
Type: `boolean` Default: `false`
If set, unstable release tags will be skipped, e.g., x.x.x-rc.
##### debug
Type: `function` Default: `function() {}`
A debug function. EG: `console.debug.bind(console)`
##### warn
Type: `function` Default: `options.debug`
A warn function. EG: `grunt.verbose.writeln`
##### transform
Type: `function` Default: get the version (without leading 'v') from tag and format date.
###### function(commit, cb)
A transform function that applies after the parser and before the writer.
This is the place to modify the parsed commits.
####### commit
The commit from conventional-commits-parser.
####### cb
Callback when you are done.
####### this
`this` arg of through2.
##### outputUnreleased
Type: `boolean` Default: `true` if a different version than last release is given. Otherwise `false`.
If this value is `true` and `context.version` equals last release then `context.version` will be changed to `'Unreleased'`.
**NOTE:** You may want to combine this option with `releaseCount` set to `0` to always overwrite the whole CHANGELOG. `conventional-changelog` only outputs a CHANGELOG but doesn't read any existing one.
##### lernaPackage
Specify a package in lerna-style monorepo that the CHANGELOG should be generated for.
Lerna tags releases in the format `foo-package@1.0.0` and assumes that packages
are stored in the directory structure `./packages/foo-package`.
##### tagPrefix
Specify a prefix for the git tag that will be taken into account during the comparison.
For instance if your version tag is prefixed by `version/` instead of `v` you would specify `--tagPrefix=version/`
#### context
See the [conventional-changelog-writer](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-writer) docs. There are some defaults or changes:
##### host
Default: normalized host found in `package.json`.
##### version
Default: version found in `package.json`.
##### owner
Default: extracted from normalized `package.json` `repository.url` field.
##### repository
Default: extracted from normalized `package.json` `repository.url` field.
##### repoUrl
Default: The whole normalized repository url in `package.json`.
##### gitSemverTags
Type: `array`
All git semver tags found in the repository. You can't overwrite this value.
##### previousTag
Type: `string` Default: previous semver tag or the first commit hash if no previous tag.
##### currentTag
Type: `string` Default: current semver tag or `'v'` + version if no current tag.
##### packageData
Type: `object`
Your `package.json` data. You can't overwrite this value.
##### linkCompare
Type: `boolean` Default: `true` if `previousTag` and `currentTag` are truthy.
Should link to the page that compares current tag with previous tag?
#### gitRawCommitsOpts
See the [git-raw-commits](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/git-raw-commits) docs. There are some defaults:
##### format
Default: `'%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci'`
##### from
Default: based on `options.releaseCount`.
##### reverse
Default: `true` if `options.append` is truthy.
##### debug
Type: `function` Default: `options.debug`
#### parserOpts
See the [conventional-commits-parser](https://github.com/conventional-changelog/conventional-commits-parser) docs.
##### warn
Default: `options.warn`
#### writerOpts
See the [conventional-changelog-writer](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-writer) docs. There are some defaults:
##### finalizeContext
Finalize context is used for generating above context.
**NOTE:** If you overwrite this value the above context defaults will be gone.
##### debug
Type: `function` Default: `options.debug`
##### reverse
Default: `options.append`
##### doFlush
Default: `options.outputUnreleased`
## Notes for parent modules
This module has options `append` and `releaseCount`. However, it doesn't read your previous changelog. Reasons being:
1. The old logs is just to be appended or prepended to the newly generated logs, which is a very simple thing that could be done in the parent module.
2. We want it to be very flexible for the parent module. You could create a readable stream from the file or you could just read the file.
3. We want the duty of this module to be very minimum.
So, when you build a parent module, you need to read the old logs and append or prepend to them based on `options.append`. However, if `options.releaseCount` is `0` you need to ignore any previous logs. Please see [conventional-github-releaser](https://github.com/conventional-changelog/conventional-github-releaser) as an example.
Arguments passed to `conventionalChangelogCore` will be mutated.
## License
MIT
[npm-image]: https://badge.fury.io/js/conventional-changelog-core.svg
[npm-url]: https://npmjs.org/package/conventional-changelog-core
[travis-image]: https://travis-ci.org/conventional-changelog/conventional-changelog-core.svg?branch=master
[travis-url]: https://travis-ci.org/conventional-changelog/conventional-changelog-core
[appveyor-image]: https://ci.appveyor.com/api/projects/status/baoumm34w8c5o0hv/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/stevemao/conventional-changelog-core/branch/master
[daviddm-image]: https://david-dm.org/conventional-changelog/conventional-changelog-core.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/conventional-changelog/conventional-changelog-core
[coveralls-image]: https://coveralls.io/repos/conventional-changelog/conventional-changelog-core/badge.svg
[coveralls-url]: https://coveralls.io/r/conventional-changelog/conventional-changelog-core

View file

@ -0,0 +1,21 @@
{
"issue": "issue",
"commit": "commits",
"referenceActions": [
"close",
"closes",
"closed",
"closing",
"fix",
"fixes",
"fixed",
"fixing",
"resolve",
"resolves",
"resolved",
"resolving"
],
"issuePrefixes": [
"#"
]
}

View file

@ -0,0 +1,19 @@
{
"issue": "issues",
"commit": "commit",
"referenceActions": [
"close",
"closes",
"closed",
"fix",
"fixes",
"fixed",
"resolve",
"resolves",
"resolved"
],
"issuePrefixes": [
"#",
"gh-"
]
}

View file

@ -0,0 +1,17 @@
{
"issue": "issues",
"commit": "commit",
"referenceActions": [
"close",
"closes",
"closed",
"closing",
"fix",
"fixes",
"fixed",
"fixing"
],
"issuePrefixes": [
"#"
]
}

144
node_modules/conventional-changelog-core/index.js generated vendored Normal file
View file

@ -0,0 +1,144 @@
'use strict'
const addStream = require('add-stream')
const gitRawCommits = require('git-raw-commits')
const conventionalCommitsParser = require('conventional-commits-parser')
const conventionalChangelogWriter = require('conventional-changelog-writer')
const _ = require('lodash')
const stream = require('stream')
const through = require('through2')
const execFileSync = require('child_process').execFileSync
const mergeConfig = require('./lib/merge-config')
function conventionalChangelog (options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts) {
writerOpts = writerOpts || {}
const readable = new stream.Readable({
objectMode: writerOpts.includeDetails
})
readable._read = function () { }
let commitsErrorThrown = false
let commitsStream = new stream.Readable({
objectMode: true
})
commitsStream._read = function () { }
function commitsRange (from, to) {
return gitRawCommits(_.merge({}, gitRawCommitsOpts, {
from: from,
to: to
}))
.on('error', function (err) {
if (!commitsErrorThrown) {
setImmediate(commitsStream.emit.bind(commitsStream), 'error', err)
commitsErrorThrown = true
}
})
}
mergeConfig(options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts)
.then(function (data) {
options = data.options
context = data.context
gitRawCommitsOpts = data.gitRawCommitsOpts
parserOpts = data.parserOpts
writerOpts = data.writerOpts
gitRawExecOpts = data.gitRawExecOpts
try {
execFileSync('git', ['rev-parse', '--verify', 'HEAD'], {
stdio: 'ignore'
})
let reverseTags = context.gitSemverTags.slice(0).reverse()
reverseTags.push('HEAD')
if (gitRawCommitsOpts.from) {
if (reverseTags.indexOf(gitRawCommitsOpts.from) !== -1) {
reverseTags = reverseTags.slice(reverseTags.indexOf(gitRawCommitsOpts.from))
} else {
reverseTags = [gitRawCommitsOpts.from, 'HEAD']
}
}
let streams = reverseTags.map((to, i) => {
const from = i > 0
? reverseTags[i - 1]
: ''
return commitsRange(from, to)
})
if (gitRawCommitsOpts.from) {
streams = streams.splice(1)
}
if (gitRawCommitsOpts.reverse) {
streams.reverse()
}
streams.reduce((prev, next) => next.pipe(addStream(prev)))
.on('data', function (data) {
setImmediate(commitsStream.emit.bind(commitsStream), 'data', data)
})
.on('end', function () {
setImmediate(commitsStream.emit.bind(commitsStream), 'end')
})
} catch (_e) {
commitsStream = gitRawCommits(gitRawCommitsOpts, gitRawExecOpts)
}
commitsStream
.on('error', function (err) {
err.message = 'Error in git-raw-commits: ' + err.message
setImmediate(readable.emit.bind(readable), 'error', err)
})
.pipe(conventionalCommitsParser(parserOpts))
.on('error', function (err) {
err.message = 'Error in conventional-commits-parser: ' + err.message
setImmediate(readable.emit.bind(readable), 'error', err)
})
// it would be better if `gitRawCommits` could spit out better formatted data
// so we don't need to transform here
.pipe(through.obj(function (chunk, enc, cb) {
try {
options.transform.call(this, chunk, cb)
} catch (err) {
cb(err)
}
}))
.on('error', function (err) {
err.message = 'Error in options.transform: ' + err.message
setImmediate(readable.emit.bind(readable), 'error', err)
})
.pipe(conventionalChangelogWriter(context, writerOpts))
.on('error', function (err) {
err.message = 'Error in conventional-changelog-writer: ' + err.message
setImmediate(readable.emit.bind(readable), 'error', err)
})
.pipe(through({
objectMode: writerOpts.includeDetails
}, function (chunk, enc, cb) {
try {
readable.push(chunk)
} catch (err) {
setImmediate(function () {
throw err
})
}
cb()
}, function (cb) {
readable.push(null)
cb()
}))
})
.catch(function (err) {
setImmediate(readable.emit.bind(readable), 'error', err)
})
return readable
}
module.exports = conventionalChangelog

View file

@ -0,0 +1,345 @@
'use strict'
const dateFormat = require('dateformat')
const getPkgRepo = require('get-pkg-repo')
const gitSemverTags = require('git-semver-tags')
const normalizePackageData = require('normalize-package-data')
const Q = require('q')
let gitRemoteOriginUrl
try {
gitRemoteOriginUrl = require('git-remote-origin-url')
} catch (err) {
gitRemoteOriginUrl = function () {
return Q.reject(err)
}
}
const readPkg = require('read-pkg')
const readPkgUp = require('read-pkg-up')
const URL = require('url').URL
const _ = require('lodash')
const rhosts = /github|bitbucket|gitlab/i
function semverTagsPromise (options) {
return Q.Promise(function (resolve, reject) {
gitSemverTags({ lernaTags: !!options.lernaPackage, package: options.lernaPackage, tagPrefix: options.tagPrefix, skipUnstable: options.skipUnstable }, function (err, result) {
if (err) {
reject(err)
} else {
resolve(result)
}
})
})
}
function guessNextTag (previousTag, version) {
if (previousTag) {
if (previousTag[0] === 'v' && version[0] !== 'v') {
return 'v' + version
}
if (previousTag[0] !== 'v' && version[0] === 'v') {
return version.replace(/^v/, '')
}
return version
}
if (version[0] !== 'v') {
return 'v' + version
}
return version
}
function mergeConfig (options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts) {
let configPromise
let pkgPromise
context = context || {}
gitRawCommitsOpts = gitRawCommitsOpts || {}
gitRawExecOpts = gitRawExecOpts || {}
const rtag = options && options.tagPrefix ? new RegExp(`tag:\\s*[=]?${options.tagPrefix}(.+?)[,)]`, 'gi') : /tag:\s*[v=]?(.+?)[,)]/gi
options = _.merge({
pkg: {
transform: function (pkg) {
return pkg
}
},
append: false,
releaseCount: 1,
skipUnstable: false,
debug: function () {},
transform: function (commit, cb) {
if (_.isString(commit.gitTags)) {
const match = rtag.exec(commit.gitTags)
rtag.lastIndex = 0
if (match) {
commit.version = match[1]
}
}
if (commit.committerDate) {
commit.committerDate = dateFormat(commit.committerDate, 'yyyy-mm-dd', true)
}
cb(null, commit)
},
lernaPackage: null
}, options)
options.warn = options.warn || options.debug
if (options.config) {
if (_.isFunction(options.config)) {
configPromise = Q.nfcall(options.config)
} else {
configPromise = Q(options.config)
}
}
if (options.pkg) {
if (options.pkg.path) {
pkgPromise = Q(readPkg(options.pkg.path))
} else {
pkgPromise = Q(readPkgUp())
}
}
const gitRemoteOriginUrlPromise = Q(gitRemoteOriginUrl())
return Q.allSettled([configPromise, pkgPromise, semverTagsPromise(options), gitRemoteOriginUrlPromise])
.spread(function (configObj, pkgObj, tagsObj, gitRemoteOriginUrlObj) {
let config
let pkg
let fromTag
let repo
let hostOpts
let gitSemverTags = []
if (configPromise) {
if (configObj.state === 'fulfilled') {
config = configObj.value
} else {
options.warn('Error in config' + configObj.reason.toString())
config = {}
}
} else {
config = {}
}
context = _.assign(context, config.context)
if (options.pkg) {
if (pkgObj.state === 'fulfilled') {
if (options.pkg.path) {
pkg = pkgObj.value
} else {
pkg = pkgObj.value.pkg || {}
}
pkg = options.pkg.transform(pkg)
} else if (options.pkg.path) {
options.warn(pkgObj.reason.toString())
}
}
if ((!pkg || !pkg.repository || !pkg.repository.url) && gitRemoteOriginUrlObj.state === 'fulfilled') {
pkg = pkg || {}
pkg.repository = pkg.repository || {}
pkg.repository.url = gitRemoteOriginUrlObj.value
normalizePackageData(pkg)
}
if (pkg) {
context.version = context.version || pkg.version
try {
repo = getPkgRepo(pkg)
} catch (err) {
repo = {}
}
if (repo.browse) {
const browse = repo.browse()
if (!context.host) {
if (repo.domain) {
const parsedBrowse = new URL(browse)
if (parsedBrowse.origin.indexOf('//') !== -1) {
context.host = parsedBrowse.protocol + '//' + repo.domain
} else {
context.host = parsedBrowse.protocol + repo.domain
}
} else {
context.host = null
}
}
context.owner = context.owner || repo.user || ''
context.repository = context.repository || repo.project
if (repo.host && repo.project && repo.user) {
context.repoUrl = browse
} else {
context.repoUrl = context.host
}
}
context.packageData = pkg
}
context.version = context.version || ''
if (tagsObj.state === 'fulfilled') {
gitSemverTags = context.gitSemverTags = tagsObj.value
fromTag = gitSemverTags[options.releaseCount - 1]
const lastTag = gitSemverTags[0]
if (lastTag === context.version || lastTag === 'v' + context.version) {
if (options.outputUnreleased) {
context.version = 'Unreleased'
} else {
options.outputUnreleased = false
}
}
}
if (!_.isBoolean(options.outputUnreleased)) {
options.outputUnreleased = true
}
if (context.host && (!context.issue || !context.commit || !parserOpts || !parserOpts.referenceActions)) {
let type
if (context.host) {
const match = context.host.match(rhosts)
if (match) {
type = match[0]
}
} else if (repo && repo.type) {
type = repo.type
}
if (type) {
hostOpts = require('../hosts/' + type)
context = _.assign({
issue: hostOpts.issue,
commit: hostOpts.commit
}, context)
} else {
options.warn('Host: "' + context.host + '" does not exist')
hostOpts = {}
}
} else {
hostOpts = {}
}
if (context.resetChangelog) {
fromTag = null
}
gitRawCommitsOpts = _.assign({
format: '%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci',
from: fromTag,
merges: false,
debug: options.debug
},
config.gitRawCommitsOpts,
gitRawCommitsOpts
)
if (options.append) {
gitRawCommitsOpts.reverse = gitRawCommitsOpts.reverse || true
}
parserOpts = _.assign(
{}, config.parserOpts, {
warn: options.warn
},
parserOpts)
if (hostOpts.referenceActions && parserOpts) {
parserOpts.referenceActions = hostOpts.referenceActions
}
if (_.isEmpty(parserOpts.issuePrefixes) && hostOpts.issuePrefixes) {
parserOpts.issuePrefixes = hostOpts.issuePrefixes
}
writerOpts = _.assign({
finalizeContext: function (context, writerOpts, filteredCommits, keyCommit, originalCommits) {
const firstCommit = originalCommits[0]
const lastCommit = originalCommits[originalCommits.length - 1]
const firstCommitHash = firstCommit ? firstCommit.hash : null
const lastCommitHash = lastCommit ? lastCommit.hash : null
if ((!context.currentTag || !context.previousTag) && keyCommit) {
const match = /tag:\s*(.+?)[,)]/gi.exec(keyCommit.gitTags)
const currentTag = context.currentTag
context.currentTag = currentTag || match ? match[1] : null
const index = gitSemverTags.indexOf(context.currentTag)
// if `keyCommit.gitTags` is not a semver
if (index === -1) {
context.currentTag = currentTag || null
} else {
const previousTag = context.previousTag = gitSemverTags[index + 1]
if (!previousTag) {
if (options.append) {
context.previousTag = context.previousTag || firstCommitHash
} else {
context.previousTag = context.previousTag || lastCommitHash
}
}
}
} else {
context.previousTag = context.previousTag || gitSemverTags[0]
if (context.version === 'Unreleased') {
if (options.append) {
context.currentTag = context.currentTag || lastCommitHash
} else {
context.currentTag = context.currentTag || firstCommitHash
}
} else if (!context.currentTag) {
if (options.lernaPackage) {
context.currentTag = options.lernaPackage + '@' + context.version
} else if (options.tagPrefix) {
context.currentTag = options.tagPrefix + context.version
} else {
context.currentTag = guessNextTag(gitSemverTags[0], context.version)
}
}
}
if (!_.isBoolean(context.linkCompare) && context.previousTag && context.currentTag) {
context.linkCompare = true
}
return context
},
debug: options.debug
},
config.writerOpts, {
reverse: options.append,
doFlush: options.outputUnreleased
},
writerOpts
)
return {
options: options,
context: context,
gitRawCommitsOpts: gitRawCommitsOpts,
parserOpts: parserOpts,
writerOpts: writerOpts,
gitRawExecOpts: gitRawExecOpts
}
})
}
module.exports = mergeConfig

50
node_modules/conventional-changelog-core/package.json generated vendored Normal file
View file

@ -0,0 +1,50 @@
{
"name": "conventional-changelog-core",
"version": "4.2.4",
"description": "conventional-changelog core",
"repository": {
"type": "git",
"url": "https://github.com/conventional-changelog/conventional-changelog.git"
},
"keywords": [
"conventional-changelog",
"conventional",
"changelog",
"log"
],
"engines": {
"node": ">=10"
},
"license": "MIT",
"files": [
"index.js",
"lib",
"hosts"
],
"bugs": {
"url": "https://github.com/conventional-changelog/conventional-changelog/issues"
},
"homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-core#readme",
"dependencies": {
"add-stream": "^1.0.0",
"conventional-changelog-writer": "^5.0.0",
"conventional-commits-parser": "^3.2.0",
"dateformat": "^3.0.0",
"get-pkg-repo": "^4.0.0",
"git-raw-commits": "^2.0.8",
"git-remote-origin-url": "^2.0.0",
"git-semver-tags": "^4.1.1",
"lodash": "^4.17.15",
"normalize-package-data": "^3.0.0",
"q": "^1.5.1",
"read-pkg": "^3.0.0",
"read-pkg-up": "^3.0.0",
"through2": "^4.0.0"
},
"scripts": {
"test-windows": "mocha --timeout 30000"
},
"devDependencies": {
"conventional-changelog-angular": "^5.0.12"
}
}