Comparing version 0.4.2 to 0.4.3
@@ -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, |
{ | ||
"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 | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9090
20
81
41
3