@omni-co/embed 0.14.1-alpha.1 → 0.14.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,7 @@ const crypto_1 = __importDefault(require("crypto"));
8
8
  const hmacSign = (data, secret) => {
9
9
  const hmac = crypto_1.default.createHmac("sha256", secret);
10
10
  hmac.update(data);
11
- const b64 = hmac.digest("base64");
12
- return Buffer.from(b64, "base64").toString("base64url");
11
+ return hmac.digest("base64url");
13
12
  };
14
13
  exports.hmacSign = hmacSign;
15
14
  const generateStringForSignature = ({
@@ -2,8 +2,7 @@ import crypto from "crypto";
2
2
  export const hmacSign = (data, secret) => {
3
3
  const hmac = crypto.createHmac("sha256", secret);
4
4
  hmac.update(data);
5
- const b64 = hmac.digest("base64");
6
- return Buffer.from(b64, "base64").toString("base64url");
5
+ return hmac.digest("base64url");
7
6
  };
8
7
  const generateStringForSignature = ({
9
8
  // Required parameters
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.14.1-alpha.1",
2
+ "version": "0.14.1-alpha.2",
3
3
  "license": "MIT",
4
4
  "name": "@omni-co/embed",
5
5
  "author": "Nate Agrin <nate@exploreomni.com>",