@firebase/messaging-compat
Advanced tools
Comparing version 0.1.0-2021720181311 to 0.1.0-2021724205917
@@ -14,3 +14,3 @@ 'use strict'; | ||
var name = "@firebase/messaging-compat"; | ||
var version = "0.1.0-2021720181311"; | ||
var version = "0.1.0-2021724205917"; | ||
@@ -80,10 +80,10 @@ /** | ||
var messagingCompatFactory = function (container) { | ||
if (!!navigator) { | ||
if (self && 'ServiceWorkerGlobalScope' in self) { | ||
// in sw | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging-sw').getImmediate()); | ||
} | ||
else { | ||
// in window | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging').getImmediate()); | ||
} | ||
else { | ||
// in sw | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging-sw').getImmediate()); | ||
} | ||
}; | ||
@@ -90,0 +90,0 @@ function registerMessagingCompat() { |
@@ -8,3 +8,3 @@ import firebase from '@firebase/app-compat'; | ||
var name = "@firebase/messaging-compat"; | ||
var version = "0.1.0-2021720181311"; | ||
var version = "0.1.0-2021724205917"; | ||
@@ -74,10 +74,10 @@ /** | ||
var messagingCompatFactory = function (container) { | ||
if (!!navigator) { | ||
if (self && 'ServiceWorkerGlobalScope' in self) { | ||
// in sw | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging-sw').getImmediate()); | ||
} | ||
else { | ||
// in window | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging').getImmediate()); | ||
} | ||
else { | ||
// in sw | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging-sw').getImmediate()); | ||
} | ||
}; | ||
@@ -84,0 +84,0 @@ function registerMessagingCompat() { |
@@ -7,3 +7,3 @@ import firebase from '@firebase/app-compat'; | ||
const name = "@firebase/messaging-compat"; | ||
const version = "0.1.0-2021720181311"; | ||
const version = "0.1.0-2021724205917"; | ||
@@ -64,10 +64,10 @@ /** | ||
const messagingCompatFactory = (container) => { | ||
if (!!navigator) { | ||
if (self && 'ServiceWorkerGlobalScope' in self) { | ||
// in sw | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging-sw').getImmediate()); | ||
} | ||
else { | ||
// in window | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging').getImmediate()); | ||
} | ||
else { | ||
// in sw | ||
return new MessagingCompatImpl(container.getProvider('app-compat').getImmediate(), container.getProvider('messaging-sw').getImmediate()); | ||
} | ||
}; | ||
@@ -74,0 +74,0 @@ function registerMessagingCompat() { |
{ | ||
"name": "@firebase/messaging-compat", | ||
"version": "0.1.0-2021720181311", | ||
"version": "0.1.0-2021724205917", | ||
"license": "Apache-2.0", | ||
@@ -30,12 +30,12 @@ "description": "", | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.1.0-2021720181311" | ||
"@firebase/app-compat": "0.1.0-2021724205917" | ||
}, | ||
"dependencies": { | ||
"@firebase/messaging": "0.9.0-2021720181311", | ||
"@firebase/component": "0.5.6-2021720181311", | ||
"@firebase/util": "1.3.0-2021720181311", | ||
"@firebase/messaging": "0.9.0-2021724205917", | ||
"@firebase/component": "0.5.6", | ||
"@firebase/util": "1.3.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@firebase/app-compat": "0.1.0-2021720181311", | ||
"@firebase/app-compat": "0.1.0-2021724205917", | ||
"@rollup/plugin-json": "4.1.0", | ||
@@ -42,0 +42,0 @@ "rollup-plugin-typescript2": "0.30.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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
43088
0
+ Added@firebase/app@0.7.0-2021724205917(transitive)
+ Added@firebase/app-compat@0.1.0-2021724205917(transitive)
+ Added@firebase/component@0.5.6(transitive)
+ Added@firebase/installations@0.5.0-2021724205917(transitive)
+ Added@firebase/messaging@0.9.0-2021724205917(transitive)
+ Added@firebase/messaging-interop-types@0.1.0-2021724205917(transitive)
+ Added@firebase/util@1.3.0(transitive)
- Removed@firebase/app@0.7.0-2021720181311(transitive)
- Removed@firebase/app-compat@0.1.0-2021720181311(transitive)
- Removed@firebase/component@0.5.6-2021720181311(transitive)
- Removed@firebase/installations@0.5.0-2021720181311(transitive)
- Removed@firebase/messaging@0.9.0-2021720181311(transitive)
- Removed@firebase/util@1.3.0-2021720181311(transitive)
Updated@firebase/component@0.5.6
Updated@firebase/util@1.3.0