@zeit/schemas
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -17,2 +17,6 @@ const maxEnvLength = 100; | ||
const allowedEnvKey = [ | ||
'NOW_NPM_TOKEN' | ||
]; | ||
const EnvKey = { | ||
@@ -30,4 +34,10 @@ type: 'string', | ||
{ | ||
not: { | ||
pattern: '^NOW_.*$' | ||
'if': { | ||
'enum': allowedEnvKey | ||
}, | ||
'then': {}, | ||
'else': { | ||
not: { | ||
pattern: '^NOW_.*$' | ||
} | ||
} | ||
@@ -34,0 +44,0 @@ } |
{ | ||
"name": "@zeit/schemas", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "All schemas used for validation that are shared between our projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -116,1 +116,9 @@ /* eslint camelcase: 0 */ | ||
}; | ||
exports.test_env_keys_npm_token = () => { | ||
const isValid = ajv.validate(EnvKeys, [ | ||
'NOW_NPM_TOKEN' | ||
]); | ||
assert.equal(isValid, true); | ||
}; | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72801
740