diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-01-29 14:36:24 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-01-29 14:36:24 +0900 |
| commit | 7fbfd17896c58282f6545f6ab3c0f60df4e6f9ed (patch) | |
| tree | 4095896a70769eb65657fc993c05ae940c11b6bc | |
| parent | Update ws requirement from 6.1.2 to 6.1.3 (#4027) (diff) | |
| download | sharkey-7fbfd17896c58282f6545f6ab3c0f60df4e6f9ed.tar.gz sharkey-7fbfd17896c58282f6545f6ab3c0f60df4e6f9ed.tar.bz2 sharkey-7fbfd17896c58282f6545f6ab3c0f60df4e6f9ed.zip | |
Module 'web-push' as import syntax (#4017)
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | src/push-sw.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json index 94beace6e7..1fefcb7507 100644 --- a/package.json +++ b/package.json @@ -84,6 +84,7 @@ "@types/tinycolor2": "1.4.1", "@types/tmp": "0.0.33", "@types/uuid": "3.4.4", + "@types/web-push": "3.3.0", "@types/webpack": "4.4.24", "@types/webpack-stream": "3.2.10", "@types/websocket": "0.0.40", diff --git a/src/push-sw.ts b/src/push-sw.ts index 58e695813d..07b7508459 100644 --- a/src/push-sw.ts +++ b/src/push-sw.ts @@ -1,4 +1,4 @@ -const push = require('web-push'); +import * as push from 'web-push'; import * as mongo from 'mongodb'; import Subscription from './models/sw-subscription'; import config from './config'; |