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

annotation-poller

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

annotation-poller - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

50

annotation.js

@@ -13,4 +13,4 @@ (function() {

return ((stack1 = (helpers.hasKey || (depth0 && depth0.hasKey) || alias2).call(alias1,depth0,"_image",{"name":"hasKey","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ ((stack1 = (helpers.hasKey || (depth0 && depth0.hasKey) || alias2).call(alias1,depth0,"_link",{"name":"hasKey","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ ((stack1 = (helpers.hasKey || (depth0 && depth0.hasKey) || alias2).call(alias1,depth0,"_text",{"name":"hasKey","hash":{},"fn":container.program(20, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+ ((stack1 = (helpers.hasKey || (depth0 && depth0.hasKey) || alias2).call(alias1,depth0,"_link",{"name":"hasKey","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ ((stack1 = (helpers.hasKey || (depth0 && depth0.hasKey) || alias2).call(alias1,depth0,"_text",{"name":"hasKey","hash":{},"fn":container.program(22, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
},"3":function(container,depth0,helpers,partials,data) {

@@ -23,7 +23,7 @@ var stack1;

return ((stack1 = (helpers.hasKey || (depth0 && depth0.hasKey) || helpers.helperMissing).call(depth0 != null ? depth0 : {},depth0,"href",{"name":"hasKey","hash":{},"fn":container.program(5, data, 0),"inverse":container.program(7, data, 0),"data":data})) != null ? stack1 : "");
return ((stack1 = (helpers.hasKey || (depth0 && depth0.hasKey) || helpers.helperMissing).call(depth0 != null ? depth0 : {},depth0,"href",{"name":"hasKey","hash":{},"fn":container.program(5, data, 0),"inverse":container.program(8, data, 0),"data":data})) != null ? stack1 : "");
},"5":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function";
return " <a target=\"_blank\" href=\""
return " <a href=\""
+ ((stack1 = ((helper = (helper = helpers.href || (depth0 != null ? depth0.href : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"href","hash":{},"data":data}) : helper))) != null ? stack1 : "")

@@ -34,4 +34,8 @@ + "\" style=\"border: none;text-decoration: none;\"><img src=\""

+ container.escapeExpression(((helper = (helper = helpers.text || (depth0 != null ? depth0.text : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"text","hash":{},"data":data}) : helper)))
+ "\" /></a>\n";
},"7":function(container,depth0,helpers,partials,data) {
+ "\" "
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.fullSize : depth0),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " /></a>\n";
},"6":function(container,depth0,helpers,partials,data) {
return "style=\"height:auto;width:100%;\"";
},"8":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function";

@@ -43,19 +47,29 @@

+ container.escapeExpression(((helper = (helper = helpers.text || (depth0 != null ? depth0.text : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"text","hash":{},"data":data}) : helper)))
+ "\" />\n";
+ "\" "
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.width : depth0),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " />\n";
},"9":function(container,depth0,helpers,partials,data) {
var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
return "style=\"height:"
+ alias4(((helper = (helper = helpers.height || (depth0 != null ? depth0.height : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"height","hash":{},"data":data}) : helper)))
+ ";width:"
+ alias4(((helper = (helper = helpers.width || (depth0 != null ? depth0.width : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"width","hash":{},"data":data}) : helper)))
+ ";\"";
},"11":function(container,depth0,helpers,partials,data) {
var stack1;
return ((stack1 = (helpers.isArray || (depth0 && depth0.isArray) || helpers.helperMissing).call(depth0 != null ? depth0 : {},depth0,{"name":"isArray","hash":{},"fn":container.program(10, data, 0),"inverse":container.program(18, data, 0),"data":data})) != null ? stack1 : "");
},"10":function(container,depth0,helpers,partials,data) {
return ((stack1 = (helpers.isArray || (depth0 && depth0.isArray) || helpers.helperMissing).call(depth0 != null ? depth0 : {},depth0,{"name":"isArray","hash":{},"fn":container.program(12, data, 0),"inverse":container.program(20, data, 0),"data":data})) != null ? stack1 : "");
},"12":function(container,depth0,helpers,partials,data) {
var stack1;
return ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},depth0,{"name":"each","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
},"11":function(container,depth0,helpers,partials,data) {
return ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},depth0,{"name":"each","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
},"13":function(container,depth0,helpers,partials,data) {
var stack1, alias1=depth0 != null ? depth0 : {};
return ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.url : depth0),{"name":"if","hash":{},"fn":container.program(12, data, 0),"inverse":container.program(14, data, 0),"data":data})) != null ? stack1 : "")
return ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.url : depth0),{"name":"if","hash":{},"fn":container.program(14, data, 0),"inverse":container.program(16, data, 0),"data":data})) != null ? stack1 : "")
+ " "
+ ((stack1 = helpers.unless.call(alias1,(data && data.last),{"name":"unless","hash":{},"fn":container.program(16, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ ((stack1 = helpers.unless.call(alias1,(data && data.last),{"name":"unless","hash":{},"fn":container.program(18, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ "\n";
},"12":function(container,depth0,helpers,partials,data) {
},"14":function(container,depth0,helpers,partials,data) {
var helper;

@@ -66,3 +80,3 @@

+ "\n";
},"14":function(container,depth0,helpers,partials,data) {
},"16":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function";

@@ -75,5 +89,5 @@

+ "</a>\n";
},"16":function(container,depth0,helpers,partials,data) {
},"18":function(container,depth0,helpers,partials,data) {
return ",";
},"18":function(container,depth0,helpers,partials,data) {
},"20":function(container,depth0,helpers,partials,data) {
var stack1, helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function";

@@ -86,3 +100,3 @@

+ "</a>\n";
},"20":function(container,depth0,helpers,partials,data) {
},"22":function(container,depth0,helpers,partials,data) {
var stack1, helper;

@@ -89,0 +103,0 @@

@@ -5,2 +5,13 @@ # Change Log

<a name="2.4.0"></a>
# [2.4.0](https://github.com/npm/annotation-poller/compare/v2.3.0...v2.4.0) (2016-06-02)
### Features
* allow width and height to be suggested by the upstream API ([#17](https://github.com/npm/annotation-poller/issues/17)) ([fdbe16f](https://github.com/npm/annotation-poller/commit/fdbe16f))
* support newline characters ([#16](https://github.com/npm/annotation-poller/issues/16)) ([65259b4](https://github.com/npm/annotation-poller/commit/65259b4))
<a name="2.3.0"></a>

@@ -7,0 +18,0 @@ # [2.3.0](https://github.com/npm/annotation-poller/compare/v2.2.0...v2.3.0) (2016-05-19)

@@ -13,3 +13,3 @@ var $ = require('jquery')

this.annotations = {}
this.template = Handlebars.templates['annotation.mustache']
this.template = global.Handlebars.templates['annotation.mustache']
this.addonSelector = '#npm-addon-box'

@@ -19,3 +19,3 @@ }

AnnotationPoller.prototype._installExtensions = function () {
Handlebars.registerHelper('hasKey', function (obj, key, options) {
global.Handlebars.registerHelper('hasKey', function (obj, key, options) {
if (typeof obj === 'object' && obj[key]) {

@@ -28,3 +28,3 @@ return options.fn(this)

Handlebars.registerHelper('isArray', function (obj, options) {
global.Handlebars.registerHelper('isArray', function (obj, options) {
if ($.isArray(obj)) {

@@ -109,6 +109,6 @@ return options.fn(this)

// bold any text in between *foo*.
// bold any text in between *foo* and parse newlines.
if (row.text) {
row.text = _this._escape(row.text)
row.text = row.text.replace(/\*(.+)\*/, '<strong>$1</strong>')
row.text = row.text.replace(/\*([\s\S]+)\*/, '<strong>$1</strong>').replace(/\n/g, '<br/>')
}

@@ -130,3 +130,3 @@

}
row.image.forEach(function(img) {
row.image.forEach(function (img) {
if (img.url) img.url = _this._escape(img.url)

@@ -133,0 +133,0 @@ if (img.href) img.href = _this._escape(img.href)

{
"name": "annotation-poller",
"version": "2.3.0",
"version": "2.4.0",
"description": "poll for annotations from external services, place them on packages",

@@ -8,3 +8,3 @@ "main": "index.js",

"build": "handlebars annotation.mustache -f annotation.js",
"pretest": "npm run build",
"pretest": "npm run build; standard",
"prepublish": "npm run build",

@@ -40,3 +40,4 @@ "test": "nyc mocha --timeout=10000 test.js",

"standard": "^7.1.0",
"standard-version": "^2.2.1"
"standard-version": "^2.3.0",
"uuid": "^2.0.2"
},

@@ -47,4 +48,4 @@ "dependencies": {

},
"ignore": {
"ignore": [
"nyc": {
"exclude": [
"annotation.js"

@@ -58,2 +59,2 @@ ]

]
}
}
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