Skip to content

Commit e1fac97

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 3a56f1e + a4c3a2c commit e1fac97

20 files changed

+773
-54
lines changed

JenkinsfileRelease

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ node('words-linux') {
7676
}
7777
}
7878
}
79+
80+
gitlabCommitStatus("audit security") {
81+
stage('audit security'){
82+
sh "npm audit fix"
83+
sh "npm audit --production --audit-level=moderate"
84+
}
85+
}
7986
}
8087
}
8188
} finally {
@@ -99,10 +106,6 @@ node('words-linux') {
99106
sh "git config user.email \"[email protected]\""
100107
sh "git config user.name \"jenkins\""
101108

102-
withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', usernameVariable: 'gitUsername', passwordVariable: 'gitPass')]) {
103-
gitRepoUrl = "https://${gitUsername}:${gitPass}@git.auckland.dynabic.com/words-cloud/words-cloud-node.git"
104-
}
105-
106109
unstash 'newPackage'
107110
}
108111
}
@@ -132,7 +135,7 @@ node('words-linux') {
132135
sh "git diff --name-status"
133136
sh 'git commit -am "Merged master branch to release" || exit 0'
134137
withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', passwordVariable: 'gitPass', usernameVariable: 'gitUsername')]) {
135-
sh "git push https://$gitUsername:[email protected]/words-cloud/words-cloud-node.git release"
138+
sh "git push ${gitRepoUrl} release"
136139
}
137140
}
138141
}
@@ -148,6 +151,27 @@ node('words-linux') {
148151
sh "git push ${gitRepoUrl} ${version}"
149152
}
150153
}
154+
155+
gitlabCommitStatus("create health check") {
156+
stage('create health check branch'){
157+
withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', passwordVariable: 'gitPass', usernameVariable: 'gitUsername')]) {
158+
sh "git push -d https://$gitUsername:[email protected]/words-cloud/words-cloud-node.git health_check"
159+
}
160+
sh "git branch -D health_check"
161+
162+
sh "git checkout -b health_check"
163+
164+
sh "sed -i 's/asposewordscloud/healthcheck/g' package.json"
165+
sh "find test -type f -name \"*.ts\" -exec sed -i 's+\".*/src/.*\"+\"asposewordscloud\"+g' {} +"
166+
sh "find bdd -type f -name \"*.ts\" -exec sed -i 's+\".*/src/.*\"+\"asposewordscloud\"+g' {} +"
167+
168+
sh 'git commit -am "Create health check branch" || exit 0'
169+
170+
withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', passwordVariable: 'gitPass', usernameVariable: 'gitUsername')]) {
171+
sh "git push -u https://$gitUsername:[email protected]/words-cloud/words-cloud-node.git health_check"
172+
}
173+
}
174+
}
151175
} finally {
152176
deleteDir()
153177
sh 'docker system prune -f'

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
1616
- Add & remove watermarks and protection.
1717
- Read & write access to Document Object Model.
1818

19+
## Enhancements in Version 21.12
20+
21+
- Added FieldOptions parameter to mail merge operations
22+
- Added timeout parameter to api configuration
23+
24+
1925
## Enhancements in Version 21.11
2026

2127

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" standalone="yes"?>
2+
<NewDataSet>
3+
<info>
4+
<FirstName>Alexey</FirstName>
5+
<LastName>Noskov</LastName>
6+
<City>Kharkov</City>
7+
<Company>Aspose</Company>
8+
</info>
9+
</NewDataSet>
Binary file not shown.

examples/AcceptAllRevisions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as fs from "fs";
33
const clientId = "####-####-####-####-####";
44
const secret = "##################";
55
const wordsApi = new WordsApi(clientId, secret);
6-
const fileName = "test_doc.docx";
6+
const fileName = "test_doc.docx";
77

88
// Upload original document to cloud storage.
99
const myVar1 = fs.createReadStream(fileName);

examples/AcceptAllRevisionsOnline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const clientId = "####-####-####-####-####";
22
const secret = "##################";
33
const wordsApi = new WordsApi(clientId, secret);
4-
const fileName = "test_doc.docx";
4+
const fileName = "test_doc.docx";
55

66
// Calls AcceptAllRevisionsOnline method for document in cloud.
77
const requestDocument = fs.createReadStream(fileName);

package-lock.json

Lines changed: 12 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposewordscloud",
3-
"version": "21.11.0",
3+
"version": "21.12.0",
44
"description": "Aspose.Words Cloud SDK for Node.js",
55
"homepage": "https://products.aspose.cloud/words/cloud",
66
"author": {

src/api.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,6 +2507,24 @@ export class WordsApi {
25072507
return Promise.resolve(result);
25082508
}
25092509

2510+
/**
2511+
* Returns application info.
2512+
* @param requestObj contains request parameters
2513+
*/
2514+
public async getInfo(requestObj: model.GetInfoRequest): Promise< model.WordsIncomingMessage< model.InfoResponse > > {
2515+
if (requestObj === null || requestObj === undefined) {
2516+
throw new Error('Required parameter "request" was null or undefined when calling getInfo.');
2517+
}
2518+
2519+
const requestOptions = requestObj.createRequestOptions(this.configuration, await this._getKey());
2520+
2521+
const response = await invokeApiMethod(requestOptions, this.configuration);
2522+
const result = new model.WordsIncomingMessage< model.InfoResponse >();
2523+
result.response = response;
2524+
result.body = requestObj.createResponse(response.body);
2525+
return Promise.resolve(result);
2526+
}
2527+
25102528
/**
25112529
* Reads a list from the document.
25122530
* @param requestObj contains request parameters

src/internal/configuration.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ export class Configuration {
5757
*/
5858
public debugMode: boolean;
5959

60+
/**
61+
* Timeout in seconds. Default value is 100 seconds.
62+
*/
63+
public timeout: number = 100;
64+
6065
constructor(clientId: string, clientSecret: string, baseUrl?: string, debugMode?: boolean) {
6166
if (baseUrl) {
6267
this.baseUrl = baseUrl;

0 commit comments

Comments
 (0)