Skip to content

Commit c057e29

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents e1fac97 + af77851 commit c057e29

File tree

315 files changed

+2387
-623
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

315 files changed

+2387
-623
lines changed

Jenkinsfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ properties([
66
[$class: 'StringParameterDefinition', name: 'apiUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'api url'],
77
[$class: 'BooleanParameterDefinition', name: 'ignoreCiSkip', defaultValue: false, description: 'ignore CI Skip'],
88
[$class: 'StringParameterDefinition', name: 'credentialsId', defaultValue: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', description: 'credentials id'],
9+
[$class: 'BooleanParameterDefinition', name: 'packageTesting', defaultValue: false, description: 'Testing package from repository without local sources. Used for prodhealthcheck'],
910
]
1011
]
1112
])
1213

1314
def needToBuild = false
15+
def packageTesting = false
1416

1517
def runtests(dockerImageVersion)
1618
{
@@ -23,7 +25,8 @@ def runtests(dockerImageVersion)
2325
sh 'git show -s HEAD > gitMessage'
2426
def commitMessage = readFile('gitMessage').trim()
2527
echo commitMessage
26-
needToBuild = params.ignoreCiSkip || !commitMessage.contains('[ci skip]')
28+
needToBuild = params.ignoreCiSkip || !commitMessage.contains('[ci skip]')
29+
packageTesting = params.packageTesting
2730
sh 'git clean -fdx'
2831

2932
def apiUrl = params.apiUrl
@@ -38,6 +41,19 @@ def runtests(dockerImageVersion)
3841

3942
if (needToBuild) {
4043
docker.image('node:' + dockerImageVersion).inside{
44+
if (packageTesting) {
45+
gitlabCommitStatus("remove sources and redefine referencies") {
46+
stage('remove sources and redefine referencies'){
47+
sh "npm uninstall asposewordscloud"
48+
sh "sed -i 's/asposewordscloud/asposewordscloudtest/g' package.json"
49+
sh "rm -rf src"
50+
sh "find test -type f -name \"*.ts\" -exec sed -i 's+\".*/src/.*\"+\"asposewordscloud\"+g' {} +"
51+
sh "find bdd -type f -name \"*.ts\" -exec sed -i 's+\".*/src/.*\"+\"asposewordscloud\"+g' {} +"
52+
sh "npm install asposewordscloud"
53+
}
54+
}
55+
}
56+
4157
gitlabCommitStatus("build") {
4258
stage('build'){
4359
withEnv([

JenkinsfileRelease

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -151,27 +151,6 @@ node('words-linux') {
151151
sh "git push ${gitRepoUrl} ${version}"
152152
}
153153
}
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-
}
175154
} finally {
176155
deleteDir()
177156
sh 'docker system prune -f'

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ 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 22.1
20+
21+
- Added 'FieldOptions.FieldUpdateCultureName' to set Culture for fields
22+
- Added 'DocumentEntry.Password' to set an encrypted password for appending document
23+
- Added 'encryptedPassword2' query parameter to CompareDocuments to set an encrypted password for the second comparing document
24+
25+
1926
## Enhancements in Version 21.12
2027

2128
- Added FieldOptions parameter to mail merge operations

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.12.0",
3+
"version": "22.1.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="api.ts">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/internal/attributeInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="attributeInfo.ts">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/internal/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="auth.ts">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/internal/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="configuration.ts">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/internal/objectSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="objectSerializer.ts">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/internal/requestHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="requestHelper.ts">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -141,7 +141,7 @@ async function invokeApiMethodInternal(requestOptions: request.OptionsWithUri, c
141141
requestOptions.timeout = 1000 * confguration.timeout;
142142

143143
requestOptions.headers["x-aspose-client"] = "nodejs sdk";
144-
requestOptions.headers["x-aspose-client-version"] = "21.12";
144+
requestOptions.headers["x-aspose-client-version"] = "22.1";
145145

146146
requestOptions.uri = encodeURI(requestOptions.uri.toString());
147147

0 commit comments

Comments
 (0)