firebase-functions
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -1,3 +0,2 @@ | ||
fixed - for auth functions, event.data.uid will now be a simple UID string instead of a URL (e.g. ‘12345’ instead of ‘http://github.com/12345’). | ||
fixed - for database functions, fixed event.data.forEach() to return true if enumeration was canceled due to supplied callback returning true. | ||
fixed - for storage functions, added missing typescript typing for event.data.resourceState. | ||
changed - Removes temporary “shim” for analytics event timestamps. | ||
fixed - Fixes return type for DeltaSnapshot#getPriority() for database functions |
@@ -65,19 +65,5 @@ // The MIT License (MIT) | ||
}; | ||
var attemptTimestampFix = function (event) { | ||
// This is a temporary shim, to mask an issue in which Analytics events may carry an | ||
// incorrect Event.timestamp. Often there's a correct timestamp present in | ||
// Event.data.logTime, so until the production backend sends correct top-level timestamps | ||
// we can pull a timestamp from there. | ||
// BUG(36001921). | ||
if (event.timestamp && (event.timestamp.substr(0, 4) === '1969' || event.timestamp.substr(0, 4) === '1970')) { | ||
event.timestamp = undefined; // If we don't have a good timestamp, prefer no timestamp at all. | ||
if (event.data && event.data.logTime) { | ||
event.timestamp = event.data.logTime; | ||
} | ||
} | ||
return handler(event); | ||
}; | ||
return cloud_functions_1.makeCloudFunction({ | ||
provider: exports.provider, | ||
handler: attemptTimestampFix, | ||
handler: handler, | ||
eventType: 'event.log', | ||
@@ -84,0 +70,0 @@ resource: this.resource, |
@@ -51,3 +51,3 @@ import { Event, CloudFunction } from '../cloud-functions'; | ||
exportVal(): any; | ||
getPriority(): any; | ||
getPriority(): string | number | null; | ||
exists(): boolean; | ||
@@ -54,0 +54,0 @@ child(childPath: string): DeltaSnapshot; |
@@ -26,3 +26,3 @@ // The MIT License (MIT) | ||
/** @internal */ | ||
exports.provider = (new Buffer('Y2xvdWQuZmlyc3RvcmU=', 'base64')).toString(); | ||
exports.provider = (new Buffer('Y2xvdWQuZmlyZXN0b3Jl', 'base64')).toString(); | ||
/** @internal */ | ||
@@ -29,0 +29,0 @@ exports.defaultDatabase = '(default)'; |
{ | ||
"name": "firebase-functions", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Firebase SDK for Cloud Functions", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
78164
1738