dynamoose
Advanced tools
Comparing version 3.0.0-beta.10 to 3.0.0-beta.11
import * as DynamoDB from "@aws-sdk/client-dynamodb"; | ||
export interface DDBInterface { | ||
(): DynamoDB.DynamoDB; | ||
DynamoDB: typeof DynamoDB.DynamoDB; | ||
set: (ddb: DynamoDB.DynamoDB) => void; | ||
@@ -5,0 +6,0 @@ revert: () => void; |
@@ -7,2 +7,3 @@ "use strict"; | ||
const func = () => customDDB; | ||
func.DynamoDB = DynamoDB.DynamoDB; | ||
func.set = (ddb) => { | ||
@@ -9,0 +10,0 @@ customDDB = ddb; |
@@ -5,2 +5,3 @@ import * as DynamoDB from "@aws-sdk/client-dynamodb"; | ||
(): DynamoDB.DynamoDB; | ||
DynamoDB: typeof DynamoDB.DynamoDB; | ||
set: (ddb: DynamoDB.DynamoDB) => void; | ||
@@ -15,2 +16,3 @@ revert: () => void; | ||
const func = (): DynamoDB.DynamoDB => customDDB; | ||
func.DynamoDB = DynamoDB.DynamoDB; | ||
func.set = (ddb: DynamoDB.DynamoDB): void => { | ||
@@ -17,0 +19,0 @@ customDDB = ddb; |
{ | ||
"name": "dynamoose", | ||
"version": "3.0.0-beta.10", | ||
"version": "3.0.0-beta.11", | ||
"description": "Dynamoose is a modeling tool for Amazon's DynamoDB (inspired by Mongoose)", | ||
@@ -30,7 +30,7 @@ "homepage": "https://dynamoosejs.com", | ||
"@aws-sdk/util-dynamodb": "^3.142.0", | ||
"dynamoose-utils": "^3.0.0-beta.10", | ||
"dynamoose-utils": "^3.0.0-beta.11", | ||
"js-object-utilities": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"dynamoose-logger": "^3.0.0-beta.10" | ||
"dynamoose-logger": "^3.0.0-beta.11" | ||
}, | ||
@@ -48,3 +48,3 @@ "license": "Unlicense", | ||
], | ||
"gitHead": "b22b507c32246173e4aae3cd4e16f649a26d402c" | ||
"gitHead": "a2835f8c7c640515de32b4d2e20eb5a1f9f175cc" | ||
} |
@@ -17,2 +17,8 @@ const dynamoose = require("../../dist"); | ||
describe("DynamoDB", () => { | ||
it("Should be a function", () => { | ||
expect(dynamoose.aws.ddb.DynamoDB).toBeInstanceOf(Function); | ||
}); | ||
}); | ||
describe("Set", () => { | ||
@@ -19,0 +25,0 @@ afterEach(() => { |
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
1347970
29868