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.3 to 0.4.4

lib/_isFirestoreTimestamp.js

6

index.js
const areInSync = require('./lib/areInSync')
const areInSyncFirestoreTimestamps = require('./lib/areInSyncFirestoreTimestamps')
const containsProperties = require('./lib/containsProperties')

@@ -8,2 +9,4 @@ const containsUpdatedProperties = require('./lib/containsUpdatedProperties')

const isNonDeletedObject = require('./lib/isNonDeletedObject')
const isNonEmptyFirestoreDocumentSnapshot = require('./lib/isNonEmptyFirestoreDocumentSnapshot')
const isNonEmptyFirestoreQuerySnapshot = require('./lib/isNonEmptyFirestoreQuerySnapshot')
const isNonEmptyObject = require('./lib/isNonEmptyObject')

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

areInSync,
areInSyncFirestoreTimestamps,
containsProperties,

@@ -22,2 +26,4 @@ containsUpdatedProperties,

isNonDeletedObject,
isNonEmptyFirestoreDocumentSnapshot,
isNonEmptyFirestoreQuerySnapshot,
isNonEmptyObject,

@@ -24,0 +30,0 @@ isShortDate,

7

lib/isFirestoreTimestamp.js

@@ -1,6 +0,3 @@

const _isObject = require('./_isObject')
const _isFirestoreTimestamp = require('./_isFirestoreTimestamp')
module.exports = timestamp =>
_isObject(timestamp) &&
typeof timestamp.toDate === 'function' &&
typeof timestamp.toMillis === 'function'
module.exports = timestamp => _isFirestoreTimestamp(timestamp)
{
"name": "check-if",
"version": "0.4.3",
"version": "0.4.4",
"description": "Input validation for Apollo Server.",

@@ -5,0 +5,0 @@ "main": "index.js",

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