diff --git a/manifest.json b/manifest.json index 0b6839c..01e3863 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "share-note", "name": "Share Note", - "version": "0.5.6", + "version": "0.5.7", "minAppVersion": "0.15.0", "description": "Instantly share a note, with full styling. Data is shared encrypted by default and only you have the key.", "author": "Alan Grainger", diff --git a/package-lock.json b/package-lock.json index 04b0f1d..5b670fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,17 @@ { "name": "share-note", - "version": "0.5.3", + "version": "0.5.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "share-note", - "version": "0.5.3", + "version": "0.5.6", "license": "MIT", "dependencies": { - "data-uri-to-buffer": "^6.0.1" + "buffer": "^6.0.3", + "data-uri-to-buffer": "^6.0.1", + "safe-buffer": "^5.2.1" }, "devDependencies": { "@types/node": "^16.11.6", @@ -963,6 +965,25 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -985,6 +1006,29 @@ "node": ">=8" } }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, "node_modules/builtin-modules": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", @@ -2108,6 +2152,25 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/ignore": { "version": "5.2.4", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", @@ -2982,6 +3045,25 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/safe-regex-test": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", diff --git a/package.json b/package.json index 7be94b7..9bf66fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "share-note", - "version": "0.5.6", + "version": "0.5.7", "description": "Instantly share a note, with full styling. Data is stored encrypted on the server and only you have the key.", "main": "main.js", "scripts": { @@ -24,6 +24,7 @@ "typescript": "4.7.4" }, "dependencies": { - "data-uri-to-buffer": "^6.0.1" + "data-uri-to-buffer": "^6.0.1", + "safe-buffer": "^5.2.1" } } diff --git a/src/libraries/FileTypes.ts b/src/libraries/FileTypes.ts index d73ee9d..7210b1d 100644 --- a/src/libraries/FileTypes.ts +++ b/src/libraries/FileTypes.ts @@ -1,5 +1,7 @@ // https://en.wikipedia.org/wiki/List_of_file_signatures +const Buffer = require('safe-buffer').Buffer + interface IFileType { extension: string mimetypes: string[] diff --git a/versions.json b/versions.json index 7764a1a..3aba3c4 100644 --- a/versions.json +++ b/versions.json @@ -5,5 +5,6 @@ "0.5.3": "0.15.0", "0.5.4": "0.15.0", "0.5.5": "0.15.0", - "0.5.6": "0.15.0" + "0.5.6": "0.15.0", + "0.5.7": "0.15.0" }