UNPKG

ddb-table

Version:

Strongly typed library for querying and modeling DynamoDB documents.

95 lines (94 loc) 3.29 kB
{ "name": "ddb-table", "version": "2.1.2", "description": "Strongly typed library for querying and modeling DynamoDB documents.", "keywords": [ "DynamoDB", "DDB", "TypeScript", "Strongly-Typed", "query", "update", "scan", "DocumentClient" ], "scripts": { "type-check": "tsc --noEmit", "type-check:watch": "yarn run type-check --watch", "clean": "rm -rf lib", "build": "yarn run build:types && yarn run build:js", "build:types": "tsc --emitDeclarationOnly", "build:js": "babel src --out-dir lib --extensions \".js,.ts\" --source-maps inline", "lint": "eslint \"src/**\"", "fix": "yarn run fix:lint", "fix:lint": "yarn run lint --fix", "mocha": "TS_NODE_FILES=true mocha -r ts-node/register \"src/**/*.test.ts\" --timeout 10000", "mocha:coverage": "nyc yarn run mocha && nyc report --reporter=lcov", "mocha:build": "mocha lib/**/*.test.js --timeout 10000", "test:lint": "yarn run lint \"--max-warnings\" 0", "test": "yarn run type-check && yarn run test:lint && yarn run mocha", "coverage": "yarn run type-check && yarn run test:lint && yarn run mocha:coverage", "test:build": "yarn run mocha:build", "test:commit": "if [[ -z \"$(git status --untracked-files=no --porcelain)\" ]]; then\n echo \"All filed committed.\"\nelse\n echo \"Uncommitted changes found. Please Commit them first.\" && exit 1\nfi", "prepare": "yarn run clean && yarn run build && husky install", "prepublishOnly": "yarn run test:commit && yarn run test:build", "postpublish": "git push && git push --tags", "postversion": "yarn publish" }, "author": "Moshe Simantov <me@moshe.io>", "repository": "https://github.com/neuledge/ddb-table", "license": "MIT", "main": "lib/index", "module": "lib/index", "types": "lib/index", "exports": { ".": { "import": "./index.mjs", "require": "./lib/index.js" }, "./lib/*": "./lib/*" }, "files": [ "index.mjs", "/lib/*" ], "devDependencies": { "@aws-sdk/client-dynamodb": "^3.131.0", "@aws-sdk/lib-dynamodb": "^3.131.0", "@aws-sdk/smithy-client": "^3.127.0", "@aws-sdk/types": "^3.127.0", "@babel/cli": "^7.18.6", "@babel/core": "^7.18.6", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-decorators": "^7.18.6", "@babel/plugin-proposal-object-rest-spread": "^7.18.6", "@babel/preset-env": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@types/chai": "^4.3.1", "@types/chai-as-promised": "^7.1.5", "@types/mocha": "^10.0.0", "@types/node": "^20.1.0", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "babel-plugin-transform-typescript-metadata": "^0.3.2", "chai": "^4.3.6", "chai-as-promised": "^7.1.1", "coveralls": "^3.1.1", "eslint": "^8.44.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", "husky": "^8.0.1", "lint-staged": "^15.0.2", "mocha": "^10.0.0", "nyc": "^15.1.0", "prettier": "^3.0.0", "ts-node": "^10.9.1", "typescript": "^5.0.2" }, "peerDependencies": { "@aws-sdk/lib-dynamodb": "3.x" }, "lint-staged": { "src/**/*": "eslint \"--max-warnings\" 0" } }