@firebase/messaging-compat
Advanced tools
Comparing version 0.1.0 to 0.1.1-2021822203916
# @firebase/messaging-compat | ||
## 0.1.1-2021822203916 | ||
### Patch Changes | ||
- [`b835b4cba`](https://github.com/firebase/firebase-js-sdk/commit/b835b4cbabc4b7b180ae38b908c49205ce31a422) [#5506](https://github.com/firebase/firebase-js-sdk/pull/5506) - checking isSupported led to runtime errors in certain environments | ||
- Updated dependencies [[`b835b4cba`](https://github.com/firebase/firebase-js-sdk/commit/b835b4cbabc4b7b180ae38b908c49205ce31a422), [`b835b4cba`](https://github.com/firebase/firebase-js-sdk/commit/b835b4cbabc4b7b180ae38b908c49205ce31a422)]: | ||
- @firebase/messaging@0.9.1-2021822203916 | ||
- @firebase/util@1.3.1-2021822203916 | ||
- @firebase/app-compat@0.1.2-2021822203916 | ||
- @firebase/component@0.5.7-2021822203916 | ||
## 0.1.0 | ||
### Minor Changes | ||
- [`cdada6c68`](https://github.com/firebase/firebase-js-sdk/commit/cdada6c68f9740d13dd6674bcb658e28e68253b6) [#5345](https://github.com/firebase/firebase-js-sdk/pull/5345) (fixes [#5015](https://github.com/firebase/firebase-js-sdk/issues/5015)) - Release modularized SDKs | ||
### Patch Changes | ||
@@ -12,0 +22,0 @@ |
@@ -7,2 +7,3 @@ 'use strict'; | ||
var messaging = require('@firebase/messaging'); | ||
var util = require('@firebase/util'); | ||
var sw = require('@firebase/messaging/sw'); | ||
@@ -15,3 +16,3 @@ | ||
var name = "@firebase/messaging-compat"; | ||
var version = "0.1.0"; | ||
var version = "0.1.1-2021822203916"; | ||
@@ -48,5 +49,5 @@ /** | ||
function isWindowSupported() { | ||
return ('indexedDB' in window && | ||
indexedDB !== null && | ||
navigator.cookieEnabled && | ||
return (typeof window !== 'undefined' && | ||
util.isIndexedDBAvailable() && | ||
util.areCookiesEnabled() && | ||
'serviceWorker' in navigator && | ||
@@ -63,4 +64,3 @@ 'PushManager' in window && | ||
function isSwSupported() { | ||
return ('indexedDB' in self && | ||
indexedDB !== null && | ||
return (util.isIndexedDBAvailable() && | ||
'PushManager' in self && | ||
@@ -67,0 +67,0 @@ 'Notification' in self && |
@@ -5,6 +5,7 @@ import firebase from '@firebase/app-compat'; | ||
import { getToken, deleteToken, onMessage } from '@firebase/messaging'; | ||
import { isIndexedDBAvailable, areCookiesEnabled } from '@firebase/util'; | ||
import { onBackgroundMessage } from '@firebase/messaging/sw'; | ||
var name = "@firebase/messaging-compat"; | ||
var version = "0.1.0"; | ||
var version = "0.1.1-2021822203916"; | ||
@@ -41,5 +42,5 @@ /** | ||
function isWindowSupported() { | ||
return ('indexedDB' in window && | ||
indexedDB !== null && | ||
navigator.cookieEnabled && | ||
return (typeof window !== 'undefined' && | ||
isIndexedDBAvailable() && | ||
areCookiesEnabled() && | ||
'serviceWorker' in navigator && | ||
@@ -56,4 +57,3 @@ 'PushManager' in window && | ||
function isSwSupported() { | ||
return ('indexedDB' in self && | ||
indexedDB !== null && | ||
return (isIndexedDBAvailable() && | ||
'PushManager' in self && | ||
@@ -60,0 +60,0 @@ 'Notification' in self && |
import firebase from '@firebase/app-compat'; | ||
import { Component } from '@firebase/component'; | ||
import { getToken, deleteToken, onMessage } from '@firebase/messaging'; | ||
import { isIndexedDBAvailable, areCookiesEnabled } from '@firebase/util'; | ||
import { onBackgroundMessage } from '@firebase/messaging/sw'; | ||
const name = "@firebase/messaging-compat"; | ||
const version = "0.1.0"; | ||
const version = "0.1.1-2021822203916"; | ||
@@ -39,5 +40,5 @@ /** | ||
function isWindowSupported() { | ||
return ('indexedDB' in window && | ||
indexedDB !== null && | ||
navigator.cookieEnabled && | ||
return (typeof window !== 'undefined' && | ||
isIndexedDBAvailable() && | ||
areCookiesEnabled() && | ||
'serviceWorker' in navigator && | ||
@@ -54,4 +55,3 @@ 'PushManager' in window && | ||
function isSwSupported() { | ||
return ('indexedDB' in self && | ||
indexedDB !== null && | ||
return (isIndexedDBAvailable() && | ||
'PushManager' in self && | ||
@@ -58,0 +58,0 @@ 'Notification' in self && |
{ | ||
"name": "@firebase/messaging-compat", | ||
"version": "0.1.0", | ||
"version": "0.1.1-2021822203916", | ||
"license": "Apache-2.0", | ||
@@ -27,18 +27,18 @@ "description": "", | ||
"type-check": "tsc --noEmit", | ||
"add-compat-overloads": "ts-node-script ../../scripts/exp/create-overloads.ts -i ../messaging/dist/index-public.d.ts -o dist/src/index.d.ts -a -r Messaging:MessagingCompat -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/messaging" | ||
"add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../messaging/dist/index-public.d.ts -o dist/src/index.d.ts -a -r Messaging:MessagingCompat -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/messaging" | ||
}, | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.x" | ||
"@firebase/app-compat": "0.1.2-2021822203916" | ||
}, | ||
"dependencies": { | ||
"@firebase/messaging": "0.9.0", | ||
"@firebase/component": "0.5.6", | ||
"@firebase/util": "1.3.0", | ||
"@firebase/messaging": "0.9.1-2021822203916", | ||
"@firebase/component": "0.5.7-2021822203916", | ||
"@firebase/util": "1.3.1-2021822203916", | ||
"tslib": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@firebase/app-compat": "0.1.0", | ||
"@firebase/app-compat": "0.1.2-2021822203916", | ||
"@rollup/plugin-json": "4.1.0", | ||
"rollup-plugin-typescript2": "0.30.0", | ||
"ts-essentials": "7.0.1", | ||
"ts-essentials": "8.1.0", | ||
"typescript": "4.2.2" | ||
@@ -45,0 +45,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51106
+ Added@firebase/app@0.7.1-2021822203916(transitive)
+ Added@firebase/app-compat@0.1.2-2021822203916(transitive)
+ Added@firebase/component@0.5.7-2021822203916(transitive)
+ Added@firebase/installations@0.5.1-2021822203916(transitive)
+ Added@firebase/logger@0.2.6(transitive)
+ Added@firebase/messaging@0.9.1-2021822203916(transitive)
+ Added@firebase/util@1.3.1-2021822203916(transitive)
- Removed@firebase/app@0.10.17(transitive)
- Removed@firebase/app-compat@0.2.47(transitive)
- Removed@firebase/component@0.5.60.6.11(transitive)
- Removed@firebase/installations@0.5.0(transitive)
- Removed@firebase/logger@0.4.4(transitive)
- Removed@firebase/messaging@0.9.0(transitive)
- Removed@firebase/util@1.10.21.3.0(transitive)
- Removedidb@7.1.1(transitive)