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

pug-cli

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-cli - npm Package Compare versions

Comparing version 1.0.0-alpha4 to 1.0.0-alpha5

8

HISTORY.md

@@ -5,2 +5,7 @@ # Change Log

## [1.0.0-alpha5] - 2016-05-18
### Changed
- Files ending `.jade` are now recognized as Pug templates when a directory is provided as input.
## [1.0.0-alpha4] - 2016-05-18

@@ -72,3 +77,4 @@

[unreleased]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha4...master
[unreleased]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha5...master
[1.0.0-alpha5]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha4...1.0.0-alpha5
[1.0.0-alpha4]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha3...1.0.0-alpha4

@@ -75,0 +81,0 @@ [1.0.0-alpha3]: https://github.com/pugjs/pug-cli/compare/1.0.0-alpha2...1.0.0-alpha3

6

index.js

@@ -243,5 +243,5 @@ #!/usr/bin/env node

function renderFile(path, rootPath) {
var re = /\.pug$/;
var re = /\.(?:pug|jade)$/;
var stat = fs.lstatSync(path);
// Found pug file/\.pug$/
// Found pug file
if (stat.isFile() && re.test(path)) {

@@ -305,3 +305,3 @@ // Try to watch the file if needed. watchFile takes care of duplicates.

function getNameFromFileName(filename) {
var file = basename(filename, '.pug');
var file = basename(filename).replace(/\.(?:pug|jade)$/, '');
return file.toLowerCase().replace(/[^a-z0-9]+([a-z])/g, function (_, character) {

@@ -308,0 +308,0 @@ return character.toUpperCase();

{
"name": "pug-cli",
"version": "1.0.0-alpha4",
"version": "1.0.0-alpha5",
"description": "Pug's CLI interface",

@@ -5,0 +5,0 @@ "bin": {

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