mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-16 00:00:27 +08:00
Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 326c8f3f4b | |||
| b65b257275 | |||
| e3018b0429 | |||
| 0152070931 | |||
| 19f1eb4ca3 | |||
| 80b6b5f3ec | |||
| 6e4b242aa4 | |||
| 64ecccbb55 | |||
| 76229a5532 | |||
| 540ba3b50e | |||
| c693a73511 | |||
| d75fc920f9 | |||
| 0e98e0b6d8 | |||
| f7431fd287 | |||
| 289caf3566 | |||
| 1e4e99ed4f | |||
| 5ab8e31792 | |||
| 725deec62e | |||
| b94f36708b | |||
| 86745f73a7 | |||
| 419b62e685 | |||
| 29a7ebbc13 | |||
| fd308b5c65 | |||
| 225e9b49d6 | |||
| 2b24cc18ff |
4
.github/workflows/audit.yml
vendored
4
.github/workflows/audit.yml
vendored
@ -17,9 +17,9 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-node@v2.5.1
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
|
|
||||||
|
|||||||
30
.github/workflows/auto-approve.yml
vendored
30
.github/workflows/auto-approve.yml
vendored
@ -5,30 +5,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-approve:
|
auto-approve:
|
||||||
runs-on: ubuntu-latest
|
uses: s4u/.github/.github/workflows/auto-approve.yml@master
|
||||||
steps:
|
secrets:
|
||||||
|
TECH_TOKEN: ${{ secrets.TECH_TOKEN }}
|
||||||
- name: Dependabot metadata
|
|
||||||
if: github.actor == 'dependabot[bot]'
|
|
||||||
id: dependabot-metadata
|
|
||||||
uses: dependabot/fetch-metadata@v1.1.1
|
|
||||||
with:
|
|
||||||
github-token: "${{ secrets.TECH_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Enable auto-merge for Dependabot PRs
|
|
||||||
if: >
|
|
||||||
github.actor == 'dependabot[bot]'
|
|
||||||
&& steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
|
|
||||||
run: gh pr merge --auto --rebase "$PR_URL"
|
|
||||||
env:
|
|
||||||
PR_URL: ${{github.event.pull_request.html_url}}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
|
||||||
|
|
||||||
- name: Approve a PR
|
|
||||||
if: >
|
|
||||||
github.actor == 'dependabot[bot]'
|
|
||||||
|| github.actor == 'slawekjaranowski'
|
|
||||||
run: gh pr review --approve "$PR_URL"
|
|
||||||
env:
|
|
||||||
PR_URL: ${{github.event.pull_request.html_url}}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
|
||||||
|
|||||||
2
.github/workflows/release-drafter.yml
vendored
2
.github/workflows/release-drafter.yml
vendored
@ -17,6 +17,6 @@ jobs:
|
|||||||
&& !startsWith(github.event.head_commit.message , '[maven-release-plugin]')
|
&& !startsWith(github.event.head_commit.message , '[maven-release-plugin]')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: release-drafter/release-drafter@v5.18.0
|
- uses: release-drafter/release-drafter@v5.19.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -17,13 +17,13 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-node@v2.5.1
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
|
|
||||||
- uses: actions/setup-java@v2.5.0
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '8'
|
java-version: '8'
|
||||||
|
|||||||
26
README.md
26
README.md
@ -31,14 +31,14 @@ See [action.yml](action.yml)
|
|||||||
## default ```settings.xml```
|
## default ```settings.xml```
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## ```settings.xml``` with servers section
|
## ```settings.xml``` with servers section
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
||||||
```
|
```
|
||||||
@ -62,7 +62,7 @@ Please refer to the [servers](http://maven.apache.org/settings.html#Servers) doc
|
|||||||
|
|
||||||
``` yml
|
``` yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
servers: |
|
servers: |
|
||||||
[{
|
[{
|
||||||
@ -96,7 +96,7 @@ result will be:
|
|||||||
## ```settings.xml``` with mirrors section
|
## ```settings.xml``` with mirrors section
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
mirrors: '[{"id": "mirrorId", "name": "mirrorName", "mirrorOf": "mirrorOf", "url": "mirrorUrl"}]'
|
mirrors: '[{"id": "mirrorId", "name": "mirrorName", "mirrorOf": "mirrorOf", "url": "mirrorUrl"}]'
|
||||||
```
|
```
|
||||||
@ -104,7 +104,7 @@ steps:
|
|||||||
## ```settings.xml``` with properties
|
## ```settings.xml``` with properties
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
|
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
|
||||||
```
|
```
|
||||||
@ -113,7 +113,7 @@ steps:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
sonatypeSnapshots: true
|
sonatypeSnapshots: true
|
||||||
```
|
```
|
||||||
@ -122,7 +122,7 @@ steps:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
apacheSnapshots: true
|
apacheSnapshots: true
|
||||||
```
|
```
|
||||||
@ -130,7 +130,7 @@ steps:
|
|||||||
## Do not override existing ```settings.xml```, from version **2.0** file is override by default :
|
## Do not override existing ```settings.xml```, from version **2.0** file is override by default :
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
override: false
|
override: false
|
||||||
```
|
```
|
||||||
@ -138,7 +138,7 @@ steps:
|
|||||||
## Do not add github to server in ```settings.xml```, by default is added:
|
## Do not add github to server in ```settings.xml```, by default is added:
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
githubServer: false
|
githubServer: false
|
||||||
```
|
```
|
||||||
@ -147,7 +147,7 @@ steps:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
oracleServers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
oracleServers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
||||||
```
|
```
|
||||||
@ -155,7 +155,7 @@ steps:
|
|||||||
## ```settings.xml``` with [Oracle Maven Repository](https://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9017)
|
## ```settings.xml``` with [Oracle Maven Repository](https://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9017)
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
oracleRepo: true
|
oracleRepo: true
|
||||||
```
|
```
|
||||||
@ -166,7 +166,7 @@ It is also possible pass in Github Secrets e.g.
|
|||||||
|
|
||||||
``` yml
|
``` yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
with:
|
with:
|
||||||
servers: |
|
servers: |
|
||||||
[{
|
[{
|
||||||
@ -196,7 +196,7 @@ steps:
|
|||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|
||||||
- uses: s4u/maven-settings-action@v2.5.0
|
- uses: s4u/maven-settings-action@v2.6.0
|
||||||
|
|
||||||
- run: mvn verify
|
- run: mvn verify
|
||||||
```
|
```
|
||||||
|
|||||||
@ -137,6 +137,16 @@ test('run with all feature', () => {
|
|||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</repository>
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
@ -149,6 +159,16 @@ test('run with all feature', () => {
|
|||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
|
|||||||
8
node_modules/.package-lock.json
generated
vendored
8
node_modules/.package-lock.json
generated
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "maven-settings-action",
|
"name": "maven-settings-action",
|
||||||
"version": "2.5.0",
|
"version": "2.6.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
@ -21,9 +21,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@xmldom/xmldom": {
|
"node_modules/@xmldom/xmldom": {
|
||||||
"version": "0.8.0",
|
"version": "0.8.1",
|
||||||
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.1.tgz",
|
||||||
"integrity": "sha512-7wVnF+rKrVDEo1xjzkkidTG0grclaVnX0vKa0z9JSXcEdtftUJjvU33jLGg6SHyvs3eeqEsI7jZ6NxYfRypEEg==",
|
"integrity": "sha512-4wOae+5N2RZ+CZXd9ZKwkaDi55IxrSTOjHpxTvQQ4fomtOJmqVxbmICA9jE1jvnqNhpfgz8cnfFagG86wV/xLQ==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
14
node_modules/@xmldom/xmldom/CHANGELOG.md
generated
vendored
14
node_modules/@xmldom/xmldom/CHANGELOG.md
generated
vendored
@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.8.1](https://github.com/xmldom/xmldom/compare/0.8.0...0.8.1)
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Only use own properties in entityMap [`#374`](https://github.com/xmldom/xmldom/pull/374)
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
- Add security policy [`#365`](https://github.com/xmldom/xmldom/pull/365)
|
||||||
|
- changelog: Correct contributor name and link [`#366`](https://github.com/xmldom/xmldom/pull/366)
|
||||||
|
- Describe release/publish steps [`#358`](https://github.com/xmldom/xmldom/pull/358), [`#376`](https://github.com/xmldom/xmldom/pull/376)
|
||||||
|
- Add snyk package health badge [`#360`](https://github.com/xmldom/xmldom/pull/360)
|
||||||
|
|
||||||
|
|
||||||
## [0.8.0](https://github.com/xmldom/xmldom/compare/0.7.5...0.8.0)
|
## [0.8.0](https://github.com/xmldom/xmldom/compare/0.7.5...0.8.0)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@ -41,7 +53,7 @@ Thank you [@marrus-sh](https://github.com/marrus-sh), [@victorandree](https://gi
|
|||||||
### Fixes:
|
### Fixes:
|
||||||
|
|
||||||
- Restore ability to parse `__prototype__` attributes [`#315`](https://github.com/xmldom/xmldom/pull/315)
|
- Restore ability to parse `__prototype__` attributes [`#315`](https://github.com/xmldom/xmldom/pull/315)
|
||||||
Thank you [@dsimsonOMF](https://github.com/dsimsonOMF)
|
Thank you [@dsimpsonOMF](https://github.com/dsimpsonOMF)
|
||||||
|
|
||||||
## 0.7.3
|
## 0.7.3
|
||||||
|
|
||||||
|
|||||||
50
node_modules/@xmldom/xmldom/SECURITY.md
generated
vendored
Normal file
50
node_modules/@xmldom/xmldom/SECURITY.md
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
The most up-to-date version of this document can be found at <https://github.com/xmldom/xmldom/security/policy>.
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
This repository contains the code for the libraries `xmldom` and `@xmldom/xmldom` on npm.
|
||||||
|
|
||||||
|
As long as we didn't publish v1, we aim to maintain the last two minor versions with security fixes. If it is possible we provide security fixes as path versions.
|
||||||
|
If you think there is a good reason to also patch an earlier version let us know in a github issue or the release discussion once the fix has been provided.
|
||||||
|
The maintainers will consider it and if we agree and have/find the required resources, a patch for that version will be provided.
|
||||||
|
|
||||||
|
Please notice that [we are no longer able to publish the (unscoped) `xmldom` package](https://github.com/xmldom/xmldom/issues/271),
|
||||||
|
and that all existing versions of `xmldom` are affected by at least one security vulnerability and should be considered deprecated.
|
||||||
|
You can still report issues regarding `xmldom` as described below.
|
||||||
|
|
||||||
|
If you need help with migrating from `xmldom` to `@xmldom/xmldom`, file a github issue or PR in the affected repository and mention @karfau.
|
||||||
|
|
||||||
|
## Reporting vulnerabilities
|
||||||
|
|
||||||
|
Please email reports about any security related issues you find to `security@xmldom.org`, which will forward it to the list of maintainers.
|
||||||
|
The maintainers will try to respond within 7 calendar days. (If nobody peplies after 7 days, please us send a reminder!)
|
||||||
|
As part of you communication please make sure to always hit "Reply all", so all maintainers are kept in the loop.
|
||||||
|
|
||||||
|
In addition, please include the following information along with your report:
|
||||||
|
|
||||||
|
- Your name and affiliation (if any).
|
||||||
|
- A description of the technical details of the vulnerabilities. It is very important to let us know how we can reproduce your findings.
|
||||||
|
- An explanation who can exploit this vulnerability, and what they gain when doing so -- write an attack scenario. This will help us evaluate your report quickly, especially if the issue is complex.
|
||||||
|
- Whether this vulnerability public or known to third parties. If it is, please provide details.
|
||||||
|
|
||||||
|
If you believe that an existing (public) issue is security-related, please send an email to `security@xmldom.org`.
|
||||||
|
The email should include the issue URL and a short description of why it should be handled according to this security policy.
|
||||||
|
|
||||||
|
Once an issue is reported, the maintainers use the following disclosure process:
|
||||||
|
|
||||||
|
- When a report is received, we confirm the issue, determine its severity and the affected versions.
|
||||||
|
- If we know of specific third-party services or software based on xmldom that require mitigation before publication, those projects will be notified.
|
||||||
|
- A [github security advisory](https://docs.github.com/en/code-security/security-advisories/about-github-security-advisories) is [created](https://docs.github.com/en/code-security/security-advisories/creating-a-security-advisory) (but not published) which details the problem and steps for mitigation.
|
||||||
|
- If the reporter provides a github account and agrees to it, we (add that github account as a collaborator on the advisuory)[https://docs.github.com/en/code-security/security-advisories/adding-a-collaborator-to-a-security-advisory].
|
||||||
|
- The vulnerability is fixed in a [private fork](https://docs.github.com/en/code-security/security-advisories/collaborating-in-a-temporary-private-fork-to-resolve-a-security-vulnerability) and potential workarounds are identified.
|
||||||
|
- The maintainers audit the existing code to find any potential similar problems.
|
||||||
|
- The release for the current minor version and the [security advisory are published](https://docs.github.com/en/code-security/security-advisories/publishing-a-security-advisory).
|
||||||
|
- The release(s) for previous minor version(s) are published.
|
||||||
|
|
||||||
|
We credit reporters for identifying security issues, if they confirm that they want to.
|
||||||
|
|
||||||
|
## Known vulnerabilities
|
||||||
|
|
||||||
|
See https://github.com/xmldom/xmldom/security/advisories?state=published
|
||||||
38
node_modules/@xmldom/xmldom/lib/sax.js
generated
vendored
38
node_modules/@xmldom/xmldom/lib/sax.js
generated
vendored
@ -12,7 +12,7 @@ var tagNamePattern = new RegExp('^'+nameStartChar.source+nameChar.source+'*(?:\:
|
|||||||
//S_TAG, S_ATTR, S_EQ, S_ATTR_NOQUOT_VALUE
|
//S_TAG, S_ATTR, S_EQ, S_ATTR_NOQUOT_VALUE
|
||||||
//S_ATTR_SPACE, S_ATTR_END, S_TAG_SPACE, S_TAG_CLOSE
|
//S_ATTR_SPACE, S_ATTR_END, S_TAG_SPACE, S_TAG_CLOSE
|
||||||
var S_TAG = 0;//tag name offerring
|
var S_TAG = 0;//tag name offerring
|
||||||
var S_ATTR = 1;//attr name offerring
|
var S_ATTR = 1;//attr name offerring
|
||||||
var S_ATTR_SPACE=2;//attr name end and space offer
|
var S_ATTR_SPACE=2;//attr name end and space offer
|
||||||
var S_EQ = 3;//=space?
|
var S_EQ = 3;//=space?
|
||||||
var S_ATTR_NOQUOT_VALUE = 4;//attr value(no quot value only)
|
var S_ATTR_NOQUOT_VALUE = 4;//attr value(no quot value only)
|
||||||
@ -36,7 +36,7 @@ ParseError.prototype = new Error();
|
|||||||
ParseError.prototype.name = ParseError.name
|
ParseError.prototype.name = ParseError.name
|
||||||
|
|
||||||
function XMLReader(){
|
function XMLReader(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
XMLReader.prototype = {
|
XMLReader.prototype = {
|
||||||
@ -65,8 +65,8 @@ function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){
|
|||||||
}
|
}
|
||||||
function entityReplacer(a){
|
function entityReplacer(a){
|
||||||
var k = a.slice(1,-1);
|
var k = a.slice(1,-1);
|
||||||
if(k in entityMap){
|
if (Object.hasOwnProperty.call(entityMap, k)) {
|
||||||
return entityMap[k];
|
return entityMap[k];
|
||||||
}else if(k.charAt(0) === '#'){
|
}else if(k.charAt(0) === '#'){
|
||||||
return fixedFromCharCode(parseInt(k.substr(1).replace('x','0x')))
|
return fixedFromCharCode(parseInt(k.substr(1).replace('x','0x')))
|
||||||
}else{
|
}else{
|
||||||
@ -95,7 +95,7 @@ function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){
|
|||||||
var lineEnd = 0;
|
var lineEnd = 0;
|
||||||
var linePattern = /.*(?:\r\n?|\n)|.*$/g
|
var linePattern = /.*(?:\r\n?|\n)|.*$/g
|
||||||
var locator = domBuilder.locator;
|
var locator = domBuilder.locator;
|
||||||
|
|
||||||
var parseStack = [{currentNSMap:defaultNSMapCopy}]
|
var parseStack = [{currentNSMap:defaultNSMapCopy}]
|
||||||
var closeMap = {};
|
var closeMap = {};
|
||||||
var start = 0;
|
var start = 0;
|
||||||
@ -120,7 +120,7 @@ function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){
|
|||||||
var tagName = source.substring(tagStart + 2, end).replace(/[ \t\n\r]+$/g, '');
|
var tagName = source.substring(tagStart + 2, end).replace(/[ \t\n\r]+$/g, '');
|
||||||
var config = parseStack.pop();
|
var config = parseStack.pop();
|
||||||
if(end<0){
|
if(end<0){
|
||||||
|
|
||||||
tagName = source.substring(tagStart+2).replace(/[\s<].*/,'');
|
tagName = source.substring(tagStart+2).replace(/[\s<].*/,'');
|
||||||
errorHandler.error("end tag name: "+tagName+' is not complete:'+config.tagName);
|
errorHandler.error("end tag name: "+tagName+' is not complete:'+config.tagName);
|
||||||
end = tagStart+1+tagName.length;
|
end = tagStart+1+tagName.length;
|
||||||
@ -145,7 +145,7 @@ function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){
|
|||||||
}else{
|
}else{
|
||||||
parseStack.push(config)
|
parseStack.push(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
end++;
|
end++;
|
||||||
break;
|
break;
|
||||||
// end elment
|
// end elment
|
||||||
@ -164,8 +164,8 @@ function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){
|
|||||||
//elStartEnd
|
//elStartEnd
|
||||||
var end = parseElementStartPart(source,tagStart,el,currentNSMap,entityReplacer,errorHandler);
|
var end = parseElementStartPart(source,tagStart,el,currentNSMap,entityReplacer,errorHandler);
|
||||||
var len = el.length;
|
var len = el.length;
|
||||||
|
|
||||||
|
|
||||||
if(!el.closed && fixSelfClosed(source,end,el.tagName,closeMap)){
|
if(!el.closed && fixSelfClosed(source,end,el.tagName,closeMap)){
|
||||||
el.closed = true;
|
el.closed = true;
|
||||||
if(!entityMap.nbsp){
|
if(!entityMap.nbsp){
|
||||||
@ -435,7 +435,7 @@ function appendElement(el,domBuilder,currentNSMap){
|
|||||||
}
|
}
|
||||||
//can not set prefix,because prefix !== ''
|
//can not set prefix,because prefix !== ''
|
||||||
a.localName = localName ;
|
a.localName = localName ;
|
||||||
//prefix == null for no ns prefix attribute
|
//prefix == null for no ns prefix attribute
|
||||||
if(nsPrefix !== false){//hack!!
|
if(nsPrefix !== false){//hack!!
|
||||||
if(localNSMap == null){
|
if(localNSMap == null){
|
||||||
localNSMap = {}
|
localNSMap = {}
|
||||||
@ -445,7 +445,7 @@ function appendElement(el,domBuilder,currentNSMap){
|
|||||||
}
|
}
|
||||||
currentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;
|
currentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;
|
||||||
a.uri = NAMESPACE.XMLNS
|
a.uri = NAMESPACE.XMLNS
|
||||||
domBuilder.startPrefixMapping(nsPrefix, value)
|
domBuilder.startPrefixMapping(nsPrefix, value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var i = el.length;
|
var i = el.length;
|
||||||
@ -457,7 +457,7 @@ function appendElement(el,domBuilder,currentNSMap){
|
|||||||
a.uri = NAMESPACE.XML;
|
a.uri = NAMESPACE.XML;
|
||||||
}if(prefix !== 'xmlns'){
|
}if(prefix !== 'xmlns'){
|
||||||
a.uri = currentNSMap[prefix || '']
|
a.uri = currentNSMap[prefix || '']
|
||||||
|
|
||||||
//{console.log('###'+a.qName,domBuilder.locator.systemId+'',currentNSMap,a.uri)}
|
//{console.log('###'+a.qName,domBuilder.locator.systemId+'',currentNSMap,a.uri)}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -479,7 +479,7 @@ function appendElement(el,domBuilder,currentNSMap){
|
|||||||
domBuilder.endElement(ns,localName,tagName);
|
domBuilder.endElement(ns,localName,tagName);
|
||||||
if(localNSMap){
|
if(localNSMap){
|
||||||
for(prefix in localNSMap){
|
for(prefix in localNSMap){
|
||||||
domBuilder.endPrefixMapping(prefix)
|
domBuilder.endPrefixMapping(prefix)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@ -506,7 +506,7 @@ function parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBui
|
|||||||
domBuilder.characters(text,0,text.length);
|
domBuilder.characters(text,0,text.length);
|
||||||
return elEndStart;
|
return elEndStart;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return elStartEnd+1;
|
return elStartEnd+1;
|
||||||
@ -523,7 +523,7 @@ function fixSelfClosed(source,elStartEnd,tagName,closeMap){
|
|||||||
closeMap[tagName] =pos
|
closeMap[tagName] =pos
|
||||||
}
|
}
|
||||||
return pos<elStartEnd;
|
return pos<elStartEnd;
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
function _copy(source,target){
|
function _copy(source,target){
|
||||||
for(var n in source){target[n] = source[n]}
|
for(var n in source){target[n] = source[n]}
|
||||||
@ -551,11 +551,11 @@ function parseDCC(source,start,domBuilder,errorHandler){//sure start with '<!'
|
|||||||
var end = source.indexOf(']]>',start+9);
|
var end = source.indexOf(']]>',start+9);
|
||||||
domBuilder.startCDATA();
|
domBuilder.startCDATA();
|
||||||
domBuilder.characters(source,start+9,end-start-9);
|
domBuilder.characters(source,start+9,end-start-9);
|
||||||
domBuilder.endCDATA()
|
domBuilder.endCDATA()
|
||||||
return end+3;
|
return end+3;
|
||||||
}
|
}
|
||||||
//<!DOCTYPE
|
//<!DOCTYPE
|
||||||
//startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
|
//startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
|
||||||
var matchs = split(source,start);
|
var matchs = split(source,start);
|
||||||
var len = matchs.length;
|
var len = matchs.length;
|
||||||
if(len>1 && /!doctype/i.test(matchs[0][0])){
|
if(len>1 && /!doctype/i.test(matchs[0][0])){
|
||||||
@ -573,7 +573,7 @@ function parseDCC(source,start,domBuilder,errorHandler){//sure start with '<!'
|
|||||||
var lastMatch = matchs[len-1]
|
var lastMatch = matchs[len-1]
|
||||||
domBuilder.startDTD(name, pubid, sysid);
|
domBuilder.startDTD(name, pubid, sysid);
|
||||||
domBuilder.endDTD();
|
domBuilder.endDTD();
|
||||||
|
|
||||||
return lastMatch.index+lastMatch[0].length
|
return lastMatch.index+lastMatch[0].length
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -622,7 +622,7 @@ ElementAttributes.prototype = {
|
|||||||
getValue:function(i){return this[i].value}
|
getValue:function(i){return this[i].value}
|
||||||
// ,getIndex:function(uri, localName)){
|
// ,getIndex:function(uri, localName)){
|
||||||
// if(localName){
|
// if(localName){
|
||||||
//
|
//
|
||||||
// }else{
|
// }else{
|
||||||
// var qName = uri
|
// var qName = uri
|
||||||
// }
|
// }
|
||||||
|
|||||||
24
node_modules/@xmldom/xmldom/package.json
generated
vendored
24
node_modules/@xmldom/xmldom/package.json
generated
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@xmldom/xmldom",
|
"name": "@xmldom/xmldom",
|
||||||
"version": "0.8.0",
|
"version": "0.8.1",
|
||||||
"description": "A pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module.",
|
"description": "A pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"w3c",
|
"w3c",
|
||||||
@ -23,29 +23,35 @@
|
|||||||
"CHANGELOG.md",
|
"CHANGELOG.md",
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"readme.md",
|
"readme.md",
|
||||||
|
"SECURITY.md",
|
||||||
"index.d.ts",
|
"index.d.ts",
|
||||||
"lib"
|
"lib"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint lib test",
|
"lint": "eslint lib test",
|
||||||
|
"changelog": "auto-changelog --unreleased-only",
|
||||||
"start": "nodemon --watch package.json --watch lib --watch test --exec 'npm --silent run test && npm --silent run lint'",
|
"start": "nodemon --watch package.json --watch lib --watch test --exec 'npm --silent run test && npm --silent run lint'",
|
||||||
"stryker": "stryker run",
|
"stryker": "stryker run",
|
||||||
"stryker:dry-run": "stryker run -m '' --reporters progress",
|
"stryker:dry-run": "stryker run -m '' --reporters progress",
|
||||||
"test": "jest"
|
"test": "jest",
|
||||||
|
"version": "./changelog-has-version.sh",
|
||||||
|
"release": "np --no-yarn"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@stryker-mutator/core": "5.5.1",
|
"@stryker-mutator/core": "5.6.1",
|
||||||
"eslint": "8.5.0",
|
"auto-changelog": "2.4.0",
|
||||||
|
"eslint": "8.9.0",
|
||||||
"eslint-config-prettier": "8.3.0",
|
"eslint-config-prettier": "8.3.0",
|
||||||
"eslint-plugin-es5": "1.5.0",
|
"eslint-plugin-es5": "1.5.0",
|
||||||
"eslint-plugin-prettier": "4.0.0",
|
"eslint-plugin-prettier": "4.0.0",
|
||||||
"get-stream": "6.0.1",
|
"get-stream": "6.0.1",
|
||||||
"jest": "27.4.5",
|
"jest": "27.5.1",
|
||||||
"nodemon": "2.0.15",
|
"nodemon": "2.0.15",
|
||||||
|
"np": "7.6.0",
|
||||||
"prettier": "2.5.1",
|
"prettier": "2.5.1",
|
||||||
"xmltest": "1.5.0",
|
"xmltest": "1.5.0",
|
||||||
"yauzl": "2.10.0"
|
"yauzl": "2.10.0"
|
||||||
@ -53,5 +59,11 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/xmldom/xmldom/issues"
|
"url": "https://github.com/xmldom/xmldom/issues"
|
||||||
},
|
},
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"auto-changelog": {
|
||||||
|
"prepend": true,
|
||||||
|
"remote": "upstream",
|
||||||
|
"tagPrefix": "",
|
||||||
|
"template": "./auto-changelog.hbs"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
3
node_modules/@xmldom/xmldom/readme.md
generated
vendored
3
node_modules/@xmldom/xmldom/readme.md
generated
vendored
@ -3,8 +3,9 @@
|
|||||||
***Since version 0.7.0 this package is published to npm as [`@xmldom/xmldom`](https://www.npmjs.com/package/@xmldom/xmldom) and no longer as [`xmldom`](https://www.npmjs.com/package/xmldom), because [we are no longer able to publish `xmldom`](https://github.com/xmldom/xmldom/issues/271).***
|
***Since version 0.7.0 this package is published to npm as [`@xmldom/xmldom`](https://www.npmjs.com/package/@xmldom/xmldom) and no longer as [`xmldom`](https://www.npmjs.com/package/xmldom), because [we are no longer able to publish `xmldom`](https://github.com/xmldom/xmldom/issues/271).***
|
||||||
*For better readability in the docs we will continue to talk about this library as "xmldom".*
|
*For better readability in the docs we will continue to talk about this library as "xmldom".*
|
||||||
|
|
||||||
[](LICENSE)
|
[](https://github.com/xmldom/xmldom/blob/master/LICENSE)
|
||||||
[](https://www.npmjs.com/package/@xmldom/xmldom)
|
[](https://www.npmjs.com/package/@xmldom/xmldom)
|
||||||
|
[](https://snyk.io/advisor/npm-package/@xmldom/xmldom)
|
||||||
[](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
|
[](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
|
||||||
[](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Ahelp-wanted)
|
[](https://github.com/xmldom/xmldom/issues?q=is%3Aissue+is%3Aopen+label%3Ahelp-wanted)
|
||||||
[](https://dashboard.stryker-mutator.io/reports/github.com/xmldom/xmldom/master)
|
[](https://dashboard.stryker-mutator.io/reports/github.com/xmldom/xmldom/master)
|
||||||
|
|||||||
2091
package-lock.json
generated
2091
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "maven-settings-action",
|
"name": "maven-settings-action",
|
||||||
"version": "2.5.0",
|
"version": "2.6.0",
|
||||||
"description": "Prepare maven settings",
|
"description": "Prepare maven settings",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -27,10 +27,10 @@
|
|||||||
"homepage": "https://github.com/s4u/maven-settings-action#readme",
|
"homepage": "https://github.com/s4u/maven-settings-action#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.6.0",
|
"@actions/core": "^1.6.0",
|
||||||
"@xmldom/xmldom": "^0.8.0"
|
"@xmldom/xmldom": "^0.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.8.0",
|
"eslint": "^8.12.0",
|
||||||
"jest": "^27.4.7"
|
"jest": "^27.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -504,6 +504,16 @@ test('addSonatypeSnapshots', () => {
|
|||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</repository>
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
@ -516,6 +526,16 @@ test('addSonatypeSnapshots', () => {
|
|||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
</profile></profiles>`);
|
</profile></profiles>`);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -15,6 +15,16 @@
|
|||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</repository>
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
@ -27,5 +37,15 @@
|
|||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>ossrh</id>
|
||||||
|
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
</profile>
|
</profile>
|
||||||
|
|||||||
Reference in New Issue
Block a user