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

@lwrjs/diagnostics

Package Overview
Dependencies
Maintainers
8
Versions
419
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwrjs/diagnostics - npm Package Compare versions

Comparing version 0.0.2-alpha43 to 0.0.2-alpha44

77

build/es/descriptions/configParser.d.ts
import { DiagnosticLocation } from '../types.js';
declare type ConfigProperty = 'apiVersion' | 'cacheDir';
export declare const configParser: {

@@ -48,10 +47,80 @@ TEST: Pick<{

};
NON_EMPTY_STRING: (prop: ConfigProperty, actualProp: string) => Pick<{
NON_EMPTY_STRING: (configProperty: string, actualProp: string) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, never> & {
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
NON_EMPTY_ARRAY: (configProperty: string, actualProp: string) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
INVALID_PORT: (configProperty: string, actualProp: string) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
INVALID_METHOD: (configProperty: string, actualProp: string) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
INVALID_STATUS: (configProperty: string, actualProp: string) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
INVALID_SPECIFIER: (configProperty: string, actualProp: string) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
INVALID_PATH: (configProperty: string, actualProp: string) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
INVALID_SERVICE: (configProperty: string, actualProp: string) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
MISSING_ONE_OF: (configProperty: string, childProps: string[]) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
MISSING_REQUIRED: (configProperty: string, childProps: string[]) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
DUPLICATE_IDS: (configProperty: string, dupeIds: string[]) => Pick<{
category: "lwrConfig/invalidSchema";
message: string;
}, "category"> & {
advice: import("../types.js").DiagnosticAdvice;
message: string;
};
};
export {};
//# sourceMappingURL=configParser.d.ts.map

@@ -24,8 +24,49 @@ import { createDiagnosticsCategory } from './index.js';

category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must not be empty object`,
message: `Property "${configProperty}" must not be an empty object`,
}),
NON_EMPTY_STRING: (prop, actualProp) => ({
message: `Propery "${prop}" must be a non-empty string, received ${actualProp}.`,
NON_EMPTY_STRING: (configProperty, actualProp) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must be a non-empty string, received ${actualProp}.`,
}),
NON_EMPTY_ARRAY: (configProperty, actualProp) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must be a non-empty array, received ${actualProp}.`,
}),
INVALID_PORT: (configProperty, actualProp) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must be a valid port number, received ${actualProp}.`,
}),
INVALID_METHOD: (configProperty, actualProp) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must be "get" or "post", received ${actualProp}.`,
}),
INVALID_STATUS: (configProperty, actualProp) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must be 404 or 500, received ${actualProp}.`,
}),
INVALID_SPECIFIER: (configProperty, actualProp) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must be a valid specifier, received ${actualProp}.`,
}),
INVALID_PATH: (configProperty, actualProp) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must be a URI path string which starts but does not end with a slash, received ${actualProp}.`,
}),
INVALID_SERVICE: (configProperty, actualProp) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" must be a valid service (a non-empty string or array with [non-empty string, any]), received ${actualProp}.`,
}),
MISSING_ONE_OF: (configProperty, childProps) => ({
category: 'lwrConfig/invalidSchema',
message: `A "${configProperty}" must contain at least one of [${childProps}].`,
}),
MISSING_REQUIRED: (configProperty, childProps) => ({
category: 'lwrConfig/invalidSchema',
message: `Property "${configProperty}" is missing required properties [${childProps}].`,
}),
DUPLICATE_IDS: (configProperty, dupeIds) => ({
category: 'lwrConfig/invalidSchema',
message: `Each "${configProperty}" must have a unique "id", found duplicates [${dupeIds}].`,
}),
});
//# sourceMappingURL=configParser.js.map

@@ -50,5 +50,46 @@ import { DiagnosticDescription, DiagnosticAdvice, StaticMarkup } from '../types';

};
NON_EMPTY_STRING: (prop: "apiVersion" | "cacheDir", actualProp: string) => {
NON_EMPTY_STRING: (configProperty: string, actualProp: string) => {
category: "lwrConfig/invalidSchema";
message: string;
};
NON_EMPTY_ARRAY: (configProperty: string, actualProp: string) => {
category: "lwrConfig/invalidSchema";
message: string;
};
INVALID_PORT: (configProperty: string, actualProp: string) => {
category: "lwrConfig/invalidSchema";
message: string;
};
INVALID_METHOD: (configProperty: string, actualProp: string) => {
category: "lwrConfig/invalidSchema";
message: string;
};
INVALID_STATUS: (configProperty: string, actualProp: string) => {
category: "lwrConfig/invalidSchema";
message: string;
};
INVALID_SPECIFIER: (configProperty: string, actualProp: string) => {
category: "lwrConfig/invalidSchema";
message: string;
};
INVALID_PATH: (configProperty: string, actualProp: string) => {
category: "lwrConfig/invalidSchema";
message: string;
};
INVALID_SERVICE: (configProperty: string, actualProp: string) => {
category: "lwrConfig/invalidSchema";
message: string;
};
MISSING_ONE_OF: (configProperty: string, childProps: string[]) => {
category: "lwrConfig/invalidSchema";
message: string;
};
MISSING_REQUIRED: (configProperty: string, childProps: string[]) => {
category: "lwrConfig/invalidSchema";
message: string;
};
DUPLICATE_IDS: (configProperty: string, dupeIds: string[]) => {
category: "lwrConfig/invalidSchema";
message: string;
};
}>;

@@ -55,0 +96,0 @@ };

6

package.json

@@ -7,3 +7,3 @@ {

},
"version": "0.0.2-alpha43",
"version": "0.0.2-alpha44",
"homepage": "https://lwr.dev/",

@@ -34,3 +34,3 @@ "repository": {

"devDependencies": {
"@lwrjs/types": "0.0.2-alpha43"
"@lwrjs/types": "0.0.2-alpha44"
},

@@ -40,3 +40,3 @@ "engines": {

},
"gitHead": "07c8561f26d16f974098a2b42c870f0ed1a4d46f"
"gitHead": "7c99c73d5bd5f8fccc67bfc8e158def5b85f2ab0"
}

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