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

transformers

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transformers - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

4

history.md

@@ -0,1 +1,5 @@

## 1.8.0 - 2013-01-30
- **highlight** (needs tests)
## 1.7.0 - 2013-01-30

@@ -2,0 +6,0 @@

@@ -502,7 +502,27 @@ var dirname = require('path').dirname;

async: function (str, options, cb) {
this.engine.convertHtml(str, options, cb);
return this.cache(options) || this.cache(options, this.engine.convertHtml(str, options, cb));
}
});
exports['highlight'] = new Transformer({
name: 'highlight',
engines: ['highlight.js'],
outputFormat: 'xml',
sync: function (str, options, cb) {
if (this.cache(options)) return this.cache(options);
if (options.lang) {
try {
return this.cache(options, this.engine.highlight(options.lang, str).value);
} catch (ex) {}
}
if (options.auto || !options.lang) {
try {
return this.cache(options, this.engine.highlightAuto(str).value);
} catch (ex) {}
}
return this.cache(options, str);
}
});
/**

@@ -509,0 +529,0 @@ * Marker transformers (they don't actually apply a transformation, but let you declare the 'outputFormat')

2

package.json
{
"name": "transformers",
"version": "1.7.0",
"version": "1.8.0",
"description": "String/Data transformations for use in templating libraries, static site generators and web frameworks",

@@ -5,0 +5,0 @@ "main": "lib/transformers.js",

@@ -118,2 +118,3 @@ # transformers

2. qejs
3. html2jade

@@ -120,0 +121,0 @@ The following transformations sometimes throw an exception if run syncronously, typically they only throw an exception if you are doing something like including another file. If you are not doing the things that cause them to fail then they are consistently safe to use syncronously.

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