Comparing version 1.0.28 to 1.0.29
@@ -37,3 +37,3 @@ /** | ||
findParagraphsWithCnkUsingGET(cnk: number, language: string): Promise<Array<models.ParagraphPreview> | any>; | ||
getAddedDocumentUsingGET(chapterName: string, paragraphName: string, verseSeq: number, docSeq: number, language: string): Promise<any | Boolean>; | ||
getAddedDocumentUsingGET(chapterName: string, paragraphName: string, verseSeq: number, docSeq: number, language: string): Promise<ArrayBuffer | any>; | ||
getAddedDocumentsUsingGET(chapterName: string, paragraphName: string): Promise<Array<models.AddedDocumentPreview> | any>; | ||
@@ -40,0 +40,0 @@ getMppsForParagraphUsingGET(chapterName: string, paragraphName: string): Promise<Array<models.MppPreview> | any>; |
@@ -171,3 +171,3 @@ /** | ||
return XHR.sendCommand("GET", _url, headers, _body) | ||
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
.then(doc => doc.body) | ||
.catch(err => this.handleError(err)); | ||
@@ -174,0 +174,0 @@ } |
@@ -334,3 +334,3 @@ /** | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
.then(doc => true) | ||
.catch(err => this.handleError(err)); | ||
@@ -361,3 +361,3 @@ } | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
.then(doc => true) | ||
.catch(err => this.handleError(err)); | ||
@@ -364,0 +364,0 @@ } |
@@ -148,3 +148,3 @@ /** | ||
return XHR.sendCommand("DELETE", _url, headers, _body) | ||
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
.then(doc => true) | ||
.catch(err => this.handleError(err)); | ||
@@ -173,3 +173,3 @@ } | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
.then(doc => true) | ||
.catch(err => this.handleError(err)); | ||
@@ -197,5 +197,5 @@ } | ||
return XHR.sendCommand("PUT", _url, headers, _body) | ||
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
.then(doc => true) | ||
.catch(err => this.handleError(err)); | ||
} | ||
} |
@@ -74,3 +74,3 @@ /** | ||
return XHR.sendCommand("POST", _url, headers, _body) | ||
.then(doc => (doc.contentType.startsWith("application/octet-stream") ? doc.body : true)) | ||
.then(doc => true) | ||
.catch(err => this.handleError(err)); | ||
@@ -77,0 +77,0 @@ } |
{ | ||
"name": "fhc-api", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"description": "Typescript version of Freehealth Connector standalone API client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
447147