FWeinb / node-osascript

Use AppleScript from node
68 stars 9 forks source link

Fix for Node 6.0 #7

Closed rosszurowski closed 8 years ago

rosszurowski commented 8 years ago

This PR fixes an error that appears on Node 6.0.

The latest release of Node made a breaking change to the path module, which now throws an error if it's passed undefined instead of a string. To fix the exception, this PR adds a type-check to ensure we only ever pass a string to path.

FWeinb commented 8 years ago

Thank you for the update! Released in 1.0.4:fireworks: