update: update dependency @apextoaster/js-yaml-schema to v0.5.0 (#836)
* update: update dependency @apextoaster/js-yaml-schema to v0.5.0 * fix(parser): add include tag back to updated schema Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: ssube <seansube@gmail.com>
This commit is contained in:
parent
7cea306026
commit
d60ec04bb4
|
@ -34,7 +34,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@apextoaster/js-utils": "0.4.0",
|
"@apextoaster/js-utils": "0.4.0",
|
||||||
"@apextoaster/js-yaml-schema": "0.4.0-4",
|
"@apextoaster/js-yaml-schema": "0.5.0",
|
||||||
"@istanbuljs/nyc-config-typescript": "1.0.1",
|
"@istanbuljs/nyc-config-typescript": "1.0.1",
|
||||||
"@microsoft/api-documenter": "7.13.34",
|
"@microsoft/api-documenter": "7.13.34",
|
||||||
"@microsoft/api-extractor": "7.18.4",
|
"@microsoft/api-extractor": "7.18.4",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { createSchema } from '@apextoaster/js-yaml-schema';
|
import { createInclude, createSchema } from '@apextoaster/js-yaml-schema';
|
||||||
import { existsSync, readFileSync, realpathSync } from 'fs';
|
import { existsSync, readFileSync, realpathSync } from 'fs';
|
||||||
import { DEFAULT_SCHEMA, dump, loadAll, Schema } from 'js-yaml';
|
import { DEFAULT_SCHEMA, dump, loadAll, Schema } from 'js-yaml';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
@ -11,15 +11,19 @@ export class YamlParser implements Parser {
|
||||||
protected schema: Schema;
|
protected schema: Schema;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.schema = createSchema({
|
const include = createInclude({
|
||||||
include: {
|
exists: existsSync,
|
||||||
exists: existsSync,
|
join,
|
||||||
join,
|
read: readFileSync,
|
||||||
read: readFileSync,
|
resolve: realpathSync,
|
||||||
resolve: realpathSync,
|
schema: DEFAULT_SCHEMA,
|
||||||
schema: DEFAULT_SCHEMA,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.schema = createSchema({}).extend([
|
||||||
|
include.includeType,
|
||||||
|
]);
|
||||||
|
|
||||||
|
include.setSchema(this.schema);
|
||||||
}
|
}
|
||||||
|
|
||||||
public dump(...data: Array<any>): string {
|
public dump(...data: Array<any>): string {
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
resolved "https://artifacts.apextoaster.com/repository/group-npm/@apextoaster/js-utils/-/js-utils-0.4.0.tgz#2fc1b83af1a4196ea2487d261c9bf6a6d922e814"
|
resolved "https://artifacts.apextoaster.com/repository/group-npm/@apextoaster/js-utils/-/js-utils-0.4.0.tgz#2fc1b83af1a4196ea2487d261c9bf6a6d922e814"
|
||||||
integrity sha512-vJHsEK5jFVSUQi8cNb5GhsQMEPyedBxGgxh6/s99GHGiQOMWZtkkNacjagOPGUGPqHymybthrqAhHkLlLQCkSw==
|
integrity sha512-vJHsEK5jFVSUQi8cNb5GhsQMEPyedBxGgxh6/s99GHGiQOMWZtkkNacjagOPGUGPqHymybthrqAhHkLlLQCkSw==
|
||||||
|
|
||||||
"@apextoaster/js-yaml-schema@0.4.0-4":
|
"@apextoaster/js-yaml-schema@0.5.0":
|
||||||
version "0.4.0-4"
|
version "0.5.0"
|
||||||
resolved "https://artifacts.apextoaster.com/repository/group-npm/@apextoaster/js-yaml-schema/-/js-yaml-schema-0.4.0-4.tgz#fe9aa034f94a395b8c7eb62b638883a8bc6cbe7d"
|
resolved "https://artifacts.apextoaster.com/repository/group-npm/@apextoaster/js-yaml-schema/-/js-yaml-schema-0.5.0.tgz#89fad34edfc10c610c3cf14b903394b8e69ebd43"
|
||||||
integrity sha512-StRuVWApi4O5esIoEeMfYIImK821OcMTiJ2siihQKJgXAc/HDWuAEeq0K0DgZBZP0lHjEuFOheeDNHeCLNH/fA==
|
integrity sha512-141EWf39jhL6uIEjVbd3eNeopfUTXlEBV8CIzE/p8m8WfzV0vn3KmcSEVZNy6FJgyclW5a0bay2KF/TqRrCmPw==
|
||||||
|
|
||||||
"@babel/code-frame@7.12.11":
|
"@babel/code-frame@7.12.11":
|
||||||
version "7.12.11"
|
version "7.12.11"
|
||||||
|
|
Loading…
Reference in New Issue