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

apostrophe-button

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe-button - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

22

index.js

@@ -13,12 +13,10 @@ var extend = require('extend');

var self = this;
self._dirs = (options.dirs || []).concat([ __dirname ]);
self.pushAsset = function(type, name, optionsArg) {
var options = {};
extend(true, options, optionsArg);
options.fs = __dirname;
options.web = '/apos-button';
return apos.pushAsset(type, name, options);
};
self._apos = apos;
self._app = app;
// Mix in the ability to serve assets and templates
apos.mixinModuleAssets(self, 'button', __dirname, options);
// Include our editor template in the markup when aposTemplates is called

@@ -37,10 +35,16 @@ self.pushAsset('template', 'buttonEditor', { when: 'user' });

icon: 'button',
sanitize: function(item) {
item.url = apos.sanitizeUrl(item.url);
item.text = apos.sanitizeString(item.text);
},
render: function(data) {
console.log(__dirname + '/views')
// return apos.partial('button', data, __dirname + '/views');
return apos.partial('button', data, self._dirs.map(function(dir) { return dir + '/views'; }) );
return self.render('button', data);
}
};
self.serveAssets();
return setImmediate(function() { return callback(null); });
}
{
"name": "apostrophe-button",
"version": "0.0.2",
"version": "0.0.3",
"description": "Ultra simple \"button\" component for Apostrophe2. Can be used as an area widget or singleton. Basically a style-able link.",

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

Sorry, the diff of this file is not supported yet

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