npm-update-package 0.1.0 → 0.2.0
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
package/dist/app.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-update-package",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "CLI tool for creating pull request to update npm packages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"typescript": "4.4.4",
|
|
49
49
|
"utility-types": "3.10.0"
|
|
50
50
|
},
|
|
51
|
-
"homepage": "https://github.com/
|
|
51
|
+
"homepage": "https://github.com/npm-update-package/npm-update-package",
|
|
52
52
|
"bugs": {
|
|
53
|
-
"url": "https://github.com/
|
|
53
|
+
"url": "https://github.com/npm-update-package/npm-update-package/issues"
|
|
54
54
|
},
|
|
55
55
|
"repository": {
|
|
56
56
|
"type": "git",
|
|
57
|
-
"url": "https://github.com/
|
|
57
|
+
"url": "https://github.com/npm-update-package/npm-update-package.git"
|
|
58
58
|
}
|
|
59
59
|
}
|
package/src/app.ts
CHANGED
|
@@ -4,12 +4,12 @@ describe('GitRepository', () => {
|
|
|
4
4
|
describe('of', () => {
|
|
5
5
|
describe('if URL is HTTPS', () => {
|
|
6
6
|
describe('if URL is github.com', () => {
|
|
7
|
-
const url = 'https://github.com/
|
|
7
|
+
const url = 'https://github.com/npm-update-package/npm-update-package.git'
|
|
8
8
|
|
|
9
9
|
it('returns new GitRepository instance', () => {
|
|
10
10
|
const repo = GitRepository.of(url)
|
|
11
11
|
expect(repo.host).toBe('github.com')
|
|
12
|
-
expect(repo.owner).toBe('
|
|
12
|
+
expect(repo.owner).toBe('npm-update-package')
|
|
13
13
|
expect(repo.name).toBe('npm-update-package')
|
|
14
14
|
expect(repo.apiEndPoint).toBe('https://api.github.com')
|
|
15
15
|
expect(repo.isGitHubDotCom).toBe(true)
|
|
@@ -17,12 +17,12 @@ describe('GitRepository', () => {
|
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
describe('if URL is not github.com', () => {
|
|
20
|
-
const url = 'https://git.example.com/
|
|
20
|
+
const url = 'https://git.example.com/npm-update-package/npm-update-package.git'
|
|
21
21
|
|
|
22
22
|
it('returns new GitRepository instance', () => {
|
|
23
23
|
const repo = GitRepository.of(url)
|
|
24
24
|
expect(repo.host).toBe('git.example.com')
|
|
25
|
-
expect(repo.owner).toBe('
|
|
25
|
+
expect(repo.owner).toBe('npm-update-package')
|
|
26
26
|
expect(repo.name).toBe('npm-update-package')
|
|
27
27
|
expect(repo.apiEndPoint).toBe('https://git.example.com/api/v3')
|
|
28
28
|
expect(repo.isGitHubDotCom).toBe(false)
|
|
@@ -32,12 +32,12 @@ describe('GitRepository', () => {
|
|
|
32
32
|
|
|
33
33
|
describe('if URL is SSH', () => {
|
|
34
34
|
describe('if URL is github.com', () => {
|
|
35
|
-
const url = 'git@github.com:
|
|
35
|
+
const url = 'git@github.com:npm-update-package/npm-update-package.git'
|
|
36
36
|
|
|
37
37
|
it('returns new GitRepository instance', () => {
|
|
38
38
|
const repo = GitRepository.of(url)
|
|
39
39
|
expect(repo.host).toBe('github.com')
|
|
40
|
-
expect(repo.owner).toBe('
|
|
40
|
+
expect(repo.owner).toBe('npm-update-package')
|
|
41
41
|
expect(repo.name).toBe('npm-update-package')
|
|
42
42
|
expect(repo.apiEndPoint).toBe('https://api.github.com')
|
|
43
43
|
expect(repo.isGitHubDotCom).toBe(true)
|
|
@@ -45,12 +45,12 @@ describe('GitRepository', () => {
|
|
|
45
45
|
})
|
|
46
46
|
|
|
47
47
|
describe('if URL is not github.com', () => {
|
|
48
|
-
const url = 'git@git.example.com:
|
|
48
|
+
const url = 'git@git.example.com:npm-update-package/npm-update-package.git'
|
|
49
49
|
|
|
50
50
|
it('returns new GitRepository instance', () => {
|
|
51
51
|
const repo = GitRepository.of(url)
|
|
52
52
|
expect(repo.host).toBe('git.example.com')
|
|
53
|
-
expect(repo.owner).toBe('
|
|
53
|
+
expect(repo.owner).toBe('npm-update-package')
|
|
54
54
|
expect(repo.name).toBe('npm-update-package')
|
|
55
55
|
expect(repo.apiEndPoint).toBe('https://git.example.com/api/v3')
|
|
56
56
|
expect(repo.isGitHubDotCom).toBe(false)
|
|
@@ -18,7 +18,7 @@ describe('createPullRequestBody', () => {
|
|
|
18
18
|
|[@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)|patch|\`1.0.0\`|\`1.0.1\`|
|
|
19
19
|
|
|
20
20
|
---
|
|
21
|
-
This PR has been generated by [npm-update-package](https://github.com/
|
|
21
|
+
This PR has been generated by [npm-update-package](https://github.com/npm-update-package/npm-update-package)`)
|
|
22
22
|
})
|
|
23
23
|
})
|
|
24
24
|
|
|
@@ -37,7 +37,7 @@ This PR has been generated by [npm-update-package](https://github.com/munierujp/
|
|
|
37
37
|
|[@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)|minor|\`1.0.0\`|\`1.1.0\`|
|
|
38
38
|
|
|
39
39
|
---
|
|
40
|
-
This PR has been generated by [npm-update-package](https://github.com/
|
|
40
|
+
This PR has been generated by [npm-update-package](https://github.com/npm-update-package/npm-update-package)`)
|
|
41
41
|
})
|
|
42
42
|
})
|
|
43
43
|
|
|
@@ -56,7 +56,7 @@ This PR has been generated by [npm-update-package](https://github.com/munierujp/
|
|
|
56
56
|
|[@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)|major|\`1.0.0\`|\`2.0.0\`|
|
|
57
57
|
|
|
58
58
|
---
|
|
59
|
-
This PR has been generated by [npm-update-package](https://github.com/
|
|
59
|
+
This PR has been generated by [npm-update-package](https://github.com/npm-update-package/npm-update-package)`)
|
|
60
60
|
})
|
|
61
61
|
})
|
|
62
62
|
})
|