refactor: update dependencies

This commit is contained in:
Rainer Killinger
2021-07-16 14:35:39 +02:00
parent 1f7c9aba33
commit a1e820336f
5 changed files with 317 additions and 445 deletions

726
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -44,20 +44,20 @@
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
},
"dependencies": {
"@krlwlfrt/async-pool": "0.5.0",
"@openstapps/logger": "0.6.0",
"@types/glob": "7.1.3",
"@types/json-schema": "7.0.7",
"@types/mustache": "4.1.1",
"@types/node": "14.14.41",
"ajv": "6.12.6",
"@krlwlfrt/async-pool": "0.6.0",
"@openstapps/logger": "0.7.0",
"@types/glob": "7.1.4",
"@types/json-schema": "7.0.8",
"@types/mustache": "4.1.2",
"@types/node": "14.17.5",
"ajv": "7.1.1",
"better-ajv-errors": "0.7.0",
"chai": "4.3.4",
"commander": "7.2.0",
"deepmerge": "4.2.2",
"del": "6.0.0",
"flatted": "3.1.1",
"glob": "7.1.6",
"flatted": "3.2.1",
"glob": "7.1.7",
"got": "11.8.2",
"humanize-string": "2.1.0",
"json-schema": "0.3.0",
@@ -72,12 +72,12 @@
"devDependencies": {
"@openstapps/configuration": "0.27.0",
"@testdeck/mocha": "0.1.2",
"@types/chai": "4.2.16",
"@types/mocha": "8.2.2",
"@types/rimraf": "3.0.0",
"@types/chai": "4.2.21",
"@types/mocha": "8.2.3",
"@types/rimraf": "3.0.1",
"conventional-changelog-cli": "2.1.1",
"mocha": "8.3.2",
"nock": "13.0.11",
"nock": "13.1.1",
"prepend-file-cli": "1.0.6",
"rimraf": "3.0.2",
"tslint": "6.1.3"

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {asyncPool} from '@krlwlfrt/async-pool';
import {asyncPool} from '@krlwlfrt/async-pool/lib/async-pool';
import {Logger} from '@openstapps/logger';
import {basename, dirname, join} from 'path';
import {ProjectReflection} from 'typedoc';

View File

@@ -36,7 +36,7 @@ export class Converter {
/**
* Schema validator instance
*/
private readonly schemaValidator: Ajv.Ajv;
private readonly schemaValidator: Ajv;
/**
* Create a new converter

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {asyncPool} from '@krlwlfrt/async-pool';
import {asyncPool} from '@krlwlfrt/async-pool/lib/async-pool';
import {Logger} from '@openstapps/logger';
import Ajv from 'ajv';
import betterAjvErrors from 'better-ajv-errors';
@@ -39,7 +39,7 @@ export class Validator {
/**
* JSON Schema Validator
*/
private readonly ajv = Ajv({verbose: true, jsonPointers: true, extendRefs: true});
private readonly ajv = new Ajv({verbose: true});
/**
* Map of schema names to schemas
*/
@@ -134,7 +134,7 @@ function fromAjvResult(
result: boolean | PromiseLike<unknown>,
schema: JSONSchema7,
instance: unknown,
ajvInstance: Ajv.Ajv,
ajvInstance: Ajv,
): ValidationResult {
// tslint:disable-next-line
// @ts-ignore function can return void, which at runtime will be undefined. TS doesn't allow to assign void to undefined