Socket
Socket
Sign inDemoInstall

@zeit/schemas

Package Overview
Dependencies
Maintainers
15
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.5.0 to 2.6.0

2

deployment/config-static.js

@@ -45,3 +45,3 @@ module.exports = {

minLength: 1,
maxLength: 32,
maxLength: 128,
pattern: "^[a-zA-Z0-9_!#$%&'*+.^`|~-]+$"

@@ -48,0 +48,0 @@ },

@@ -46,3 +46,3 @@ const {EnvKeys, EnvObject} = require('./config-env');

patternProperties: {
'^(sfo|bru|gru|iad)1$': {
'.+': {
type: 'object',

@@ -49,0 +49,0 @@ required: ['max', 'min'],

{
"name": "@zeit/schemas",
"version": "2.5.0",
"version": "2.6.0",
"description": "All schemas used for validation that are shared between our projects",

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

@@ -264,1 +264,37 @@ /* eslint camelcase: 0 */

};
exports.test_scale_sfo1 = () => {
const isValid = ajv.validate(deploymentConfigSchema, {
scale: {
sfo1: {
min: 0,
max: 1
}
}
});
assert.equal(isValid, true);
};
exports.test_scale_all = () => {
const isValid = ajv.validate(deploymentConfigSchema, {
scale: {
all: {
min: 0,
max: 'auto'
}
}
});
assert.equal(isValid, true);
};
exports.test_scale_invalid = () => {
const isValid = ajv.validate(deploymentConfigSchema, {
scale: {
foo: {
min: -1,
max: 'auto'
}
}
});
assert.equal(isValid, false);
};
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