From d2cc6606057a851b60f6814d275bbc18865accc5 Mon Sep 17 00:00:00 2001 From: Lawrence Wagerfield Date: Mon, 6 May 2024 23:26:55 +0100 Subject: [PATCH] Upgrade @bytescale/upload-widget package --- README.md | 19 ++++++++++++++++++- package-lock.json | 46 +++++++++++++++++++++++----------------------- package.json | 8 ++++---- 3 files changed, 45 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index cb08d7d..3dc3bea 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Bytescale Upload Widget for jQuery -

Beautiful File Upload Widget for jQuery
(With Built-in Cloud Storage)

+

Beautiful File Upload Widget for jQuery
(Works out-the-box, storage included)


@@ -490,6 +490,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/package-lock.json b/package-lock.json index 36ef8b6..a000c83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "4.14.0", "license": "MIT", "dependencies": { - "@bytescale/upload-widget": "^4.24.0" + "@bytescale/upload-widget": "^4.27.0" }, "devDependencies": { "@babel/cli": "7.24.1", @@ -1862,18 +1862,18 @@ "dev": true }, "node_modules/@bytescale/sdk": { - "version": "3.27.0", - "resolved": "https://registry.npmjs.org/@bytescale/sdk/-/sdk-3.27.0.tgz", - "integrity": "sha512-s5mjcybwtBLrkEtbIM7hyNzQB2zdTrj83ebLtFP77JNpjaiLBWjuaz4ZTUgty08YXdJPzNEFWp5EVko4SgdLNA==" + "version": "3.39.0", + "resolved": "https://registry.npmjs.org/@bytescale/sdk/-/sdk-3.39.0.tgz", + "integrity": "sha512-6/PBIzH1ffZdPeqc/qFSO8ac+yZ1RExQto65XqdukaRvE9IrxrZKNKbvoWZvIGTu4QYAoVqPqt7437VKOtpjZg==" }, "node_modules/@bytescale/upload-widget": { - "version": "4.24.0", - "resolved": "https://registry.npmjs.org/@bytescale/upload-widget/-/upload-widget-4.24.0.tgz", - "integrity": "sha512-n8IDXt5saZ1Z4OvBi7PlXUItUn0tq80qDZYCHHLPpP5f/IlYvb8PjHJXTZCA1BIAjlUmlBtCFgVRI26abeYhAQ==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@bytescale/upload-widget/-/upload-widget-4.27.0.tgz", + "integrity": "sha512-exh415C59sew5LEwYbwaOUvh39nJqZlRePs/qRsacsoXky/npda1bDibsZWLC+nmsunz59uWPDJIFoUOD4shfw==", "dependencies": { - "@bytescale/sdk": "^3.27.0", + "@bytescale/sdk": "^3.38.3", "classnames": "^2.2.6", - "preact": "^10.6.5" + "preact": "^10.20.2" } }, "node_modules/@cspotcode/source-map-consumer": { @@ -14062,9 +14062,9 @@ } }, "node_modules/preact": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.11.0.tgz", - "integrity": "sha512-Fk6+vB2kb6mSJfDgODq0YDhMfl0HNtK5+Uc9QqECO4nlyPAQwCI+BKyWO//idA7ikV7o+0Fm6LQmNuQi1wXI1w==", + "version": "10.21.0", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.21.0.tgz", + "integrity": "sha512-aQAIxtzWEwH8ou+OovWVSVNlFImL7xUCwJX3YMqA3U8iKCNC34999fFOnWjYNsylgfPgMexpbk7WYOLtKr/mxg==", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" @@ -19208,18 +19208,18 @@ "dev": true }, "@bytescale/sdk": { - "version": "3.27.0", - "resolved": "https://registry.npmjs.org/@bytescale/sdk/-/sdk-3.27.0.tgz", - "integrity": "sha512-s5mjcybwtBLrkEtbIM7hyNzQB2zdTrj83ebLtFP77JNpjaiLBWjuaz4ZTUgty08YXdJPzNEFWp5EVko4SgdLNA==" + "version": "3.39.0", + "resolved": "https://registry.npmjs.org/@bytescale/sdk/-/sdk-3.39.0.tgz", + "integrity": "sha512-6/PBIzH1ffZdPeqc/qFSO8ac+yZ1RExQto65XqdukaRvE9IrxrZKNKbvoWZvIGTu4QYAoVqPqt7437VKOtpjZg==" }, "@bytescale/upload-widget": { - "version": "4.24.0", - "resolved": "https://registry.npmjs.org/@bytescale/upload-widget/-/upload-widget-4.24.0.tgz", - "integrity": "sha512-n8IDXt5saZ1Z4OvBi7PlXUItUn0tq80qDZYCHHLPpP5f/IlYvb8PjHJXTZCA1BIAjlUmlBtCFgVRI26abeYhAQ==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@bytescale/upload-widget/-/upload-widget-4.27.0.tgz", + "integrity": "sha512-exh415C59sew5LEwYbwaOUvh39nJqZlRePs/qRsacsoXky/npda1bDibsZWLC+nmsunz59uWPDJIFoUOD4shfw==", "requires": { - "@bytescale/sdk": "^3.27.0", + "@bytescale/sdk": "^3.38.3", "classnames": "^2.2.6", - "preact": "^10.6.5" + "preact": "^10.20.2" } }, "@cspotcode/source-map-consumer": { @@ -28558,9 +28558,9 @@ } }, "preact": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.11.0.tgz", - "integrity": "sha512-Fk6+vB2kb6mSJfDgODq0YDhMfl0HNtK5+Uc9QqECO4nlyPAQwCI+BKyWO//idA7ikV7o+0Fm6LQmNuQi1wXI1w==" + "version": "10.21.0", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.21.0.tgz", + "integrity": "sha512-aQAIxtzWEwH8ou+OovWVSVNlFImL7xUCwJX3YMqA3U8iKCNC34999fFOnWjYNsylgfPgMexpbk7WYOLtKr/mxg==" }, "prelude-ls": { "version": "1.2.1", diff --git a/package.json b/package.json index 23fe8dc..05ba1b5 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "jquery": "^3.6.0" }, "dependencies": { - "@bytescale/upload-widget": "^4.24.0" + "@bytescale/upload-widget": "^4.27.0" }, "devDependencies": { "@babel/cli": "7.24.1", @@ -116,10 +116,10 @@ "wdio-chromedriver-service": "^7.3.2", "wdio-wait-for": "^2.2.5", "webdriverio": "^7.19.3", - "webpack-bundle-analyzer": "4.2.0", - "webpack-node-externals": "2.5.2", "webpack": "5.90.3", + "webpack-bundle-analyzer": "4.2.0", "webpack-cli": "4.10.0", - "webpack-dev-server": "4.15.2" + "webpack-dev-server": "4.15.2", + "webpack-node-externals": "2.5.2" } }