total5 0.0.6-1 → 0.0.6-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/builders.js CHANGED
@@ -1307,6 +1307,7 @@ ActionCaller.prototype.exec = function() {
1307
1307
  $.user = self.options.user;
1308
1308
 
1309
1309
  $.$callback = function(err, response) {
1310
+
1310
1311
  if (err) {
1311
1312
  // close
1312
1313
  self.cancel();
@@ -1335,11 +1336,8 @@ ActionCaller.prototype.exec = function() {
1335
1336
  if (action.permissions) {
1336
1337
  let permissions = action.permissions.slice(0);
1337
1338
  permissions.unshift($);
1338
- if (F.unauthorized.apply(global, permissions)) {
1339
- self.finish = null;
1340
- self.cancel();
1339
+ if (F.unauthorized.apply(global, permissions))
1341
1340
  return;
1342
- }
1343
1341
  }
1344
1342
 
1345
1343
  var params = self.options.params || EMPTYOBJECT;
package/changelog.txt CHANGED
@@ -9,6 +9,8 @@
9
9
  - extended `edit` mode:
10
10
  - added `restart` command
11
11
  - fixed partial validation
12
+ - fixed permissions error handling in actions
13
+ - added `Image` global variable
12
14
 
13
15
  ========================
14
16
  0.0.5
package/global.js CHANGED
@@ -61,6 +61,7 @@ global.MAIL = F.mail;
61
61
  global.Mail = F.TMail.Mailer;
62
62
  global.RESTBuilder = F.TBuilders.RESTBuilder;
63
63
  global.ErrorBuilder = F.TBuilders.ErrorBuilder;
64
+ global.Image = F.TImage;
64
65
  global.DOWNLOAD = F.download;
65
66
  global.OPENCLIENT = (url, id) => require('./openclient').create(url, id);
66
67
  global.NEWMACRO = (str, nocompile, isasync) => require('./macros').compile(str, nocompile, isasync);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "total5",
3
- "version": "0.0.6-1",
3
+ "version": "0.0.6-2",
4
4
  "description": "Total.js framework v5",
5
5
  "main": "index.js",
6
6
  "directories": {