aws-sdk-wrap
Advanced tools
Comparing version 13.0.1 to 13.0.2
@@ -13,2 +13,8 @@ import assert from 'assert'; | ||
services: Joi.object().pattern(Joi.string(), Joi.any()), | ||
utils: Joi.object().keys({ | ||
Toolbox: Joi.object().keys({ | ||
Table: Joi.function().class(), | ||
Entity: Joi.function().class() | ||
}).optional() | ||
}).optional(), | ||
config: Joi.object().optional(), | ||
@@ -121,3 +127,8 @@ configService: Joi.object().optional(), | ||
dy: Dy({ | ||
call, getService, logger, cursorSecret | ||
call, | ||
getService, | ||
logger, | ||
cursorSecret, | ||
Table: get(opts, 'opts.util.Toolbox.Table', null), | ||
Entity: get(opts, 'opts.util.Toolbox.Entity', null) | ||
}), | ||
@@ -124,0 +135,0 @@ s3: S3({ call, logger }), |
@@ -21,3 +21,5 @@ import assert from 'assert'; | ||
logger, | ||
cursorSecret | ||
cursorSecret, | ||
Table, | ||
Entity | ||
}) => { | ||
@@ -42,3 +44,5 @@ const Model = ({ | ||
indices, | ||
DocumentClient: getService('DynamoDB.DocumentClient') | ||
DocumentClient: getService('DynamoDB.DocumentClient'), | ||
Table, | ||
Entity | ||
}); | ||
@@ -45,0 +49,0 @@ const { |
import get from 'lodash.get'; | ||
import { Table, Entity } from 'dynamodb-toolbox'; | ||
import getFirst from './get-first.js'; | ||
@@ -31,3 +30,5 @@ import validateKwargs from './validate-kwargs.js'; | ||
indices = {}, | ||
DocumentClient | ||
DocumentClient, | ||
Table, | ||
Entity | ||
} = validateKwargs(kwargs); | ||
@@ -34,0 +35,0 @@ |
@@ -64,3 +64,5 @@ import Joi from 'joi-strict'; | ||
}), | ||
DocumentClient: Joi.object() | ||
DocumentClient: Joi.object(), | ||
Table: Joi.function().class().allow(null), | ||
Entity: Joi.function().class().allow(null) | ||
}).custom((v, h) => { | ||
@@ -67,0 +69,0 @@ const { attributes, indices } = v; |
{ | ||
"name": "aws-sdk-wrap", | ||
"type": "module", | ||
"version": "13.0.1", | ||
"version": "13.0.2", | ||
"description": "Wrapper around aws-sdk", | ||
@@ -50,5 +50,6 @@ "main": "lib/index.js", | ||
"@blackflux/eslint-plugin-rules": "2.1.0", | ||
"@blackflux/robo-config-plugin": "8.0.1", | ||
"@blackflux/robo-config-plugin": "9.0.1", | ||
"c8": "8.0.0", | ||
"chai": "4.3.7", | ||
"dynamodb-toolbox": "0.8.5", | ||
"eslint": "8.45.0", | ||
@@ -78,3 +79,2 @@ "eslint-config-airbnb-base": "15.0.0", | ||
"dependencies": { | ||
"dynamodb-toolbox": "0.8.5", | ||
"joi-strict": "2.0.1", | ||
@@ -81,0 +81,0 @@ "lambda-async": "2.0.1", |
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
97294
11
2391
26
- Removeddynamodb-toolbox@0.8.5
- Removed@aws-crypto/sha256-browser@5.2.0(transitive)
- Removed@aws-crypto/sha256-js@5.2.0(transitive)
- Removed@aws-crypto/supports-web-crypto@5.2.0(transitive)
- Removed@aws-crypto/util@5.2.0(transitive)
- Removed@aws-sdk/client-dynamodb@3.658.1(transitive)
- Removed@aws-sdk/client-sso@3.658.1(transitive)
- Removed@aws-sdk/client-sso-oidc@3.658.1(transitive)
- Removed@aws-sdk/client-sts@3.658.1(transitive)
- Removed@aws-sdk/core@3.658.1(transitive)
- Removed@aws-sdk/credential-provider-env@3.654.0(transitive)
- Removed@aws-sdk/credential-provider-http@3.658.1(transitive)
- Removed@aws-sdk/credential-provider-ini@3.658.1(transitive)
- Removed@aws-sdk/credential-provider-node@3.658.1(transitive)
- Removed@aws-sdk/credential-provider-process@3.654.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.658.1(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.654.0(transitive)
- Removed@aws-sdk/endpoint-cache@3.572.0(transitive)
- Removed@aws-sdk/lib-dynamodb@3.658.1(transitive)
- Removed@aws-sdk/middleware-endpoint-discovery@3.654.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.654.0(transitive)
- Removed@aws-sdk/middleware-logger@3.654.0(transitive)
- Removed@aws-sdk/middleware-recursion-detection@3.654.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.654.0(transitive)
- Removed@aws-sdk/region-config-resolver@3.654.0(transitive)
- Removed@aws-sdk/token-providers@3.654.0(transitive)
- Removed@aws-sdk/types@3.654.0(transitive)
- Removed@aws-sdk/util-dynamodb@3.658.1(transitive)
- Removed@aws-sdk/util-endpoints@3.654.0(transitive)
- Removed@aws-sdk/util-locate-window@3.568.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.654.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.654.0(transitive)
- Removed@smithy/abort-controller@3.1.4(transitive)
- Removed@smithy/config-resolver@3.0.8(transitive)
- Removed@smithy/core@2.4.6(transitive)
- Removed@smithy/credential-provider-imds@3.2.3(transitive)
- Removed@smithy/fetch-http-handler@3.2.8(transitive)
- Removed@smithy/hash-node@3.0.6(transitive)
- Removed@smithy/invalid-dependency@3.0.6(transitive)
- Removed@smithy/is-array-buffer@2.2.03.0.0(transitive)
- Removed@smithy/middleware-content-length@3.0.8(transitive)
- Removed@smithy/middleware-endpoint@3.1.3(transitive)
- Removed@smithy/middleware-retry@3.0.21(transitive)
- Removed@smithy/middleware-serde@3.0.6(transitive)
- Removed@smithy/middleware-stack@3.0.6(transitive)
- Removed@smithy/node-config-provider@3.1.7(transitive)
- Removed@smithy/node-http-handler@3.2.3(transitive)
- Removed@smithy/property-provider@3.1.6(transitive)
- Removed@smithy/protocol-http@4.1.3(transitive)
- Removed@smithy/querystring-builder@3.0.6(transitive)
- Removed@smithy/querystring-parser@3.0.6(transitive)
- Removed@smithy/service-error-classification@3.0.6(transitive)
- Removed@smithy/shared-ini-file-loader@3.1.7(transitive)
- Removed@smithy/signature-v4@4.1.4(transitive)
- Removed@smithy/smithy-client@3.3.5(transitive)
- Removed@smithy/types@3.4.2(transitive)
- Removed@smithy/url-parser@3.0.6(transitive)
- Removed@smithy/util-base64@3.0.0(transitive)
- Removed@smithy/util-body-length-browser@3.0.0(transitive)
- Removed@smithy/util-body-length-node@3.0.0(transitive)
- Removed@smithy/util-buffer-from@2.2.03.0.0(transitive)
- Removed@smithy/util-config-provider@3.0.0(transitive)
- Removed@smithy/util-defaults-mode-browser@3.0.21(transitive)
- Removed@smithy/util-defaults-mode-node@3.0.21(transitive)
- Removed@smithy/util-endpoints@2.1.2(transitive)
- Removed@smithy/util-hex-encoding@3.0.0(transitive)
- Removed@smithy/util-middleware@3.0.6(transitive)
- Removed@smithy/util-retry@3.0.6(transitive)
- Removed@smithy/util-stream@3.1.8(transitive)
- Removed@smithy/util-uri-escape@3.0.0(transitive)
- Removed@smithy/util-utf8@2.3.03.0.0(transitive)
- Removed@smithy/util-waiter@3.1.5(transitive)
- Removedbowser@2.11.0(transitive)
- Removeddeep-copy@1.4.2(transitive)
- Removeddynamodb-toolbox@0.8.5(transitive)
- Removedfast-xml-parser@4.4.1(transitive)
- Removedmnemonist@0.38.3(transitive)
- Removedobliterator@1.6.1(transitive)
- Removedstrnum@1.0.5(transitive)
- Removedts-toolbelt@9.6.0(transitive)
- Removedtslib@2.7.0(transitive)
- Removeduuid@9.0.1(transitive)