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

scrat-swig

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrat-swig - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

7

lib/resource.js

@@ -147,8 +147,7 @@ 'use strict'

Resource.prototype.include = function(file, options, ctx){
var id = file
var html = ''
var id = file, html = '', prefix = 'components'
if(file.indexOf('.') === -1){
var last = file.split('/').pop()
var exts = [ 'tpl', 'js', 'coffee', 'css', 'styl', 'sass', 'scss' ]
file = 'components/' + file + '/' + last
file = prefix + '/' + file + '/' + last
for(var i = 0, len = exts.length; i < len; i++){

@@ -165,2 +164,4 @@ var ext = exts[i]

}
} else if(file.indexOf(prefix + '/') !== 0) {
id = prefix + '/' + id
}

@@ -167,0 +168,0 @@ this.require(id)

{
"name": "scrat-swig",
"version": "0.1.3",
"version": "0.1.4",
"description": "Extensions of swig for scrat",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -76,2 +76,2 @@ var ignore = 'ignore',

exports.ends = false;
exports.ends = false;
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