Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@inlang/core

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlang/core - npm Package Compare versions

Comparing version 0.8.7 to 0.9.0

dist/config/ideExtension/schema.d.ts

1

dist/config/index.d.ts
export type { InlangConfig, InlangConfigModule, DefineConfig } from "./schema.js";
export { setupConfig } from "./setupConfig.js";
export { parseConfig, ParseConfigException } from "./parseConfig.js";
export type { MessageReferenceMatch } from "./ideExtension/schema.js";
//# sourceMappingURL=index.d.ts.map

@@ -6,2 +6,3 @@ import type { Language } from "../ast/index.js";

import type { Plugin, PluginSetupFunction } from "../plugin/types.js";
import type { IdeExtensionConfigSchema } from "./ideExtension/schema.js";
/**

@@ -73,2 +74,6 @@ * The entrypoint for inlang.

/**
* The config schema for the ide extension.
*/
ideExtension?: IdeExtensionConfigSchema;
/**
* WARNING: Experimental properties are not required,

@@ -75,0 +80,0 @@ * can change at any time and do not lead to a MAJOR version bump.

@@ -253,2 +253,150 @@ import { z } from "zod";

writeResources: z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
ideExtension: z.ZodOptional<z.ZodObject<{
messageReferenceMatchers: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
documentText: z.ZodString;
}, "strip", z.ZodTypeAny, {
documentText: string;
}, {
documentText: string;
}>], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodObject<{
messageId: z.ZodString;
position: z.ZodObject<{
start: z.ZodObject<{
line: z.ZodNumber;
character: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
line: number;
character: number;
}, {
line: number;
character: number;
}>;
end: z.ZodObject<{
line: z.ZodNumber;
character: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
line: number;
character: number;
}, {
line: number;
character: number;
}>;
}, "strip", z.ZodTypeAny, {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
}, {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
}>;
}, "strip", z.ZodTypeAny, {
messageId: string;
position: {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
};
}, {
messageId: string;
position: {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
};
}>, "many">>>, "many">>;
extractMessageOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
callback: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodString], z.ZodUnknown>, z.ZodString>;
}, "strip", z.ZodTypeAny, {
callback: (args_0: string, args_1: string, ...args_2: unknown[]) => string;
}, {
callback: (args_0: string, args_1: string, ...args_2: unknown[]) => string;
}>, "many">>;
documentSelectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
language: z.ZodOptional<z.ZodString>;
scheme: z.ZodOptional<z.ZodString>;
pattern: z.ZodOptional<z.ZodString>;
notebookType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
language?: string | undefined;
scheme?: string | undefined;
pattern?: string | undefined;
notebookType?: string | undefined;
}, {
language?: string | undefined;
scheme?: string | undefined;
pattern?: string | undefined;
notebookType?: string | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
messageReferenceMatchers?: ((args_0: {
documentText: string;
}, ...args_1: unknown[]) => Promise<{
messageId: string;
position: {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
};
}[]>)[] | undefined;
extractMessageOptions?: {
callback: (args_0: string, args_1: string, ...args_2: unknown[]) => string;
}[] | undefined;
documentSelectors?: {
language?: string | undefined;
scheme?: string | undefined;
pattern?: string | undefined;
notebookType?: string | undefined;
}[] | undefined;
}, {
messageReferenceMatchers?: ((args_0: {
documentText: string;
}, ...args_1: unknown[]) => Promise<{
messageId: string;
position: {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
};
}[]>)[] | undefined;
extractMessageOptions?: {
callback: (args_0: string, args_1: string, ...args_2: unknown[]) => string;
}[] | undefined;
documentSelectors?: {
language?: string | undefined;
scheme?: string | undefined;
pattern?: string | undefined;
notebookType?: string | undefined;
}[] | undefined;
}>>;
plugins: z.ZodUnion<[z.ZodUndefined, z.ZodArray<z.ZodObject<{

@@ -306,2 +454,28 @@ id: z.ZodString;

} | undefined;
ideExtension?: {
messageReferenceMatchers?: ((args_0: {
documentText: string;
}, ...args_1: unknown[]) => Promise<{
messageId: string;
position: {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
};
}[]>)[] | undefined;
extractMessageOptions?: {
callback: (args_0: string, args_1: string, ...args_2: unknown[]) => string;
}[] | undefined;
documentSelectors?: {
language?: string | undefined;
scheme?: string | undefined;
pattern?: string | undefined;
notebookType?: string | undefined;
}[] | undefined;
} | undefined;
plugins?: {

@@ -353,2 +527,28 @@ id: string;

} | undefined;
ideExtension?: {
messageReferenceMatchers?: ((args_0: {
documentText: string;
}, ...args_1: unknown[]) => Promise<{
messageId: string;
position: {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
};
}[]>)[] | undefined;
extractMessageOptions?: {
callback: (args_0: string, args_1: string, ...args_2: unknown[]) => string;
}[] | undefined;
documentSelectors?: {
language?: string | undefined;
scheme?: string | undefined;
pattern?: string | undefined;
notebookType?: string | undefined;
}[] | undefined;
} | undefined;
plugins?: {

@@ -355,0 +555,0 @@ id: string;

import { z } from "zod";
import { Resource } from "../ast/zod.js";
import { zodIdeExtensionConfigSchema } from "./ideExtension/zodSchema.js";
/**

@@ -25,4 +26,5 @@ * The zod schema for the config.

writeResources: z.function().args(z.any()).returns(z.promise(z.void())),
ideExtension: zodIdeExtensionConfigSchema.optional(),
plugins: z.union([z.undefined(), z.array(z.object({ id: z.string(), config: z.function() }))]),
// TODO define lint and experimental
});

2

package.json
{
"name": "@inlang/core",
"type": "module",
"version": "0.8.7",
"version": "0.9.0",
"publishConfig": {

@@ -6,0 +6,0 @@ "access": "public"

export type { InlangConfig, InlangConfigModule, DefineConfig } from "./schema.js"
export { setupConfig } from "./setupConfig.js"
export { parseConfig, ParseConfigException } from "./parseConfig.js"
// exporting the message reference match type for higher dx.
// the ide extension config schema can be retrieved by
// `InlangConfig['ideExtension']`
export type { MessageReferenceMatch } from "./ideExtension/schema.js"

@@ -6,2 +6,3 @@ import type { Language } from "../ast/index.js"

import type { Plugin, PluginSetupFunction } from "../plugin/types.js"
import type { IdeExtensionConfigSchema } from "./ideExtension/schema.js"

@@ -76,2 +77,7 @@ /**

/**
* The config schema for the ide extension.
*/
ideExtension?: IdeExtensionConfigSchema
/**
* WARNING: Experimental properties are not required,

@@ -78,0 +84,0 @@ * can change at any time and do not lead to a MAJOR version bump.

import { z } from "zod"
import { Resource } from "../ast/zod.js"
import type { Language } from "../ast/schema.js"
import { zodIdeExtensionConfigSchema } from "./ideExtension/zodSchema.js"

@@ -27,4 +28,5 @@ /**

writeResources: z.function().args(z.any()).returns(z.promise(z.void())),
ideExtension: zodIdeExtensionConfigSchema.optional(),
plugins: z.union([z.undefined(), z.array(z.object({ id: z.string(), config: z.function() }))]),
// TODO define lint and experimental
})

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