New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lwrjs/diagnostics

Package Overview
Dependencies
Maintainers
5
Versions
449
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.17.2-alpha.3 to 0.17.2-alpha.4

build/cjs/descriptions/invalid.cjs

7

build/es/descriptions/application.d.ts
export declare const application: {
INVALID_JSON: () => string;
INVALID_API_VERSION: (apiVersion: string, expectedVersion: any) => string;
INVALID_ENVIRONMENT: (environment: string) => string;
INVALID_SPECIFIER: (specifier: string) => string;
PRELOAD_MODULE: (specifier: string) => string;
INVALID_MODE: (mode: string) => string;
PRELOAD_DATA_ERROR: (id: string, error: string) => string;
SSR_ERROR: (specifier: string, error: string) => string;

@@ -9,0 +4,0 @@ SSR_TIMEOUT: (specifier: string, time: number) => string;

export const application = {
INVALID_JSON: () => '400: Accept header and json query parameter are incompatible',
INVALID_API_VERSION: (apiVersion, expectedVersion) => `400: API Version "${escape(apiVersion)}" is not supported. Expected "${expectedVersion}"`,
INVALID_ENVIRONMENT: (environment) => `400: Environment "${escape(environment)}" is not supported`,
INVALID_SPECIFIER: (specifier) => `400: Unable to resolve specifier "${escape(specifier)}" because it contains path traversal`,
PRELOAD_MODULE: (specifier) => `Invalid preload module: ${escape(specifier)}`,
INVALID_MODE: (mode) => `No configuration found for server mode - ${escape(mode)}`,
PRELOAD_DATA_ERROR: (id, error) => `Preloading data for "${id}" failed: ${error}`,
SSR_ERROR: (specifier, error) => `Server-side rendering for "${specifier}" failed: ${error}`,

@@ -9,0 +4,0 @@ SSR_TIMEOUT: (specifier, time) => `Server side rendering or data prefetching for '${escape(specifier)}' timed out after ${time}ms`,

@@ -52,2 +52,8 @@ export declare const descriptions: {

APPLICATION: {
PRELOAD_DATA_ERROR: (id: string, error: string) => string;
SSR_ERROR: (specifier: string, error: string) => string;
SSR_TIMEOUT: (specifier: string, time: number) => string;
ROUTE_HANDLER_ERROR: (route: string, error: string) => string;
};
INVALID: {
INVALID_JSON: () => string;

@@ -59,7 +65,4 @@ INVALID_API_VERSION: (apiVersion: string, expectedVersion: any) => string;

INVALID_MODE: (mode: string) => string;
SSR_ERROR: (specifier: string, error: string) => string;
SSR_TIMEOUT: (specifier: string, time: number) => string;
ROUTE_HANDLER_ERROR: (route: string, error: string) => string;
};
};
//# sourceMappingURL=index.d.ts.map

@@ -5,2 +5,3 @@ import { config } from './config.js';

import { application } from './application.js';
import { invalid } from './invalid.js';
export const descriptions = {

@@ -11,3 +12,4 @@ CONFIG: config,

APPLICATION: application,
INVALID: invalid,
};
//# sourceMappingURL=index.js.map

@@ -12,2 +12,5 @@ /// <reference types="node" />

}
export declare class LwrInvalidError extends LwrError {
name: string;
}
export declare class LwrUnresolvableError extends LwrError {

@@ -14,0 +17,0 @@ name: string;

@@ -19,3 +19,3 @@ // The NodeJS Error is different from the JavaScript Error (e.g. NodeJS Error has a code)

}
// 400
// 500 - app layer does not affect availability
export class LwrApplicationError extends LwrError {

@@ -27,2 +27,9 @@ constructor() {

}
// 400
export class LwrInvalidError extends LwrError {
constructor() {
super(...arguments);
this.name = 'LwrInvalidError';
}
}
// 404

@@ -29,0 +36,0 @@ export class LwrUnresolvableError extends LwrError {

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

},
"version": "0.17.2-alpha.3",
"version": "0.17.2-alpha.4",
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",

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

"devDependencies": {
"@lwrjs/types": "0.17.2-alpha.3",
"@lwrjs/types": "0.17.2-alpha.4",
"jest": "^26.6.3",

@@ -51,3 +51,3 @@ "ts-jest": "^26.5.6",

},
"gitHead": "43757693dfca356cff105d4896a7a3cbf11ac017"
"gitHead": "d7fb1605cec0bf9fef18e3daeb17dc28b35a80d3"
}

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