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

volar-service-pug

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volar-service-pug - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

30

out/services/foldingRanges.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.register = void 0;
const vscode = __importStar(require("vscode-languageserver-types"));
function register() {

@@ -47,3 +23,7 @@ return (pugDoc) => {

if (nodeLine !== endLine) {
result.push(vscode.FoldingRange.create(nodeLine, endLine, undefined, undefined, node.type === 'BlockComment' ? vscode.FoldingRangeKind.Comment : undefined));
result.push({
startLine: nodeLine,
endLine,
kind: node.type === 'BlockComment' ? 'comment' : undefined,
});
}

@@ -50,0 +30,0 @@ visitNode(node.block, endLine);

15

package.json
{
"name": "volar-service-pug",
"version": "0.0.3",
"version": "0.0.4",
"main": "out/index.js",

@@ -16,18 +16,15 @@ "license": "MIT",

"dependencies": {
"@volar/language-service": "*",
"@volar/source-map": "*",
"muggle-string": "^0.3.1",
"pug-lexer": "^5.0.1",
"pug-parser": "^6.0.0",
"volar-service-html": "0.0.3",
"volar-service-html": "0.0.4",
"vscode-html-languageservice": "^5.0.4",
"vscode-languageserver-textdocument": "^1.0.8",
"vscode-languageserver-types": "^3.17.2"
"vscode-languageserver-textdocument": "^1.0.8"
},
"peerDependencies": {
"@volar/language-service": "*",
"@volar/source-map": "*"
},
"browser": {
"./out/index.js": "./out/empty.js"
},
"gitHead": "28896539331e31b4ef1064b6839ea0924d5d28d0"
"gitHead": "f5d49495d6698761f4df8c9ef2747cc01fc777d6"
}
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