diff --git a/dist/protocol.esm.js b/dist/protocol.esm.js index 0a78d88c1da7a27fdf560dacfd00124be86c93b8..0132583116ed666e001a3d781a3c7a3891901688 100644 --- a/dist/protocol.esm.js +++ b/dist/protocol.esm.js @@ -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 diff --git a/dist/protocol.js b/dist/protocol.js index 3146ab05bfe8f5a0d845433838bd4688d8dde039..d75a073eba328466dc0415ef0262ee5f969cbb4d 100644 --- a/dist/protocol.js +++ b/dist/protocol.js @@ -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 diff --git a/src/protocol/index.js b/src/protocol/index.js index 1c55f2a363cc3a5931c66094d663bbb5630ba58c..ad7d38687b1657e515b144a72a88e4fe9b66d943 100644 --- a/src/protocol/index.js +++ b/src/protocol/index.js @@ -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); });