Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-adapter-javascript
Commits
8ad9f7d7
Unverified
Commit
8ad9f7d7
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: remove await in schema loading
parent
37bffb9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
dist/protocol.esm.js
dist/protocol.esm.js
+2
-3
dist/protocol.js
dist/protocol.js
+2
-3
src/protocol/index.js
src/protocol/index.js
+2
-2
No files found.
dist/protocol.esm.js
View file @
8ad9f7d7
...
...
@@ -114,9 +114,9 @@ class GenericSoarProtocol extends GenericProtocol {
* @param {string|object} schema
* @returns {object}
*/
async
createValidator
(
schema
)
{
createValidator
(
schema
)
{
if
(
typeof
schema
===
'
string
'
&&
schema
.
match
(
/^
[\w\.]
+$/
))
{
return
await
this
.
loadSchema
(
schema
)
return
this
.
loadSchema
(
schema
)
.
then
((
schema
)
=>
{
return
new
Validator
(
schema
);
});
...
...
@@ -125,7 +125,6 @@ class GenericSoarProtocol extends GenericProtocol {
}
}
/**
* Load schema from gitlab by tag/branch/commitref
* @param {string} version
...
...
This diff is collapsed.
Click to expand it.
dist/protocol.js
View file @
8ad9f7d7
...
...
@@ -116,9 +116,9 @@ class GenericSoarProtocol extends GenericProtocol {
* @param {string|object} schema
* @returns {object}
*/
async
createValidator
(
schema
)
{
createValidator
(
schema
)
{
if
(
typeof
schema
===
'
string
'
&&
schema
.
match
(
/^
[\w\.]
+$/
))
{
return
await
this
.
loadSchema
(
schema
)
return
this
.
loadSchema
(
schema
)
.
then
((
schema
)
=>
{
return
new
Validator
(
schema
);
});
...
...
@@ -127,7 +127,6 @@ class GenericSoarProtocol extends GenericProtocol {
}
}
/**
* Load schema from gitlab by tag/branch/commitref
* @param {string} version
...
...
This diff is collapsed.
Click to expand it.
src/protocol/index.js
View file @
8ad9f7d7
...
...
@@ -114,9 +114,9 @@ export class GenericSoarProtocol extends GenericProtocol {
* @param {string|object} schema
* @returns {object}
*/
async
createValidator
(
schema
)
{
createValidator
(
schema
)
{
if
(
typeof
schema
===
'
string
'
&&
schema
.
match
(
/^
[\w\.]
+$/
))
{
return
await
this
.
loadSchema
(
schema
)
return
this
.
loadSchema
(
schema
)
.
then
((
schema
)
=>
{
return
new
Validator
(
schema
);
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment