'use strict';

var value  = require('es5-ext/object/valid-value')
  , esniff = require('esniff/function')('require');

module.exports = function (code/*, options*/) {
	var options = Object(arguments[1])
	  , deps = esniff(String(value(code)));
	deps.forEach(function (data) {
		try {
			data.value = String(new Function('\'use strict\'; return ' + data.raw)());
		} catch (ignore) {}
	});
	return options.raw ? deps : deps.map(function (dep) {
		return dep.value;
	}).filter(Boolean);
};

@@ -304,49 +304,13 @@
 ing(
-new Function('%5C'use strict%5C'; return ' + 
+eval(
 data
@@ -318,10 +318,8 @@
 raw)
-()
 );%0A%09

Fix resolution of path string. Fixes #3