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.690108d to 3.0.0-canary.6b9e4be

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.690108d",
"version": "3.0.0-canary.6b9e4be",
"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.59",
"payload": "3.0.0-canary.690108d"
"@payloadcms/eslint-config": "3.0.0-beta.112",
"payload": "3.0.0-canary.6b9e4be"
},

@@ -40,4 +47,6 @@ "publishConfig": {

"clean": "rimraf {dist,*.tsbuildinfo}",
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/"
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}

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