New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bedrock-development

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bedrock-development - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

29

bin/app/package_manager.js

@@ -87,3 +87,30 @@ "use strict";

let contents = yield ((0, github_1.requestURL)(item.download_url));
//TODO handle adding ui files, item_texture, and terrain_texture
//TODO item_texture, and terrain_texture
if (/hud_screen.json$/.test(path)) {
try {
let hud_screen = yield (0, file_manager_1.readJSONFromFile)(`${Global.project_rp}ui/hud_screen.json`);
if (hud_screen.length) {
let import_hud = JSONC.parse(contents.data);
let new_hud = Object.assign(Object.assign({}, import_hud), hud_screen[0].json);
new_hud['root_panel']['modifications'] = [...import_hud['root_panel']['modifications'], ...hud_screen[0].json['root_panel']['modifications']];
(0, file_manager_1.writeFileFromJSON)(path, new_hud, true);
continue;
}
}
catch (error) {
}
}
if (/_ui_defs.json$/.test(path)) {
try {
let _ui_defs = yield (0, file_manager_1.readJSONFromFile)(`${Global.project_rp}ui/_ui_defs.json`);
if (_ui_defs.length) {
let import_defs = JSONC.parse(contents.data);
let new_defs = { ui_defs: [...import_defs['ui_defs'], ..._ui_defs[0].json['ui_defs']] };
(0, file_manager_1.writeFileFromJSON)(path, new_defs, true);
continue;
}
}
catch (error) {
}
}
// Handle json Files

@@ -90,0 +117,0 @@ if (/.json$/.test(path)) {

2

package.json
{
"name": "bedrock-development",
"version": "1.0.10",
"version": "1.0.11",
"description": "APIs for creating and editing files related to Minecraft Bedrock development.",

@@ -5,0 +5,0 @@ "main": "bin/index.js",

@@ -49,4 +49,30 @@ import * as Global from './globals';

//TODO handle adding ui files, item_texture, and terrain_texture
//TODO item_texture, and terrain_texture
if (/hud_screen.json$/.test(path)) {
try {
let hud_screen = await readJSONFromFile(`${Global.project_rp}ui/hud_screen.json`);
if (hud_screen.length) {
let import_hud: any = JSONC.parse(contents.data);
let new_hud = {...import_hud, ...hud_screen[0].json};
new_hud['root_panel']['modifications'] = [...import_hud['root_panel']['modifications'], ...hud_screen[0].json['root_panel']['modifications']]
writeFileFromJSON(path, new_hud, true);
continue;
}
} catch (error) {
}
}
if (/_ui_defs.json$/.test(path)) {
try {
let _ui_defs = await readJSONFromFile(`${Global.project_rp}ui/_ui_defs.json`);
if (_ui_defs.length) {
let import_defs: any = JSONC.parse(contents.data);
let new_defs = {ui_defs: [...import_defs['ui_defs'], ..._ui_defs[0].json['ui_defs']]};
writeFileFromJSON(path, new_defs, true);
continue;
}
} catch (error) {
}
}
// Handle json Files

@@ -53,0 +79,0 @@ if (/.json$/.test(path)) {

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