@moicky/dynamodb 2.0.0 → 2.0.1

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.
@@ -11,13 +11,6 @@ export declare interface DynamoDBFixes {
11
11
  export declare const initFixes: (fixesConfig: DynamoDBFixes) => void;
12
12
  export declare const getFixes: () => DynamoDBFixes;
13
13
  export declare const withFixes: (args: Partial<QueryCommandInput> | Partial<ScanCommandInput>) => Partial<QueryCommandInput> | Partial<ScanCommandInput>;
14
- export declare const getDefaultFixes: () => {
15
- disableConsistantReadWhenQueryingIndexes: {
16
- enabled: boolean;
17
- };
18
- marshallOptions: {
19
- removeUndefinedValues: boolean;
20
- };
21
- };
14
+ export declare const getDefaultFixes: () => DynamoDBFixes;
22
15
  export declare const marshallWithOptions: (input: Parameters<typeof marshall>[0]) => Record<string, import("@aws-sdk/client-dynamodb").AttributeValue>;
23
16
  export declare const unmarshallWithOptions: (input: Parameters<typeof unmarshall>[0]) => Record<string, any>;
package/dist/lib/fixes.js CHANGED
@@ -2,14 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.unmarshallWithOptions = exports.marshallWithOptions = exports.getDefaultFixes = exports.withFixes = exports.getFixes = exports.initFixes = void 0;
4
4
  const util_dynamodb_1 = require("@aws-sdk/util-dynamodb");
5
- const defaults = {
6
- disableConsistantReadWhenQueryingIndexes: {
5
+ const defaults = Object.freeze({
6
+ disableConsistantReadWhenUsingIndexes: {
7
7
  enabled: true,
8
8
  },
9
- marshallOptions: {
10
- removeUndefinedValues: true,
11
- },
12
- };
9
+ });
13
10
  let fixes = defaults;
14
11
  const initFixes = (fixesConfig) => {
15
12
  fixes = fixesConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moicky/dynamodb",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Contains a collection of convenience functions for working with AWS DynamoDB",