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

@sanity/default-layout

Package Overview
Dependencies
Maintainers
6
Versions
1149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/default-layout - npm Package Compare versions

Comparing version 0.99.10 to 0.100.0

8

lib/components/Search.js

@@ -45,5 +45,3 @@ 'use strict';

var typeNames = _schema2.default.types.map(function (schemaType) {
return schemaType.name;
});
var typeNames = _schema2.default.getTypeNames();

@@ -72,3 +70,3 @@ var Search = function (_React$Component) {

// Get all fields that we want to search in (text and string)
_schema2.default.types.forEach(function (type) {
typeNames.forEach(function (type) {
if (type.fields) {

@@ -152,3 +150,3 @@ type.fields.forEach(function (field) {

var typeName = item._type.split('.')[1];
var type = _schema2.default && _schema2.default.types.find(function (t) {
var type = _schema2.default && typeNames.find(function (t) {
return t.name === typeName;

@@ -155,0 +153,0 @@ });

{
"name": "@sanity/default-layout",
"version": "0.99.10",
"version": "0.100.0",
"description": "The default layout components for Sanity",

@@ -31,8 +31,8 @@ "main": "lib/default-layout.js",

"devDependencies": {
"@sanity/base": "^0.99.10",
"@sanity/base": "^0.100.0",
"@sanity/check": "^0.99.0",
"@sanity/cli": "^0.99.7",
"@sanity/components": "^0.99.10",
"@sanity/components": "^0.100.0",
"@sanity/core": "^0.99.10",
"@sanity/form-builder": "^0.99.10",
"@sanity/form-builder": "^0.100.0",
"chai": "^3.5.0",

@@ -39,0 +39,0 @@ "chai-as-promised": "^6.0.0",

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