Socket
Socket
Sign inDemoInstall

@zeit/schemas

Package Overview
Dependencies
Maintainers
95
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.18.0 to 2.19.0

2

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

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

@@ -244,1 +244,31 @@ /* eslint camelcase: 0 */

exports.test_scopeId_valid = () => {
assert(ajv.validate(User, {scopeId: '123test'}));
};
exports.test_scopeId_invalid = () => {
const isValid = ajv.validate(User, {
scopeId: null
});
assert.strictEqual(isValid, false);
};
exports.test_gitNamespaceId_string_valid = () => {
assert(ajv.validate(User, {gitNamespaceId: 'test'}));
};
exports.test_gitNamespaceId_number_valid = () => {
assert(ajv.validate(User, {gitNamespaceId: 123}));
};
exports.test_gitNamespaceId_null_valid = () => {
assert(ajv.validate(User, {gitNamespaceId: null}));
};
exports.test_gitNamespaceId_boolean_invalid = () => {
const isValid = ajv.validate(User, {
gitNamespaceId: true
});
assert.strictEqual(isValid, false);
};

@@ -56,2 +56,20 @@ const Username = {

const ScopeId = {
type: 'string'
};
const GitNamespaceId = {
oneOf: [
{
type: 'string'
},
{
type: 'number'
},
{
type: 'null'
}
]
};
const PlatformVersion = {

@@ -125,3 +143,5 @@ oneOf: [

importFlowGitNamespace: ImportFlowGitNamespace,
importFlowGitNamespaceId: ImportFlowGitNamespaceId
importFlowGitNamespaceId: ImportFlowGitNamespaceId,
scopeId: ScopeId,
gitNamespaceId: GitNamespaceId
}

@@ -139,3 +159,5 @@ };

ImportFlowGitNamespace,
ImportFlowGitNamespaceId
ImportFlowGitNamespaceId,
ScopeId,
GitNamespaceId
};
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