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

@payloadcms/live-preview

Package Overview
Dependencies
Maintainers
9
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/live-preview - npm Package Compare versions

Comparing version 3.0.0-canary.8789b0b to 3.0.0-canary.893f1e5

license.md

20

dist/traverseFields.js

@@ -8,10 +8,2 @@ import { traverseRichText } from './traverseRichText.js';

switch(fieldSchema.type){
case 'richText':
result[fieldName] = traverseRichText({
externallyUpdatedRelationship,
incomingData: incomingData[fieldName],
populationsByCollection,
result: result[fieldName]
});
break;
case 'array':

@@ -62,4 +54,4 @@ if (Array.isArray(incomingData[fieldName])) {

break;
case 'group':
case 'tabs':
case 'group':
if (!result[fieldName]) {

@@ -76,4 +68,4 @@ result[fieldName] = {};

break;
case 'relationship':
case 'upload':
case 'relationship':
// Handle `hasMany` relationships

@@ -189,2 +181,10 @@ if (fieldSchema.hasMany && Array.isArray(incomingData[fieldName])) {

break;
case 'richText':
result[fieldName] = traverseRichText({
externallyUpdatedRelationship,
incomingData: incomingData[fieldName],
populationsByCollection,
result: result[fieldName]
});
break;
default:

@@ -191,0 +191,0 @@ result[fieldName] = incomingData[fieldName];

{
"name": "@payloadcms/live-preview",
"version": "3.0.0-canary.8789b0b",
"version": "3.0.0-canary.893f1e5",
"description": "The official live preview JavaScript SDK for Payload",

@@ -13,2 +13,9 @@ "homepage": "https://payloadcms.com",

"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
"maintainers": [
{
"name": "Payload",
"email": "info@payloadcms.com",
"url": "https://payloadcms.com"
}
],
"type": "module",

@@ -28,4 +35,4 @@ "exports": {

"devDependencies": {
"@payloadcms/eslint-config": "3.0.0-beta.97",
"payload": "3.0.0-canary.8789b0b"
"@payloadcms/eslint-config": "3.0.0-beta.112",
"payload": "3.0.0-canary.893f1e5"
},

@@ -32,0 +39,0 @@ "publishConfig": {

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