Skip to content

Commit cfa3c7d

Browse files
committed
Upgrade dependencies and meta tweaks
1 parent e57c066 commit cfa3c7d

25 files changed

+33
-37
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ charset = utf-8
77
trim_trailing_whitespace = true
88
insert_final_newline = true
99

10-
[{package.json,*.yml}]
10+
[*.yml]
1111
indent_style = space
1212
indent_size = 2

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2+
yarn.lock
23
extension/dist

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
sudo: false
21
language: node_js
32
node_js:
43
- 'node'

extension/icon-38.png

-51 Bytes
Loading

extension/icon-notif-128.png

-887 Bytes
Loading

extension/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "Notifier for GitHub",
33
"version": "3.0.5",
44
"description": "Displays your GitHub notifications unread count",
5-
"homepage_url": "https://github.com/sindresorhus/notifier-for-github-chrome",
5+
"homepage_url": "https://github.com/sindresorhus/notifier-for-github",
66
"manifest_version": 2,
7-
"minimum_chrome_version": "52",
7+
"minimum_chrome_version": "65",
88
"icons": {
99
"128": "icon-128.png"
1010
},

extension/src/badge.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ const render = (text, color, title) => {
99
const getCountString = count => {
1010
if (count === 0) {
1111
return '';
12-
} else if (count > 9999) {
12+
}
13+
14+
if (count > 9999) {
1315
return '∞';
1416
}
17+
1518
return String(count);
1619
};
1720

extension/src/tabs-service.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ const TabsService = {
3737
}).then(tabs => {
3838
if (tabs && tabs.length > 0) {
3939
return this.updateTab(tabs[0].id, {url, active: true});
40-
} else if (tab && tab.url === 'chrome://newtab/') {
40+
}
41+
42+
if (tab && tab.url === 'chrome://newtab/') {
4143
return this.updateTab(null, {url, active: false});
4244
}
45+
4346
return this.createTab(url);
4447
});
4548
}

license

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
The MIT License (MIT)
1+
MIT License
22

33
Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
116

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
148

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

icon.ai media/icon.ai

File renamed without changes.

media/promo.png

998 Bytes
Loading

media/screenshot-notification.png

7.78 KB
Loading

media/screenshot-webstore.png

128 KB
Loading

media/screenshot-webstore2.png

80.3 KB
Loading

media/screenshot.png

117 KB
Loading

package.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
{
2-
"license": "MIT",
3-
"repository": "sindresorhus/notifier-for-github",
42
"scripts": {
53
"release": "npm run build && webstore upload --source=extension --auto-publish",
64
"test": "xo && ava",
7-
"build": "webpack --config"
5+
"build": "webpack --mode=development"
86
},
97
"devDependencies": {
10-
"ava": "^0.19.0",
8+
"ava": "^0.25.0",
119
"chrome-stub": "^1.3.2",
1210
"chrome-webstore-upload-cli": "^1.0.3",
1311
"istanbul": "^0.4.0",
1412
"moment": "^2.14.1",
1513
"p-immediate": "^2.1.0",
16-
"sinon": "^1.15.4",
17-
"url-search-params": "^0.6.1",
18-
"webpack": "^1.13.2",
19-
"xo": "^0.18.0"
14+
"sinon": "^4.5.0",
15+
"webpack": "^4.6.0",
16+
"webpack-cli": "^2.0.15",
17+
"xo": "^0.20.3"
2018
},
2119
"ava": {
2220
"files": "test/*-test.*"

promo.png

-1001 Bytes
Binary file not shown.

readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ It checks for new GitHub notifications every minute.
1313

1414
*Make sure to add a token in the options.*
1515

16-
![](screenshot.png)
17-
![](screenshot-webstore2.png)
16+
![](media/screenshot.png)
17+
![](media/screenshot-webstore2.png)
1818

1919

2020
## Install
@@ -43,7 +43,7 @@ If you want to receive (useful) desktop notifications for any private repositori
4343

4444
## Desktop notifications
4545

46-
![](screenshot-notification.png)
46+
![](media/screenshot-notification.png)
4747

4848
You can opt-in to receive desktop notifications for new notifications on GitHub. The extension checks for new notifications every minute, and displays notifications that arrived after the last check if there are any. Clicking on the notification opens it on GitHub.
4949

screenshot-notification.png

-7.79 KB
Binary file not shown.

screenshot-webstore.png

-132 KB
Binary file not shown.

screenshot-webstore2.png

-81.5 KB
Binary file not shown.

screenshot.png

-121 KB
Binary file not shown.

test/util.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
'use strict';
2+
const {URLSearchParams} = require('url');
13
const chromeStub = require('chrome-stub');
2-
const URLSearchParams = require('url-search-params');
34

45
module.exports = {
56
setupWindow: () => {

webpack.config.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
'use strict';
2+
const path = require('path');
3+
14
module.exports = {
25
entry: {
36
main: './extension/main.js',
47
options: './extension/options.js'
58
},
69
output: {
7-
path: './extension/dist',
8-
filename: '[name].js',
9-
publicPath: ''
10+
path: path.join(__dirname, 'extension/dist'),
11+
filename: '[name].js'
1012
}
1113
};

0 commit comments

Comments
 (0)