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

typescript-plugin-css-modules

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-plugin-css-modules - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

14

lib/index.js

@@ -59,13 +59,13 @@ "use strict";

info.languageServiceHost.resolveModuleNames = function (moduleNames, containingFile, reusedNames) {
var resolvedCSS = [];
return _resolveModuleNames_1(moduleNames.filter(function (moduleName) {
var resolvedModules = _resolveModuleNames_1(moduleNames, containingFile, reusedNames);
return moduleNames.map(function (moduleName, index) {
if (cssExtensions_1.isRelativeCSS(moduleName)) {
resolvedCSS.push({
return {
extension: ts_module.Extension.Dts,
isExternalLibraryImport: false,
resolvedFileName: path.resolve(path.dirname(containingFile), moduleName),
});
return false;
};
}
return true;
}), containingFile, reusedNames).concat(resolvedCSS);
return resolvedModules[index];
});
};

@@ -72,0 +72,0 @@ }

{
"name": "typescript-plugin-css-modules",
"version": "1.0.1",
"version": "1.0.2",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "author": "Brody McKee <mrmckeb@hotmail.com>",

@@ -9,3 +9,3 @@ # typescript-plugin-css-modules

<img src="https://raw.githubusercontent.com/mrmckeb/typescript-plugin-css-modules/master/docs/images/example.gif" alt="typescript-plugin-css-modules example" />
<img src="https://raw.githubusercontent.com/mrmckeb/typescript-plugin-css-modules/master/.github/images/example.gif" alt="typescript-plugin-css-modules example" />

@@ -77,4 +77,3 @@ This project was inspired by this [`create-react-app` issue](https://github.com/facebook/create-react-app/issues/5677)

2. Use your workspace's version of TypeScript, which will load the plugins from your `tsconfig.json` file.
([instructions](https://code.visualstudio.com/docs/languages/typescript#_using-the-workspace-version-of-typescript)).
2. Use your workspace's version of TypeScript, which will load the plugins from your `tsconfig.json` file. For instructions, see: [Using the workspace version of TypeScript](https://code.visualstudio.com/docs/languages/typescript#_using-the-workspace-version-of-typescript).

@@ -107,1 +106,3 @@ ### Custom definitions

```
## Contributors
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