Socket
Socket
Sign inDemoInstall

@boulevard/blvd-book-sdk

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boulevard/blvd-book-sdk - npm Package Compare versions

Comparing version 0.0.18 to 1.0.0

2

package.json
{
"name": "@boulevard/blvd-book-sdk",
"version": "0.0.18",
"version": "1.0.0",
"description": "A JS client for the Boulevard API",

@@ -5,0 +5,0 @@ "main": "lib/blvd.js",

@@ -65,2 +65,10 @@ import { Blvd } from "../src/blvd";

test("create and set location", async () => {
const locations = await anon.locations.list();
const cart = await anon.carts.create();
expect(cart).toBeInstanceOf(Cart);
const locationCart = await cart.setLocation(locations[0]);
expect(locationCart).toBeInstanceOf(Cart);
});
test("staff variants", async () => {

@@ -234,5 +242,7 @@ const locations = await anon.locations.list();

const key = Buffer.from(process.env.API_SECRET_KEY, "base64");
const signature = createHmac("sha256", key).update(payload).digest("base64");
const signature = createHmac("sha256", key)
.update(payload)
.digest("base64");
return `${signature}${payload}`;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc