Skip to content

Commit

Permalink
Add automatic AWS JSON (un)marshalling via headers or useAwsJSON param
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Sep 19, 2023
1 parent 7562d04 commit 2e7f326
Show file tree
Hide file tree
Showing 7 changed files with 917 additions and 15 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
scratch
test/mock/
bench/tmp/
**/_vendor.*js
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"test:integration": "cross-env tape 'test/integration/**/*-test.js' | tap-spec",
"test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-spec",
"test:live": "cross-env tape 'test/live/**/*-test.js' | tap-spec",
"coverage": "nyc --reporter=lcov --reporter=text npm run test:unit"
"coverage": "nyc --reporter=lcov --reporter=text npm run test:unit",
"vendor": "esbuild scripts/vendor-entry.mjs --bundle --platform=node --format=cjs --outfile=src/_vendor.js"
},
"main": "src/index.js",
"engines": {
Expand All @@ -29,6 +30,7 @@
"devDependencies": {
"@architect/eslint-config": "^2.1.1",
"@aws-sdk/client-ssm": "^3.405.0",
"@aws-sdk/util-dynamodb": "^3.415.0",
"adm-zip": "^0.5.10",
"cross-env": "^7.0.3",
"eslint": "^8.48.0",
Expand All @@ -52,7 +54,8 @@
"statements": 100,
"exclude": [
"plugins/",
"test/"
"test/",
"src/_vendor.js"
]
}
}
1 change: 1 addition & 0 deletions scripts/vendor-entry.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { convertToAttr, convertToNative, marshall, unmarshall } from '@aws-sdk/util-dynamodb'
Loading

0 comments on commit 2e7f326

Please sign in to comment.