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

@prismicio/types-internal

Package Overview
Dependencies
Maintainers
26
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 3.2.0-alpha.1 to 3.2.0-alpha.2

2

lib/content/Document.js

@@ -186,3 +186,3 @@ "use strict";

model: (fieldModel === null || fieldModel === void 0 ? void 0 : fieldModel.type) === "Link" && ((_a = fieldModel.config) === null || _a === void 0 ? void 0 : _a.repeat)
? { ...fieldModel, config: { ...fieldModel.config, repeat: false } }
? fieldModel
: undefined,

@@ -189,0 +189,0 @@ content,

@@ -65,2 +65,9 @@ "use strict";

]);
// Content inside repeatable can't be repeatable.
const newModel = (model === null || model === void 0 ? void 0 : model.type) === "Link" && model.config
? {
...model,
config: { ...model.config, repeat: false },
}
: model;
const transformedField = transform({

@@ -70,3 +77,3 @@ path: itemPath,

apiId: apiId,
model,
model: newModel,
content: fieldContent,

@@ -73,0 +80,0 @@ });

{
"name": "@prismicio/types-internal",
"version": "3.2.0-alpha.1",
"version": "3.2.0-alpha.2",
"description": "Prismic types for Custom Types and Prismic Data",

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

@@ -304,3 +304,3 @@ import { either } from "fp-ts"

fieldModel?.type === "Link" && fieldModel.config?.repeat
? { ...fieldModel, config: { ...fieldModel.config, repeat: false } }
? fieldModel
: undefined,

@@ -307,0 +307,0 @@ content,

@@ -116,2 +116,11 @@ import { either } from "fp-ts"

// Content inside repeatable can't be repeatable.
const newModel =
model?.type === "Link" && model.config
? {
...model,
config: { ...model.config, repeat: false },
}
: model
const transformedField = transform({

@@ -121,3 +130,3 @@ path: itemPath,

apiId: apiId,
model,
model: newModel,
content: fieldContent,

@@ -124,0 +133,0 @@ })

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