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

check-if

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-if - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

lib/isFirestoreTimestamp.js

2

index.js

@@ -6,2 +6,3 @@ const areInSync = require('./lib/areInSync')

const isFirestoreId = require('./lib/isFirestoreId')
const isFirestoreTimestamp = require('./lib/isFirestoreTimestamp')
const isNonDeletedObject = require('./lib/isNonDeletedObject')

@@ -18,2 +19,3 @@ const isNonEmptyObject = require('./lib/isNonEmptyObject')

isFirestoreId,
isFirestoreTimestamp,
isNonDeletedObject,

@@ -20,0 +22,0 @@ isNonEmptyObject,

4

package.json
{
"name": "check-if",
"version": "0.4.2",
"version": "0.4.3",
"description": "Input validation for Apollo Server.",

@@ -22,2 +22,4 @@ "main": "index.js",

"devDependencies": {
"@firebase/app-types": "^0.3.2",
"firebase-admin": "^6.0.0",
"jest": "^23.4.2"

@@ -24,0 +26,0 @@ },

@@ -5,3 +5,3 @@ # check-if

[![npm version](https://img.shields.io/npm/v/check-if.svg?style=flat-square)](https://npmjs.org/package/check-if)
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg?style=flat-square)](https://github.com/facebook/jest)

@@ -37,2 +37,3 @@ Client input validation library.

| `isFirestoreId(id)` | Returns false if:</br>- not a valid Firestore id (20 characters a-z, A-Z, and 0-9) |
| `isFirestoreTimestamp(timestamp)` | Returns false if:</br>- not a valid Firestore Timestamp (contains `toDate` and `toMillis` functions) |
| `isNonDeletedObject(object)` | Returns false if:</br>- `object` is not of type object</br>- `object.deleted` is defined and set to `true` |

@@ -39,0 +40,0 @@ | `isNonEmptyObject(object)` | Returns false if:</br>- `object` is not of type object</br>- `object` is empty |

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