New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

terraform

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terraform - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

lib/javascript/index.js

3

index.js

@@ -5,2 +5,3 @@ var fs = require('fs')

var template = require('./lib/template')
var javascript = require('./lib/javascript')
var helpers = require('./lib/helpers')

@@ -133,2 +134,4 @@

stylesheet(root, filePath, callback)
}else if(helpers.isJavaScript(filePath)){
javascript(root, filePath, callback)
}else{

@@ -135,0 +138,0 @@ callback(null, null)

@@ -32,1 +32,2 @@

exports.isStylesheet = helpers.isStylesheet
exports.isJavaScript = helpers.isJavaScript

@@ -17,3 +17,4 @@

"html": ["jade", "ejs", "md"],
"css" : ["styl", "less"]
"css" : ["styl", "less"],
"js" : ["coffee"]
}

@@ -468,1 +469,23 @@

}
/**
* isJavaScript(filePath)
*
* returns true if file is a pre-processor stylsheet file
*
* eg.
* isJavaScript('foo.coffee') => true
* isJavaScript('foo.md') => false
* isJavaScript('foo.css') => false
* isJavaScript('foo.bar.baz.coffee') => true
*/
exports.isJavaScript = function(filePath){
var ext = path.extname(filePath).replace(/^\./, '')
return processors["js"].indexOf(ext) !== -1
}

3

lib/stylesheet/index.js
var path = require("path")
var fs = require("fs")
var helpers = require('../helpers')
/**
* Build Processor list for markup.
* Build Processor list for stylesheets.
*

@@ -7,0 +8,0 @@ * same as doing...

{
"name": "terraform",
"version": "0.4.5",
"version": "0.4.6",
"description": "Foolproof Asset Pipeline used in the Harp APF",

@@ -14,2 +14,3 @@ "main": "index.js",

"jade" : "0.28.2",
"coffee-script" : "1.6.3",
"ejs" : "0.8.4",

@@ -16,0 +17,0 @@ "marked": "0.2.8",

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