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

jest-get-type

Package Overview
Dependencies
Maintainers
4
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-get-type - npm Package Compare versions

Comparing version 21.3.0-alpha.eff7a1cf to 21.3.0-beta.2

5

build/index.js

@@ -26,6 +26,7 @@ /**

// get the type of a value with handling the edge cases like `typeof []`
// and `typeof null`
const getType = value => {
if (typeof value === 'undefined') {
if (value === undefined) {
return 'undefined';

@@ -51,2 +52,4 @@ } else if (value === null) {

return 'set';
} else if (value.constructor === Date) {
return 'date';
}

@@ -53,0 +56,0 @@ return 'object';

2

package.json
{
"name": "jest-get-type",
"description": "A utility function to get the type of a value",
"version": "21.3.0-alpha.eff7a1cf",
"version": "21.3.0-beta.2",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

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