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

@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 1.6.3 to 1.7.0

2

deployment/config.js

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

minimum: 1,
maximum: 1024
maximum: 256
},

@@ -111,0 +111,0 @@ timeout: {

@@ -5,5 +5,2 @@ const maxEnvLength = 100;

'NOW',
'NOW_REGION',
'NOW_DC',
'NOW_URL',

@@ -16,3 +13,2 @@ // Questionable?

// Legacy
'NOW_PLAN',
'AUTH_TOKEN',

@@ -28,5 +24,14 @@ 'DEPLOYMENT_ID',

maxLength: 256,
not: {
'enum': reservedEnvKeys
}
allOf: [
{
not: {
'enum': reservedEnvKeys
}
},
{
not: {
pattern: '^NOW_.*$'
}
}
]
};

@@ -33,0 +38,0 @@

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

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

@@ -66,3 +66,3 @@ /* eslint camelcase: 0 */

exports.test_env_keys_reserved = () => {
const isValid = ajv.validate(EnvKeys, [
let isValid = ajv.validate(EnvKeys, [
'FOO',

@@ -73,2 +73,20 @@ 'NOW'

assert.equal(ajv.errors[0].keyword, 'not');
isValid = ajv.validate(EnvKeys, [
'NOW_DC'
]);
assert.equal(isValid, false);
assert.equal(ajv.errors[0].keyword, 'not');
isValid = ajv.validate(EnvKeys, [
'NOW_FOO'
]);
assert.equal(isValid, false);
assert.equal(ajv.errors[0].keyword, 'not');
isValid = ajv.validate(EnvKeys, [
'AUTH_TOKEN'
]);
assert.equal(isValid, false);
assert.equal(ajv.errors[0].keyword, 'not');
};

@@ -75,0 +93,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