New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cssmodules-language-server

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssmodules-language-server - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

24

lib/CompletionProvider.js

@@ -18,9 +18,19 @@ "use strict";

});
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;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -27,0 +37,0 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

@@ -18,11 +18,21 @@ "use strict";

});
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;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.createConnection = void 0;
exports.createConnection = createConnection;
const lsp = __importStar(require("vscode-languageserver/node"));

@@ -78,2 +88,1 @@ const CompletionProvider_1 = require("./CompletionProvider");

}
exports.createConnection = createConnection;

@@ -15,3 +15,14 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getEOL = exports.stringifyClassname = exports.getAllClassNames = exports.filePathToClassnameDict = exports.log = exports.getWords = exports.getPosition = exports.isImportLineMatch = exports.getTransformer = exports.findImportPath = exports.genImportRegExp = exports.getCurrentDirFromUri = void 0;
exports.log = void 0;
exports.getCurrentDirFromUri = getCurrentDirFromUri;
exports.genImportRegExp = genImportRegExp;
exports.findImportPath = findImportPath;
exports.getTransformer = getTransformer;
exports.isImportLineMatch = isImportLineMatch;
exports.getPosition = getPosition;
exports.getWords = getWords;
exports.filePathToClassnameDict = filePathToClassnameDict;
exports.getAllClassNames = getAllClassNames;
exports.stringifyClassname = stringifyClassname;
exports.getEOL = getEOL;
const fs_1 = __importDefault(require("fs"));

@@ -28,3 +39,2 @@ const path_1 = __importDefault(require("path"));

}
exports.getCurrentDirFromUri = getCurrentDirFromUri;
function genImportRegExp(importName) {

@@ -37,3 +47,2 @@ const file = '(.+\\.(styl|sass|scss|less|css))';

}
exports.genImportRegExp = genImportRegExp;
function isRelativeFilePath(str) {

@@ -64,3 +73,2 @@ return str.startsWith('../') || str.startsWith('./');

}
exports.findImportPath = findImportPath;
function getTransformer(camelCaseConfig) {

@@ -85,3 +93,2 @@ switch (camelCaseConfig) {

}
exports.getTransformer = getTransformer;
function isImportLineMatch(line, matches, current) {

@@ -97,3 +104,2 @@ if (matches === null) {

}
exports.isImportLineMatch = isImportLineMatch;
/**

@@ -111,3 +117,2 @@ * Finds the position of the className in filePath

}
exports.getPosition = getPosition;
function getWords(line, position) {

@@ -139,3 +144,2 @@ const headText = line.slice(0, position.character);

}
exports.getWords = getWords;
const log = (...args) => {

@@ -172,3 +176,3 @@ const timestamp = new Date().toLocaleTimeString('en-GB', { hour12: false });

*/
s => (/&[a-z0-1-_]/i ? s.replace('&', ps) : s))));
s => (/&[a-z0-1-_]/i.test(s) ? s.replace('&', ps) : s))));
};

@@ -325,3 +329,2 @@ function getParentRule(node) {

}
exports.filePathToClassnameDict = filePathToClassnameDict;
/**

@@ -339,3 +342,2 @@ * Get all classnames from the file contents

}
exports.getAllClassNames = getAllClassNames;
function stringifyClassname(classname, declarations, comments, EOL) {

@@ -364,3 +366,2 @@ const commentString = comments.length

}
exports.stringifyClassname = stringifyClassname;
// https://github.com/wkillerud/some-sass/blob/main/vscode-extension/src/utils/string.ts

@@ -382,2 +383,1 @@ function getEOL(text) {

}
exports.getEOL = getEOL;
{
"name": "cssmodules-language-server",
"version": "1.5.0",
"version": "1.5.1",
"description": "language server for cssmodules",

@@ -31,12 +31,12 @@ "bin": {

"devDependencies": {
"@biomejs/biome": "1.6.2",
"@biomejs/biome": "^1.9.4",
"@types/lodash.camelcase": "^4.3.9",
"@types/node": "^18.19.26",
"rimraf": "^3.0.2",
"typescript": "^5.4.3",
"vitest": "^1.4.0"
"rimraf": "^6.0.1",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
"dependencies": {
"json5": "^2.2.3",
"lilconfig": "^3.1.1",
"lilconfig": "^3.1.3",
"lodash.camelcase": "^4.3.0",

@@ -49,3 +49,3 @@ "postcss": "^8.1.10",

"vscode-languageserver-protocol": "^3.17.5",
"vscode-languageserver-textdocument": "^1.0.11",
"vscode-languageserver-textdocument": "^1.0.12",
"vscode-uri": "^3.0.8"

@@ -52,0 +52,0 @@ },

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