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

@zeit/schemas

Package Overview
Dependencies
Maintainers
19
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 1.3.0 to 1.4.0

21

deployment/config.js

@@ -76,2 +76,23 @@ const staticSchema = require('./config-static');

'static': staticSchema,
'limits': {
type: 'object',
properties: {
duration: {
type: 'number',
minimum: 60000,
maximum: 60000 * 15 // max 15m runtime
},
maxConcurrentReqs: {
type: 'number',
minimum: 1,
maximum: 1024
},
timeout: {
type: 'number',
minimum: 60000,
maximum: 60000 * 15 // max duration
}
},
additionalProperties: false
},
'features': {

@@ -78,0 +99,0 @@ type: 'object',

2

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

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

@@ -38,2 +38,22 @@ /* eslint camelcase: 0 */

});
assert.equal(isValid, false);
};
exports.test_features_object = () => {
const isValid = ajv.validate(deploymentConfigSchema, {
limits: {
duration: 60000,
maxConcurrentReqs: 2,
timeout: 60000 * 2
}
});
assert.equal(isValid, true);
};
exports.test_invalid_limits_object = () => {
const isValid = ajv.validate(deploymentConfigSchema, {
limits: {
foo: []
}
});
assert.equal(!isValid, true);

@@ -48,3 +68,3 @@ };

});
assert.equal(!isValid, true);
assert.equal(isValid, false);
};

@@ -67,3 +87,3 @@

});
assert.equal(!isValid, true);
assert.equal(isValid, false);
};

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