SHA256
1
0
forked from pool/bitwarden
bitwarden/argon2-binary-path.patch
Bruno Pitrus a73cdd39e1 Accepting request 1112885 from home:dziobian:gulgul-ultron:19
- New upstream release 2023.9.0
  * Added password history to Bitwarden export
  * Accessibility improvement for fingerprint-phrases
  * Update dark theme to match web app
  * Update AnonAddy to addy.io
  * Remove flags from environment selector
  * Security fixes
  * Bug-fix for password re-prompt
  * Bug-fix for Duo prompt

OBS-URL: https://build.opensuse.org/request/show/1112885
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/bitwarden?expand=0&rev=30
2023-09-21 17:12:26 +00:00

26 lines
1.0 KiB
Diff

Remove dependency on node-pre-gyp which brings a lot of garbage
--- bitwarden/node_modules/argon2/argon2.js.old 2023-02-18 17:54:54.041287237 +0100
+++ bitwarden/node_modules/argon2/argon2.js 2023-02-18 19:49:49.145206908 +0100
@@ -3,9 +3,8 @@
const { randomBytes, timingSafeEqual } = require("crypto");
const path = require("path");
const { promisify } = require("util");
-const binary = require("@mapbox/node-pre-gyp");
-const bindingPath = binary.find(path.resolve(__dirname, "./package.json"));
+const bindingPath = "./lib/binding/napi-v3/argon2.node"
const { hash: _hash } = require(bindingPath);
const { deserialize, serialize } = require("@phc/format");
--- bitwarden/node_modules/argon2/package.json.old 2023-02-18 17:54:54.141337239 +0100
+++ bitwarden/node_modules/argon2/package.json 2023-02-18 19:51:32.473209049 +0100
@@ -46,7 +46,6 @@
},
"homepage": "https://github.com/ranisalt/node-argon2#readme",
"dependencies": {
- "@mapbox/node-pre-gyp": "^1.0.11",
"@phc/format": "^1.0.0",
"node-addon-api": "^7.0.0"
},