
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
debuggable-firebase
Advanced tools
Automatically select either the live or debugger version of the Firebase apps
By default, Firestore documents are untyped. This can be annoying when developing larger applications with lots of models.
This repository makes use of Firestore's converter feature to make the process easier for you without breaking the ideology behind it.
yarn install firestore-typescript-converter
npm install firestore-typescript-converter
First, create a converter for your model:
type User = {
firstName: string
lastName: string
}
const UserConverter = firestoreConverter<User>()
That's it! Now you can use the converter wherever you use Firestore. For example:
query(
collection(getFirestore(), "profiles"),
where("firstName", "==", "Bob")
).withConverter(ProfileConverter)
When calling data() on any of the documents resulting from this query, you will get a nice typed User object.
It might be useful to include the id field in the "data" of the document, to allow you to reference a single object rather than a separate id and data(). This package makes it easy!
The firestoreConverter function takes a single optional argument, includeID. If true, the ID will be included in the data (returning WithID<T> instead of just T)
const UserConverter = firestoreConverter<User>(true)
MIT license
FAQs
Automatically select either the live or debugger version of the Firebase apps
The npm package debuggable-firebase receives a total of 24 weekly downloads. As such, debuggable-firebase popularity was classified as not popular.
We found that debuggable-firebase 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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.