From 04bb0f4ae7d029e92432af73d13b2b8daddd4864 Mon Sep 17 00:00:00 2001 From: Lawrence Wagerfield Date: Fri, 3 May 2024 12:59:00 +0100 Subject: [PATCH] Add docs for Bytescale Antivirus API --- README.md | 17 +++++++++++++++++ lib/package-lock.json | 30 +++++++++++++++--------------- lib/package.json | 2 +- 3 files changed, 33 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0387640..15bd0d5 100644 --- a/README.md +++ b/README.md @@ -523,6 +523,23 @@ UrlBuilder.url({ [Archive Processing API Docs »](https://www.bytescale.com/docs/archive-processing-api) +#### Antivirus + +To scan the file `example.zip` for viruses, use the following: + +```javascript +// Returns: "https://upcdn.io/1234abc/antivirus/example.zip" +UrlBuilder.url({ + accountId: "1234abc", + filePath: "/example.zip", + options: { + transformation: "antivirus" + } +}); +``` + +[Antivirus API Docs »](https://www.bytescale.com/docs/antivirus-api) + ## 🙋 Can I use my own storage? Bytescale supports AWS S3, Cloudflare R2, Google Storage, DigitalOcean, and Bytescale Storage. diff --git a/lib/package-lock.json b/lib/package-lock.json index 33948b2..70f1b5f 100644 --- a/lib/package-lock.json +++ b/lib/package-lock.json @@ -1,15 +1,15 @@ { "name": "@bytescale/upload-widget", - "version": "4.25.0", + "version": "4.26.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@bytescale/upload-widget", - "version": "4.25.0", + "version": "4.26.0", "license": "MIT", "dependencies": { - "@bytescale/sdk": "^3.37.0", + "@bytescale/sdk": "^3.38.3", "classnames": "^2.2.6", "preact": "^10.20.2" }, @@ -2024,9 +2024,9 @@ } }, "node_modules/@bytescale/sdk": { - "version": "3.37.0", - "resolved": "https://registry.npmjs.org/@bytescale/sdk/-/sdk-3.37.0.tgz", - "integrity": "sha512-tACs7lIKQaYA95vktae3IX+kH+8+c8hIqCmupkkVq9b5bOn8JRE2F8L04sM3mtUnKUYK4FYxsUTn74JLLre5vQ==" + "version": "3.38.3", + "resolved": "https://registry.npmjs.org/@bytescale/sdk/-/sdk-3.38.3.tgz", + "integrity": "sha512-fKMA9JmcqVPM1wlBS8vx4K/i3GhYJ8pMbPJCS/ykNARfGfjSAbMefU2OwgAC8AN7LITi7d6r9sUj+A96oJSPIw==" }, "node_modules/@bytescale/style-loader": { "version": "3.3.1-forked.5", @@ -7201,9 +7201,9 @@ "dev": true }, "node_modules/ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", "dev": true, "dependencies": { "jake": "^10.8.5" @@ -17801,9 +17801,9 @@ } }, "@bytescale/sdk": { - "version": "3.37.0", - "resolved": "https://registry.npmjs.org/@bytescale/sdk/-/sdk-3.37.0.tgz", - "integrity": "sha512-tACs7lIKQaYA95vktae3IX+kH+8+c8hIqCmupkkVq9b5bOn8JRE2F8L04sM3mtUnKUYK4FYxsUTn74JLLre5vQ==" + "version": "3.38.3", + "resolved": "https://registry.npmjs.org/@bytescale/sdk/-/sdk-3.38.3.tgz", + "integrity": "sha512-fKMA9JmcqVPM1wlBS8vx4K/i3GhYJ8pMbPJCS/ykNARfGfjSAbMefU2OwgAC8AN7LITi7d6r9sUj+A96oJSPIw==" }, "@bytescale/style-loader": { "version": "3.3.1-forked.5", @@ -21331,9 +21331,9 @@ "dev": true }, "ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", "dev": true, "requires": { "jake": "^10.8.5" diff --git a/lib/package.json b/lib/package.json index edbec47..7859ce2 100644 --- a/lib/package.json +++ b/lib/package.json @@ -53,7 +53,7 @@ "test": "npx wdio run tests/wdio.conf.ts --autoCompileOpts.tsNodeOpts.project=tests/tsconfig.json" }, "dependencies": { - "@bytescale/sdk": "^3.37.0", + "@bytescale/sdk": "^3.38.3", "classnames": "^2.2.6", "preact": "^10.20.2" },