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
1381
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.113.5 to 0.113.7

4

lib/ordering/guessOrderingConfig.js

@@ -33,6 +33,6 @@ 'use strict';

});
});
}
// None of the candidates were found, fallback to all fields
if (candidates.length === 0) {
);if (candidates.length === 0) {
candidates = objectTypeDef.fields.filter(isPrimitive).map(function (field) {

@@ -39,0 +39,0 @@ return field.name;

@@ -73,6 +73,6 @@ 'use strict';

return field.name;
});
}
// Check if we have fields with names that is listed in candidate fields
var titleField = TITLE_CANDIDATES.find(function (candidate) {
);var titleField = TITLE_CANDIDATES.find(function (candidate) {
return stringFieldNames.includes(candidate);

@@ -79,0 +79,0 @@ });

@@ -89,3 +89,4 @@ 'use strict';

return TypeOfTypeOfPerson.extend({ name: 'lol', of: [] });
}, /Cannot override `of` property of subtypes of "array"/);
// console.log('TypeOfTypeOfPerson', TypeOfTypeOfPerson.get())
}, /Cannot override `of` property of subtypes of "array"/
// console.log('TypeOfTypeOfPerson', TypeOfTypeOfPerson.get())
);

@@ -131,5 +131,5 @@ 'use strict';

}
fieldset.fields.push(field);
fieldset.fields.push(field
// Return the fieldset if its the first time we encounter a field in this fieldset
return fieldset.fields.length === 1 ? fieldset : null;
);return fieldset.fields.length === 1 ? fieldset : null;
}

@@ -136,0 +136,0 @@ return { single: true, field: field };

{
"name": "@sanity/schema",
"version": "0.113.5",
"version": "0.113.7",
"description": "",

@@ -35,3 +35,3 @@ "main": "lib/index.js",

"dependencies": {
"@sanity/generate-help-url": "^0.113.3",
"@sanity/generate-help-url": "^0.113.7",
"arrify": "^1.0.1",

@@ -38,0 +38,0 @@ "lodash": "^4.17.4"

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