We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5abdddf commit 0d4d024Copy full SHA for 0d4d024
package.json
@@ -41,6 +41,7 @@
41
"cherow": "^1.6.9",
42
"clone": "^2.1.1",
43
"countries-list": "^2.5.1",
44
+ "create-hmac": "^1.1.7",
45
"is-buffer": "^2.0.3",
46
"marked": "^1.1.0",
47
"match-all": "^1.2.6",
src/image_proxy_client.js
@@ -1,4 +1,4 @@
1
-import crypto from 'crypto';
+import createHmac from 'create-hmac';
2
import querystring from 'querystring';
3
4
/**
@@ -26,7 +26,7 @@ export default class ImageProxyClient {
26
}
27
28
_createDigest(string) {
29
- const hmac = crypto.createHmac('sha1', this.hmacKey).update(string);
+ const hmac = createHmac('sha1', this.hmacKey).update(string);
30
return hmac.digest('hex');
31
32
0 commit comments