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

templates

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

templates - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

lib/templates.js

@@ -12,7 +12,8 @@ var fs, jade, path, production;

module.exports = function(options) {
var build, get, refresh, runtime, templates;
var build, get, refresh, runtime, runtimePath, templates;
options.namespace || (options.namespace = "window.templates");
options.url || (options.url = "/templates.js");
options.src || (options.src = process.join(process.cwd(), "templates"));
runtime = fs.readFileSync('../node_modules/jade/runtime.js').toString();
runtimePath = path.join(__dirname, "..", "node_modules", "jade", "runtime.js");
runtime = fs.readFileSync(runtimePath).toString();
templates = null;

@@ -66,3 +67,3 @@ refresh = function(dir, templates) {

str = unescape(str);
if (!production) {
if (production) {
parser = require('uglify-js').parser;

@@ -69,0 +70,0 @@ uglify = require('uglify-js').uglify;

@@ -5,3 +5,3 @@ {

"description": "Templates is a template prepackager for Express",
"version": "0.1.1",
"version": "0.1.2",
"repository": {

@@ -22,7 +22,5 @@ "url": ""

},
"devDependencies": {
"express": "2.5.x"
},
"devDependencies": {},
"main": "lib/templates",
"optionalDependencies": {}
}

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