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

@squiz/base-component-schemas

Package Overview
Dependencies
Maintainers
50
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squiz/base-component-schemas - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

107

lib/index.d.ts

@@ -1,3 +0,106 @@

import { Schema } from 'jsonschema';
export * from './set/v1/types';
export declare const ComponentSetSchema: Schema;
export declare const ComponentSetSchema: {
$schema: string;
$defs: {
semver: {
type: string;
description: string;
minLength: number;
maxLength: number;
pattern: string;
};
};
type: string;
additionalProperties: boolean;
required: string[];
properties: {
$schema: {
type: string;
};
name: {
type: string;
description: string;
};
id: {
type: string;
description: string;
};
version: {
$ref: string;
};
description: {
type: string;
description: string;
};
components: {
type: string;
items: {
type: string;
required: string[];
properties: {
id: {
type: string;
description: string;
};
editable: {
oneOf: ({
type: string;
description: string;
items: {
$ref: string;
};
enum?: undefined;
} | {
type: string;
enum: string[];
description: string;
items?: undefined;
})[];
};
excluded: {
type: string;
items: {
$ref: string;
};
};
renderable: {
oneOf: ({
type: string;
description: string;
items: {
$ref: string;
};
enum?: undefined;
} | {
type: string;
enum: string[];
description: string;
items?: undefined;
})[];
};
};
};
};
configuration: {
type: string;
properties: {
environment: {
type: string;
additionalProperties: {
type: string;
};
required: never[];
};
headers: {
type: string;
additionalProperties: {
type: string;
};
required: never[];
};
};
additionalProperties: boolean;
required: never[];
};
};
};

2

lib/index.js

@@ -1,2 +0,2 @@

import{readFileSync as r}from"fs";import{resolve as n}from"path";var t=(e=>(e.Latest="latest",e.All="all",e))(t||{});var a=JSON.parse(r(n(__dirname,"set","v1","v1.json")).toString());export{a as ComponentSetSchema,t as SetEnums};
var r=(e=>(e.Latest="latest",e.All="all",e))(r||{});var t={$schema:"https://json-schema.org/draft/2019-09/schema",$defs:{semver:{type:"string",description:"Semver version number",minLength:5,maxLength:14,pattern:"^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"}},type:"object",additionalProperties:!1,required:["name","id","version","components"],properties:{$schema:{type:"string"},name:{type:"string",description:"The component set name"},id:{type:"string",description:"The component set id"},version:{$ref:"#/$defs/semver"},description:{type:"string",description:"The component set description"},components:{type:"array",items:{type:"object",required:["id","renderable","editable"],properties:{id:{type:"string",description:"The component name including the namespace e.g {NAMESPACE/COMPONENT_NAME}"},editable:{oneOf:[{type:"array",description:"The versions of a component that are editable in this set",items:{$ref:"#/$defs/semver"}},{type:"string",enum:["latest"],description:"The latest version"}]},excluded:{type:"array",items:{$ref:"#/$defs/semver"}},renderable:{oneOf:[{type:"array",description:"The versions of a component that are renderable in this set",items:{$ref:"#/$defs/semver"}},{type:"string",enum:["all"],description:"All versions should be renderable"}]}}}},configuration:{type:"object",properties:{environment:{type:"object",additionalProperties:{type:"string"},required:[]},headers:{type:"object",additionalProperties:{type:"string"},required:[]}},additionalProperties:!1,required:[]}}};var a=t;export{a as ComponentSetSchema,r as SetEnums};
//# sourceMappingURL=index.js.map
{
"name": "@squiz/base-component-schemas",
"version": "0.3.0",
"version": "0.3.1",
"description": "",

@@ -32,3 +32,3 @@ "keywords": [],

"types": "lib/index.d.ts",
"gitHead": "f56cf6e584d507acccf56c1b373d6759664aef2a"
"gitHead": "1edcb0689eeb889c86271b297d27f6fead1afc3d"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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