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.7.10 to 0.7.11

16

dist/ast/zod.d.ts

@@ -104,7 +104,2 @@ import { z } from "zod";

type: "Resource";
languageTag: {
type: "LanguageTag";
name: string;
metadata?: any;
};
body: {

@@ -128,5 +123,2 @@ type: "Message";

}[];
metadata?: any;
}, {
type: "Resource";
languageTag: {

@@ -137,2 +129,5 @@ type: "LanguageTag";

};
metadata?: any;
}, {
type: "Resource";
body: {

@@ -156,4 +151,9 @@ type: "Message";

}[];
languageTag: {
type: "LanguageTag";
name: string;
metadata?: any;
};
metadata?: any;
}>;
//# sourceMappingURL=zod.d.ts.map

@@ -24,5 +24,13 @@ import { z } from "zod";

});
const VariableReference = Node.extend({
type: z.literal("VariableReference"),
name: z.string(),
});
const Placeholder = Node.extend({
type: z.literal("Placeholder"),
body: VariableReference,
});
const Pattern = Node.extend({
type: z.literal("Pattern"),
elements: z.array(Text),
elements: z.array(Text, Placeholder),
});

@@ -29,0 +37,0 @@ const Message = Node.extend({

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

experimental?: Record<string, unknown>;
ideExtension?: {
/**
* Defines matchers for message references inside the code.
*
* @param args represents the data to conduct the search on
* @returns a promise with matched message references
*/
messageReferenceMatchers: ((args: {
documentText: string;
}) => Promise<Array<{
/**
* The messages id.
*/
messageId: string;
/**
* The position from where to where the reference can be found.
*/
position: {
start: {
line: number;
character: number;
};
end: {
line: number;
character: number;
};
};
}>>)[];
/**
* Defines the options to extract messages.
*/
extractMessageOptions: {
/**
* Function which is called, when the user finished the message extraction command.
*
* @param messageId is the message identifier entered by the user
* @param selection is the text which was extracted
* @returns the code which is inserted into the document
*/
callback: (messageId: string, selection: string) => string;
}[];
};
};

@@ -122,0 +80,0 @@ type WithRequired<T, K extends keyof T> = T & {

@@ -121,7 +121,2 @@ import { z } from "zod";

type: "Resource";
languageTag: {
type: "LanguageTag";
name: string;
metadata?: any;
};
body: {

@@ -145,5 +140,2 @@ type: "Message";

}[];
metadata?: any;
}, {
type: "Resource";
languageTag: {

@@ -154,2 +146,5 @@ type: "LanguageTag";

};
metadata?: any;
}, {
type: "Resource";
body: {

@@ -173,2 +168,7 @@ type: "Message";

}[];
languageTag: {
type: "LanguageTag";
name: string;
metadata?: any;
};
metadata?: any;

@@ -192,7 +192,2 @@ }>, "many">>>;

type: "Resource";
languageTag: {
type: "LanguageTag";
name: string;
metadata?: any;
};
body: {

@@ -216,2 +211,7 @@ type: "Message";

}[];
languageTag: {
type: "LanguageTag";
name: string;
metadata?: any;
};
metadata?: any;

@@ -232,7 +232,2 @@ }[]>;

type: "Resource";
languageTag: {
type: "LanguageTag";
name: string;
metadata?: any;
};
body: {

@@ -256,2 +251,7 @@ type: "Message";

}[];
languageTag: {
type: "LanguageTag";
name: string;
metadata?: any;
};
metadata?: any;

@@ -258,0 +258,0 @@ }[]>;

{
"name": "@inlang/core",
"type": "module",
"version": "0.7.10",
"version": "0.7.11",
"publishConfig": {

@@ -29,2 +29,5 @@ "access": "public"

],
"plugin": [
"./dist/plugin/index.d.ts"
],
"query": [

@@ -31,0 +34,0 @@ "./dist/query/index.d.ts"

@@ -30,5 +30,15 @@ import { z } from "zod"

const VariableReference = Node.extend({
type: z.literal("VariableReference"),
name: z.string(),
})
const Placeholder = Node.extend({
type: z.literal("Placeholder"),
body: VariableReference,
})
const Pattern = Node.extend({
type: z.literal("Pattern"),
elements: z.array(Text),
elements: z.array(Text, Placeholder),
})

@@ -35,0 +45,0 @@

@@ -81,52 +81,4 @@ import type { Language } from "../ast/index.js"

experimental?: Record<string, unknown>
ideExtension?: {
/**
* Defines matchers for message references inside the code.
*
* @param args represents the data to conduct the search on
* @returns a promise with matched message references
*/
messageReferenceMatchers: ((args: { documentText: string }) => Promise<
Array<{
/**
* The messages id.
*/
messageId: string
/**
* The position from where to where the reference can be found.
*/
position: {
start: { line: number; character: number }
end: { line: number; character: number }
}
}>
>)[]
/**
* Defines the options to extract messages.
*/
extractMessageOptions: {
/**
* Function which is called, when the user finished the message extraction command.
*
* @param messageId is the message identifier entered by the user
* @param selection is the text which was extracted
* @returns the code which is inserted into the document
*/
callback: (messageId: string, selection: string) => string
}[]
/**
* An array of VSCode DocumentSelectors.
*
* The document selectors specify for which files/programming languages
* (typescript, svelte, etc.) the extension should be activated.
*
* See https://code.visualstudio.com/api/references/document-selector
*/
// documentSelectors: DocumentSelector[];
}
}
type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] }

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