@sanity/schema
Advanced tools
Comparing version 0.100.5 to 0.100.12
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
215873
5276