From 4367eed09cc305974244c049ea90a19cc2b19631 Mon Sep 17 00:00:00 2001 From: "Julio L. Muller" Date: Fri, 8 Aug 2025 15:08:16 -0300 Subject: [PATCH 1/2] Add file2arraybuffer w/ npm auto-update --- packages/f/file2arraybuffer.json | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 packages/f/file2arraybuffer.json diff --git a/packages/f/file2arraybuffer.json b/packages/f/file2arraybuffer.json new file mode 100644 index 000000000..33370b10c --- /dev/null +++ b/packages/f/file2arraybuffer.json @@ -0,0 +1,37 @@ +{ + "name": "file2arraybuffer", + "filename": "file-to-arraybuffer.min.js", + "homepage": "https://github.com/juliolmuller/file2arraybuffer-js", + "description": "Straight-forward function to convert files into ArrayBuffer objects.", + "license": "MIT", + "authors": [ + { + "name": "Julio L. Muller" + } + ], + "keywords": [ + "file", + "blob", + "binary", + "buffer", + "arraybuffer", + "attachment", + "upload" + ], + "repository": { + "type": "git", + "url": "https://github.com/juliolmuller/file2arraybuffer-js" + }, + "autoupdate": { + "source": "npm", + "target": "file2arraybuffer", + "fileMap": [ + { + "basePath": "dist", + "files": [ + "**/*" + ] + } + ] + } +} From 72ae0bd1a50153c6909d48a05a488209af1405f0 Mon Sep 17 00:00:00 2001 From: "Julio L. Muller" Date: Fri, 8 Aug 2025 22:07:02 -0300 Subject: [PATCH 2/2] Adjust code as per review at https://github.com/cdnjs/packages/pull/2034#discussion_r2263831618 Co-authored-by: Matt Cowley --- packages/f/file2arraybuffer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/f/file2arraybuffer.json b/packages/f/file2arraybuffer.json index 33370b10c..d8d899114 100644 --- a/packages/f/file2arraybuffer.json +++ b/packages/f/file2arraybuffer.json @@ -29,7 +29,7 @@ { "basePath": "dist", "files": [ - "**/*" + "*.js" ] } ]