npm-update-package 3.0.19 → 3.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +4 -4
- package/dist/src/git/GitRepository.js +4 -1
- package/dist/src/logger/LogLevel.js +1 -0
- package/dist/src/npm-check-updates/Dependency.js +1 -0
- package/dist/src/options/OptionType.js +1 -0
- package/dist/src/outdated-package-processor/OutdatedPullRequestStrategy.js +1 -0
- package/dist/src/package-json/DependencyType.js +1 -0
- package/dist/src/package-manager/PackageManagerName.js +1 -0
- package/dist/src/semver/SemVerLevel.js +1 -0
- package/package.json +4 -4
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.21",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"type-guards": "0.15.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@munierujp/eslint-config-typescript": "
|
|
35
|
+
"@munierujp/eslint-config-typescript": "42.0.0",
|
|
36
36
|
"@tsconfig/node18": "18.2.4",
|
|
37
37
|
"@types/mustache": "4.2.5",
|
|
38
38
|
"@types/node": "18.17.15",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"@types/parse-github-url": "1.0.3",
|
|
41
41
|
"@types/semver": "7.5.8",
|
|
42
42
|
"eslint": "8.57.0",
|
|
43
|
-
"eslint-plugin-jest": "
|
|
43
|
+
"eslint-plugin-jest": "28.2.0",
|
|
44
44
|
"jest": "29.7.0",
|
|
45
45
|
"npm-run-all": "4.1.5",
|
|
46
46
|
"rimraf": "5.0.5",
|
|
47
47
|
"ts-jest": "29.1.2",
|
|
48
48
|
"ts-node": "10.9.2",
|
|
49
|
-
"typescript": "5.4.
|
|
49
|
+
"typescript": "5.4.5",
|
|
50
50
|
"utility-types": "3.11.0"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
|
@@ -44,7 +44,10 @@ class GitRepository {
|
|
|
44
44
|
return undefined;
|
|
45
45
|
}
|
|
46
46
|
const host = protocol === 'github:' ? HOST_GITHUB : result.host;
|
|
47
|
-
if (host === null
|
|
47
|
+
if (host === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (!host.includes('.')) {
|
|
48
51
|
return undefined;
|
|
49
52
|
}
|
|
50
53
|
return new GitRepository({
|
|
@@ -8,5 +8,6 @@ exports.OptionType = {
|
|
|
8
8
|
StringArray: 'string[]'
|
|
9
9
|
};
|
|
10
10
|
const optionTypes = Object.values(exports.OptionType);
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
11
12
|
const isOptionType = (value) => optionTypes.includes(value);
|
|
12
13
|
exports.isOptionType = isOptionType;
|
|
@@ -7,5 +7,6 @@ exports.OutdatedPullRequestStrategy = {
|
|
|
7
7
|
Skip: 'skip'
|
|
8
8
|
};
|
|
9
9
|
const outdatedPullRequestStrategies = Object.values(exports.OutdatedPullRequestStrategy);
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10
11
|
const isOutdatedPullRequestStrategy = (value) => outdatedPullRequestStrategies.includes(value);
|
|
11
12
|
exports.isOutdatedPullRequestStrategy = isOutdatedPullRequestStrategy;
|
|
@@ -9,5 +9,6 @@ exports.DependencyType = {
|
|
|
9
9
|
OptionalDependencies: 'optionalDependencies'
|
|
10
10
|
};
|
|
11
11
|
const dependencyTypes = Object.values(exports.DependencyType);
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
12
13
|
const isDependencyType = (value) => dependencyTypes.includes(value);
|
|
13
14
|
exports.isDependencyType = isDependencyType;
|
|
@@ -6,5 +6,6 @@ exports.PackageManagerName = {
|
|
|
6
6
|
Yarn: 'yarn'
|
|
7
7
|
};
|
|
8
8
|
const packageManagerNames = Object.values(exports.PackageManagerName);
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
9
10
|
const isPackageManagerName = (value) => packageManagerNames.includes(value);
|
|
10
11
|
exports.isPackageManagerName = isPackageManagerName;
|
|
@@ -7,5 +7,6 @@ exports.SemVerLevel = {
|
|
|
7
7
|
Patch: 'patch'
|
|
8
8
|
};
|
|
9
9
|
const semVerLevels = Object.values(exports.SemVerLevel);
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
10
11
|
const isSemVerLevel = (value) => semVerLevels.includes(value);
|
|
11
12
|
exports.isSemVerLevel = isSemVerLevel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.21",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"type-guards": "0.15.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@munierujp/eslint-config-typescript": "
|
|
35
|
+
"@munierujp/eslint-config-typescript": "42.0.0",
|
|
36
36
|
"@tsconfig/node18": "18.2.4",
|
|
37
37
|
"@types/mustache": "4.2.5",
|
|
38
38
|
"@types/node": "18.17.15",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"@types/parse-github-url": "1.0.3",
|
|
41
41
|
"@types/semver": "7.5.8",
|
|
42
42
|
"eslint": "8.57.0",
|
|
43
|
-
"eslint-plugin-jest": "
|
|
43
|
+
"eslint-plugin-jest": "28.2.0",
|
|
44
44
|
"jest": "29.7.0",
|
|
45
45
|
"npm-run-all": "4.1.5",
|
|
46
46
|
"rimraf": "5.0.5",
|
|
47
47
|
"ts-jest": "29.1.2",
|
|
48
48
|
"ts-node": "10.9.2",
|
|
49
|
-
"typescript": "5.4.
|
|
49
|
+
"typescript": "5.4.5",
|
|
50
50
|
"utility-types": "3.11.0"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|