lambda-toolkit 0.0.6-beta → 0.0.7-beta

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1211,6 +1211,11 @@ module.exports = createInstance( args => clientProvider( TimestreamQueryClient,
1211
1211
 
1212
1212
  const { ScalarType } = __webpack_require__( 1671 );
1213
1213
 
1214
+ const parseBigInt = value => {
1215
+ const asInt = parseInt( value, 10 );
1216
+ return asInt <= Number.MAX_SAFE_INTEGER && asInt >= Number.MIN_SAFE_INTEGER ? asInt : value;
1217
+ };
1218
+
1214
1219
  const parseScalarValue = ( type, value ) => {
1215
1220
  switch ( type ) {
1216
1221
  case ScalarType.BOOLEAN:
@@ -1223,8 +1228,9 @@ const parseScalarValue = ( type, value ) => {
1223
1228
  return parseInt( value, 10 );
1224
1229
  case ScalarType.UNKNOWN: // is NULL
1225
1230
  return null;
1226
- case ScalarType.VARCHAR:
1227
1231
  case ScalarType.BIGINT:
1232
+ return parseBigInt( value );
1233
+ case ScalarType.VARCHAR:
1228
1234
  case ScalarType.DATE:
1229
1235
  case ScalarType.TIME:
1230
1236
  case ScalarType.INTERVAL_DAY_TO_SECOND:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-toolkit",
3
- "version": "0.0.6-beta",
3
+ "version": "0.0.7-beta",
4
4
  "description": "A set of tools to help and simplify Node Js code development for AWS Lambdas",
5
5
  "files": [
6
6
  "./license",