
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
enhanced_firebase_js_sdk
Advanced tools
An enhanced version of cloud firestore npm package with support for filtering sorting, limiting, error handling and success scenarios
An enhanced version of the firebase js sdk with firestore and realtime database support for filtering sorting, limiting, error handling, and success scenarios
# using npm
npm install enhanced_firebase_js_sdk
# using yarn
yarn add enhanced_firebase_js_sdk
# using require
const { firestoreService } = require("enhanced_firebase_js_sdk");
# using import
import { firestoreService } from "enhanced_firebase_js_sdk";
// read
const users = await firestoreService.read({ collectionName: 'users' })
// write
const result = await firestoreService.write({ collectionName: 'users', payload: { name : 'Ciri' , age: 19 } })
// update
const result = await firestoreService.update({
collectionName: 'users',
payload: { age: 20 },
filters: [
{
key: 'name',
operator: '==',
value: 'Ciri',
},
],
})
// delete
const result = await firestoreService.remove({ collectionName: 'users' })
The read, update and delete functions can take in the additional parameter filters which is an array of objects indicating the filtering criteria of the results. The supported operators are the same as the ones provided in the firebase docs (https://cloud.google.com/firestore/docs/query-data/queries#query_operators)
The read function can take in the additional parameters sorts and recordLimit where sorts is an array of objects indicating the sorting criteria of the results and recordLimit is an integer which limits the number of records returned from the query.
The write function can take in the additional parameters documentId which will allow you to create documents with a provided documentId as opposed to its auto generated behavior and merge which will allow you to merge the newly provided payload with the existing data at the provided path if it exists.
All functions can take in the additional parameters onSuccess and onError which are callback functions which will get executed on success and failure scenarios respectively. The onSuccess callback is passed the result of the operation as a parameter by default whereas the onError function is passed the error or details of the error which occurred.
Based on the original cloud firebase package by Google (https://www.npmjs.com/package/firebase)
FAQs
An enhanced version of cloud firestore npm package with support for filtering sorting, limiting, error handling and success scenarios
The npm package enhanced_firebase_js_sdk receives a total of 1 weekly downloads. As such, enhanced_firebase_js_sdk popularity was classified as not popular.
We found that enhanced_firebase_js_sdk 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.