@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.
- package/lib/cjs/signature.js +1 -2
- package/lib/esm/signature.js +1 -2
- package/package.json +1 -1
package/lib/cjs/signature.js
CHANGED
|
@@ -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
|
-
|
|
12
|
-
return Buffer.from(b64, "base64").toString("base64url");
|
|
11
|
+
return hmac.digest("base64url");
|
|
13
12
|
};
|
|
14
13
|
exports.hmacSign = hmacSign;
|
|
15
14
|
const generateStringForSignature = ({
|
package/lib/esm/signature.js
CHANGED
|
@@ -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
|
-
|
|
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