@satisfactory-dev/docs.json.ts 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/1.1/fa.json +0 -0
- package/data/1.1/hu.json +0 -0
- package/data/1.1/lv.json +0 -0
- package/data/1.1/nl.json +0 -0
- package/data/1.1/pl.json +0 -0
- package/data/1.1/th.json +0 -0
- package/lib/DocsSchema.d.ts +2 -2
- package/lib/DocsSchema.js +4 -4
- package/lib/DocsTsGenerator.d.ts +2 -2
- package/lib/DocsTsGenerator.js +5 -5
- package/lib/helpers.js +1 -1
- package/package.json +1 -1
- package/foo.log +0 -1842
- /package/{data-progress--version_1_1_1_0.md → data-progress--version_1_1_1_1.md} +0 -0
- /package/{types-progress--version_1_1_1_0.md → types-progress--version_1_1_1_1.md} +0 -0
package/data/1.1/fa.json
CHANGED
|
Binary file
|
package/data/1.1/hu.json
CHANGED
|
Binary file
|
package/data/1.1/lv.json
CHANGED
|
Binary file
|
package/data/1.1/nl.json
CHANGED
|
Binary file
|
package/data/1.1/pl.json
CHANGED
|
Binary file
|
package/data/1.1/th.json
CHANGED
|
Binary file
|
package/lib/DocsSchema.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import version_1_1_1_1_schema from '../schema/1.1.schema.json';
|
|
2
2
|
import version_1_0_1_4_schema from '../schema/1.0.schema.json';
|
|
3
3
|
import update8_schema from '../schema/update8.schema.json';
|
|
4
4
|
import common_schema from '../schema/common.schema.json';
|
|
@@ -18,7 +18,7 @@ export declare class DocsSchemaByVersion {
|
|
|
18
18
|
readonly common: DocsSchemaByLanguageCode<typeof common_schema>;
|
|
19
19
|
readonly update8: DocsSchemaByLanguageCode<typeof update8_schema>;
|
|
20
20
|
readonly version_1_0_1_4: DocsSchemaByLanguageCode<typeof version_1_0_1_4_schema>;
|
|
21
|
-
readonly
|
|
21
|
+
readonly version_1_1_1_1: DocsSchemaByLanguageCode<typeof version_1_1_1_1_schema>;
|
|
22
22
|
constructor();
|
|
23
23
|
}
|
|
24
24
|
export {};
|
package/lib/DocsSchema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import version_1_1_1_1_schema from '../schema/1.1.schema.json' with {
|
|
2
2
|
type: 'json'
|
|
3
3
|
};
|
|
4
4
|
import version_1_0_1_4_schema from '../schema/1.0.schema.json' with {
|
|
@@ -26,13 +26,13 @@ export class DocsSchemaByVersion {
|
|
|
26
26
|
common;
|
|
27
27
|
update8;
|
|
28
28
|
version_1_0_1_4;
|
|
29
|
-
|
|
29
|
+
version_1_1_1_1;
|
|
30
30
|
constructor() {
|
|
31
31
|
this.common = new DocsSchemaByLanguageCode({
|
|
32
32
|
en_US: common_schema,
|
|
33
33
|
});
|
|
34
|
-
this.
|
|
35
|
-
en_US:
|
|
34
|
+
this.version_1_1_1_1 = new DocsSchemaByLanguageCode({
|
|
35
|
+
en_US: version_1_1_1_1_schema,
|
|
36
36
|
});
|
|
37
37
|
this.version_1_0_1_4 = new DocsSchemaByLanguageCode({
|
|
38
38
|
en_US: version_1_0_1_4_schema,
|
package/lib/DocsTsGenerator.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare class DocsTsGeneratorVersion {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
export type docs_versions = {
|
|
36
|
-
|
|
36
|
+
version_1_1_1_1?: DocsTsGeneratorVersion;
|
|
37
37
|
version_1_0_1_4?: DocsTsGeneratorVersion;
|
|
38
38
|
update8?: DocsTsGeneratorVersion;
|
|
39
39
|
common: DocsTsGeneratorVersion;
|
|
@@ -21165,7 +21165,7 @@ export declare class DocsTsGenerator {
|
|
|
21165
21165
|
schema_common(): Promise<DocsSchemaByVersion['common']['en_US']['schema']>;
|
|
21166
21166
|
schema_update8(): Promise<DocsSchemaByVersion['update8']['en_US']['schema']>;
|
|
21167
21167
|
schema_version_1_0_1_4(): Promise<DocsSchemaByVersion['version_1_0_1_4']['en_US']['schema']>;
|
|
21168
|
-
|
|
21168
|
+
schema_version_1_1_1_1(): Promise<DocsSchemaByVersion['version_1_1_1_1']['en_US']['schema']>;
|
|
21169
21169
|
private load;
|
|
21170
21170
|
private load_from_file;
|
|
21171
21171
|
private validate;
|
package/lib/DocsTsGenerator.js
CHANGED
|
@@ -91,8 +91,8 @@ export class DocsTsGenerator {
|
|
|
91
91
|
if ('update8' === version) {
|
|
92
92
|
return this.schema_update8();
|
|
93
93
|
}
|
|
94
|
-
else if ('
|
|
95
|
-
return this.
|
|
94
|
+
else if ('version_1_1_1_1' === version) {
|
|
95
|
+
return this.schema_version_1_1_1_1();
|
|
96
96
|
}
|
|
97
97
|
else if ('version_1_0_1_4' === version) {
|
|
98
98
|
return this.schema_version_1_0_1_4();
|
|
@@ -124,15 +124,15 @@ export class DocsTsGenerator {
|
|
|
124
124
|
return schema;
|
|
125
125
|
}
|
|
126
126
|
// eslint-disable-next-line max-len
|
|
127
|
-
async
|
|
128
|
-
const schema = this.schema_data.
|
|
127
|
+
async schema_version_1_1_1_1() {
|
|
128
|
+
const schema = this.schema_data.version_1_1_1_1.en_US.schema;
|
|
129
129
|
/*
|
|
130
130
|
const schema_1_0 = await this.schema_version_1_0_1_4();
|
|
131
131
|
this.ajv.removeSchema('1.0.schema.json');
|
|
132
132
|
this.ajv.addSchema(schema_1_0);
|
|
133
133
|
*/
|
|
134
134
|
// eslint-disable-next-line max-len
|
|
135
|
-
await this.validate_schema('
|
|
135
|
+
await this.validate_schema('version_1_1_1_1', schema);
|
|
136
136
|
return schema;
|
|
137
137
|
}
|
|
138
138
|
async load(version) {
|
package/lib/helpers.js
CHANGED
|
@@ -24,7 +24,7 @@ export const docs = new DocsTsGenerator({
|
|
|
24
24
|
cache_path: `${__dirname}/../data/common/`,
|
|
25
25
|
UnrealEngineString_quote_mode: 'original',
|
|
26
26
|
}),
|
|
27
|
-
|
|
27
|
+
version_1_1_1_1: new DocsTsGeneratorVersion({
|
|
28
28
|
docs_path: `${__dirname}/../data/1.1/en-US.json`,
|
|
29
29
|
cache_path: `${__dirname}/../data/1.1/`,
|
|
30
30
|
UnrealEngineString_quote_mode: 'double',
|
package/package.json
CHANGED