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

@prismicio/types-internal

Package Overview
Dependencies
Maintainers
24
Versions
179
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.2.0-alpha.20 to 2.2.0-alpha.21

13

lib/import/converters/fields/nestable/RichText/textBlock.js

@@ -19,10 +19,17 @@ "use strict";

var _a;
if (span.type === 'hyperlink') {
const { __TYPE__, ...data } = ((_a = (0, Link_1.linkConverter)(span.data, assets)) === null || _a === void 0 ? void 0 : _a.value) || {};
return {
type: span.type,
start: span.start,
end: span.end,
data: data
};
}
return {
type: span.type,
start: span.start,
end: span.end,
// Text blocks in Content format have for data the Link type and not the whole LinkContent object
...span.type === "hyperlink" ? { data: (_a = (0, Link_1.linkConverter)(span.data, assets)) === null || _a === void 0 ? void 0 : _a.value } : {}
end: span.end
};
});
}
{
"name": "@prismicio/types-internal",
"version": "2.2.0-alpha.20",
"version": "2.2.0-alpha.21",
"description": "Prismic types for Custom Types and Prismic Data",

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

@@ -19,10 +19,18 @@ import type { Asset } from "../../../../../common"

return spans.map(span => {
if (span.type === 'hyperlink') {
const { __TYPE__, ...data } = linkConverter(span.data, assets)?.value || {}
return {
type: span.type,
start: span.start,
end: span.end,
data: data
}
}
return {
type: span.type,
start: span.start,
end: span.end,
// Text blocks in Content format have for data the Link type and not the whole LinkContent object
...span.type === "hyperlink" ? { data: linkConverter(span.data, assets)?.value } : {}
end: span.end
}
})
}
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