@splunk/dashboard-validation
Advanced tools
Comparing version 27.2.0 to 27.3.0
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import type { ValidatorArgs } from '../types'; | ||
export declare const Validator: import("react").MemoExoticComponent<({ schema, definition, onError, readOnlyTokenNamespaces, }: ValidatorArgs) => null>; | ||
//# sourceMappingURL=Validator.d.ts.map |
@@ -1,17 +0,17 @@ | ||
import type { useCallback } from 'react'; | ||
import type { ErrorObject, JSONSchemaType } from 'ajv'; | ||
import type { DashboardJSON } from '@splunk/dashboard-types'; | ||
export type ValidationErrors = Partial<ErrorObject>[]; | ||
export interface ValidatorArgs { | ||
schema: JSONSchemaType<DashboardJSON>; | ||
definition: DashboardJSON; | ||
onError: (ev: MessageEvent) => void; | ||
onError: (errs: Error | ValidationErrors | null) => void; | ||
readOnlyTokenNamespaces?: string[]; | ||
} | ||
export type ValidationErrors = Partial<ErrorObject>[]; | ||
type ConstructableWorker = Worker & { | ||
new (): Worker; | ||
}; | ||
export type EventHandler = (...args: any[]) => void; | ||
export type useWorkerArgs = { | ||
WorkerClass: ConstructableWorker; | ||
onMessage: Parameters<typeof useCallback>[0]; | ||
onMessage: EventHandler; | ||
postMessage: (worker: Worker) => void; | ||
@@ -18,0 +18,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
export declare const handleEvent: (event: MessageEvent) => import("../types").ValidationErrors | Error | null; | ||
export declare const handleEvent: (event: MessageEvent) => Error | import("../types").ValidationErrors | null; | ||
//# sourceMappingURL=validationEventHandler.d.ts.map |
{ | ||
"name": "@splunk/dashboard-validation", | ||
"version": "27.2.0", | ||
"version": "27.3.0", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -27,11 +27,11 @@ "author": "Splunk", | ||
"devDependencies": { | ||
"@splunk/dashboard-build-tools": "27.2.0", | ||
"@splunk/dashboard-test-utils": "27.2.0", | ||
"@splunk/dashboard-types": "^27.2.0", | ||
"@splunk/dashboard-build-tools": "27.3.0", | ||
"@splunk/dashboard-test-utils": "27.3.0", | ||
"@splunk/dashboard-types": "^27.3.0", | ||
"@testing-library/react": "^12.1.5", | ||
"@testing-library/react-hooks": "^8.0.1", | ||
"@types/jest": "^28.1.0", | ||
"@types/jest": "^29.5.12", | ||
"@types/react": "^16.14.5", | ||
"jest": "^28.1.0", | ||
"ts-jest": "^28.0.3" | ||
"jest": "^29.7.0", | ||
"ts-jest": "^29.2.3" | ||
}, | ||
@@ -38,0 +38,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
48
1
10
938371
3307