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

docpad-plugin-imagin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-imagin - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

40

out/imagin.plugin.js

@@ -1,7 +0,7 @@

// Generated by CoffeeScript 1.8.0
// Generated by CoffeeScript 1.9.1
(function() {
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__slice = [].slice,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty,
slice = [].slice,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

@@ -16,4 +16,4 @@ module.exports = function(BasePlugin) {

taskgroup = require('taskgroup');
return Imagin = (function(_super) {
__extends(Imagin, _super);
return Imagin = (function(superClass) {
extend(Imagin, superClass);

@@ -25,4 +25,2 @@ Imagin.prototype.name = 'imagin';

'default': {
w: 150,
h: 150,
q: 85

@@ -103,5 +101,5 @@ },

Imagin.prototype.extendTemplateData = function(_arg) {
Imagin.prototype.extendTemplateData = function(arg) {
var config, docpad, me, templateData;
templateData = _arg.templateData;
templateData = arg.templateData;
docpad = this.docpad;

@@ -111,4 +109,4 @@ me = this;

templateData.getThumbnail = function() {
var a, args, attributes, basename, dstPath, err, ext, extendedSource, extendedSources, generate, msg, mtime, outDirPath, params, relOutDirPath, relativeOutDirPath, sep, sourceFile, sourceFilePath, sourceStats, src, srcPath, stats, suffix, t, targetUrl, targets, thumbfilename, _i, _j, _len, _len1;
src = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
var a, args, attributes, basename, dstPath, err, ext, extendedSource, extendedSources, generate, i, j, len, len1, msg, mtime, outDirPath, params, relOutDirPath, relativeOutDirPath, sep, sourceFile, sourceFilePath, sourceStats, src, srcPath, stats, suffix, t, targetUrl, targets, thumbfilename;
src = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
sourceFile = this.getFileAtPath(src);

@@ -122,4 +120,4 @@ attributes = void 0;

});
for (_i = 0, _len = extendedSources.length; _i < _len; _i++) {
extendedSource = extendedSources[_i];
for (i = 0, len = extendedSources.length; i < len; i++) {
extendedSource = extendedSources[i];
sourceFilePath = path.join(docpad.config.srcPath, extendedSource, src);

@@ -151,3 +149,3 @@ if (fs.existsSync(sourceFilePath)) {

ext = attributes.extension;
if (__indexOf.call(config.extensions, ext) < 0) {
if (indexOf.call(config.extensions, ext) < 0) {
msg = "Thumbnail source file extension '" + ext + "' not recognised";

@@ -159,4 +157,4 @@ docpad.error(msg);

params = config.presets['default'];
for (_j = 0, _len1 = args.length; _j < _len1; _j++) {
a = args[_j];
for (j = 0, len1 = args.length; j < len1; j++) {
a = args[j];
if (typeof a === 'object') {

@@ -254,3 +252,3 @@ params = me.merge(params, a);

return tasks.addTask(function(complete) {
var im, img, t, target_handler, _i, _len;
var i, im, img, len, t, target_handler;
if (config.imageMagick) {

@@ -264,4 +262,4 @@ im = gm.subClass({

}
for (_i = 0, _len = targets.length; _i < _len; _i++) {
t = targets[_i];
for (i = 0, len = targets.length; i < len; i++) {
t = targets[i];
target_handler = config.targets[t];

@@ -268,0 +266,0 @@ img = target_handler(img, params);

{
"name": "docpad-plugin-imagin",
"version": "2.0.2",
"version": "2.0.3",
"description": "Adds support for thumbnail generation to DocPad",

@@ -5,0 +5,0 @@ "author": "Almero Digital Marketing (http://almero.com)",

@@ -86,3 +86,3 @@ # Thumbnails Plugin for DocPad

plugins:
thumbnails:
imagin:
presets:

@@ -152,3 +152,3 @@ 'default':

plugins:
thumbnails:
imagin:
targets:

@@ -191,3 +191,3 @@ 'sepia': (img, args) ->

plugins:
thumbnails:
imagin:
targets:

@@ -210,3 +210,3 @@ 'doitall': (img, args) ->

plugins:
thumbnails:
imagin:
targets:

@@ -230,4 +230,4 @@ 'default': 'zoomcrop'

plugins:
thumbnails:
imagin:
imageMagick: true
```
```
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