@etothepii/satisfactory-file-parser
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -16,5 +16,5 @@ export type * from './parser/satisfactory/blueprint/blueprint.types'; | ||
export { SaveWriter } from './parser/satisfactory/save/save-writer'; | ||
export type * from './parser/satisfactory/structs/util.types'; | ||
export * from './parser/satisfactory/structs/util.types'; | ||
export { CompressionLibraryError, CorruptSaveError, ParserError, UnsupportedVersionError } from './parser/error/parser.error'; | ||
export type * from './parser/file.types'; | ||
export { Parser } from './parser/parser'; |
@@ -45,2 +45,3 @@ "use strict"; | ||
Object.defineProperty(exports, "SaveWriter", { enumerable: true, get: function () { return save_writer_1.SaveWriter; } }); | ||
__exportStar(require("./parser/satisfactory/structs/util.types"), exports); | ||
var parser_error_1 = require("./parser/error/parser.error"); | ||
@@ -47,0 +48,0 @@ Object.defineProperty(exports, "CompressionLibraryError", { enumerable: true, get: function () { return parser_error_1.CompressionLibraryError; } }); |
{ | ||
"name": "@etothepii/satisfactory-file-parser", | ||
"author": "etothepii", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "A file parser for satisfactory files. Includes save files and blueprint files.", | ||
"module": "Node16", | ||
"typings": "./build/index.d.ts", | ||
@@ -8,0 +7,0 @@ "main": "./build/index.js", |
@@ -41,3 +41,3 @@ # Satisfactory File Parser | ||
let header, bodyChunks = []; | ||
let header: Uint8Array, bodyChunks: Uint8Array[] = []; | ||
Parser.WriteSave(save, binaryBeforeCompressed => { | ||
@@ -74,3 +74,3 @@ console.log('on binary data before being compressed.'); | ||
let mainFileHeader, mainFileBodyChunks = []; | ||
let mainFileHeader: Uint8Array, mainFileBodyChunks: Uint8Array[] = []; | ||
const summary = Parser.WriteBlueprintFiles(blueprint, mainFileBinaryBeforeCompressed => { | ||
@@ -87,3 +87,3 @@ console.log('on main file binary data before being compressed.'); | ||
// write complete .sbp file back to disk | ||
fs.writeFileSync('./MyModifiedBlueprint.sbp', Buffer.concat([mainFileHeader, ...mainFileBodyChunks])); | ||
fs.writeFileSync('./MyModifiedBlueprint.sbp', Buffer.concat([mainFileHeader!, ...mainFileBodyChunks])); | ||
@@ -90,0 +90,0 @@ // write .sbpcfg file back to disk, we get that data from the result of WriteBlueprint |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151619
46
3299