Socket
Socket
Sign inDemoInstall

css-modules-typescript-loader

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 4.0.0 to 4.0.1

10

index.js

@@ -67,2 +67,10 @@ const fs = require('fs');

const extractLocalExports = (content) => {
let localExports = content.split('exports.locals')[1];
if (!localExports) {
localExports = content.split('___CSS_LOADER_EXPORT___.locals')[1];
}
return localExports;
}
module.exports = function(content, ...rest) {

@@ -84,3 +92,3 @@ const { failed, success } = makeDoneHandlers(this.async(), content, rest);

const localExports = content.split('exports.locals')[1];
const localExports = extractLocalExports(content);

@@ -87,0 +95,0 @@ while ((match = keyRegex.exec(localExports))) {

4

package.json
{
"name": "css-modules-typescript-loader",
"version": "4.0.0",
"version": "4.0.1",
"description": "Webpack loader to create TypeScript declarations for CSS Modules",

@@ -38,3 +38,3 @@ "main": "index.js",

"commitlint-config-seek": "^1.0.0",
"css-loader": "^1.0.0",
"css-loader": "^4.2.1",
"cz-conventional-changelog": "^2.1.0",

@@ -41,0 +41,0 @@ "husky": "^1.1.2",

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