citi-oauth
Advanced tools
Comparing version 1.6.4 to 1.7.0
@@ -30,13 +30,11 @@ "use strict"; | ||
catch (err) { | ||
settings.logger.error('碰到了错误!', err.response); | ||
err.request = {}; | ||
err.response = { data: err.response ? err.response.data : null }; | ||
settings.logger.error(err); | ||
if (!(err instanceof CitiAPIError)) { | ||
err.name = 'CitiAPI' + err.name; | ||
} | ||
throw err; | ||
throw ramda_1.default.tap((err) => { | ||
settings.logger.error('碰到了错误!', err); | ||
if (!(err instanceof CitiAPIError)) { | ||
err.name = 'CitiAPI' + err.name; | ||
} | ||
})(err); | ||
} | ||
}; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsa0RBQXFCO0FBRXJCLE1BQU0sWUFBYSxTQUFRLEtBQUs7SUFJOUIsWUFBWSxHQUFXO1FBQ3JCLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQTtRQUVWLElBQUksQ0FBQyxJQUFJLEdBQUcsY0FBYyxDQUFBO0lBQzVCLENBQUM7Q0FDRjtBQUVZLFFBQUEsT0FBTyxHQUFHLENBQ3JCLFdBQXFFLEVBQ3JFLFFBQWMsRUFDZCxFQUFFO0lBQ0YsT0FBTyxLQUFLLEVBQUUsR0FBVyxFQUFFLElBQVUsRUFBRSxPQUFhLEVBQUUsRUFBRTtRQUN0RCxJQUFJLENBQUMsUUFBUSxDQUFDLE1BQU0sRUFBRTtZQUNwQixRQUFRLENBQUMsTUFBTSxHQUFHLE9BQU8sQ0FBQTtTQUMxQjtRQUVELElBQUk7WUFDRixNQUFNLEVBQUUsSUFBSSxFQUFFLEdBQUcsRUFBRSxHQUFHLE1BQU0sV0FBVyxDQUNyQyxHQUFHLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0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FBRyxDQUFDLENBQUMsR0FBRyxFQUFFLEVBQUU7Z0JBQ25CLElBQUksR0FBRyxDQUFDLE9BQU8sRUFBRTtvQkFDZixNQUFNLEtBQUssR0FBRyxJQUFJLFlBQVksQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUE7b0JBQzFDLEtBQUssQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLE9BQU8sQ0FBQTtvQkFDeEIsS0FBSyxDQUFDLElBQUksR0FBRyxFQUFFLEdBQUcsRUFBRSxPQUFPLEVBQUUsQ0FBQTtvQkFFN0IsTUFBTSxLQUFLLENBQUE7aUJBQ1o7WUFDSCxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQTtTQUNSO1FBQUMsT0FBTyxHQUFHLEVBQUU7WUFDWixNQUFNLGVBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLEVBQUUsRUFBRTtnQkFDbEIsUUFBUSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQ25CLFFBQVEsRUFDUixHQUFHLENBQ0osQ0FBQTtnQkFFRCxJQUFJLENBQUMsQ0FBQyxHQUFHLFlBQVksWUFBWSxDQUFDLEVBQUU7b0JBQ2xDLEdBQUcsQ0FBQyxJQUFJLEdBQUcsU0FBUyxHQUFHLEdBQUcsQ0FBQyxJQUFJLENBQUE7aUJBQ2hDO1lBQ0gsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUE7U0FDUjtJQUNILENBQUMsQ0FBQTtBQUNILENBQUMsQ0FBQSJ9 |
{ | ||
"name": "citi-oauth", | ||
"version": "1.6.4", | ||
"version": "1.7.0", | ||
"description": "citi oauth typescript version", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
256474
1417