Skip to content

Commit

Permalink
Release 24.7 (#93)
Browse files Browse the repository at this point in the history
* Insert example from example.js

* Update dependencies

* Bump version to 24.7
  • Loading branch information
Denis-Averin authored Jul 26, 2024
1 parent 3e7194b commit dc48d2c
Show file tree
Hide file tree
Showing 7 changed files with 348 additions and 259 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@ example:
./scripts/extract_js_from_README.sh > "example.js"
./scripts/run_example.sh

.PHONY: insert-example
insert-example:
./scripts/insert-example.bash

.PHONY: after-gen
after-gen: format lock
after-gen: format lock insert-example
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![npm](https://img.shields.io/npm/v/aspose-barcode-cloud-node)](https://www.npmjs.com/package/aspose-barcode-cloud-node)

+ API version: 3.0
+ Package version: 24.6.0
+ Package version: 24.7.0

## Demo applications

Expand Down Expand Up @@ -89,6 +89,7 @@ generateBarcode(api)
console.error(JSON.stringify(err, null, 2));
process.exitCode = 1;
});

```

Every method returns a chainable promise.
Expand Down Expand Up @@ -134,3 +135,4 @@ StorageApi | [**getDiscUsage**](docs/index.md#getdiscusage) | **GET** /barcode/s
StorageApi | [**getFileVersions**](docs/index.md#getfileversions) | **GET** /barcode/storage/version/{path} | Get file versions
StorageApi | [**objectExists**](docs/index.md#objectexists) | **GET** /barcode/storage/exist/{path} | Check if file or folder exists
StorageApi | [**storageExists**](docs/index.md#storageexists) | **GET** /barcode/storage/{storageName}/exist | Check if storage exists

541 changes: 291 additions & 250 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aspose-barcode-cloud-node",
"version": "24.6.0",
"version": "24.7.0",
"description": "Aspose.BarCode Cloud SDK for Node.js",
"homepage": "https://products.aspose.cloud/barcode/nodejs",
"repository": {
Expand Down Expand Up @@ -150,9 +150,9 @@
"@types/uuid": "^10.0.0",
"dts-cli": "^2.0.5",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-prettier": "^5.2.1",
"npm-check-updates": "^16.14.20",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"ts-jest": "^29.1.3",
"tslib": "^2.6.3",
"uuid": "^10.0.0"
Expand Down
8 changes: 8 additions & 0 deletions scripts/insert-example.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail

cd "$( dirname "${BASH_SOURCE[0]}" )/.."

python "./scripts/insert-example.py" "README.template" > "README.md"

rm "README.template"
34 changes: 34 additions & 0 deletions scripts/insert-example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import argparse
import os
import re
import typing

REPLACE_RE = re.compile(r'^%insert (?P<file_name>[^%]+)%$', re.MULTILINE)


def read_text(filename: str) -> str:
with open(filename, "rt") as rf:
text = rf.read()
return text


def main(template: typing.TextIO) -> None:
content: str = template.read()

def sub_match(match):
file_name = match.group('file_name')
return read_text(file_name)

text = REPLACE_RE.sub(sub_match, content)
print(text)


def parse_args() -> typing.Dict[str, typing.Any]:
parser = argparse.ArgumentParser()
parser.add_argument("template", type=argparse.FileType("rt"), help="README.template")
kwargs = vars(parser.parse_args())
return kwargs


if __name__ == "__main__":
main(**parse_args())
8 changes: 4 additions & 4 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ let typeMap: { [index: string]: any } = {
export class BarcodeApi {
protected defaultHeaders: any = {
'x-aspose-client': 'nodejs sdk',
'x-aspose-client-version': '24.6.0',
'x-aspose-client-version': '24.7.0',
};
protected _configuration: Configuration;
private _client: HttpClient;
Expand Down Expand Up @@ -1488,7 +1488,7 @@ export class BarcodeApi {
export class FileApi {
protected defaultHeaders: any = {
'x-aspose-client': 'nodejs sdk',
'x-aspose-client-version': '24.6.0',
'x-aspose-client-version': '24.7.0',
};
protected _configuration: Configuration;
private _client: HttpClient;
Expand Down Expand Up @@ -1756,7 +1756,7 @@ export class FileApi {
export class FolderApi {
protected defaultHeaders: any = {
'x-aspose-client': 'nodejs sdk',
'x-aspose-client-version': '24.6.0',
'x-aspose-client-version': '24.7.0',
};
protected _configuration: Configuration;
private _client: HttpClient;
Expand Down Expand Up @@ -1998,7 +1998,7 @@ export class FolderApi {
export class StorageApi {
protected defaultHeaders: any = {
'x-aspose-client': 'nodejs sdk',
'x-aspose-client-version': '24.6.0',
'x-aspose-client-version': '24.7.0',
};
protected _configuration: Configuration;
private _client: HttpClient;
Expand Down

0 comments on commit dc48d2c

Please sign in to comment.