Skip to content

Commit daa56c6

Browse files
committed
- ci - Update shell-function shDirHttplinkValidate() with user-agent-header.
1 parent 0872721 commit daa56c6

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

jslint_ci.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,11 @@ import moduleHttps from "https";
740740
return "";
741741
}
742742
dict[url] = true;
743-
req = moduleHttps.request(url, function (res) {
743+
req = moduleHttps.request(url, {
744+
headers: {
745+
"user-agent": "undefined"
746+
}
747+
}, function (res) {
744748
console.error(
745749
"shDirHttplinkValidate " + res.statusCode + " " + url
746750
);
@@ -1007,9 +1011,6 @@ shGitPullrequestCleanup() {(set -e
10071011
shGitPullrequest() {(set -e
10081012
# this function will create-and-push a github-pull-commit to origin/alpha
10091013
node --input-type=module --eval '
1010-
import moduleAssert from "assert";
1011-
import moduleChildProcess from "child_process";
1012-
import moduleFs from "fs";
10131014
// init debugInline
10141015
(function () {
10151016
let consoleError = console.error;
@@ -1023,6 +1024,9 @@ import moduleFs from "fs";
10231024
return argList[0];
10241025
};
10251026
}());
1027+
import moduleAssert from "assert";
1028+
import moduleChildProcess from "child_process";
1029+
import moduleFs from "fs";
10261030
(async function () {
10271031
let branchCheckpoint = process.argv[2] || "HEAD";
10281032
let branchMerge = process.argv[1] || "beta";

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"bin": {
3-
"jslint": "./jslint.mjs"
3+
"jslint": "jslint.mjs"
44
},
55
"bugs": {
66
"url": "https://github.com/jslint-org/jslint/issues"
@@ -26,7 +26,7 @@
2626
"name": "@jslint-org/jslint",
2727
"repository": {
2828
"type": "git",
29-
"url": "https://github.com/jslint-org/jslint.git"
29+
"url": "git+https://github.com/jslint-org/jslint.git"
3030
},
3131
"scripts": {
3232
"test": "node jslint.mjs v8_coverage_report=.artifact/coverage node test.mjs",

0 commit comments

Comments
 (0)