@firebase/messaging-compat
Advanced tools
Comparing version 0.2.12-canary.2e2804139 to 0.2.12-canary.479226bf3
@@ -8,3 +8,3 @@ import firebase from '@firebase/app-compat'; | ||
const name = "@firebase/messaging-compat"; | ||
const version = "0.2.12-canary.2e2804139"; | ||
const version = "0.2.12-canary.479226bf3"; | ||
@@ -11,0 +11,0 @@ /** |
@@ -5,3 +5,2 @@ 'use strict'; | ||
var component = require('@firebase/component'); | ||
var tslib = require('tslib'); | ||
var messaging = require('@firebase/messaging'); | ||
@@ -15,4 +14,4 @@ var util = require('@firebase/util'); | ||
var name = "@firebase/messaging-compat"; | ||
var version = "0.2.12-canary.2e2804139"; | ||
const name = "@firebase/messaging-compat"; | ||
const version = "0.2.12-canary.479226bf3"; | ||
@@ -71,4 +70,4 @@ /** | ||
} | ||
var MessagingCompatImpl = /** @class */ (function () { | ||
function MessagingCompatImpl(app, _delegate) { | ||
class MessagingCompatImpl { | ||
constructor(app, _delegate) { | ||
this.app = app; | ||
@@ -79,24 +78,15 @@ this._delegate = _delegate; | ||
} | ||
MessagingCompatImpl.prototype.getToken = function (options) { | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
return tslib.__generator(this, function (_a) { | ||
return [2 /*return*/, messaging.getToken(this._delegate, options)]; | ||
}); | ||
}); | ||
}; | ||
MessagingCompatImpl.prototype.deleteToken = function () { | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
return tslib.__generator(this, function (_a) { | ||
return [2 /*return*/, messaging.deleteToken(this._delegate)]; | ||
}); | ||
}); | ||
}; | ||
MessagingCompatImpl.prototype.onMessage = function (nextOrObserver) { | ||
async getToken(options) { | ||
return messaging.getToken(this._delegate, options); | ||
} | ||
async deleteToken() { | ||
return messaging.deleteToken(this._delegate); | ||
} | ||
onMessage(nextOrObserver) { | ||
return messaging.onMessage(this._delegate, nextOrObserver); | ||
}; | ||
MessagingCompatImpl.prototype.onBackgroundMessage = function (nextOrObserver) { | ||
} | ||
onBackgroundMessage(nextOrObserver) { | ||
return sw.onBackgroundMessage(this._delegate, nextOrObserver); | ||
}; | ||
return MessagingCompatImpl; | ||
}()); | ||
} | ||
} | ||
@@ -119,3 +109,3 @@ /** | ||
*/ | ||
var messagingCompatFactory = function (container) { | ||
const messagingCompatFactory = (container) => { | ||
if (self && 'ServiceWorkerGlobalScope' in self) { | ||
@@ -130,4 +120,4 @@ // in sw | ||
}; | ||
var NAMESPACE_EXPORTS = { | ||
isSupported: isSupported | ||
const NAMESPACE_EXPORTS = { | ||
isSupported | ||
}; | ||
@@ -134,0 +124,0 @@ function registerMessagingCompat() { |
{ | ||
"name": "@firebase/messaging-compat", | ||
"version": "0.2.12-canary.2e2804139", | ||
"version": "0.2.12-canary.479226bf3", | ||
"license": "Apache-2.0", | ||
@@ -10,3 +10,2 @@ "description": "", | ||
"module": "dist/esm/index.esm2017.js", | ||
"esm5": "dist/esm/index.esm.js", | ||
"exports": { | ||
@@ -16,3 +15,2 @@ ".": { | ||
"require": "./dist/index.cjs.js", | ||
"esm5": "./dist/esm/index.esm.js", | ||
"default": "./dist/esm/index.esm2017.js" | ||
@@ -42,12 +40,12 @@ }, | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.2.43-canary.2e2804139" | ||
"@firebase/app-compat": "0.2.43-canary.479226bf3" | ||
}, | ||
"dependencies": { | ||
"@firebase/messaging": "0.12.12-canary.2e2804139", | ||
"@firebase/component": "0.6.9-canary.2e2804139", | ||
"@firebase/util": "1.10.0-canary.2e2804139", | ||
"@firebase/messaging": "0.12.12-canary.479226bf3", | ||
"@firebase/component": "0.6.9-canary.479226bf3", | ||
"@firebase/util": "1.10.0-canary.479226bf3", | ||
"tslib": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@firebase/app-compat": "0.2.43-canary.2e2804139", | ||
"@firebase/app-compat": "0.2.43-canary.479226bf3", | ||
"@rollup/plugin-json": "4.1.0", | ||
@@ -54,0 +52,0 @@ "rollup-plugin-typescript2": "0.31.2", |
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
2
41897
17
535
+ Added@firebase/app@0.10.13-canary.479226bf3(transitive)
+ Added@firebase/app-compat@0.2.43-canary.479226bf3(transitive)
+ Added@firebase/component@0.6.9-canary.479226bf3(transitive)
+ Added@firebase/installations@0.6.9-canary.479226bf3(transitive)
+ Added@firebase/logger@0.4.2-canary.479226bf3(transitive)
+ Added@firebase/messaging@0.12.12-canary.479226bf3(transitive)
+ Added@firebase/messaging-interop-types@0.2.2-canary.479226bf3(transitive)
+ Added@firebase/util@1.10.0-canary.479226bf3(transitive)
- Removed@firebase/app@0.10.13-canary.2e2804139(transitive)
- Removed@firebase/app-compat@0.2.43-canary.2e2804139(transitive)
- Removed@firebase/component@0.6.9-canary.2e2804139(transitive)
- Removed@firebase/installations@0.6.9-canary.2e2804139(transitive)
- Removed@firebase/logger@0.4.2-canary.2e2804139(transitive)
- Removed@firebase/messaging@0.12.12-canary.2e2804139(transitive)
- Removed@firebase/messaging-interop-types@0.2.2-canary.2e2804139(transitive)
- Removed@firebase/util@1.10.0-canary.2e2804139(transitive)