triangle-utils 1.4.96 → 1.4.97

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.
@@ -27,7 +27,10 @@ function is_item(x) {
27
27
  return typeof x === "object" && Object.keys(x).filter(key => typeof key !== "string").length === 0 && !Array.isArray(x);
28
28
  }
29
29
  function convert_input(input) {
30
- if (typeof input === "string") {
30
+ if (input === undefined) {
31
+ return undefined;
32
+ }
33
+ else if (typeof input === "string") {
31
34
  return { S: input };
32
35
  }
33
36
  else if (typeof input === "boolean") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.96",
3
+ "version": "1.4.97",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -25,8 +25,10 @@ function is_item(x : any): x is Record<string, any> {
25
25
  return typeof x === "object" && Object.keys(x).filter(key => typeof key !== "string").length === 0 && !Array.isArray(x)
26
26
  }
27
27
 
28
- function convert_input(input : string | boolean | number | any[] | Set<any> | Record<string, any>) : AttributeValue | undefined {
29
- if (typeof input === "string") {
28
+ function convert_input(input : string | boolean | number | any[] | Set<any> | Record<string, any> | undefined) : AttributeValue | undefined {
29
+ if (input === undefined) {
30
+ return undefined
31
+ } else if (typeof input === "string") {
30
32
  return { S : input }
31
33
  } else if (typeof input === "boolean") {
32
34
  return { BOOL : input }