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

template-engine

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template-engine - npm Package Compare versions

Comparing version 0.2.20 to 0.2.21

tests/plugins/CssRewriteAbsoluteUrlSpec.js

2

lib/plugins/CssRewriteAbsoluteUrl.js

@@ -14,3 +14,3 @@ var Event = require('core').Event.Event;

var absoluteUrl = this._config._config.cssAbsoluteUrl;
var content = data.replace(/url\s*\([\s'"]*(?!^data)([^\s'"](?!^http).*?[^\s'"\)])[\s'"]*\)/g, "url('" + absoluteUrl + "$1')")
var content = data.replace(/url\s*\(([\s'"]*)(?!data)((?!http).*?)([\s'"]*)\)/g, "url($1" + absoluteUrl + "$2$3)")
console.log(' -- CSS_REWRITE_ABSOULTE_URL dispatch READY');

@@ -17,0 +17,0 @@ this.dispatchEvent(new Event(PluginAbstract.Event.READY, content));

{
"name": "template-engine",
"version": "0.2.20",
"version": "0.2.21",
"description": "Engine that renders templates of any kind",

@@ -5,0 +5,0 @@ "contributors": [

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