Socket
Socket
Sign inDemoInstall

firebase-functions

Package Overview
Dependencies
Maintainers
1
Versions
114
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.2 to 0.5.3

.github/CONTRIBUTING.md

4

changelog.txt

@@ -1,1 +0,3 @@

fixed - Updated public README.
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.

@@ -55,2 +55,13 @@ // The MIT License (MIT)

}
// It is possible that the incoming UID is formatted as a URL, for example: "http://github.com/12345".
// That format would break our spec, since...
// - The Admin SDK would return a UserRecord with a UID of just "12345".
// - The UserRecord UID is supposed to be usable as a key in the Firebase Realtime Database, which is
// impossible with this slash-based format.
// Hence, we'll re-format the UID here, if it was indeed supplied as a URL.
// We won't use string.split(), since it's not available on older versions of node.
// BUG(36486645)
if (raw.data.uid) {
raw.data.uid = raw.data.uid.substring(raw.data.uid.lastIndexOf('/') + 1);
}
return raw.data;

@@ -57,0 +68,0 @@ };

@@ -199,3 +199,2 @@ // The MIT License (MIT)

};
// TODO(inlined) what is this boolean for?
DeltaSnapshot.prototype.forEach = function (action) {

@@ -205,3 +204,3 @@ var _this = this;

if (_.isPlainObject(val)) {
_.keys(val).forEach(function (key) { return action(_this.child(key)); });
return _.some(val, function (value, key) { return action(_this.child(key)) === true; });
}

@@ -208,0 +207,0 @@ return false;

@@ -24,2 +24,3 @@ import { Event, CloudFunction } from '../cloud-functions';

id: string;
resourceState: string;
selfLink?: string;

@@ -26,0 +27,0 @@ name?: string;

{
"name": "firebase-functions",
"version": "0.5.2",
"version": "0.5.3",
"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