@ginger.io/beyonce
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -1,2 +0,2 @@ | ||
import { ItemWithEncryptedFields } from "@ginger.io/jay-z"; | ||
import { EncryptedJayZItem } from "@ginger.io/jay-z"; | ||
import { JayZConfig } from "./JayZConfig"; | ||
@@ -14,3 +14,3 @@ import { Key } from "./Key"; | ||
[key: string]: string; | ||
}): Promise<ItemWithEncryptedFields<T & { | ||
}): Promise<EncryptedJayZItem<T & { | ||
[key: string]: string; | ||
@@ -17,0 +17,0 @@ }, string> | (T & { |
{ | ||
"name": "@ginger.io/beyonce", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Type-safe DynamoDB query builder for TypeScript. Designed with single-table architecture in mind.", | ||
@@ -11,3 +11,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@ginger.io/jay-z": "0.0.3", | ||
"@ginger.io/jay-z": "0.0.5", | ||
"aws-sdk": "^2.640.0", | ||
@@ -14,0 +14,0 @@ "fast-json-stable-stringify": "^2.1.0", |
@@ -118,3 +118,3 @@ # Beyonce | ||
id: "1", | ||
name: "Jane Austin" | ||
name: "Jane Austen" | ||
}) | ||
@@ -224,3 +224,3 @@ | ||
const keyProvider = new KMSDataKeyProvider(kmsKeyId, new KMS()) | ||
const jayZ = new JayZ(keyProvider) | ||
const jayZ = new JayZ({ keyProvider }) | ||
@@ -227,0 +227,0 @@ // And give him to Beyonce (because she runs this relationship) |
@@ -1,2 +0,2 @@ | ||
import { ItemWithEncryptedFields, JayZ } from "@ginger.io/jay-z" | ||
import { EncryptedJayZItem } from "@ginger.io/jay-z" | ||
import { JayZConfig } from "./JayZConfig" | ||
@@ -21,3 +21,3 @@ import { Key } from "./Key" | ||
): Promise< | ||
| ItemWithEncryptedFields< | ||
| EncryptedJayZItem< | ||
T & { | ||
@@ -47,3 +47,3 @@ [key: string]: string | ||
if (jayz !== undefined) { | ||
return jayz.client.decryptItem(item as ItemWithEncryptedFields<any, any>) | ||
return jayz.client.decryptItem(item as EncryptedJayZItem<any, any>) | ||
} else { | ||
@@ -50,0 +50,0 @@ return item |
@@ -43,3 +43,3 @@ import { JayZ, StubDataKeyProvider } from "@ginger.io/jay-z" | ||
const keyProvider = await StubDataKeyProvider.forLibsodium() | ||
const jayZ = new JayZ(keyProvider) | ||
const jayZ = new JayZ({ keyProvider }) | ||
await testPutAndRetrieveItem(jayZ) | ||
@@ -50,3 +50,3 @@ }) | ||
const keyProvider = await StubDataKeyProvider.forLibsodium() | ||
const jayZ = new JayZ(keyProvider) | ||
const jayZ = new JayZ({ keyProvider }) | ||
await testPutAndRetrieveMultipleItems(jayZ) | ||
@@ -57,3 +57,3 @@ }) | ||
const keyProvider = await StubDataKeyProvider.forLibsodium() | ||
const jayZ = new JayZ(keyProvider) | ||
const jayZ = new JayZ({ keyProvider }) | ||
await testQueryWithFilter(jayZ) | ||
@@ -64,3 +64,3 @@ }) | ||
const keyProvider = await StubDataKeyProvider.forLibsodium() | ||
const jayZ = new JayZ(keyProvider) | ||
const jayZ = new JayZ({ keyProvider }) | ||
await testBatchGet(jayZ) | ||
@@ -71,3 +71,3 @@ }) | ||
const keyProvider = await StubDataKeyProvider.forLibsodium() | ||
const jayZ = new JayZ(keyProvider) | ||
const jayZ = new JayZ({ keyProvider }) | ||
await testGSIByModel(jayZ) | ||
@@ -78,3 +78,3 @@ }) | ||
const keyProvider = await StubDataKeyProvider.forLibsodium() | ||
const jayZ = new JayZ(keyProvider) | ||
const jayZ = new JayZ({ keyProvider }) | ||
await testGSIByName(jayZ) | ||
@@ -81,0 +81,0 @@ }) |
Sorry, the diff of this file is not supported yet
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
113146
+ Added@ginger.io/jay-z@0.0.5(transitive)
+ Addedwhich-typed-array@1.1.16(transitive)
- Removed@ginger.io/jay-z@0.0.3(transitive)
- Removedwhich-typed-array@1.1.15(transitive)
Updated@ginger.io/jay-z@0.0.5