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

apostrophe-schemas

Package Overview
Dependencies
Maintainers
9
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

to
0.5.18

public/css/array-schemas.less

1

index.js

@@ -16,2 +16,3 @@ var async = require('async');

self.pushAsset('script', 'editor', { when: 'user' });
self.pushAsset('stylesheet', 'editor', { when: 'user' });

@@ -18,0 +19,0 @@ // We get constructed first so we need a method to inject the pages

2

package.json
{
"version": "0.5.17",
"version": "0.5.18",
"name": "apostrophe-schemas",

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

@@ -365,2 +365,3 @@ function AposSchemas() {

addRemoveHandler($element);
addMoveHandler($element);

@@ -378,4 +379,5 @@ $elements.append($element);

$element.removeClass('apos-template');
$elements.append($element);
$elements.prepend($element);
addRemoveHandler($element);
addMoveHandler($element);

@@ -403,2 +405,17 @@ var element = {};

}
function addMoveHandler($element) {
var $move = self.findSafe($element, '[data-move-item]');
$move.on('click', function() {
if ($(this).attr('data-move-item') === 'up') {
$element.prev().before($element);
console.log('up');
} else {
console.log('move down');
$element.next().after($element);
}
return false;
});
}
},

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

@@ -215,3 +215,3 @@ # apostrophe-schemas

}
```javascript
```

@@ -796,5 +796,7 @@ Each `array` has its own `schema`, which supports all of the usual field types. You an even nest an `array` in another `array`.

},
converter: function(data, name, $field, $el, field) {
converter: function(data, name, $field, $el, field, callback) {
$field = $el.find('[data-name="' + name + '"]');
data[name] = $field.selective('get');
// Be sure to invoke the callback
return callback();
}

@@ -801,0 +803,0 @@ });

Sorry, the diff of this file is not supported yet