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

@prismicio/types-internal

Package Overview
Dependencies
Maintainers
18
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 0.2.10 to 0.2.11

9

lib/documents/widgets/nestable/StructuredTextContent/Block.d.ts

@@ -9,2 +9,11 @@ import * as t from "io-ts";

}>]>>;
export declare type Meta = t.TypeOf<typeof Meta>;
export declare const Span: t.ExactC<t.IntersectionC<[t.PartialC<{
data: t.UnknownC;
}>, t.TypeC<{
start: t.NumberC;
end: t.NumberC;
type: t.StringC;
}>]>>;
export declare type Span = Meta;
export declare const ValidatedMetas: t.Type<({

@@ -11,0 +20,0 @@ data?: unknown;

4

lib/documents/widgets/nestable/StructuredTextContent/Block.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Block = exports.TextBlock = exports.checkEmbedBlock = exports.EmbedBlock = exports.EmbedBlockType = exports.checkImageBlock = exports.ImageBlock = exports.ImageBlockType = exports.ValidatedMetas = exports.Meta = void 0;
exports.Block = exports.TextBlock = exports.checkEmbedBlock = exports.EmbedBlock = exports.EmbedBlockType = exports.checkImageBlock = exports.ImageBlock = exports.ImageBlockType = exports.ValidatedMetas = exports.Span = exports.Meta = void 0;
const tslib_1 = require("tslib");

@@ -22,2 +22,4 @@ const E = (0, tslib_1.__importStar)(require("fp-ts/lib/Either"));

]));
// export alias for code clarity
exports.Span = exports.Meta;
exports.ValidatedMetas = new t.Type("ValidatedMetas", (metas) => Array.isArray(metas) && metas.every(exports.Meta.is), (metas, c) => {

@@ -24,0 +26,0 @@ if (Array.isArray(metas)) {

{
"name": "@prismicio/types-internal",
"version": "0.2.10",
"version": "0.2.11",
"description": "Prismic types for Custom Types and Prismic Data",

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

@@ -22,4 +22,7 @@ import * as E from "fp-ts/lib/Either"

)
export type Meta = t.TypeOf<typeof Meta>
type Meta = t.TypeOf<typeof Meta>
// export alias for code clarity
export const Span = Meta
export type Span = Meta

@@ -26,0 +29,0 @@ export const ValidatedMetas = new t.Type<Meta[], Meta[], unknown>(

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