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

typed-css-modules

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-css-modules - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

2

lib/dts-content.d.ts

@@ -29,2 +29,3 @@ export declare type CamelCaseOption = boolean | 'dashes' | undefined;

get outputFilePath(): string;
get relativeOutputFilePath(): string;
get inputFilePath(): string;

@@ -43,3 +44,4 @@ get relativeInputFilePath(): string;

private dashesCamelCase;
private get outputFileName();
}
export {};

12

lib/dts-content.js

@@ -71,5 +71,7 @@ "use strict";

get outputFilePath() {
const outputFileName = this.dropExtension ? removeExtension(this.rInputPath) : this.rInputPath;
return path.join(this.rootDir, this.outDir, outputFileName + '.d.ts');
return path.join(this.rootDir, this.outDir, this.outputFileName);
}
get relativeOutputFilePath() {
return path.join(this.outDir, this.outputFileName);
}
get inputFilePath() {

@@ -89,3 +91,3 @@ return path.join(this.rootDir, this.searchDir, this.rInputPath);

if (fileContent !== finalOutput) {
console.error(chalk_1.default.red(`[ERROR] Check type definitions for '${this.outputFilePath}'`));
console.error(chalk_1.default.red(`[ERROR] Check type definitions for '${this.relativeOutputFilePath}'`));
return false;

@@ -143,2 +145,6 @@ }

}
get outputFileName() {
const outputFileName = this.dropExtension ? removeExtension(this.rInputPath) : this.rInputPath;
return outputFileName + '.d.ts';
}
}

@@ -145,0 +151,0 @@ exports.DtsContent = DtsContent;

{
"name": "typed-css-modules",
"version": "0.7.1",
"version": "0.7.2",
"description": "Creates .d.ts files from CSS Modules .css files",

@@ -52,3 +52,3 @@ "main": "lib/index.js",

"@types/mkdirp": "1.0.2",
"@types/node": "14.17.18",
"@types/node": "16.11.28",
"@types/yargs": "15.0.4",

@@ -55,0 +55,0 @@ "husky": "7.0.2",

Sorry, the diff of this file is not supported yet

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