@secretlint/core
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -1,4 +0,4 @@ | ||
import { SecretLintRuleLocaleTag, SecretLintRuleLocalizeMessages, SecretLintRuleMessageTranslateResult } from "@secretlint/types"; | ||
import { SecretLintRuleLocaleTag, SecretLintRuleLocalizeMessages, SecretLintRuleLocalizeMessageProps, SecretLintRuleMessageTranslateResult } from "@secretlint/types"; | ||
export declare const createTranslator: <T extends SecretLintRuleLocalizeMessages>(messages: T, options: { | ||
defaultLocale: SecretLintRuleLocaleTag; | ||
}) => <MessageId extends keyof T, Props = T[MessageId]>(messageId: MessageId, props?: Props | undefined) => SecretLintRuleMessageTranslateResult<Props>; | ||
}) => <MessageId extends keyof T, Props extends SecretLintRuleLocalizeMessageProps = T[MessageId]>(messageId: MessageId, props?: Props | undefined) => SecretLintRuleMessageTranslateResult<Props>; |
import { SecretLintCoreConfig, SecretLintCoreResult, SecretLintRawSource, SecretLintRuleLocaleTag } from "@secretlint/types"; | ||
export declare type SecretLintSourceOptions = { | ||
export type SecretLintSourceOptions = { | ||
/** | ||
@@ -4,0 +4,0 @@ * Lint target source |
import { SecretLintCoreIgnoreMessage, SecretLintCoreResultMessage } from "@secretlint/types"; | ||
export declare type filterIgnoredMessagesOptions = { | ||
export type filterIgnoredMessagesOptions = { | ||
reportedMessages: SecretLintCoreResultMessage[]; | ||
@@ -4,0 +4,0 @@ ignoredMessages: SecretLintCoreIgnoreMessage[]; |
import { SecretLintAllMessages } from "./MessageProcessManager"; | ||
export declare type AllowMessage = { | ||
export type AllowMessage = { | ||
ruleId: string; | ||
@@ -4,0 +4,0 @@ messageId: string; |
import { SecretLintCoreResultMessage } from "@secretlint/types"; | ||
export declare type AllowMessage = { | ||
export type AllowMessage = { | ||
ruleId: string; | ||
@@ -4,0 +4,0 @@ messageId: string; |
import { SecretLintCoreIgnoreMessage, SecretLintCoreResultMessage } from "@secretlint/types"; | ||
export declare type cleanupMessagesOptions = { | ||
export type cleanupMessagesOptions = { | ||
reportedMessages: SecretLintCoreResultMessage[]; | ||
@@ -4,0 +4,0 @@ ignoredMessages: SecretLintCoreIgnoreMessage[]; |
import { SecretLintCoreResultMessage, SecretLintCoreIgnoreMessage } from "@secretlint/types"; | ||
export declare type SecretLintAllMessages = SecretLintCoreResultMessage | SecretLintCoreIgnoreMessage; | ||
export declare type SecretLintMessageProcessor = (messages: Array<SecretLintAllMessages>) => Array<SecretLintAllMessages>; | ||
export type SecretLintAllMessages = SecretLintCoreResultMessage | SecretLintCoreIgnoreMessage; | ||
export type SecretLintMessageProcessor = (messages: Array<SecretLintAllMessages>) => Array<SecretLintAllMessages>; | ||
export declare const createMessageProcessor: (processors: SecretLintMessageProcessor[]) => { | ||
@@ -5,0 +5,0 @@ /** |
import { SecretLintCoreIgnoreMessage, SecretLintCoreResultMessage, SecretlintCoreSharedOptions, SecretLintRuleContext, SecretLintRuleCreator, SecretLintRuleLocaleTag, SecretLintRuleSeverityLevel, SecretLintSourceCode } from "@secretlint/types"; | ||
declare type Handler<T> = (descriptor: T) => void; | ||
export declare type ContextEvents = { | ||
type Handler<T> = (descriptor: T) => void; | ||
export type ContextEvents = { | ||
report(descriptor: SecretLintCoreResultMessage): void; | ||
@@ -10,3 +10,3 @@ onReport(handler: Handler<SecretLintCoreResultMessage>): () => void; | ||
export declare const createContextEvents: () => ContextEvents; | ||
export declare type CreateRuleContextOptions = { | ||
export type CreateRuleContextOptions = { | ||
ruleId: string; | ||
@@ -13,0 +13,0 @@ /** |
import { SecretLintCoreConfigRule, SecretLintCoreConfigRulePreset, SecretLintRuleContext, SecretLintRulePresetContext, SecretLintSourceCode } from "@secretlint/types"; | ||
import { AllowMessage } from "./messages/filter-message-id"; | ||
export declare type RunningEvents = { | ||
export type RunningEvents = { | ||
collectAllowMessageIds(): AllowMessage[]; | ||
@@ -5,0 +5,0 @@ /** |
import { SecretLintRuleContext, SecretLintCoreConfigRule, SecretLintSourceCode } from "@secretlint/types"; | ||
import { AllowMessage } from "./messages/filter-message-id"; | ||
export declare type SecretLintRuleOptions = { | ||
export type SecretLintRuleOptions = { | ||
context: SecretLintRuleContext; | ||
@@ -5,0 +5,0 @@ descriptorRule: SecretLintCoreConfigRule; |
{ | ||
"name": "@secretlint/core", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Core library for @secretlint.", | ||
@@ -43,4 +43,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@secretlint/profiler": "^6.0.1", | ||
"@secretlint/types": "^6.0.1", | ||
"@secretlint/profiler": "^6.0.2", | ||
"@secretlint/types": "^6.0.2", | ||
"debug": "^4.3.4", | ||
@@ -50,12 +50,12 @@ "structured-source": "^3.0.2" | ||
"devDependencies": { | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^18.11.17", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.11.18", | ||
"@types/structured-source": "^3.0.0", | ||
"assert-json-equal": "^1.0.1", | ||
"mocha": "^10.2.0", | ||
"prettier": "^2.7.1", | ||
"prettier": "^2.8.1", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.9.1", | ||
"ts-node-test-register": "^10.0.0", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.9.4" | ||
}, | ||
@@ -68,3 +68,3 @@ "engines": { | ||
}, | ||
"gitHead": "67f291f3857b462d2b998d00c26d3c58a26c0d72" | ||
"gitHead": "15a9f79e558fed32a4cead3943754d6ec55890af" | ||
} |
@@ -55,3 +55,3 @@ import { | ||
) => { | ||
return <MessageId extends keyof T, Props = T[MessageId]>( | ||
return <MessageId extends keyof T, Props extends SecretLintRuleLocalizeMessageProps = T[MessageId]>( | ||
messageId: MessageId, | ||
@@ -58,0 +58,0 @@ props?: Props |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
102137
0
Updated@secretlint/profiler@^6.0.2
Updated@secretlint/types@^6.0.2