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

@volar/transforms

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/transforms - npm Package Compare versions

Comparing version 0.26.3 to 0.26.4

4

out/completionItem.d.ts

@@ -1,2 +0,2 @@

import type { CompletionItem, Range } from 'vscode-languageserver';
export declare function transform(item: CompletionItem, getOtherRange: (range: Range) => Range | undefined): CompletionItem;
import type * as vscode from 'vscode-languageserver';
export declare function transform(item: vscode.CompletionItem, getOtherRange: (range: vscode.Range) => vscode.Range | undefined): vscode.CompletionItem;

@@ -1,2 +0,2 @@

import type { Hover, Range } from 'vscode-languageserver';
export declare function transform(hover: Hover, getOtherRange: (range: Range) => Range | undefined): Hover | undefined;
import type * as vscode from 'vscode-languageserver';
export declare function transform(hover: vscode.Hover, getOtherRange: (range: vscode.Range) => vscode.Range | undefined): vscode.Hover | undefined;

@@ -1,4 +0,4 @@

import type { Range } from 'vscode-languageserver';
import type * as vscode from 'vscode-languageserver';
export declare function transform<T extends {
range: Range;
}>(locations: T[], getOtherRange: (range: Range) => Range | undefined): T[];
range: vscode.Range;
}>(locations: T[], getOtherRange: (range: vscode.Range) => vscode.Range | undefined): T[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transform = void 0;
const shared_1 = require("@volar/shared");
const shared = require("@volar/shared");
const locationLike_1 = require("./locationLike");

@@ -9,5 +9,5 @@ function transform(locations, getOtherRange) {

.map(location => locationLike_1.transform(location, getOtherRange))
.filter(shared_1.notEmpty);
.filter(shared.notEmpty);
}
exports.transform = transform;
//# sourceMappingURL=locationsLike.js.map

@@ -1,2 +0,2 @@

import { InsertReplaceEdit, Range, TextEdit } from 'vscode-languageserver/node';
export declare function transform<T extends TextEdit | InsertReplaceEdit>(textEdit: T, getOtherRange: (range: Range) => Range | undefined): T | undefined;
import * as vscode from 'vscode-languageserver';
export declare function transform<T extends vscode.TextEdit | vscode.InsertReplaceEdit>(textEdit: T, getOtherRange: (range: vscode.Range) => vscode.Range | undefined): T | undefined;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transform = void 0;
const node_1 = require("vscode-languageserver/node");
const vscode = require("vscode-languageserver");
function transform(textEdit, getOtherRange) {
if (node_1.TextEdit.is(textEdit)) {
if (vscode.TextEdit.is(textEdit)) {
const range = getOtherRange(textEdit.range);

@@ -15,3 +15,3 @@ if (!range)

}
else if (node_1.InsertReplaceEdit.is(textEdit)) {
else if (vscode.InsertReplaceEdit.is(textEdit)) {
const insert = getOtherRange(textEdit.insert);

@@ -18,0 +18,0 @@ if (!insert)

{
"name": "@volar/transforms",
"version": "0.26.3",
"version": "0.26.4",
"main": "out/index.js",

@@ -16,5 +16,5 @@ "license": "MIT",

"dependencies": {
"@volar/shared": "^0.26.3"
"@volar/shared": "^0.26.4"
},
"gitHead": "daa7d51be3eebe1534d62b374762c5b09e7fb912"
"gitHead": "d7c0d2457a61bde0181c7b1c52f123d31e9a2f2d"
}
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