@boulevard/blvd-book-sdk
Advanced tools
Comparing version 0.0.18 to 1.0.0
{ | ||
"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}`; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
692323
8527
0