@inweb/client 26.11.0 → 26.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Api/File.d.ts CHANGED
@@ -49,10 +49,7 @@ export declare class File extends Endpoint {
49
49
  * Returns a list of file formats in which the active version of the file was exported.
50
50
  *
51
51
  * To export file to one of the supported formats run the File Converter job using
52
- * {@link createJob | createJob()}. To download exported file use
53
- * {@link downloadResource | downloadResource()}.
54
- *
55
- * For an example of exporting files to other formats, see the {@link downloadResource} help.
52
+ * {@link createJob | createJob()}. For an example, see the {@link downloadResource} help.
56
53
  *
57
54
  * @readonly
58
55
  */
@@ -358,9 +355,8 @@ export declare class File extends Endpoint {
358
355
  * await job.waitForDone();
359
356
  * const pdfResourceName = file.exports.find((x) => x.endsWith(".pdf"));
360
357
  * const arrayBuffer = await file.downloadResource(pdfResourceName);
361
- * const blob = new Blob([arrayBuffer]);
362
358
  * const fileName = file.name + ".pdf";
363
- * FileSaver.saveAs(blob, fileName);
359
+ * FileSaver.saveAs(new Blob([arrayBuffer]), fileName);
364
360
  * ```
365
361
  *
366
362
  * @param dataId - Resource file name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inweb/client",
3
- "version": "26.11.0",
3
+ "version": "26.12.1",
4
4
  "description": "JavaScript REST API client for the Open Cloud Server",
5
5
  "homepage": "https://cloud.opendesign.com/docs/index.html",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -26,7 +26,7 @@
26
26
  "docs": "typedoc"
27
27
  },
28
28
  "dependencies": {
29
- "@inweb/eventemitter2": "~26.11.0"
29
+ "@inweb/eventemitter2": "~26.12.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "fflate": "^0.8.2"
package/src/Api/File.ts CHANGED
@@ -124,10 +124,7 @@ export class File extends Endpoint {
124
124
  * Returns a list of file formats in which the active version of the file was exported.
125
125
  *
126
126
  * To export file to one of the supported formats run the File Converter job using
127
- * {@link createJob | createJob()}. To download exported file use
128
- * {@link downloadResource | downloadResource()}.
129
- *
130
- * For an example of exporting files to other formats, see the {@link downloadResource} help.
127
+ * {@link createJob | createJob()}. For an example, see the {@link downloadResource} help.
131
128
  *
132
129
  * @readonly
133
130
  */
@@ -580,9 +577,8 @@ export class File extends Endpoint {
580
577
  * await job.waitForDone();
581
578
  * const pdfResourceName = file.exports.find((x) => x.endsWith(".pdf"));
582
579
  * const arrayBuffer = await file.downloadResource(pdfResourceName);
583
- * const blob = new Blob([arrayBuffer]);
584
580
  * const fileName = file.name + ".pdf";
585
- * FileSaver.saveAs(blob, fileName);
581
+ * FileSaver.saveAs(new Blob([arrayBuffer]), fileName);
586
582
  * ```
587
583
  *
588
584
  * @param dataId - Resource file name.