mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-17 00:00:20 +08:00
Compare commits
33 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 894661b3dd | |||
| ed58d20239 | |||
| c99cacf8e5 | |||
| 1bd3a222e0 | |||
| 2c724b5972 | |||
| a8a76a7b1e | |||
| 41cc972a6e | |||
| c253de7654 | |||
| e2a43d69f6 | |||
| d20dda0d1e | |||
| 9c3f6ce289 | |||
| fe82f409d0 | |||
| eb293947b5 | |||
| b703e0a7d7 | |||
| 1cf39ceb1b | |||
| 134cffbe71 | |||
| 38474872a0 | |||
| 49cd6b8c78 | |||
| 2e21981438 | |||
| afc0d7896a | |||
| 2e58029a96 | |||
| 80a4416636 | |||
| 3ef9aea393 | |||
| bf2f085f63 | |||
| f7a604dc6b | |||
| c1153c4b91 | |||
| 64d0152d7a | |||
| 5ac0323dc5 | |||
| ee25a92a84 | |||
| fb4ef3151e | |||
| f972cb7ea0 | |||
| eff73b239d | |||
| 8a5150d3c2 |
4
.github/workflows/audit.yml
vendored
4
.github/workflows/audit.yml
vendored
@ -17,11 +17,11 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '24.x'
|
||||||
|
|
||||||
- run: npm version
|
- run: npm version
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|||||||
1
.github/workflows/release-drafter.yml
vendored
1
.github/workflows/release-drafter.yml
vendored
@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
- 'main'
|
- 'main'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_release_draft:
|
update_release_draft:
|
||||||
|
|||||||
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@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '24.x'
|
||||||
|
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|||||||
34
README.md
34
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@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
## ```settings.xml``` with servers section
|
## ```settings.xml``` with servers section
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.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@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.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@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.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 proxies section
|
## ```settings.xml``` with proxies section
|
||||||
```yml
|
```yml
|
||||||
step:
|
step:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
proxies: '[{"id": "proxyId", "active": "isActive", "protocol": "proxyProtocol", "host": "proxyHost", "port": "proxyPort", "nonProxyHosts": "nonProxyHost", "user": "proxUser", "password": "proxPassword"}]'
|
proxies: '[{"id": "proxyId", "active": "isActive", "protocol": "proxyProtocol", "host": "proxyHost", "port": "proxyPort", "nonProxyHosts": "nonProxyHost", "user": "proxUser", "password": "proxPassword"}]'
|
||||||
```
|
```
|
||||||
@ -113,16 +113,16 @@ Note: Authentication details are optional.
|
|||||||
## ```settings.xml``` with properties
|
## ```settings.xml``` with properties
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
|
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
|
||||||
```
|
```
|
||||||
|
|
||||||
## ```settings.xml``` with https://oss.sonatype.org/content/repositories/snapshots in repository list
|
## ```settings.xml``` with https://central.sonatype.com/repository/maven-snapshots in repository list
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
sonatypeSnapshots: true
|
sonatypeSnapshots: true
|
||||||
```
|
```
|
||||||
@ -131,7 +131,7 @@ steps:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
apacheSnapshots: true
|
apacheSnapshots: true
|
||||||
```
|
```
|
||||||
@ -139,7 +139,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@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
override: false
|
override: false
|
||||||
```
|
```
|
||||||
@ -147,7 +147,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@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
githubServer: false
|
githubServer: false
|
||||||
```
|
```
|
||||||
@ -156,7 +156,7 @@ steps:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
oracleServers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
oracleServers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
||||||
```
|
```
|
||||||
@ -164,7 +164,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@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
oracleRepo: true
|
oracleRepo: true
|
||||||
```
|
```
|
||||||
@ -172,7 +172,7 @@ steps:
|
|||||||
## ```settings.xml``` with custom repositories
|
## ```settings.xml``` with custom repositories
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
repositories: '[{"id":"repoId","name":"repoName","url":"url","snapshots":{"enabled":true}}]'
|
repositories: '[{"id":"repoId","name":"repoName","url":"url","snapshots":{"enabled":true}}]'
|
||||||
```
|
```
|
||||||
@ -180,7 +180,7 @@ steps:
|
|||||||
## ```settings.xml``` with custom plugin repositories
|
## ```settings.xml``` with custom plugin repositories
|
||||||
```yml
|
```yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
pluginRepositories: '[{"id":"repoId","name":"repoName","url":"url","snapshots":{"enabled":true}}]'
|
pluginRepositories: '[{"id":"repoId","name":"repoName","url":"url","snapshots":{"enabled":true}}]'
|
||||||
```
|
```
|
||||||
@ -192,7 +192,7 @@ It is also possible pass in Github Secrets e.g.
|
|||||||
|
|
||||||
``` yml
|
``` yml
|
||||||
steps:
|
steps:
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
with:
|
with:
|
||||||
servers: |
|
servers: |
|
||||||
[{
|
[{
|
||||||
@ -222,7 +222,7 @@ steps:
|
|||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|
||||||
- uses: s4u/maven-settings-action@v3.1.0
|
- uses: s4u/maven-settings-action@v4.0.0
|
||||||
|
|
||||||
- run: mvn verify
|
- run: mvn verify
|
||||||
```
|
```
|
||||||
|
|||||||
@ -51,6 +51,6 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node20'
|
using: 'node24'
|
||||||
main: 'index.js'
|
main: 'index.js'
|
||||||
post: 'cleanup.js'
|
post: 'cleanup.js'
|
||||||
|
|||||||
@ -130,18 +130,8 @@ test('run with all feature', () => {
|
|||||||
</activation>
|
</activation>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>sonatype-snapshots</id>
|
<id>central-snapshots</id>
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
<url>https://central.sonatype.com/repository/maven-snapshots</url>
|
||||||
<releases>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</releases>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>ossrh</id>
|
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
@ -152,18 +142,8 @@ test('run with all feature', () => {
|
|||||||
</repositories>
|
</repositories>
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>sonatype-snapshots</id>
|
<id>central-snapshots</id>
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
<url>https://central.sonatype.com/repository/maven-snapshots</url>
|
||||||
<releases>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</releases>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</pluginRepository>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>ossrh</id>
|
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
|
|||||||
14
node_modules/.package-lock.json
generated
vendored
14
node_modules/.package-lock.json
generated
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "maven-settings-action",
|
"name": "maven-settings-action",
|
||||||
"version": "3.1.0",
|
"version": "4.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
@ -49,9 +49,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@xmldom/xmldom": {
|
"node_modules/@xmldom/xmldom": {
|
||||||
"version": "0.8.10",
|
"version": "0.8.11",
|
||||||
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz",
|
"resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.11.tgz",
|
||||||
"integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==",
|
"integrity": "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
@ -67,9 +67,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici": {
|
"node_modules/undici": {
|
||||||
"version": "5.28.4",
|
"version": "5.29.0",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz",
|
||||||
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
|
"integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/busboy": "^2.0.0"
|
"@fastify/busboy": "^2.0.0"
|
||||||
|
|||||||
9
node_modules/@xmldom/xmldom/CHANGELOG.md
generated
vendored
9
node_modules/@xmldom/xmldom/CHANGELOG.md
generated
vendored
@ -4,6 +4,15 @@ 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.11](https://github.com/xmldom/xmldom/compare/0.8.10...0.8.11)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- update `ownerDocument` when moving nodes between documents
|
||||||
|
|
||||||
|
Thank you, [@shunkica](https://github.com/shunkica), for your contributions
|
||||||
|
|
||||||
|
|
||||||
## [0.8.10](https://github.com/xmldom/xmldom/compare/0.8.9...0.8.10)
|
## [0.8.10](https://github.com/xmldom/xmldom/compare/0.8.9...0.8.10)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
43
node_modules/@xmldom/xmldom/lib/dom.js
generated
vendored
43
node_modules/@xmldom/xmldom/lib/dom.js
generated
vendored
@ -980,6 +980,9 @@ function _insertBefore(parent, node, child, _inDocumentAssertion) {
|
|||||||
}
|
}
|
||||||
do{
|
do{
|
||||||
newFirst.parentNode = parent;
|
newFirst.parentNode = parent;
|
||||||
|
// Update ownerDocument for each node being inserted
|
||||||
|
var targetDoc = parent.ownerDocument || parent;
|
||||||
|
_updateOwnerDocument(newFirst, targetDoc);
|
||||||
}while(newFirst !== newLast && (newFirst= newFirst.nextSibling))
|
}while(newFirst !== newLast && (newFirst= newFirst.nextSibling))
|
||||||
_onUpdateChild(parent.ownerDocument||parent, parent);
|
_onUpdateChild(parent.ownerDocument||parent, parent);
|
||||||
//console.log(parent.lastChild.nextSibling == null)
|
//console.log(parent.lastChild.nextSibling == null)
|
||||||
@ -989,6 +992,37 @@ function _insertBefore(parent, node, child, _inDocumentAssertion) {
|
|||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Recursively updates the ownerDocument property for a node and all its descendants
|
||||||
|
* @param {Node} node
|
||||||
|
* @param {Document} newOwnerDocument
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
function _updateOwnerDocument(node, newOwnerDocument) {
|
||||||
|
if (node.ownerDocument === newOwnerDocument) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
node.ownerDocument = newOwnerDocument;
|
||||||
|
|
||||||
|
// Update attributes if this is an element
|
||||||
|
if (node.nodeType === ELEMENT_NODE && node.attributes) {
|
||||||
|
for (var i = 0; i < node.attributes.length; i++) {
|
||||||
|
var attr = node.attributes.item(i);
|
||||||
|
if (attr) {
|
||||||
|
attr.ownerDocument = newOwnerDocument;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Recursively update child nodes
|
||||||
|
var child = node.firstChild;
|
||||||
|
while (child) {
|
||||||
|
_updateOwnerDocument(child, newOwnerDocument);
|
||||||
|
child = child.nextSibling;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Appends `newChild` to `parentNode`.
|
* Appends `newChild` to `parentNode`.
|
||||||
* If `newChild` is already connected to a `parentNode` it is first removed from it.
|
* If `newChild` is already connected to a `parentNode` it is first removed from it.
|
||||||
@ -1014,6 +1048,11 @@ function _appendSingleChild (parentNode, newChild) {
|
|||||||
}
|
}
|
||||||
parentNode.lastChild = newChild;
|
parentNode.lastChild = newChild;
|
||||||
_onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
|
_onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
|
||||||
|
|
||||||
|
// Update ownerDocument for the new child and all its descendants
|
||||||
|
var targetDoc = parentNode.ownerDocument || parentNode;
|
||||||
|
_updateOwnerDocument(newChild, targetDoc);
|
||||||
|
|
||||||
return newChild;
|
return newChild;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1042,7 +1081,7 @@ Document.prototype = {
|
|||||||
return newChild;
|
return newChild;
|
||||||
}
|
}
|
||||||
_insertBefore(this, newChild, refChild);
|
_insertBefore(this, newChild, refChild);
|
||||||
newChild.ownerDocument = this;
|
_updateOwnerDocument(newChild, this);
|
||||||
if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
|
if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
|
||||||
this.documentElement = newChild;
|
this.documentElement = newChild;
|
||||||
}
|
}
|
||||||
@ -1058,7 +1097,7 @@ Document.prototype = {
|
|||||||
replaceChild: function (newChild, oldChild) {
|
replaceChild: function (newChild, oldChild) {
|
||||||
//raises
|
//raises
|
||||||
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
_insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
|
||||||
newChild.ownerDocument = this;
|
_updateOwnerDocument(newChild, this);
|
||||||
if (oldChild) {
|
if (oldChild) {
|
||||||
this.removeChild(oldChild);
|
this.removeChild(oldChild);
|
||||||
}
|
}
|
||||||
|
|||||||
138
node_modules/@xmldom/xmldom/package.json
generated
vendored
138
node_modules/@xmldom/xmldom/package.json
generated
vendored
@ -1,71 +1,71 @@
|
|||||||
{
|
{
|
||||||
"name": "@xmldom/xmldom",
|
"name": "@xmldom/xmldom",
|
||||||
"version": "0.8.10",
|
"version": "0.8.11",
|
||||||
"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",
|
||||||
"dom",
|
"dom",
|
||||||
"xml",
|
"xml",
|
||||||
"parser",
|
"parser",
|
||||||
"javascript",
|
"javascript",
|
||||||
"DOMParser",
|
"DOMParser",
|
||||||
"XMLSerializer",
|
"XMLSerializer",
|
||||||
"ponyfill"
|
"ponyfill"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/xmldom/xmldom",
|
"homepage": "https://github.com/xmldom/xmldom",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/xmldom/xmldom.git"
|
"url": "git://github.com/xmldom/xmldom.git"
|
||||||
},
|
},
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"CHANGELOG.md",
|
"CHANGELOG.md",
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"readme.md",
|
"readme.md",
|
||||||
"SECURITY.md",
|
"SECURITY.md",
|
||||||
"index.d.ts",
|
"index.d.ts",
|
||||||
"lib"
|
"lib"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint lib test",
|
"lint": "eslint lib test",
|
||||||
"format": "prettier --write test",
|
"format": "prettier --write test",
|
||||||
"changelog": "auto-changelog --unreleased-only",
|
"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",
|
||||||
"testrelease": "npm test && eslint lib",
|
"testrelease": "npm test && eslint lib",
|
||||||
"version": "./changelog-has-version.sh",
|
"version": "./changelog-has-version.sh",
|
||||||
"release": "np --no-yarn --test-script testrelease --branch release-0.8.x patch"
|
"release": "np --no-yarn --test-script testrelease --branch release-0.8.x patch"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@stryker-mutator/core": "5.6.1",
|
"@stryker-mutator/core": "5.6.1",
|
||||||
"auto-changelog": "2.4.0",
|
"auto-changelog": "2.4.0",
|
||||||
"eslint": "8.25.0",
|
"eslint": "8.25.0",
|
||||||
"eslint-config-prettier": "8.5.0",
|
"eslint-config-prettier": "8.5.0",
|
||||||
"eslint-plugin-es5": "1.5.0",
|
"eslint-plugin-es5": "1.5.0",
|
||||||
"eslint-plugin-prettier": "4.2.1",
|
"eslint-plugin-prettier": "4.2.1",
|
||||||
"get-stream": "6.0.1",
|
"get-stream": "6.0.1",
|
||||||
"jest": "27.5.1",
|
"jest": "27.5.1",
|
||||||
"nodemon": "2.0.20",
|
"nodemon": "2.0.20",
|
||||||
"np": "7.6.2",
|
"np": "9.2.0",
|
||||||
"prettier": "2.7.1",
|
"prettier": "2.7.1",
|
||||||
"xmltest": "1.5.0",
|
"xmltest": "1.5.0",
|
||||||
"yauzl": "2.10.0"
|
"yauzl": "2.10.0"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/xmldom/xmldom/issues"
|
"url": "https://github.com/xmldom/xmldom/issues"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"auto-changelog": {
|
"auto-changelog": {
|
||||||
"prepend": true,
|
"prepend": true,
|
||||||
"remote": "upstream",
|
"remote": "upstream",
|
||||||
"tagPrefix": "",
|
"tagPrefix": "",
|
||||||
"template": "./auto-changelog.hbs"
|
"template": "./auto-changelog.hbs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
7
node_modules/undici/lib/cookies/index.js
generated
vendored
7
node_modules/undici/lib/cookies/index.js
generated
vendored
@ -1,7 +1,7 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const { parseSetCookie } = require('./parse')
|
const { parseSetCookie } = require('./parse')
|
||||||
const { stringify, getHeadersList } = require('./util')
|
const { stringify } = require('./util')
|
||||||
const { webidl } = require('../fetch/webidl')
|
const { webidl } = require('../fetch/webidl')
|
||||||
const { Headers } = require('../fetch/headers')
|
const { Headers } = require('../fetch/headers')
|
||||||
|
|
||||||
@ -77,14 +77,13 @@ function getSetCookies (headers) {
|
|||||||
|
|
||||||
webidl.brandCheck(headers, Headers, { strict: false })
|
webidl.brandCheck(headers, Headers, { strict: false })
|
||||||
|
|
||||||
const cookies = getHeadersList(headers).cookies
|
const cookies = headers.getSetCookie()
|
||||||
|
|
||||||
if (!cookies) {
|
if (!cookies) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
// In older versions of undici, cookies is a list of name:value.
|
return cookies.map((pair) => parseSetCookie(pair))
|
||||||
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
35
node_modules/undici/lib/cookies/util.js
generated
vendored
35
node_modules/undici/lib/cookies/util.js
generated
vendored
@ -1,8 +1,9 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const assert = require('assert')
|
/**
|
||||||
const { kHeadersList } = require('../core/symbols')
|
* @param {string} value
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
function isCTLExcludingHtab (value) {
|
function isCTLExcludingHtab (value) {
|
||||||
if (value.length === 0) {
|
if (value.length === 0) {
|
||||||
return false
|
return false
|
||||||
@ -263,29 +264,11 @@ function stringify (cookie) {
|
|||||||
return out.join('; ')
|
return out.join('; ')
|
||||||
}
|
}
|
||||||
|
|
||||||
let kHeadersListNode
|
|
||||||
|
|
||||||
function getHeadersList (headers) {
|
|
||||||
if (headers[kHeadersList]) {
|
|
||||||
return headers[kHeadersList]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!kHeadersListNode) {
|
|
||||||
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
|
|
||||||
(symbol) => symbol.description === 'headers list'
|
|
||||||
)
|
|
||||||
|
|
||||||
assert(kHeadersListNode, 'Headers cannot be parsed')
|
|
||||||
}
|
|
||||||
|
|
||||||
const headersList = headers[kHeadersListNode]
|
|
||||||
assert(headersList)
|
|
||||||
|
|
||||||
return headersList
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
isCTLExcludingHtab,
|
isCTLExcludingHtab,
|
||||||
stringify,
|
validateCookieName,
|
||||||
getHeadersList
|
validateCookiePath,
|
||||||
|
validateCookieValue,
|
||||||
|
toIMFDate,
|
||||||
|
stringify
|
||||||
}
|
}
|
||||||
|
|||||||
10
node_modules/undici/lib/fetch/body.js
generated
vendored
10
node_modules/undici/lib/fetch/body.js
generated
vendored
@ -22,6 +22,14 @@ const { isUint8Array, isArrayBuffer } = require('util/types')
|
|||||||
const { File: UndiciFile } = require('./file')
|
const { File: UndiciFile } = require('./file')
|
||||||
const { parseMIMEType, serializeAMimeType } = require('./dataURL')
|
const { parseMIMEType, serializeAMimeType } = require('./dataURL')
|
||||||
|
|
||||||
|
let random
|
||||||
|
try {
|
||||||
|
const crypto = require('node:crypto')
|
||||||
|
random = (max) => crypto.randomInt(0, max)
|
||||||
|
} catch {
|
||||||
|
random = (max) => Math.floor(Math.random(max))
|
||||||
|
}
|
||||||
|
|
||||||
let ReadableStream = globalThis.ReadableStream
|
let ReadableStream = globalThis.ReadableStream
|
||||||
|
|
||||||
/** @type {globalThis['File']} */
|
/** @type {globalThis['File']} */
|
||||||
@ -107,7 +115,7 @@ function extractBody (object, keepalive = false) {
|
|||||||
// Set source to a copy of the bytes held by object.
|
// Set source to a copy of the bytes held by object.
|
||||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
||||||
} else if (util.isFormDataLike(object)) {
|
} else if (util.isFormDataLike(object)) {
|
||||||
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
|
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
|
||||||
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
||||||
|
|
||||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
||||||
|
|||||||
4
node_modules/undici/lib/fetch/headers.js
generated
vendored
4
node_modules/undici/lib/fetch/headers.js
generated
vendored
@ -10,6 +10,7 @@ const {
|
|||||||
isValidHeaderName,
|
isValidHeaderName,
|
||||||
isValidHeaderValue
|
isValidHeaderValue
|
||||||
} = require('./util')
|
} = require('./util')
|
||||||
|
const util = require('util')
|
||||||
const { webidl } = require('./webidl')
|
const { webidl } = require('./webidl')
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
||||||
@ -563,6 +564,9 @@ Object.defineProperties(Headers.prototype, {
|
|||||||
[Symbol.toStringTag]: {
|
[Symbol.toStringTag]: {
|
||||||
value: 'Headers',
|
value: 'Headers',
|
||||||
configurable: true
|
configurable: true
|
||||||
|
},
|
||||||
|
[util.inspect.custom]: {
|
||||||
|
enumerable: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
14
node_modules/undici/lib/pool.js
generated
vendored
14
node_modules/undici/lib/pool.js
generated
vendored
@ -73,6 +73,20 @@ class Pool extends PoolBase {
|
|||||||
? { ...options.interceptors }
|
? { ...options.interceptors }
|
||||||
: undefined
|
: undefined
|
||||||
this[kFactory] = factory
|
this[kFactory] = factory
|
||||||
|
|
||||||
|
this.on('connectionError', (origin, targets, error) => {
|
||||||
|
// If a connection error occurs, we remove the client from the pool,
|
||||||
|
// and emit a connectionError event. They will not be re-used.
|
||||||
|
// Fixes https://github.com/nodejs/undici/issues/3895
|
||||||
|
for (const target of targets) {
|
||||||
|
// Do not use kRemoveClient here, as it will close the client,
|
||||||
|
// but the client cannot be closed in this state.
|
||||||
|
const idx = this[kClients].indexOf(target)
|
||||||
|
if (idx !== -1) {
|
||||||
|
this[kClients].splice(idx, 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
[kGetDispatcher] () {
|
[kGetDispatcher] () {
|
||||||
|
|||||||
2
node_modules/undici/package.json
generated
vendored
2
node_modules/undici/package.json
generated
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "undici",
|
"name": "undici",
|
||||||
"version": "5.28.4",
|
"version": "5.29.0",
|
||||||
"description": "An HTTP/1.1 client, written from scratch for Node.js",
|
"description": "An HTTP/1.1 client, written from scratch for Node.js",
|
||||||
"homepage": "https://undici.nodejs.org",
|
"homepage": "https://undici.nodejs.org",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|||||||
2713
package-lock.json
generated
2713
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": "3.1.0",
|
"version": "4.0.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.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"@xmldom/xmldom": "^0.8.10"
|
"@xmldom/xmldom": "^0.8.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^9.14.0",
|
"eslint": "^9.34.0",
|
||||||
"jest": "^29.7.0"
|
"jest": "^30.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -592,18 +592,8 @@ test('addSonatypeSnapshots', () => {
|
|||||||
</activation>
|
</activation>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>sonatype-snapshots</id>
|
<id>central-snapshots</id>
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
<url>https://central.sonatype.com/repository/maven-snapshots</url>
|
||||||
<releases>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</releases>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>ossrh</id>
|
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
@ -614,18 +604,8 @@ test('addSonatypeSnapshots', () => {
|
|||||||
</repositories>
|
</repositories>
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>sonatype-snapshots</id>
|
<id>central-snapshots</id>
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
<url>https://central.sonatype.com/repository/maven-snapshots</url>
|
||||||
<releases>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</releases>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</pluginRepository>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>ossrh</id>
|
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
|
|||||||
@ -6,18 +6,8 @@
|
|||||||
</activation>
|
</activation>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>sonatype-snapshots</id>
|
<id>central-snapshots</id>
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
<url>https://central.sonatype.com/repository/maven-snapshots</url>
|
||||||
<releases>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</releases>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>ossrh</id>
|
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
@ -28,18 +18,8 @@
|
|||||||
</repositories>
|
</repositories>
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>sonatype-snapshots</id>
|
<id>central-snapshots</id>
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
<url>https://central.sonatype.com/repository/maven-snapshots</url>
|
||||||
<releases>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</releases>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</pluginRepository>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>ossrh</id>
|
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
|
|||||||
Reference in New Issue
Block a user