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

@prismicio/types-internal

Package Overview
Dependencies
Maintainers
32
Versions
166
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.7.0-alpha.6 to 2.7.0-alpha.7

3

lib/content/fields/nestable/LinkContent.js

@@ -54,3 +54,4 @@ "use strict";

exports.FileLinkType = "FileLink";
const FileLinkKind = new t.Type("FileLinkKind", (input) => input === "file" || input === "all", (input, context) => input === "file" || input === "all"
const isFileLinkKind = (input) => input === "file" || input === "image/jpeg" || input === "all";
const FileLinkKind = new t.Type("FileLinkKind", (input) => isFileLinkKind(input), (input, context) => isFileLinkKind(input)
? t.success("file")

@@ -57,0 +58,0 @@ : t.failure(input, context), () => "file");

{
"name": "@prismicio/types-internal",
"version": "2.7.0-alpha.6",
"version": "2.7.0-alpha.7",
"description": "Prismic types for Custom Types and Prismic Data",

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

@@ -73,7 +73,10 @@ import { either } from "fp-ts"

const isFileLinkKind = (input: unknown) =>
input === "file" || input === "image/jpeg" || input === "all"
const FileLinkKind = new t.Type<"file">(
"FileLinkKind",
(input): input is "file" => input === "file" || input === "all",
(input): input is "file" => isFileLinkKind(input),
(input, context) =>
input === "file" || input === "all"
isFileLinkKind(input)
? t.success("file" as const)

@@ -80,0 +83,0 @@ : t.failure(input, context),

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