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.6.3 to 0.6.4

9

lib/cli.js
#!/usr/bin/env node
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -27,6 +28,6 @@ });

.demand(['_'])
.alias('p', 'pattern').describe('p', 'Glob pattern with css files')
.alias('o', 'outDir').describe('o', 'Output directory')
.alias('p', 'pattern').describe('p', 'Glob pattern with css files').string("p")
.alias('o', 'outDir').describe('o', 'Output directory').string("o")
.alias('w', 'watch').describe('w', 'Watch input directory\'s css files or pattern').boolean('w')
.alias('c', 'camelCase').describe('c', 'Convert CSS class tokens to camelcase')
.alias('c', 'camelCase').describe('c', 'Convert CSS class tokens to camelcase').boolean("c")
.alias('d', 'dropExtension').describe('d', 'Drop the input files extension').boolean('d')

@@ -33,0 +34,0 @@ .alias('s', 'silent').describe('s', 'Silent output. Do not show "files written" messages').boolean('s')

@@ -21,9 +21,9 @@ interface DtsContentOptions {

constructor(options: DtsContentOptions);
readonly contents: string[];
readonly formatted: string;
readonly tokens: string[];
readonly outputFilePath: string;
readonly inputFilePath: string;
get contents(): string[];
get formatted(): string;
get tokens(): string[];
get outputFilePath(): string;
get inputFilePath(): string;
writeFile(postprocessor?: (formatted: string) => string): Promise<void>;
}
export {};
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -8,0 +9,0 @@ });

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -8,0 +9,0 @@ });

"use strict";
/* this file is forked from https://raw.githubusercontent.com/css-modules/css-modules-loader-core/master/src/file-system-loader.js */
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -9,0 +10,0 @@ });

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -8,0 +9,0 @@ });

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

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

"chalk": "^2.1.0",
"chokidar": "^2.1.2",
"chokidar": "^3.4.0",
"css-modules-loader-core": "^1.1.0",

@@ -41,13 +41,13 @@ "glob": "^7.1.2",

"mkdirp": "^0.5.1",
"yargs": "^12.0.5"
"yargs": "^15.3.1"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/jest": "^24.0.15",
"@types/jest": "^25.2.1",
"@types/mkdirp": "^0.5.1",
"@types/node": "^12.0.8",
"@types/yargs": "^8.0.2",
"jest": "^24.8.0",
"ts-jest": "^24.0.2",
"typescript": "^3.5.1"
"@types/yargs": "^15.0.4",
"jest": "^25.5.4",
"ts-jest": "^25.4.0",
"typescript": "^3.8.3"
},

@@ -54,0 +54,0 @@ "jest": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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