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

@volar/language-core

Package Overview
Dependencies
Maintainers
1
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/language-core - npm Package Compare versions

Comparing version 2.4.10 to 2.4.11

2

index.d.ts

@@ -8,3 +8,3 @@ export { Mapping, SourceMap } from '@volar/source-map';

export declare const defaultMapperFactory: MapperFactory;
export declare function createLanguage<T>(plugins: LanguagePlugin<T>[], scriptRegistry: Map<T, SourceScript<T>>, sync: (id: T, includeFsFiles: boolean) => void): Language<T>;
export declare function createLanguage<T>(plugins: LanguagePlugin<T>[], scriptRegistry: Map<T, SourceScript<T>>, sync: (id: T, includeFsFiles: boolean, shouldRegister: boolean) => void): Language<T>;
export declare function forEachEmbeddedCode(virtualCode: VirtualCode): Generator<VirtualCode>;

@@ -41,4 +41,4 @@ "use strict";

},
get(id, includeFsFiles = true) {
sync(id, includeFsFiles);
get(id, includeFsFiles = true, shouldRegister = false) {
sync(id, includeFsFiles, shouldRegister);
const result = scriptRegistry.get(id);

@@ -215,3 +215,3 @@ // The sync function provider may not always call the set function due to caching, so it is necessary to explicitly check isAssociationDirty.

getAssociatedScript(id) {
sync(id, true);
sync(id, true, true);
const relatedSourceScript = scriptRegistry.get(id);

@@ -218,0 +218,0 @@ if (relatedSourceScript) {

@@ -15,3 +15,3 @@ import type { Mapping } from '@volar/source-map';

scripts: {
get(id: T, includeFsFiles?: boolean): SourceScript<T> | undefined;
get(id: T, includeFsFiles?: boolean, shouldRegister?: boolean): SourceScript<T> | undefined;
set(id: T, snapshot: IScriptSnapshot, languageId?: string, plugins?: LanguagePlugin<T>[]): SourceScript<T> | undefined;

@@ -18,0 +18,0 @@ delete(id: T): void;

{
"name": "@volar/language-core",
"version": "2.4.10",
"version": "2.4.11",
"license": "MIT",

@@ -15,5 +15,5 @@ "files": [

"dependencies": {
"@volar/source-map": "2.4.10"
"@volar/source-map": "2.4.11"
},
"gitHead": "03d1e8b07e1e64921b76b635c7064d7b4fcf63b5"
"gitHead": "42ccae005cc8516e07ad38f4d7730cab9b723340"
}
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