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

datocms-structured-text-utils

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datocms-structured-text-utils - npm Package Compare versions

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

6

dist/lib/guards.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isInlineItem = exports.isItemLink = exports.isLink = exports.isCode = exports.isBlock = exports.isBlockquote = exports.isListItem = exports.isList = exports.isParagraph = exports.isRoot = exports.isSpan = exports.isHeading = exports.hasChildren = void 0;
exports.isInlineItem = exports.isItemLink = exports.isLink = exports.isCode = exports.isBlock = exports.isBlockquote = exports.isListItem = exports.isList = exports.isParagraph = exports.isRoot = exports.isSpan = exports.isHeading = exports.isInlineNode = exports.hasChildren = void 0;
var definitions_1 = require("./definitions");

@@ -9,2 +9,6 @@ function hasChildren(node) {

exports.hasChildren = hasChildren;
function isInlineNode(node) {
return definitions_1.inlineNodeTypes.includes(node.type);
}
exports.isInlineNode = isInlineNode;
function isHeading(node) {

@@ -11,0 +15,0 @@ return node.type === definitions_1.headingNodeType;

3

dist/types/guards.d.ts

@@ -1,3 +0,4 @@

import { Root, List, Blockquote, Block, Link, ItemLink, InlineItem, Code, ListItem, Paragraph, Heading, Node, Span, WithChildrenNode } from './types';
import { Root, List, Blockquote, Block, Link, ItemLink, InlineItem, Code, ListItem, Paragraph, Heading, Node, Span, WithChildrenNode, InlineNode } from './types';
export declare function hasChildren(node: Node): node is WithChildrenNode;
export declare function isInlineNode(node: Node): node is InlineNode;
export declare function isHeading(node: Node): node is Heading;

@@ -4,0 +5,0 @@ export declare function isSpan(node: Node): node is Span;

{
"name": "datocms-structured-text-utils",
"version": "0.1.0-alpha.6",
"version": "0.1.0-alpha.7",
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields",

@@ -38,3 +38,3 @@ "keywords": [

},
"gitHead": "f214ca46c15153498e566ffbdb8a9ce51a7ee0c9"
"gitHead": "addcc2cab1d71d1b1ff52b179c534a67eb3a2405"
}

Sorry, the diff of this file is not supported yet

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