Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sean_kenny/eu4-text-file-to-json-parser-js

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sean_kenny/eu4-text-file-to-json-parser-js - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

14

build/write-value-to-output-json-data.js

@@ -40,2 +40,14 @@ import { valueOrNestedValueIsNestedValue, valueOrNestedValueIsNestedValueArray, valueOrNestedValueIsString, valueOrNestedValueIsStringArray } from "./value-or-nested-value.js";

}
if (valueOrNestedValueIsNestedValue(valueToPush)
&& Object.keys(valueToPush).length === 0
&& currentArrayValueForKey !== undefined
&& valueOrNestedValueIsNestedValueArray(currentArrayValueForKey)) {
return {
...input.outputJSONData,
[key]: [
...currentArrayValueForKey,
valueToPush
]
};
}
if (currentArrayValueForKey === undefined || (valueOrNestedValueIsNestedValue(currentArrayValueForKey)

@@ -71,3 +83,3 @@ && Object.keys(currentArrayValueForKey).length === 0)) {

[lowestValueKey]: [
...valueForLowestValueKey.slice(0, 1),
...valueForLowestValueKey.slice(0, -1),
writeValueToOutputJSONData({

@@ -74,0 +86,0 @@ outputJSONData: valueForLowestValueKey.at(-1) ?? {},

2

package.json
{
"name": "@sean_kenny/eu4-text-file-to-json-parser-js",
"version": "0.1.5",
"version": "0.1.6",
"description": "A library for reading text files in the format EU4 encodes it's game data in.",

@@ -5,0 +5,0 @@ "scripts": {

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