Comparing version 0.3.2 to 0.3.3
@@ -24,3 +24,3 @@ var util = require('util'), | ||
worker.on('message', function (msg) { | ||
if (msg.code) { | ||
if (msg.name == 'SyntaxError' || msg.code) { | ||
this.emit('error', msg); | ||
@@ -33,4 +33,6 @@ } else { | ||
if (cb) | ||
if (cb) { | ||
this.on('error', cb); | ||
this.on('end', cb); | ||
} | ||
@@ -37,0 +39,0 @@ return this; |
{ | ||
"author": "Andrew Lunny <alunny@gmail.com>", | ||
"name": "xcode", | ||
"description": "tools for working with xcode projects", | ||
"version": "0.3.2", | ||
"description": "parser for xcodeproj/project.pbxproj files", | ||
"version": "0.3.3", | ||
"main":"index.js", | ||
"repository": { | ||
"url": "" | ||
"url": "https://github.com/alunny/node-xcode.git" | ||
}, | ||
@@ -19,3 +19,6 @@ "engines": { | ||
"nodeunit":"0.6.4" | ||
}, | ||
"scripts": { | ||
"test": "node_modules/.bin/nodeunit test/parser test" | ||
} | ||
} |
# node-xcode | ||
> tools and utilities for working with xcode/iOS from the command-line | ||
> parser for xcodeproj/project.pbxproj files | ||
Not much to see yet |
@@ -51,2 +51,10 @@ var pbx = require('../lib/pbxProject'), | ||
}, | ||
'should handle projects with comments in the header': function (test) { | ||
var myProj = new pbx('test/parser/projects/comments.pbxproj'); | ||
myProj.parse(function (err, projHash) { | ||
test.ok(projHash); | ||
test.done(); | ||
}) | ||
}, | ||
'should attach the hash object to the pbx object': function (test) { | ||
@@ -59,2 +67,10 @@ var myProj = new pbx('test/parser/projects/hash.pbxproj'); | ||
}) | ||
}, | ||
'it should pass an error object back when the parsing fails': function (test) { | ||
var myProj = new pbx('test/parser/projects/fail.pbxproj'); | ||
myProj.parse(function (err, projHash) { | ||
test.ok(err); | ||
test.done(); | ||
}) | ||
} | ||
@@ -61,0 +77,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
209297
40
3778
10