@francisdb/vpin-wasm 0.35.0 → 0.36.0
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/README.md +4 -3
- package/package.json +1 -1
- package/vpin.d.ts +6 -1
- package/vpin.js +1 -1
- package/vpin_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -84,15 +84,16 @@ for (const finding of findings) {
|
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
`code` names the check and is stable, so findings can be grouped or
|
|
87
|
-
suppressed by it; `
|
|
88
|
-
|
|
87
|
+
suppressed by it; `item` is the name of the game item a finding is about,
|
|
88
|
+
to select it in an editor; `line` and `column` (both from 1) are set for
|
|
89
|
+
findings about one place in the script.
|
|
89
90
|
|
|
90
91
|
**Parameters:**
|
|
91
92
|
|
|
92
93
|
- `files: VpxFileMap` (`Record<string, Uint8Array>`) - file paths to contents
|
|
93
94
|
- `callback?: (message: string) => void` - Optional progress callback
|
|
94
95
|
|
|
95
|
-
**Returns:** `{severity: "error" | "warning" | "suggestion" | "info", code: string, message: string, line?: number, column?: number}[]` - empty when the table is clean
|
|
96
|
+
**Returns:** `{severity: "error" | "warning" | "suggestion" | "info", code: string, message: string, item?: string, line?: number, column?: number}[]` - empty when the table is clean
|
|
96
97
|
|
|
97
98
|
### export_glb(files, options?, callback?)
|
|
98
99
|
|
package/package.json
CHANGED
package/vpin.d.ts
CHANGED
|
@@ -23,6 +23,11 @@ export type AuditFinding = {
|
|
|
23
23
|
code: string;
|
|
24
24
|
/** What is wrong, without the location */
|
|
25
25
|
message: string;
|
|
26
|
+
/**
|
|
27
|
+
* Name of the game item the finding is about, as the table spells it,
|
|
28
|
+
* for findings about one game item that exists
|
|
29
|
+
*/
|
|
30
|
+
item?: string;
|
|
26
31
|
/** Script line the finding is about, from 1, when it points at one */
|
|
27
32
|
line?: number;
|
|
28
33
|
/** Script column of the first character, from 1, when known */
|
|
@@ -332,7 +337,7 @@ export function assemble(files: VpxFileMap, callback?: ProgressCallback | null):
|
|
|
332
337
|
* Checks the expanded table files for consistency problems: references to
|
|
333
338
|
* images, materials, surfaces or collection items that do not exist,
|
|
334
339
|
* duplicate or over-long names, storage suggestions and script checks.
|
|
335
|
-
* Returns an array of `{severity, code, message, line?, column?}` objects,
|
|
340
|
+
* Returns an array of `{severity, code, message, item?, line?, column?}` objects,
|
|
336
341
|
* empty when the table is clean.
|
|
337
342
|
*/
|
|
338
343
|
export function audit(files: VpxFileMap, callback?: ProgressCallback | null): AuditFinding[];
|
package/vpin.js
CHANGED
|
@@ -224,7 +224,7 @@ export function assemble(files, callback) {
|
|
|
224
224
|
* Checks the expanded table files for consistency problems: references to
|
|
225
225
|
* images, materials, surfaces or collection items that do not exist,
|
|
226
226
|
* duplicate or over-long names, storage suggestions and script checks.
|
|
227
|
-
* Returns an array of `{severity, code, message, line?, column?}` objects,
|
|
227
|
+
* Returns an array of `{severity, code, message, item?, line?, column?}` objects,
|
|
228
228
|
* empty when the table is clean.
|
|
229
229
|
* @param {VpxFileMap} files
|
|
230
230
|
* @param {ProgressCallback | null} [callback]
|
package/vpin_bg.wasm
CHANGED
|
Binary file
|