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

firebase-functions

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-functions - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

5

changelog.txt

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

16

lib/providers/analytics.js

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

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