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

firestore-adapter

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firestore-adapter

Adapter to convert typed Firestore data into a standard format.

  • 1.0.5
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Firestore Adapter

When using the Google APIs googleapis to get data from Firestore, the data comes back in a typed format instead of what you would expect to receive.

Installation

Add the package with npm:

npm i --save firestore-adapter

Functionality

When using some Google APIs to get data from Firestore, the response data comes back typed and is not compatible with other Firebase APIs. The values returned from the database look like this, for example:

[ 
  { 
    city: { stringValue: 'WASHINGTON' },
    has_subseccd: { booleanValue: true },
    have_extracts: { nullValue: null },
    score: { doubleValue: 523.3892 },
    have_pdfs: { nullValue: null },
    subseccd: { integerValue: '3' },
  },
]

This package converts the data into a format that you'd expect. Namely:

[
  { city: 'WASHINGTON',
    has_subscribed: true 
    ...
  }
]

Usage

FAQs

Package last updated on 24 Feb 2019

Did you know?

Socket

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.

Install

Related posts

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