ang-google-services
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "ang-google-services", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Consuming google's APIs services", | ||
@@ -5,0 +5,0 @@ "main": "./src/module.js", |
{ | ||
"name": "ang-google-services", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Consuming google's APIs services", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -161,3 +161,2 @@ (function($A, $G) { | ||
types: options['types'] || [] | ||
}; | ||
@@ -194,5 +193,5 @@ | ||
if (status == $G.maps.GeocoderStatus.OK) { | ||
$Deffered.resolve(results); | ||
$Deffered.resolve(results, options); | ||
} else { | ||
$Deffered.reject(results); | ||
$Deffered.reject(results, options); | ||
} | ||
@@ -285,5 +284,5 @@ | ||
if (status == $G.maps.GeocoderStatus.OK) { | ||
$Defer.resolve(results); | ||
$Defer.resolve(results, options); | ||
} else { | ||
$Defer.reject({error: status, message: 'Failed to get the result ' + status}); | ||
$Defer.reject({error: status, message: 'Failed to get the result ' + status}, options); | ||
} | ||
@@ -309,8 +308,8 @@ | ||
if (status == $G.maps.GeocoderStatus.OK) { | ||
$Defer.resolve(results); | ||
$Defer.resolve(results, options); | ||
} else { | ||
$Defer.reject({ | ||
error: status, | ||
status: status, | ||
message: "There something wrong due to " + status | ||
}); | ||
}, options); | ||
} | ||
@@ -406,5 +405,8 @@ | ||
$Summary: $Summary | ||
}); | ||
}, options); | ||
} else { | ||
$Defer.reject(undefined); | ||
$Defer.reject({ | ||
status: status, | ||
message: "There something wrong " + status | ||
}, options); | ||
} | ||
@@ -411,0 +413,0 @@ }); |
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
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
2606839
456