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

@inlang/message-lint-rule

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlang/message-lint-rule - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

dist/interface.test-d.d.ts

22

dist/interface.d.ts

@@ -5,3 +5,4 @@ import type { Message } from "@inlang/message";

import { type Static } from "@sinclair/typebox";
import { type ProjectSettings } from "@inlang/project-settings";
import type { JSONObject } from "@inlang/json-types";
import { ExternalProjectSettings, type ProjectSettings } from "@inlang/project-settings";
export type MessageLintLevel = Static<typeof MessageLintLevel>;

@@ -19,6 +20,21 @@ export declare const MessageLintLevel: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"error">, import("@sinclair/typebox").TLiteral<"warning">]>;

};
export type MessageLintRule = Static<typeof MessageLintRule> & {
/**
* The message lint rule API.
*
* You can use your own settings by extending the type with a generic:
*
* ```ts
* type RuleSettings = {
* storagePath: string
* }
*
* const messageLintRule: MessageLintRule<{
* "messageLintRule.your.id": RuleSettings
* }>
* ```
*/
export type MessageLintRule<ExternalSettings extends Record<keyof ExternalProjectSettings, JSONObject> | unknown = unknown> = Static<typeof MessageLintRule> & {
run: (args: {
message: Message;
settings: ProjectSettings;
settings: ProjectSettings & ExternalSettings;
report: (args: {

@@ -25,0 +41,0 @@ messageId: Message["id"];

2

dist/interface.js
import { Translatable } from "@inlang/translatable";
import { Type } from "@sinclair/typebox";
import { _MessageLintRuleId, _MessageLintRuleLevel, } from "@inlang/project-settings";
import { _MessageLintRuleId, _MessageLintRuleLevel, ExternalProjectSettings, } from "@inlang/project-settings";
export const MessageLintLevel = _MessageLintRuleLevel;

@@ -5,0 +5,0 @@ export const MessageLintRule = Type.Object({

{
"name": "@inlang/message-lint-rule",
"type": "module",
"version": "1.2.0",
"version": "1.3.0",
"license": "Apache-2.0",

@@ -25,5 +25,6 @@ "publishConfig": {

"dependencies": {
"@inlang/json-types": "*",
"@inlang/language-tag": "*",
"@inlang/message": "*",
"@inlang/project-settings": "2.1.0",
"@inlang/project-settings": "*",
"@inlang/translatable": "*"

@@ -30,0 +31,0 @@ },

@@ -5,5 +5,7 @@ import type { Message } from "@inlang/message"

import { Type, type Static } from "@sinclair/typebox"
import type { JSONObject } from "@inlang/json-types"
import {
_MessageLintRuleId,
_MessageLintRuleLevel,
ExternalProjectSettings,
type ProjectSettings,

@@ -26,6 +28,23 @@ } from "@inlang/project-settings"

export type MessageLintRule = Static<typeof MessageLintRule> & {
/**
* The message lint rule API.
*
* You can use your own settings by extending the type with a generic:
*
* ```ts
* type RuleSettings = {
* storagePath: string
* }
*
* const messageLintRule: MessageLintRule<{
* "messageLintRule.your.id": RuleSettings
* }>
* ```
*/
export type MessageLintRule<
ExternalSettings extends Record<keyof ExternalProjectSettings, JSONObject> | unknown = unknown
> = Static<typeof MessageLintRule> & {
run: (args: {
message: Message
settings: ProjectSettings
settings: ProjectSettings & ExternalSettings
report: (args: {

@@ -32,0 +51,0 @@ messageId: Message["id"]

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