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

@prismicio/types-internal

Package Overview
Dependencies
Maintainers
20
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismicio/types-internal - npm Package Compare versions

Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7

2

lib/content/utils.js

@@ -15,4 +15,4 @@ "use strict";

function hasContentType(obj) {
return typeof obj.__TYPE__ === "string";
return typeof obj === "object" && obj !== null && "__TYPE__" in obj;
}
exports.hasContentType = hasContentType;
{
"name": "@prismicio/types-internal",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"description": "Prismic types for Custom Types and Prismic Data",

@@ -5,0 +5,0 @@ "keywords": [

@@ -18,3 +18,3 @@ import { isRight } from "fp-ts/lib/Either"

export function hasContentType(obj: unknown): obj is WithContentType {
return typeof (obj as WithContentType).__TYPE__ === "string"
return typeof obj === "object" && obj !== null && "__TYPE__" in obj
}
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