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

apostrophe-schemas

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe-schemas - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

10

index.js

@@ -141,6 +141,3 @@ var async = require('async');

area: function(data, name, snippet, field) {
if (!snippet.areas) {
snippet.areas = {};
}
snippet.areas[name] = self._apos.textToArea(data[name]);
snippet[name] = self._apos.textToArea(data[name]);
},

@@ -203,6 +200,3 @@ string: function(data, name, snippet, field) {

self._apos.sanitizeItems(content);
if (!snippet.areas) {
snippet.areas = {};
}
snippet.areas[name] = { items: content };
snippet[name] = { items: content, type: 'area' };
};

@@ -209,0 +203,0 @@

4

package.json
{
"version": "0.5.2",
"version": "0.5.3",
"name": "apostrophe-schemas",

@@ -33,2 +33,2 @@ "description": "Schemas for easy editing of properties in Apostrophe objects",

}
}
}

@@ -280,6 +280,6 @@ function AposSchemas() {

area: function(data, name, $field, $el, field, callback) {
return self.enableArea($el, name, data.areas ? data.areas[name] : null, field.options || {}, callback);
return self.enableArea($el, name, data[name], field.options || {}, callback);
},
singleton: function(data, name, $field, $el, field, callback) {
return self.enableSingleton($el, name, data.areas ? data.areas[name] : null, field.widgetType, field.options || {}, callback);
return self.enableSingleton($el, name, data[name], field.widgetType, field.options || {}, callback);
},

@@ -286,0 +286,0 @@ string: function(data, name, $field, $el, field, callback) {

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