Skip to content

Commit 37bcc81

Browse files
committed
Fix async in schemas.
1 parent f7c48b0 commit 37bcc81

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

builders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DEFAULT_SCHEMA = 'default';
3131
const SKIP = { $$schema: true, $$result: true, $$callback: true, $$async: true, $$index: true, $$repository: true, $$can: true, $$controller: true };
3232
const REGEXP_CLEAN_EMAIL = /\s/g;
3333
const REGEXP_CLEAN_PHONE = /\s|\.|-|\(|\)/g;
34-
const REGEXP_NEWOPERATION = /^function(\s)?\([a-zA-Z0-9$]+\)|^function anonymous\(\$/;
34+
const REGEXP_NEWOPERATION = /^(async\s)?function(\s)?\([a-zA-Z0-9$]+\)|^function anonymous\(\$/;
3535
const hasOwnProperty = Object.prototype.hasOwnProperty;
3636
const Qs = require('querystring');
3737

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"name": "Tema Smirnov",
9191
"email": "github.tema@smirnov.one"
9292
}],
93-
"version": "2.9.3-3",
93+
"version": "2.9.3-4",
9494
"homepage": "http://www.totaljs.com",
9595
"bugs": {
9696
"url": "https://github.com/totaljs/framework/issues",

0 commit comments

Comments
 (0)