@setho/dynamodb-repository
Version:
DynamoDB repository for hash-key and hash-key/range indexed tables. Designed for Lambda use. Handles nice-to-haves like created and updated timestamps and default id creation.
73 lines (72 loc) • 2.25 kB
JSON
{
"name": "@setho/dynamodb-repository",
"version": "0.9.0",
"description": "DynamoDB repository for hash-key and hash-key/range indexed tables. Designed for Lambda use. Handles nice-to-haves like created and updated timestamps and default id creation.",
"license": "MIT",
"repository": "setho/dynamodb-repository",
"engines": {
"node": ">= 14"
},
"scripts": {
"build": "rm -rf .build && npx tsc && rm -rf .build/test",
"test": "npm run lint && npm run test:unit",
"test:unit": "npx jest unit.test --silent",
"test:int": "npx jest int.test --silent",
"test:smoke": "npx jest smoke.test --silent",
"lint": "eslint . --ignore-pattern node_modules/ --ignore-pattern coverage/",
"prepublishOnly": "npm run test:smoke",
"prepare": "npm run build",
"smart-publish": "npx publish-if-not-exists"
},
"main": ".build/index.js",
"types": ".build/index.d.ts",
"files": [
".build"
],
"keywords": [
"dynamodb",
"repository",
"lambda",
"setho",
"seth"
],
"dependencies": {
"@aws-sdk/lib-dynamodb": "^3.363.0",
"http-errors": "^2.0.0",
"joi": "^17.10.2",
"ulid": "^2.3.0"
},
"devDependencies": {
"@aws-sdk/client-dynamodb": "^3.387.0",
"@faker-js/faker": "^8.1.0",
"@swc/core": "^1.3.91",
"@swc/jest": "^0.2.24",
"@tsconfig/node18": "^18.2.0",
"@types/async-retry": "^1.4.7",
"@types/http-errors": "^2.0.2",
"@types/jest": "^29.5.5",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"async-retry": "^1.3.3",
"eslint": "8.53.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-node": "^0.3.7",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "27.6.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"husky": "^8.0.3",
"jest": "29.7.0",
"jest-extended": "^4.0.0",
"lint-staged": "^15.0.2",
"prettier": "^3.0.0",
"publish-if-not-exists": "^1.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"lint-staged": {
"*.{js,ts}": "eslint",
"*.{js,ts,md}": "prettier --write --ignore-path .gitignore"
}
}