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

@sanity/schema

Package Overview
Dependencies
Maintainers
7
Versions
1376
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/schema - npm Package Compare versions

Comparing version 0.100.5 to 0.100.12

lib/types/block.js

15

example/schema-def/index.js

@@ -1,6 +0,3 @@

// @flow
import type {ObjectType, SchemaDef} from '../../src/defs/SchemaDef'
const CUSTOMER: ObjectType = {
const CUSTOMER = {
name: 'customer',

@@ -17,3 +14,3 @@ type: 'object',

const PERSON: ObjectType = {
const PERSON = {
name: 'person',

@@ -61,3 +58,3 @@ type: 'object',

const ADDRESS: ObjectType = {
const ADDRESS = {
name: 'address',

@@ -70,3 +67,3 @@ type: 'object',

}
const RELATION: ObjectType = {
const RELATION = {
name: 'relation',

@@ -94,3 +91,3 @@ type: 'object',

const def: SchemaDef = {
export default {
name: 'test',

@@ -104,3 +101,1 @@ types: [

}
export default def

@@ -56,3 +56,2 @@ import assert from 'assert'

assert.equal(customer.name, 'customer')
assert.equal(customer.type.title, 'Object')
assert.equal(customer.fields[0].name, 'customerId')

@@ -59,0 +58,0 @@ assert.equal(customer.fields[0].type.title, 'Customer ID')

{
"name": "@sanity/schema",
"version": "0.100.5",
"version": "0.100.12",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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