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

@redocly/config

Package Overview
Dependencies
Maintainers
9
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redocly/config - npm Package Compare versions

Comparing version 0.18.0 to 0.19.0

3

lib-esm/graphql-types.d.ts

@@ -6,5 +6,6 @@ import type { FromSchema } from 'json-schema-to-ts';

markdown?: {
parser: (md: string) => string;
parser?: (md: string) => string;
highlight?: (code: string, lang: string, options?: Record<string, any>) => string;
};
onLocationChange?: (location: Partial<Location>) => void;
};

@@ -21,4 +21,43 @@ export declare const reuniteConfigSchema: {

};
readonly jobs: {
readonly type: "array";
readonly items: {
readonly type: "object";
readonly properties: {
readonly path: {
readonly type: "string";
readonly pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
};
readonly agent: {
readonly type: "string";
readonly enum: readonly ["spot"];
};
readonly trigger: {
readonly type: "object";
readonly additionalProperties: false;
readonly properties: {
readonly event: {
readonly type: "string";
readonly enum: readonly ["schedule"];
};
readonly interval: {
readonly type: "string";
readonly pattern: "^[1-9]\\d*[mhdw]$";
};
};
readonly required: readonly ["event"];
};
readonly inputs: {
readonly type: "object";
readonly additionalProperties: {
readonly type: "string";
};
};
};
readonly required: readonly ["path", "trigger", "agent"];
readonly additionalProperties: false;
};
};
};
readonly additionalProperties: false;
};

@@ -0,1 +1,17 @@

const jobInputsSchema = {
type: 'object',
additionalProperties: { type: 'string' },
};
const jobTriggerSchema = {
type: 'object',
additionalProperties: false,
properties: {
event: {
type: 'string',
enum: ['schedule'],
},
interval: { type: 'string', pattern: '^[1-9]\\d*[mhdw]$' },
},
required: ['event'],
};
export const reuniteConfigSchema = {

@@ -15,2 +31,22 @@ type: 'object',

ignoreMarkdocErrors: { type: 'boolean' },
jobs: {
type: 'array',
items: {
type: 'object',
properties: {
path: {
type: 'string',
pattern: '^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$',
},
agent: {
type: 'string',
enum: ['spot'],
},
trigger: jobTriggerSchema,
inputs: jobInputsSchema,
},
required: ['path', 'trigger', 'agent'],
additionalProperties: false,
},
},
},

@@ -17,0 +53,0 @@ additionalProperties: false,

@@ -6,5 +6,6 @@ import type { FromSchema } from 'json-schema-to-ts';

markdown?: {
parser: (md: string) => string;
parser?: (md: string) => string;
highlight?: (code: string, lang: string, options?: Record<string, any>) => string;
};
onLocationChange?: (location: Partial<Location>) => void;
};

@@ -21,4 +21,43 @@ export declare const reuniteConfigSchema: {

};
readonly jobs: {
readonly type: "array";
readonly items: {
readonly type: "object";
readonly properties: {
readonly path: {
readonly type: "string";
readonly pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
};
readonly agent: {
readonly type: "string";
readonly enum: readonly ["spot"];
};
readonly trigger: {
readonly type: "object";
readonly additionalProperties: false;
readonly properties: {
readonly event: {
readonly type: "string";
readonly enum: readonly ["schedule"];
};
readonly interval: {
readonly type: "string";
readonly pattern: "^[1-9]\\d*[mhdw]$";
};
};
readonly required: readonly ["event"];
};
readonly inputs: {
readonly type: "object";
readonly additionalProperties: {
readonly type: "string";
};
};
};
readonly required: readonly ["path", "trigger", "agent"];
readonly additionalProperties: false;
};
};
};
readonly additionalProperties: false;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reuniteConfigSchema = void 0;
const jobInputsSchema = {
type: 'object',
additionalProperties: { type: 'string' },
};
const jobTriggerSchema = {
type: 'object',
additionalProperties: false,
properties: {
event: {
type: 'string',
enum: ['schedule'],
},
interval: { type: 'string', pattern: '^[1-9]\\d*[mhdw]$' },
},
required: ['event'],
};
exports.reuniteConfigSchema = {

@@ -18,2 +34,22 @@ type: 'object',

ignoreMarkdocErrors: { type: 'boolean' },
jobs: {
type: 'array',
items: {
type: 'object',
properties: {
path: {
type: 'string',
pattern: '^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$',
},
agent: {
type: 'string',
enum: ['spot'],
},
trigger: jobTriggerSchema,
inputs: jobInputsSchema,
},
required: ['path', 'trigger', 'agent'],
additionalProperties: false,
},
},
},

@@ -20,0 +56,0 @@ additionalProperties: false,

{
"name": "@redocly/config",
"version": "0.18.0",
"version": "0.19.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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