Socket
Socket
Sign inDemoInstall

satisfactory-json

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

satisfactory-json - npm Package Compare versions

Comparing version 0.0.51 to 0.0.52

9

lib/cli/json2sav.js

@@ -61,2 +61,3 @@ #!/usr/bin/env node

.parse(process.argv);
var options = commander_1.default.opts();
if (sourceValue === undefined) {

@@ -71,3 +72,3 @@ commander_1.default.outputHelp();

else {
if (commander_1.default.profile) {
if (options.profile) {
profiler.startProfiling('probe', true);

@@ -78,3 +79,3 @@ }

var outStream = fs.createWriteStream(targetValue, opts);
if (commander_1.default.time) {
if (options.time) {
console.time('json2sav');

@@ -108,6 +109,6 @@ }

.on('finish', function () {
if (commander_1.default.time) {
if (options.time) {
console.timeEnd('json2sav');
}
if (commander_1.default.profile) {
if (options.profile) {
var profile_1 = profiler.stopProfiling('probe');

@@ -114,0 +115,0 @@ profile_1.export(function (error, result) {

@@ -47,2 +47,3 @@ #!/usr/bin/env node

.parse(process.argv);
var options = commander_1.default.opts();
if (sourceValue === undefined) {

@@ -57,3 +58,3 @@ commander_1.default.outputHelp();

else {
if (commander_1.default.profile) {
if (options.profile) {
profiler.startProfiling('probe', true);

@@ -64,3 +65,3 @@ }

var outStream = fs.createWriteStream(targetValue, opts);
if (commander_1.default.time) {
if (options.time) {
console.time('sav2json');

@@ -84,6 +85,6 @@ }

.on('finish', function () {
if (commander_1.default.time) {
if (options.time) {
console.timeEnd('sav2json');
}
if (commander_1.default.profile) {
if (options.profile) {
var profile_1 = profiler.stopProfiling('probe');

@@ -90,0 +91,0 @@ profile_1.export(function (error, result) {

/// <reference types="node" />
import { Context, Reference } from './commands';
import JSBI from '../vendor/jsbi';
import JSBI from 'jsbi';
export declare function readBigInt64LE(buffer: Buffer, offset?: number): JSBI;

@@ -5,0 +5,0 @@ export declare function writeBigInt64LE(buffer: Buffer, value: JSBI, offset?: number): number;

@@ -21,3 +21,3 @@ "use strict";

var commands_1 = require("./commands");
var jsbi_1 = __importDefault(require("../vendor/jsbi"));
var jsbi_1 = __importDefault(require("jsbi"));
// Polyfill for browser until https://github.com/feross/buffer/pull/247 is merged

@@ -24,0 +24,0 @@ /* eslint-disable */

@@ -23,3 +23,3 @@ "use strict";

var Archive_1 = require("./Archive");
var jsbi_1 = __importDefault(require("../vendor/jsbi"));
var jsbi_1 = __importDefault(require("jsbi"));
var CompressionTransform = /** @class */ (function (_super) {

@@ -26,0 +26,0 @@ __extends(CompressionTransform, _super);

@@ -71,3 +71,3 @@ "use strict";

// FINComputerSubsystem manages to not even have a 'None' entry to signify the empty properties array
// TODO when saving, this inserts the 'None' entry. Evaluate whether the modified save still loads with the FIN mod
// When saving, this inserts the 'None' entry. The modified save still loads with the FIN mod.
if (ctx.tmp._entityLength === ar.getBytesRead()) {

@@ -74,0 +74,0 @@ ctx.tmp._skipProperties = true;

@@ -46,3 +46,10 @@ "use strict";

},
'255' /*HISTORYTYPE_NONE*/: function (_builder) { },
'255' /*HISTORYTYPE_NONE*/: function (builder) {
// From Unreal Engine 4.23 on, the culture invariant strings are stored without history. This applies to Satisfactory builds from 140822 on.
builder.if(function (ctx) { return ctx.tmp.buildVersion >= 140822; }, function (builder) {
builder.int('hasCultureInvariantString').if(function (ctx) { return ctx.obj.hasCultureInvariantString == 1; }, function (builder) {
builder.str('cultureInvariantString');
});
});
},
'3' /*HISTORYTYPE_ARGUMENTFORMAT*/: function (builder) {

@@ -49,0 +56,0 @@ builder

@@ -11,2 +11,4 @@ "use strict";

.int('buildVersion')
// Store buildVersion in tmp object to be able to access it later in TextProperty
.exec(function (ctx) { return (ctx.tmp.buildVersion = ctx.obj.buildVersion); })
.str('mapName')

@@ -13,0 +15,0 @@ .str('mapOptions')

{
"name": "satisfactory-json",
"version": "0.0.51",
"version": "0.0.52",
"description": "Convert Satisfactory save files to JSON and back",
"author": "ficsit-felix",
"dependencies": {
"jsbi": "^3.1.2",
"jsbi": "^3.1.4",
"pako": "^2.0.2"

@@ -13,7 +13,7 @@ },

"@types/pako": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"commander": "^6.2.1",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"commander": "^7.0.0",
"eslint": "^7.16.0",
"eslint-config-prettier": "^7.1.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.0",

@@ -50,2 +50,2 @@ "prettier": "^2.0.5",

}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc