Comparing version 0.0.51 to 0.0.52
{ | ||
"name": "mps3", | ||
"description": "Provide clientside multiplayer and optimistic updates over any s3-compatible storage API", | ||
"version": "0.0.51", | ||
"version": "0.0.52", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": { |
import { S3 } from "@aws-sdk/client-s3"; | ||
import { expect, test, describe, beforeAll } from "bun:test"; | ||
import { MPS3, MPS3Config } from "mps3"; | ||
import { uuid } from "types"; | ||
@@ -97,2 +98,12 @@ describe("mps3", () => { | ||
test("Read no manifest", async () => { | ||
const mps3 = getClient(); | ||
const read = await mps3.get("unused_key", { | ||
manifest: { | ||
key: uuid(), | ||
}, | ||
}); | ||
expect(read).toEqual(undefined); | ||
}); | ||
test("Read unknown key resolves to undefined", async () => { | ||
@@ -99,0 +110,0 @@ const mps3 = getClient(); |
@@ -42,3 +42,3 @@ import { | ||
...config, | ||
useChecksum: config.useChecksum || true, | ||
useChecksum: config.useChecksum === false ? false : true, | ||
useVersioning: config.useVersioning || false, | ||
@@ -45,0 +45,0 @@ pollFrequency: config.pollFrequency || 1000, |
Sorry, the diff of this file is too big to display
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
400837
2297