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

abstracted-firebase

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstracted-firebase - npm Package Compare versions

Comparing version 0.27.14 to 0.27.15

6

dist/cjs/types.d.ts

@@ -84,2 +84,8 @@ import { DataSnapshot, OnDisconnect, Query, ThenableReference, EventType } from "@firebase/database-types";

targetType: any;
/**
* this tagging has been added as optional to not break prior API but all
* server events will set this variable so that when it is received by **Firemodel**
* it can distiguish local versus server triggered events.
*/
kind?: "server-event";
}

@@ -86,0 +92,0 @@ /** A standard watch event coming from the Firebase DB */

6

dist/cjs/WatcherEventWrapper.js

@@ -10,5 +10,9 @@ "use strict";

const key = snapshot.key;
const fullEvent = Object.assign({}, context, { value, key, previousChildKey });
const kind = "server-event";
const fullEvent = Object.assign({}, context, { value,
key,
kind,
previousChildKey });
return handler(fullEvent);
};
};

@@ -84,2 +84,8 @@ import { DataSnapshot, OnDisconnect, Query, ThenableReference, EventType } from "@firebase/database-types";

targetType: any;
/**
* this tagging has been added as optional to not break prior API but all
* server events will set this variable so that when it is received by **Firemodel**
* it can distiguish local versus server triggered events.
*/
kind?: "server-event";
}

@@ -86,0 +92,0 @@ /** A standard watch event coming from the Firebase DB */

@@ -8,5 +8,9 @@ function isValueBasedEvent(evt, context) {

const key = snapshot.key;
const fullEvent = Object.assign({}, context, { value, key, previousChildKey });
const kind = "server-event";
const fullEvent = Object.assign({}, context, { value,
key,
kind,
previousChildKey });
return handler(fullEvent);
};
};

@@ -84,2 +84,8 @@ import { DataSnapshot, OnDisconnect, Query, ThenableReference, EventType } from "@firebase/database-types";

targetType: any;
/**
* this tagging has been added as optional to not break prior API but all
* server events will set this variable so that when it is received by **Firemodel**
* it can distiguish local versus server triggered events.
*/
kind?: "server-event";
}

@@ -86,0 +92,0 @@ /** A standard watch event coming from the Firebase DB */

@@ -19,3 +19,7 @@ (function (factory) {

const key = snapshot.key;
const fullEvent = Object.assign({}, context, { value, key, previousChildKey });
const kind = "server-event";
const fullEvent = Object.assign({}, context, { value,
key,
kind,
previousChildKey });
return handler(fullEvent);

@@ -22,0 +26,0 @@ };

2

package.json
{
"name": "abstracted-firebase",
"version": "0.27.14",
"version": "0.27.15",
"description": "Core functional library supporting 'abstracted-admin' and 'abstracted-client'",

@@ -5,0 +5,0 @@ "license": "MIT",

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