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

obj2json

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obj2json - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

test/.tern-port

2

package.json
{
"name": "obj2json",
"version": "0.1.0",
"version": "0.2.0",
"description": "Convert Wavefront .obj files to Three.js JSON format, using Blender",

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

/* eslint-env node, mocha */
var fs = require("fs");
var mockery = require("mockery");

@@ -209,5 +210,3 @@ var assert = require("assert");

assert.equal(result, undefined);
assert.equal(
err.message,
"ENOENT: no such file or directory, access 'baz'");
assert.equal(err.message.slice(0, 6), "ENOENT");
done();

@@ -244,3 +243,21 @@ });

});
it("should handle textures too", function(done) {
var opts = {
inputFile: relativePath("BHS04.obj"),
outputFile: relativePath("BHS04.json")
};
obj2json(opts, function(err, result) {
if (err) {
return done(err);
}
var resultBuffer = fs.readFileSync(result);
var resultString = resultBuffer.toString();
var resultData = JSON.parse(resultString);
assert.equal(resultData.materials.some(function(material) {
return (material.mapDiffuse === "PythBHS.jpg");
}), true);
done();
});
});
});
});

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