
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
ac-firebase-utils
Advanced tools
Firebase Helper Functions ✨
Introduces useful helper functions to facilitate your Firebase Firestore operations.
Documenting is in progress
npm install ac-firebase-utils
or
yarn add ac-firebase-utils
Make sure you have defined the required environment variables for Firebase initialization.
Import initFirebase
function and add it to the top of your application:
import { initFirebase } from 'ac-firebase-utils';
initFirebase();
Now you are ready to use other helper functions.
// Fetches the collection data by using the specified collection table,
// array of where conditions, sorting, limit information.
import { fetchCollectionDataAllWhereMultiple } from 'ac-firebase-utils';
// Fetch the active users list
const users = await fetchCollectionDataAllWhereMultiple({
table: 'users',
whereArray: [
{ field: 'isActive', condition: '==', value: true },
],
sortingField: 'id',
limit: 6,
// startAfter: {Firebase last document ref snapshot object for pagination},
});
// print
console.log(users);
// output:
// {
// data: [
// // object of users
// ],
// lastDoc: {} // Firebase Document Snapshot to use for `startAfter` param for pagination. More info: https://firebase.google.com/docs/firestore/query-data/query-cursors
// }
MIT © Abdullah Ceylan
FAQs
Helper functions for Firebase operations
The npm package ac-firebase-utils receives a total of 1 weekly downloads. As such, ac-firebase-utils popularity was classified as not popular.
We found that ac-firebase-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.