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

create-payload-app

Package Overview
Dependencies
Maintainers
1
Versions
435
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-payload-app - npm Package Compare versions

Comparing version 0.1.18 to 0.1.19

2

package.json

@@ -25,3 +25,3 @@ {

},
"version": "0.1.18"
"version": "0.1.19"
}
// Example Collection - For reference only, this must be added to payload.config.js to be used.
const Examples = {
slug: 'examples',
labels: {
singular: 'Example',
plural: 'Examples',
},
admin: {

@@ -14,3 +10,2 @@ useAsTitle: 'someField',

name: 'someField',
label: 'Some Field',
type: 'text',

@@ -17,0 +12,0 @@ },

{
"name": "payload-starter-javascript",
"description": "Blank template - no collections",
"version": "1.0.0",

@@ -4,0 +5,0 @@ "main": "server.js",

@@ -12,3 +12,2 @@ const Categories = {

name: 'name',
label: 'Name',
type: 'text',

@@ -15,0 +14,0 @@ },

@@ -13,3 +13,2 @@ const Posts = {

name: 'title',
label: 'Title',
type: 'text',

@@ -19,3 +18,2 @@ },

name: 'author',
label: 'Author',
type: 'relationship',

@@ -26,3 +24,2 @@ relationTo: 'users',

name: 'publishedDate',
label: 'Published Date',
type: 'date',

@@ -32,3 +29,2 @@ },

name: 'category',
label: 'Category',
type: 'relationship',

@@ -39,3 +35,2 @@ relationTo: 'categories'

name: 'tags',
label: 'Tags',
type: 'relationship',

@@ -47,3 +42,2 @@ relationTo: 'tags',

name: 'content',
label: 'Content',
type: 'richText'

@@ -53,3 +47,2 @@ },

name: 'status',
label: 'Status',
type: 'select',

@@ -56,0 +49,0 @@ options: [

@@ -12,3 +12,2 @@ const Tags = {

name: 'name',
label: 'Name',
type: 'text',

@@ -15,0 +14,0 @@ },

@@ -25,3 +25,2 @@ const onlyNameIfPublic = ({ req: { user }, doc }) => {

name: 'name',
label: 'Name',
type: 'text',

@@ -28,0 +27,0 @@ }

{
"name": "payload-blog",
"description": "Blog template",
"version": "1.0.0",

@@ -4,0 +5,0 @@ "main": "server.js",

const Todo = {
slug: 'todos',
labels: {
singular: 'Todo List',
plural: 'Todo Lists',
},
admin: {
defaultColumns: ['name', 'items', 'updatedAt'],
useAsTitle: 'name',
defaultColumns: ['listName', 'tasks', 'updatedAt'],
useAsTitle: 'listName',
},

@@ -19,9 +15,7 @@ access: {

{
name: 'name',
label: 'List Name',
name: 'listName',
type: 'text',
},
{
name: 'items',
label: 'Items',
name: 'tasks',
type: 'array',

@@ -31,3 +25,2 @@ fields: [

name: 'name',
label: 'Task Name',
type: 'text',

@@ -37,3 +30,2 @@ },

name: 'complete',
label: 'Complete',
type: 'checkbox',

@@ -40,0 +32,0 @@ defaultValue: false,

{
"name": "payload-starter-javascript",
"description": "Simple to-do list example",
"version": "1.0.0",

@@ -4,0 +5,0 @@ "main": "server.js",

{
"name": "payload-starter-typescript",
"description": "Blank template - no collections",
"version": "1.0.0",

@@ -4,0 +5,0 @@ "main": "dist/server.js",

@@ -6,6 +6,2 @@ import { CollectionConfig } from 'payload/types';

slug: 'examples',
labels: {
singular: 'Example',
plural: 'Examples',
},
admin: {

@@ -17,3 +13,2 @@ useAsTitle: 'someField',

name: 'someField',
label: 'Some Field',
type: 'text',

@@ -20,0 +15,0 @@ },

{
"name": "payload-blog-typescript",
"description": "Blog template",
"version": "1.0.0",

@@ -4,0 +5,0 @@ "main": "dist/server.js",

@@ -14,3 +14,2 @@ import { CollectionConfig } from 'payload/types';

name: 'name',
label: 'Name',
type: 'text',

@@ -17,0 +16,0 @@ },

@@ -15,3 +15,2 @@ import { CollectionConfig } from 'payload/types';

name: 'title',
label: 'Title',
type: 'text',

@@ -21,3 +20,2 @@ },

name: 'author',
label: 'Author',
type: 'relationship',

@@ -28,3 +26,2 @@ relationTo: 'users',

name: 'publishedDate',
label: 'Published Date',
type: 'date',

@@ -34,3 +31,2 @@ },

name: 'category',
label: 'Category',
type: 'relationship',

@@ -41,3 +37,2 @@ relationTo: 'categories'

name: 'tags',
label: 'Tags',
type: 'relationship',

@@ -49,3 +44,2 @@ relationTo: 'tags',

name: 'content',
label: 'Content',
type: 'richText'

@@ -55,3 +49,2 @@ },

name: 'status',
label: 'Status',
type: 'select',

@@ -58,0 +51,0 @@ options: [

@@ -14,3 +14,2 @@ import { CollectionConfig } from 'payload/types';

name: 'name',
label: 'Name',
type: 'text',

@@ -17,0 +16,0 @@ },

@@ -28,3 +28,2 @@ import { BeforeReadHook } from 'payload/dist/collections/config/types';

name: 'name',
label: 'Name',
type: 'text',

@@ -31,0 +30,0 @@ }

{
"name": "payload-starter-typescript",
"description": "Simple to-do list example",
"version": "1.0.0",

@@ -4,0 +5,0 @@ "main": "dist/server.js",

@@ -5,9 +5,5 @@ import { CollectionConfig } from 'payload/types';

slug: 'todos',
labels: {
singular: 'Todo List',
plural: 'Todo Lists',
},
admin: {
defaultColumns: ['name', 'items', 'updatedAt'],
useAsTitle: 'name',
defaultColumns: ['listName', 'tasks', 'updatedAt'],
useAsTitle: 'listName',
},

@@ -22,9 +18,7 @@ access: {

{
name: 'name',
label: 'List Name',
name: 'listName',
type: 'text',
},
{
name: 'items',
label: 'Items',
name: 'tasks',
type: 'array',

@@ -34,3 +28,2 @@ fields: [

name: 'name',
label: 'Task Name',
type: 'text',

@@ -40,3 +33,2 @@ },

name: 'complete',
label: 'Complete',
type: 'checkbox',

@@ -43,0 +35,0 @@ defaultValue: false,

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