npm-update-package 0.45.3 → 0.45.4
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/README.md
CHANGED
|
@@ -294,6 +294,6 @@ end
|
|
|
294
294
|
|
|
295
295
|
npm-update-package can be used in environments where Renovate cannot be used for some reason.
|
|
296
296
|
|
|
297
|
-
###
|
|
297
|
+
### What should I do if conflicts occurred in the pull request?
|
|
298
298
|
|
|
299
|
-
If
|
|
299
|
+
If you have difficulty resolving it manually, close the pull request and run npm-update-package again.
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.4",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/node": "12.20.40",
|
|
36
36
|
"@types/parse-github-url": "1.0.0",
|
|
37
37
|
"@types/semver": "7.3.9",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "5.14.0",
|
|
39
39
|
"eslint": "8.10.0",
|
|
40
40
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
41
41
|
"eslint-plugin-import": "2.25.4",
|
|
@@ -4,7 +4,11 @@ exports.extractPullRequestMetadata = void 0;
|
|
|
4
4
|
const PullRequestMetadata_1 = require("./PullRequestMetadata");
|
|
5
5
|
const extractPullRequestMetadata = (pullRequestBody) => {
|
|
6
6
|
const matched = pullRequestBody.match(/<div id="npm-update-package-metadata">\s*```json\s*([\s\S]+?)\s*```\s*<\/div>/);
|
|
7
|
-
|
|
7
|
+
if (matched === null) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
const json = matched[1];
|
|
11
|
+
/* istanbul ignore if: I can't write a test to reach here. */
|
|
8
12
|
if (json === undefined) {
|
|
9
13
|
return undefined;
|
|
10
14
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parsePackageJson = void 0;
|
|
4
4
|
const PackageMetadata_1 = require("./PackageMetadata");
|
|
5
|
-
// TODO: add test
|
|
6
5
|
const parsePackageJson = (json) => {
|
|
7
6
|
const parsed = JSON.parse(json);
|
|
8
7
|
if ((0, PackageMetadata_1.isPackageMetadata)(parsed)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.4",
|
|
4
4
|
"description": "CLI tool for creating pull requests to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/node": "12.20.40",
|
|
36
36
|
"@types/parse-github-url": "1.0.0",
|
|
37
37
|
"@types/semver": "7.3.9",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "5.14.0",
|
|
39
39
|
"eslint": "8.10.0",
|
|
40
40
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
41
41
|
"eslint-plugin-import": "2.25.4",
|