-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(idempotency): add package exports (#1483)
* feat: top-level exports * chore: version * feat: exports * chore: license field
- Loading branch information
1 parent
0021536
commit faa9307
Showing
12 changed files
with
106 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,90 @@ | ||
{ | ||
"name": "@aws-lambda-powertools/idempotency", | ||
"version": "0.0.11", | ||
"description": "The idempotency package for the Powertools for AWS Lambda (TypeScript) library. It provides options to make your Lambda functions idempotent and safe to retry.", | ||
"author": { | ||
"name": "Amazon Web Services", | ||
"url": "https://aws.amazon.com" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"commit": "commit", | ||
"test": "npm run test:unit", | ||
"test:unit": "jest --group=unit --detectOpenHandles --coverage --verbose", | ||
"test:e2e:nodejs14x": "RUNTIME=nodejs14x jest --group=e2e", | ||
"test:e2e:nodejs16x": "RUNTIME=nodejs16x jest --group=e2e", | ||
"test:e2e:nodejs18x": "RUNTIME=nodejs18x jest --group=e2e", | ||
"test:e2e": "jest --group=e2e --detectOpenHandles", | ||
"watch": "jest --watch --group=unit", | ||
"build": "tsc", | ||
"lint": "eslint --ext .ts,.js --no-error-on-unmatched-pattern .", | ||
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .", | ||
"package": "mkdir -p dist/ && npm pack && mv *.tgz dist/", | ||
"package-bundle": "../../package-bundler.sh idempotency-bundle ./dist", | ||
"prepare": "npm run build" | ||
}, | ||
"lint-staged": { | ||
"*.ts": "npm run lint-fix" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-lambda-powertools-typescript/tree/main/packages/idempotency#readme", | ||
"license": "MIT", | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"typedocMain": "src/file_that_does_not_exist_so_its_ignored_from_api_docs.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/awslabs/aws-lambda-powertools-typescript.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/awslabs/aws-lambda-powertools-typescript/issues" | ||
}, | ||
"dependencies": { | ||
"@aws-lambda-powertools/commons": "^1.5.0", | ||
"@aws-sdk/lib-dynamodb": "^3.231.0", | ||
"jmespath": "^0.16.0" | ||
}, | ||
"keywords": [ | ||
"aws", | ||
"lambda", | ||
"powertools", | ||
"serverless", | ||
"nodejs" | ||
], | ||
"devDependencies": { | ||
"@types/jmespath": "^0.15.0", | ||
"@aws-sdk/client-dynamodb": "^3.231.0", | ||
"aws-sdk-client-mock": "^2.0.1", | ||
"aws-sdk-client-mock-jest": "^2.0.1" | ||
} | ||
{ | ||
"name": "@aws-lambda-powertools/idempotency", | ||
"version": "1.8.0-alpha.0", | ||
"description": "The idempotency package for the Powertools for AWS Lambda (TypeScript) library. It provides options to make your Lambda functions idempotent and safe to retry.", | ||
"author": { | ||
"name": "Amazon Web Services", | ||
"url": "https://aws.amazon.com" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"commit": "commit", | ||
"test": "npm run test:unit", | ||
"test:unit": "jest --group=unit --detectOpenHandles --coverage --verbose", | ||
"test:e2e:nodejs14x": "RUNTIME=nodejs14x jest --group=e2e", | ||
"test:e2e:nodejs16x": "RUNTIME=nodejs16x jest --group=e2e", | ||
"test:e2e:nodejs18x": "RUNTIME=nodejs18x jest --group=e2e", | ||
"test:e2e": "jest --group=e2e --detectOpenHandles", | ||
"watch": "jest --watch --group=unit", | ||
"build": "tsc", | ||
"lint": "eslint --ext .ts,.js --no-error-on-unmatched-pattern .", | ||
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .", | ||
"package": "mkdir -p dist/ && npm pack && mv *.tgz dist/", | ||
"package-bundle": "../../package-bundler.sh idempotency-bundle ./dist", | ||
"preprepare": "rm -rf ./lib", | ||
"prepare": "npm run build" | ||
}, | ||
"lint-staged": { | ||
"*.ts": "npm run lint-fix", | ||
"*.js": "npm run lint-fix" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-lambda-powertools-typescript/tree/main/packages/idempotency#readme", | ||
"license": "MIT-0", | ||
"exports": { | ||
".": { | ||
"import": "./lib/index.js", | ||
"require": "./lib/index.js" | ||
}, | ||
"./persistence": { | ||
"import": "./lib/persistence/index.js", | ||
"require": "./lib/persistence/index.js" | ||
}, | ||
"./dynamodb": { | ||
"import": "./lib/persistence/DynamoDbPersistenceLayer.js", | ||
"require": "./lib/persistence/DynamoDbPersistenceLayer.js" | ||
} | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"persistence": [ | ||
"lib/persistence/index.d.ts" | ||
], | ||
"dynamodb": [ | ||
"lib/persistence/DynamoDbPersistenceLayer.d.ts" | ||
] | ||
} | ||
}, | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"typedocMain": "src/file_that_does_not_exist_so_its_ignored_from_api_docs.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/awslabs/aws-lambda-powertools-typescript.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/awslabs/aws-lambda-powertools-typescript/issues" | ||
}, | ||
"dependencies": { | ||
"@aws-lambda-powertools/commons": "^1.5.0", | ||
"@aws-sdk/lib-dynamodb": "^3.231.0", | ||
"jmespath": "^0.16.0" | ||
}, | ||
"keywords": [ | ||
"aws", | ||
"lambda", | ||
"powertools", | ||
"serverless", | ||
"nodejs" | ||
], | ||
"devDependencies": { | ||
"@aws-sdk/client-dynamodb": "^3.231.0", | ||
"@types/jmespath": "^0.15.0", | ||
"aws-sdk-client-mock": "^2.0.1", | ||
"aws-sdk-client-mock-jest": "^2.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from './Exceptions'; | ||
export * from './IdempotencyConfig'; | ||
export * from './idempotentDecorator'; | ||
export * from './makeFunctionIdempotent'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from './DynamoDBPersistenceLayer'; | ||
export * from './BasePersistenceLayer'; | ||
export * from './BasePersistenceLayerInterface'; | ||
export * from './IdempotencyRecord'; |
9 changes: 3 additions & 6 deletions
9
packages/idempotency/tests/e2e/idempotencyDecorator.test.FunctionCode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/idempotency/tests/e2e/makeFunctionIdempotent.test.FunctionCode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters