Compare commits

..

2 Commits

Author SHA1 Message Date
8bb53ba604 Merge pull request 'Fix rbxm-parser dependency' (#19) from fix-dependency into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #19
2024-04-29 23:08:32 +00:00
562b7afbd6 Fix rbxm-parser dependency 2024-04-29 17:51:32 -05:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
const axios = require("axios").default;
const { RobloxModel } = require("rbxm-parser");
const { RobloxFile } = require("rbxm-parser");
// https://create.roblox.com/docs/reference/engine/enums/AssetType
const AssetType = {
@ -147,7 +147,7 @@ async function validateMapAsset(assetId, game) {
responseType: "arraybuffer"
});
const model = RobloxModel.ReadFromBuffer(modelDomRes.data);
const model = RobloxFile.ReadFromBuffer(modelDomRes.data);
if (!model) {
// For whatever reason we couldn't parse the model, so we'll just skip doing validation
return {

View File

@ -8,7 +8,7 @@
"discord.js": "^14.14.1",
"noblox.js": "^4.15.1",
"node-csv": "^0.1.2",
"rbxm-parser": "^1.0.6",
"rbxm-parser": "^1.1.0",
"sugar-date": "^2.0.6"
},
"devDependencies": {