-
Notifications
You must be signed in to change notification settings - Fork 146
/
package.json
138 lines (138 loc) · 4.26 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "@aws-lambda-powertools/idempotency",
"version": "2.0.3",
"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": {
"test": "npm run test:unit",
"test:unit": "jest --group=unit --detectOpenHandles --coverage --verbose",
"jest": "jest --detectOpenHandles --verbose",
"test:e2e:nodejs16x": "RUNTIME=nodejs16x jest --group=e2e",
"test:e2e:nodejs18x": "RUNTIME=nodejs18x jest --group=e2e",
"test:e2e:nodejs20x": "RUNTIME=nodejs20x jest --group=e2e",
"test:e2e": "jest --group=e2e",
"watch": "jest --watch",
"build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
"build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
"build": "npm run build:esm & npm run build:cjs",
"lint": "eslint --ext .ts,.js --no-error-on-unmatched-pattern .",
"lint-fix": "eslint --fix --ext .ts,.js --no-error-on-unmatched-pattern .",
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
},
"lint-staged": {
"*.{js,ts}": "npm run lint-fix"
},
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/idempotency#readme",
"license": "MIT-0",
"type": "module",
"exports": {
".": {
"require": {
"types": "./lib/cjs/index.d.ts",
"default": "./lib/cjs/index.js"
},
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
}
},
"./persistence": {
"import": "./lib/esm/persistence/index.js",
"require": "./lib/cjs/persistence/index.js"
},
"./dynamodb": {
"import": "./lib/esm/persistence/DynamoDBPersistenceLayer.js",
"require": "./lib/cjs/persistence/DynamoDBPersistenceLayer.js"
},
"./dynamodb/types": {
"import": "./lib/esm/types/DynamoDBPersistence.js",
"require": "./lib/cjs/types/DynamoDBPersistence.js"
},
"./middleware": {
"import": "./lib/esm/middleware/makeHandlerIdempotent.js",
"require": "./lib/cjs/middleware/makeHandlerIdempotent.js"
},
"./types": {
"import": "./lib/esm/types/index.d.ts",
"require": "./lib/cjs/types/index.d.ts"
}
},
"typesVersions": {
"*": {
"persistence": [
"lib/cjs/persistence/index.d.ts",
"lib/esm/persistence/index.d.ts"
],
"dynamodb": [
"lib/cjs/persistence/DynamoDBPersistenceLayer.d.ts",
"lib/esm/persistence/DynamoDBPersistenceLayer.d.ts"
],
"dynamodb/types": [
"lib/cjs/types/DynamoDBPersistence.d.ts",
"lib/esm/types/DynamoDBPersistence.d.ts"
],
"middleware": [
"lib/cjs/middleware/makeHandlerIdempotent.d.ts",
"lib/esm/middleware/makeHandlerIdempotent.d.ts"
],
"types": [
"lib/cjs/types/index.d.ts",
"lib/esm/types/index.d.ts"
]
}
},
"types": "./lib/cjs/index.d.ts",
"main": "./lib/cjs/index.js",
"files": [
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"dependencies": {
"@aws-lambda-powertools/commons": "^2.0.3",
"jmespath": "^0.16.0"
},
"peerDependencies": {
"@aws-sdk/client-dynamodb": ">=3.x",
"@aws-sdk/lib-dynamodb": ">=3.x",
"@middy/core": ">=3.x"
},
"peerDependenciesMeta": {
"@aws-sdk/client-dynamodb": {
"optional": true
},
"@aws-sdk/lib-dynamodb": {
"optional": true
},
"@middy/core": {
"optional": true
}
},
"keywords": [
"aws",
"lambda",
"powertools",
"idempotency",
"serverless",
"nodejs"
],
"devDependencies": {
"@aws-lambda-powertools/testing-utils": "file:../testing",
"@aws-sdk/client-dynamodb": "^3.538.0",
"@aws-sdk/lib-dynamodb": "^3.538.0",
"@types/jmespath": "^0.15.0",
"aws-sdk-client-mock": "^4.0.0",
"aws-sdk-client-mock-jest": "^4.0.0"
}
}