Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/messaging-compat

Package Overview
Dependencies
Maintainers
5
Versions
1119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/messaging-compat - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1-2021822203916

16

CHANGELOG.md
# @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 @@

12

dist/index.cjs.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc