@aesop-fables/containr-dynamofx 0.3.0 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/DynamoFactory.d.ts +2 -2
- package/lib/DynamoFactory.js +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/package.json +32 -24
package/lib/DynamoFactory.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DynamoDB } from 'aws-sdk';
|
|
1
|
+
import { DynamoDB, DynamoDBClientConfig } from '@aws-sdk/client-dynamodb';
|
|
2
2
|
export declare class DynamoFactory {
|
|
3
|
-
static createFullClient(configuration?:
|
|
3
|
+
static createFullClient(configuration?: DynamoDBClientConfig): DynamoDB;
|
|
4
4
|
}
|
package/lib/DynamoFactory.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DynamoFactory = void 0;
|
|
4
|
-
const
|
|
4
|
+
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
5
|
class DynamoFactory {
|
|
6
6
|
static createFullClient(configuration) {
|
|
7
|
-
return new
|
|
7
|
+
return new client_dynamodb_1.DynamoDB(configuration !== null && configuration !== void 0 ? configuration : {});
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.DynamoFactory = DynamoFactory;
|
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { DynamoFactory } from './DynamoFactory';
|
|
|
3
3
|
import { DynamoServices } from './DynamoServices';
|
|
4
4
|
import { IDynamoOperation } from './IDynamoOperation';
|
|
5
5
|
import { DynamoService, IDynamoService } from './IDynamoService';
|
|
6
|
-
import {
|
|
6
|
+
import { DynamoDBClientConfig } from '@aws-sdk/client-dynamodb';
|
|
7
7
|
export { IDynamoOperation, IDynamoService, DynamoService, DynamoFactory, DynamoServices };
|
|
8
8
|
export * from './resolveEnvironmentSettings';
|
|
9
|
-
export declare const useDynamo: (options:
|
|
9
|
+
export declare const useDynamo: (options: DynamoDBClientConfig) => IServiceModule;
|
package/lib/index.js
CHANGED
|
@@ -22,10 +22,10 @@ const DynamoServices_1 = require("./DynamoServices");
|
|
|
22
22
|
Object.defineProperty(exports, "DynamoServices", { enumerable: true, get: function () { return DynamoServices_1.DynamoServices; } });
|
|
23
23
|
const IDynamoService_1 = require("./IDynamoService");
|
|
24
24
|
Object.defineProperty(exports, "DynamoService", { enumerable: true, get: function () { return IDynamoService_1.DynamoService; } });
|
|
25
|
-
const
|
|
25
|
+
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
26
26
|
__exportStar(require("./resolveEnvironmentSettings"), exports);
|
|
27
27
|
exports.useDynamo = (0, containr_1.createServiceModuleWithOptions)('useDynamo', (services, options) => {
|
|
28
|
-
const client = new
|
|
28
|
+
const client = new client_dynamodb_1.DynamoDB(options !== null && options !== void 0 ? options : {});
|
|
29
29
|
services.register(DynamoServices_1.DynamoServices.Service, (container) => new IDynamoService_1.DynamoService(container));
|
|
30
30
|
services.register(DynamoServices_1.DynamoServices.Client, client);
|
|
31
31
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aesop-fables/containr-dynamofx",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "A collection of services and utilities to make DynamoDb development easier",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"exports": {
|
|
@@ -17,40 +17,48 @@
|
|
|
17
17
|
"lint": "eslint src --ext .js,.ts",
|
|
18
18
|
"lint:fix": "eslint src --fix --ext .js,.ts",
|
|
19
19
|
"test": "jest --config jest.config.js",
|
|
20
|
-
"prepublishOnly": "npm
|
|
20
|
+
"prepublishOnly": "npm run lint",
|
|
21
21
|
"preversion": "npm run lint",
|
|
22
22
|
"version": "npm run format && git add -A src",
|
|
23
23
|
"postversion": "git push && git push --tags"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"reflect-metadata": "^0.1.13"
|
|
26
|
+
"reflect-metadata": "^0.1.13",
|
|
27
|
+
"typescript-eslint": "^8.55.0"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@aesop-fables/containr": "^0.
|
|
30
|
+
"@aesop-fables/containr": "^0.6.6",
|
|
31
|
+
"@aws-sdk/client-dynamodb": "^3.988.0",
|
|
32
|
+
"@aws-sdk/util-dynamodb": "^3.988.0",
|
|
33
|
+
"@jest/globals": "^30.0.3",
|
|
30
34
|
"@types/aws-lambda": "^8.10.110",
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"eslint": "
|
|
39
|
-
"eslint-
|
|
40
|
-
"eslint-plugin-
|
|
41
|
-
"
|
|
42
|
-
"jest": "
|
|
43
|
-
"jest-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
35
|
+
"@types/jest": "^30.0.0",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.41.0",
|
|
37
|
+
"@typescript-eslint/parser": "^8.41.0",
|
|
38
|
+
"cross-env": "^7.0.3",
|
|
39
|
+
"esbuild": "^0.25.9",
|
|
40
|
+
"esbuild-plugin-tsc": "^0.4.0",
|
|
41
|
+
"eslint": "^9.39.2",
|
|
42
|
+
"eslint-config-prettier": "^10.1.8",
|
|
43
|
+
"eslint-plugin-jest": "^29.0.1",
|
|
44
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
45
|
+
"jest": "^30.1.1",
|
|
46
|
+
"jest-junit": "^16.0.0",
|
|
47
|
+
"jest-mock-extended": "^4.0.0",
|
|
48
|
+
"lorem-ipsum": "^2.0.8",
|
|
49
|
+
"prettier": "^3.0.0",
|
|
50
|
+
"rimraf": "^6.0.1",
|
|
51
|
+
"ts-jest": "29.4.0",
|
|
52
|
+
"typescript": "4.9.5",
|
|
53
|
+
"webpack": "^5.99.9",
|
|
54
|
+
"webpack-cli": "^6.0.1"
|
|
48
55
|
},
|
|
49
56
|
"peerDependencies": {
|
|
50
|
-
"@aesop-fables/containr": "0.
|
|
51
|
-
"@
|
|
57
|
+
"@aesop-fables/containr": "0.6.x",
|
|
58
|
+
"@aws-sdk/client-dynamodb": "3.x",
|
|
52
59
|
"@aws-sdk/types": "3.x",
|
|
53
|
-
"aws-sdk": "
|
|
60
|
+
"@aws-sdk/util-dynamodb": "3.x",
|
|
61
|
+
"@types/aws-lambda": "8.x",
|
|
54
62
|
"reflect-metadata": "0.1.x"
|
|
55
63
|
},
|
|
56
64
|
"files": [
|