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

@zeit/schemas

Package Overview
Dependencies
Maintainers
183
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeit/schemas - npm Package Compare versions

Comparing version 2.21.0 to 2.22.0

2

package.json
{
"name": "@zeit/schemas",
"version": "2.21.0",
"version": "2.22.0",
"description": "All schemas used for validation that are shared between our projects",

@@ -5,0 +5,0 @@ "scripts": {

@@ -297,2 +297,28 @@ /* eslint camelcase: 0 */

exports.test_viewPreference_cards_valid = () => {
assert(ajv.validate(User, { viewPreference: 'cards' }));
};
exports.test_viewPreference_list_valid = () => {
assert(ajv.validate(User, { viewPreference: 'list' }));
};
exports.test_viewPreference_null_valid = () => {
assert(ajv.validate(User, { viewPreference: null }));
};
exports.test_viewPreference_invalid_value = () => {
const isValid = ajv.validate(User, {
viewPreference: 'test'
});
assert.equal(isValid, false);
};
exports.test_viewPreference_number_invalid = () => {
const isValid = ajv.validate(User, {
viewPreference: 10
});
assert.equal(isValid, false);
};
exports.test_remoteCaching_valid = () => {

@@ -299,0 +325,0 @@ assert(ajv.validate(User, { remoteCaching: { enabled: true } }));

@@ -74,2 +74,13 @@ const Username = {

const ViewPreference = {
oneOf: [
{
'enum': ['cards', 'list']
},
{
type: 'null'
}
]
};
const PlatformVersion = {

@@ -170,2 +181,3 @@ oneOf: [

gitNamespaceId: GitNamespaceId,
viewPreference: ViewPreference,
remoteCaching: RemoteCaching,

@@ -188,3 +200,4 @@ dismissedToasts: DismissedToasts

GitNamespaceId,
ViewPreference,
DismissedToasts
};
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