@inlang/sdk
Advanced tools
Comparing version 0.27.0 to 0.28.0
@@ -14,2 +14,3 @@ import type { Result } from "@inlang/result"; | ||
module: string; | ||
settingsSchema: Plugin["settingsSchema"]; | ||
}; | ||
@@ -25,2 +26,3 @@ export type InstalledMessageLintRule = { | ||
level: MessageLintLevel; | ||
settingsSchema: MessageLintRule["settingsSchema"]; | ||
}; | ||
@@ -27,0 +29,0 @@ export type InlangProject = { |
@@ -173,2 +173,3 @@ import { resolveModules } from "./resolve-modules/index.js"; | ||
level: settingsValue["messageLintRuleLevels"]?.[rule.id] ?? "warning", | ||
settingsSchema: rule.settingsSchema, | ||
})); | ||
@@ -185,2 +186,3 @@ }; | ||
"Unknown module. You stumbled on a bug in inlang's source code. Please open an issue.", | ||
settingsSchema: plugin.settingsSchema, | ||
})); | ||
@@ -187,0 +189,0 @@ }; |
@@ -450,2 +450,3 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ | ||
module: settings.modules[0], | ||
settingsSchema: mockPlugin.settingsSchema, | ||
}); | ||
@@ -458,2 +459,3 @@ expect(project.installed.messageLintRules()[0]).toEqual({ | ||
level: "warning", | ||
settingsSchema: mockMessageLintRule.settingsSchema, | ||
}); | ||
@@ -460,0 +462,0 @@ }); |
{ | ||
"name": "@inlang/sdk", | ||
"type": "module", | ||
"version": "0.27.0", | ||
"version": "0.28.0", | ||
"license": "Apache-2.0", | ||
@@ -9,2 +9,7 @@ "publishConfig": { | ||
}, | ||
"homepage": "https://inlang.com/documentation/sdk", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/opral/inlang-message-sdk" | ||
}, | ||
"exports": { | ||
@@ -32,6 +37,6 @@ ".": "./dist/index.js", | ||
"@inlang/json-types": "1.1.0", | ||
"@inlang/language-tag": "1.5.1", | ||
"@inlang/message": "2.1.0", | ||
"@inlang/module": "1.2.8", | ||
"@inlang/message-lint-rule": "1.4.5", | ||
"@inlang/language-tag": "1.5.1", | ||
"@inlang/module": "1.2.8", | ||
"@inlang/plugin": "2.4.8", | ||
@@ -41,4 +46,4 @@ "@inlang/project-settings": "2.4.0", | ||
"@inlang/translatable": "1.3.1", | ||
"@lix-js/client": "0.9.0", | ||
"@lix-js/fs": "0.6.0" | ||
"@lix-js/fs": "0.6.0", | ||
"@lix-js/client": "0.9.0" | ||
}, | ||
@@ -45,0 +50,0 @@ "devDependencies": { |
@@ -22,2 +22,3 @@ import type { Result } from "@inlang/result" | ||
module: string | ||
settingsSchema: Plugin["settingsSchema"] | ||
// disabled: boolean | ||
@@ -35,2 +36,3 @@ } | ||
level: MessageLintLevel | ||
settingsSchema: MessageLintRule["settingsSchema"] | ||
} | ||
@@ -37,0 +39,0 @@ |
@@ -22,3 +22,3 @@ import { createSubscribable } from "./loadProject.js" | ||
installedMessageLintRules: () => Array<InstalledMessageLintRule>, | ||
resolvedModules: () => Awaited<ReturnType<typeof resolveModules>> | undefined, | ||
resolvedModules: () => Awaited<ReturnType<typeof resolveModules>> | undefined | ||
): InlangProject["query"]["messageLintReports"] { | ||
@@ -25,0 +25,0 @@ // @ts-expect-error |
@@ -555,2 +555,3 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ | ||
module: settings.modules[0], | ||
settingsSchema: mockPlugin.settingsSchema, | ||
}) | ||
@@ -564,2 +565,3 @@ | ||
level: "warning", | ||
settingsSchema: mockMessageLintRule.settingsSchema, | ||
}) | ||
@@ -566,0 +568,0 @@ }) |
@@ -284,2 +284,3 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ | ||
level: settingsValue["messageLintRuleLevels"]?.[rule.id] ?? "warning", | ||
settingsSchema: rule.settingsSchema, | ||
} satisfies InstalledMessageLintRule) | ||
@@ -298,2 +299,3 @@ ) satisfies Array<InstalledMessageLintRule> | ||
"Unknown module. You stumbled on a bug in inlang's source code. Please open an issue.", | ||
settingsSchema: plugin.settingsSchema, | ||
})) satisfies Array<InstalledPlugin> | ||
@@ -300,0 +302,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
531922
14847
1
1