opsgenie-sdk
Advanced tools
Comparing version 0.4.5 to 0.4.10
@@ -88,6 +88,6 @@ "use strict"; | ||
if (response.statusCode < 200 || response.statusCode >= 300) { | ||
err = JSON.parse(body); | ||
if (process.env.NODE_ENV === 'development') { | ||
err.response_stringified = JSON.stringify(response); | ||
} | ||
err = JSON.parse(body); | ||
err.httpStatusCode = response.statusCode; | ||
@@ -94,0 +94,0 @@ response = null; |
@@ -19,3 +19,4 @@ "use strict"; | ||
'Accept': 'application/json', | ||
'Content-Type': 'application/json' | ||
'Content-Type': 'application/json', | ||
'User-Agent' : 'opsgenie-node-sdk:' + exports.sdkVersion | ||
} | ||
@@ -22,0 +23,0 @@ }; |
@@ -23,4 +23,7 @@ "use strict"; | ||
group: require('./resources/Group')(), | ||
team: require('./resources/Team')() | ||
team: require('./resources/Team')(), | ||
incident: require('./incident/Incident')(), | ||
heartbeat: require('./heartbeat/Heartbeat')(), | ||
userV2: require('./userV2/UserV2')() | ||
}; | ||
}; |
@@ -123,6 +123,6 @@ "use strict"; | ||
if (response.statusCode < 200 || response.statusCode >= 300) { | ||
err = JSON.parse(JSON.stringify(body)); | ||
if (process.env.NODE_ENV === 'development') { | ||
err.response_stringified = JSON.stringify(response); | ||
} | ||
err = JSON.parse(JSON.stringify(body)); | ||
err.httpStatusCode = response.statusCode; | ||
@@ -129,0 +129,0 @@ response = null; |
{ | ||
"name": "opsgenie-sdk", | ||
"version": "0.4.5", | ||
"version": "0.4.10", | ||
"description": "OpsGenie Node.js SDK", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -16,4 +16,7 @@ # OpsGenie Node.js SDK | ||
- User API | ||
- User API v2 | ||
- Group API | ||
- Team API | ||
- Heartbeat API | ||
- Incident API | ||
- Escalation API (TODO: will be available soon) | ||
@@ -23,3 +26,2 @@ - Schedule API (TODO: will be available soon) | ||
- Forwarding Rule API (TODO: will be available soon) | ||
- Heartbeat API (TODO: will be available soon) | ||
- Integration API (TODO: will be available soon) | ||
@@ -26,0 +28,0 @@ - Policy API (TODO: will be available soon) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
61201
26
1094
75
1