Skip to content

Commit a50816c

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 2b9c1e9 + 6b033db commit a50816c

31 files changed

+2863
-1685
lines changed

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
bdd
2+
dist
3+
examples
4+
ExamplesData
5+
node_modules
6+
reports
7+
scripts
8+
TestData

.eslintrc.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended"
9+
],
10+
"parser": "@typescript-eslint/parser",
11+
"parserOptions": {
12+
"ecmaVersion": "latest",
13+
"sourceType": "module"
14+
},
15+
"plugins": [
16+
"@typescript-eslint"
17+
],
18+
"rules": {
19+
"no-prototype-builtins": "off",
20+
"no-useless-catch": "off",
21+
"@typescript-eslint/no-namespace": "off",
22+
"@typescript-eslint/no-explicit-any": "off",
23+
"@typescript-eslint/no-unused-vars": "off",
24+
"@typescript-eslint/no-var-requires": "off",
25+
"@typescript-eslint/no-inferrable-types": "off",
26+
"@typescript-eslint/no-array-constructor": "off",
27+
"@typescript-eslint/no-extra-semi": "off"
28+
}
29+
}

.vscode/tasks.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,5 @@
3232
"isDefault": true
3333
}
3434
},
35-
{
36-
"label": "runTsLint",
37-
"type": "npm",
38-
"script": "lint",
39-
"problemMatcher": {
40-
"base": "$tslint5",
41-
"fileLocation": "relative"
42-
}
43-
},
44-
{
45-
"label": "runCucumber",
46-
"type": "gulp",
47-
"task": "cucumber",
48-
"problemMatcher": [],
49-
"group": "test"
50-
},
5135
]
5236
}

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def runtests(dockerImageVersion)
6767
]) {
6868
sh "npm install"
6969

70-
sh "npm run gulp build"
70+
sh "npm run tsc"
7171
if (params.branch == 'refs/heads/master'){
7272
sh "npm run lint"
7373
}
@@ -88,7 +88,7 @@ def runtests(dockerImageVersion)
8888
gitlabCommitStatus("bdd-tests") {
8989
stage('bdd-tests'){
9090
try {
91-
sh "npm run gulp cucumber"
91+
sh "npm run cucumber"
9292
} finally {
9393
cucumber 'reports/**.json'
9494
}

JenkinsfileRelease

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ node('words-linux') {
2828
stage('build package')
2929
{
3030
sh "npm install"
31-
sh "npm run gulp buildRelease"
31+
sh "npm run release"
3232
packageName = sh(returnStdout: true, script: 'npm pack').trim()
3333

3434
stash name: "newPackage", includes: "${packageName}"
@@ -49,7 +49,7 @@ node('words-linux') {
4949

5050
gitlabCommitStatus("rebuild with the package") {
5151
stage('rebuild with the package'){
52-
sh "npm run gulp build"
52+
sh "npm run tsc"
5353

5454
if (params.branch == 'refs/heads/master'){
5555
sh "npm run lint"
@@ -70,7 +70,7 @@ node('words-linux') {
7070
gitlabCommitStatus("bdd package tests") {
7171
stage('bdd package tests'){
7272
try {
73-
sh "npm run gulp cucumber"
73+
sh "npm run cucumber"
7474
} finally {
7575
cucumber 'reports/**.json'
7676
}

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,19 @@ 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.6
20+
21+
- Added 'DeleteBookmark' and 'DeleteBookmarkOnline' API methods for delete bookmarks by name from the document.
22+
- Added 'DeleteBookmarks' and 'DeleteBookmarksOnline' API methods for delete all bookmarks from the document.
23+
- Added 'InsertBookmark' and 'InsertBookmarkOnline' API methods for create new bookmarks in the document.
24+
- Support all save formats for 'CreateDocument' operation.
25+
26+
1927
## Enhancements in Version 22.5
2028

2129
- Internal API fixes and improvments.
2230

31+
2332
## Enhancements in Version 22.4
2433

2534
- Added ExportShapesAsSvg to HtmlSaveOption.
15.3 KB
Binary file not shown.

bdd/steps/common/fileResultSteps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
import { Buffer } from "buffer";
2626
import { expect } from "chai";
27-
import { Then } from "cucumber";
27+
import { Then } from "@cucumber/cucumber";
2828

2929
Then(/^document is returned as an attachment$/, function() {
3030
expect(this.response.body).to.is.instanceof(Buffer);

bdd/steps/common/specifyOutputFormatRequestSteps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
* SOFTWARE.
2323
*/
2424

25-
import { Given } from "cucumber";
25+
import { Given } from "@cucumber/cucumber";
2626
import * as BaseTest from "../../../test/baseTest";
2727

28-
Given(/^I have specified format (.*) document to be converted$/, function(format) {
28+
Given(/^I have specified format (.*) document to be converted$/, function(format) {
2929
this.request.format = format;
3030
});
3131

bdd/steps/common/storageSteps.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,21 @@
2323
*/
2424

2525
import { expect } from "chai";
26-
import { Given, Then } from "cucumber";
26+
import { Given, Then } from "@cucumber/cucumber";
2727
import * as BaseTest from "../../../test/baseTest";
2828
import { DeleteFileRequest, DownloadFileRequest } from "../../../src/api";
2929

3030
Given(/^I have uploaded document with name (.*) and subfolder is (.*) to storage$/, {timeout: 60000}, async function (documentName, folder) {
3131

32-
const wordsApi = BaseTest.initializeWordsApi();
33-
3432
const remotePath = BaseTest.remoteBaseFolder + folder;
3533
const localPath = BaseTest.localBaseTestDataFolder + folder + documentName;
3634

37-
const result = await wordsApi.uploadFileToStorage(remotePath + documentName, localPath);
35+
const result = await this.wordsApi.uploadFileToStorage(remotePath + documentName, localPath);
3836
expect(result.response.statusMessage).to.equal("OK");
3937
});
4038

4139
Given(/^There is no file (.*) on storage in (.*) folder$/, {timeout: 60000}, async function (documentName, folder) {
4240

43-
const wordsApi = BaseTest.initializeWordsApi();
44-
4541
let remotePath = BaseTest.remoteBaseFolder + folder + documentName;
4642
if (folder === "output") {
4743
remotePath = BaseTest.remoteBaseTestOutFolder + documentName;
@@ -50,14 +46,12 @@ Given(/^There is no file (.*) on storage in (.*) folder$/, {timeout: 60000}, asy
5046
const request = new DeleteFileRequest();
5147
request.path = remotePath;
5248

53-
const result = await wordsApi.deleteFile(request);
49+
const result = await this.wordsApi.deleteFile(request);
5450
expect(result.statusMessage).to.equal("OK");
5551
});
5652

5753
Then(/^document (.*) is existed on storage in (.*) folder$/, {timeout: 60000}, async function (documentName, folder) {
5854

59-
const wordsApi = BaseTest.initializeWordsApi();
60-
6155
let remotePath = BaseTest.remoteBaseFolder + folder + documentName;
6256

6357
if (folder === "output") {
@@ -67,6 +61,6 @@ Then(/^document (.*) is existed on storage in (.*) folder$/, {timeout: 60000}, a
6761
const request = new DownloadFileRequest();
6862
request.path = remotePath;
6963

70-
const result = await wordsApi.downloadFile(request);
64+
const result = await this.wordsApi.downloadFile(request);
7165
expect(result.response.statusMessage).to.equal("OK");
7266
});

0 commit comments

Comments
 (0)