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

apostrophe-schema-widgets

Package Overview
Dependencies
Maintainers
10
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe-schema-widgets - npm Package Compare versions

Comparing version 0.5.14 to 0.5.15

12

index.js

@@ -47,3 +47,9 @@ var _ = require('lodash');

return schemas.convertFields(req, options.schema, 'form', item, object, function(err) {
return callback(err, object);
if (err) {
return callback(err, object);
}
return widget.afterConvertFields(req, object, function(e) {
return callback(e, object);
});
});

@@ -60,2 +66,6 @@ };

widget.afterConvertFields = function(req, object, callback) {
return callback(null);
};
widget.load = function(req, item, callback) {

@@ -62,0 +72,0 @@ if (req.aposSchemaWidgetLoading) {

2

package.json
{
"name": "apostrophe-schema-widgets",
"version": "0.5.14",
"version": "0.5.15",
"description": "An easy form widget builder for the Apostrophe content management system",

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

@@ -146,1 +146,10 @@ # apostrophe-schema-widgets

You also have `afterConvertFields` available to you for treating fields after they are sanitized. You can use it in `index.js` like this:
```javascript
self.widgets.menuBuilder.afterConvertFields = function(req, item, callback) {
// Do stuff to your fields here
return callback(null);
}
```
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