@emulates/dynamodb 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.js ADDED
@@ -0,0 +1,12 @@
1
+ import {
2
+ DEFAULT_PORT,
3
+ createServer,
4
+ serveTarget
5
+ } from "./chunk-GDIFH5LO.js";
6
+ import "./chunk-7TSI3ALZ.js";
7
+ export {
8
+ DEFAULT_PORT,
9
+ createServer,
10
+ serveTarget
11
+ };
12
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/openapi.yaml ADDED
@@ -0,0 +1,22 @@
1
+ openapi: 3.1.0
2
+ info:
3
+ title: Amazon DynamoDB (Emulates subset)
4
+ version: "2012-08-10"
5
+ description: AWS JSON DynamoDB contract used by AWS SDK v3.
6
+ servers:
7
+ - url: https://dynamodb.us-east-1.amazonaws.com
8
+ paths:
9
+ /:
10
+ post:
11
+ operationId: DynamoDbRpc
12
+ x-emulates: { supported: true, parity: { enabled: true, safe: false } }
13
+ parameters:
14
+ - { name: X-Amz-Target, in: header, required: true, schema: { type: string, pattern: '^DynamoDB_20120810\\.[A-Za-z]+$' } }
15
+ requestBody:
16
+ required: true
17
+ content:
18
+ application/x-amz-json-1.0: { schema: { type: object, additionalProperties: true } }
19
+ application/json: { schema: { type: object, additionalProperties: true } }
20
+ responses:
21
+ "200": { description: Operation response, content: { application/x-amz-json-1.0: { schema: { type: object, additionalProperties: true } } } }
22
+ "400": { description: DynamoDB exception, content: { application/x-amz-json-1.0: { schema: { type: object, additionalProperties: true } } } }
package/package.json ADDED
@@ -0,0 +1,115 @@
1
+ {
2
+ "name": "@emulates/dynamodb",
3
+ "version": "2.3.1",
4
+ "description": "Stateful Amazon DynamoDB emulator with typed items, expressions, indexes, pagination, transactions, and streams.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "files": [
9
+ "dist",
10
+ "README.md",
11
+ "CHANGELOG.md",
12
+ "DISCOVERY.md",
13
+ "SUPPORT.md",
14
+ "openapi.yaml"
15
+ ],
16
+ "main": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ },
23
+ "./server": {
24
+ "types": "./dist/server.d.ts",
25
+ "default": "./dist/server.js"
26
+ }
27
+ },
28
+ "bin": {
29
+ "emulates-dynamodb": "./dist/cli.js"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public",
33
+ "provenance": true
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/crvouga/emulators.git",
38
+ "directory": "packages/service/dynamodb"
39
+ },
40
+ "homepage": "https://github.com/crvouga/emulators/tree/main/packages/service/dynamodb#readme",
41
+ "keywords": [
42
+ "emulates",
43
+ "aws",
44
+ "dynamodb",
45
+ "document-client",
46
+ "emulator"
47
+ ],
48
+ "emulates": {
49
+ "runtime": "portable",
50
+ "entries": {
51
+ "server": "node",
52
+ "cli": "node"
53
+ },
54
+ "layer": "service",
55
+ "category": "databases",
56
+ "displayName": "Amazon DynamoDB",
57
+ "vendor": {
58
+ "website": "https://aws.amazon.com/dynamodb/",
59
+ "docs": "https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/"
60
+ },
61
+ "parity": "Items, indexes, and transactions",
62
+ "parityTier": "cold",
63
+ "discovery": {
64
+ "guide": "DISCOVERY.md",
65
+ "behavior": "README.md",
66
+ "capabilities": "SUPPORT.md",
67
+ "contract": "openapi.yaml",
68
+ "types": "dist/index.d.ts",
69
+ "oracle": {
70
+ "kind": "Live vendor API or sandbox",
71
+ "command": "bun run parity:service -- dynamodb",
72
+ "note": "Run from an Emulates checkout; credentials come only from .env.local or GitHub Actions secrets. Missing credentials exit 2."
73
+ },
74
+ "introspection": [
75
+ "GET /__admin/health",
76
+ "GET /__admin",
77
+ "GET /__admin/state",
78
+ "GET /__admin/requests",
79
+ "GET /__admin/metrics",
80
+ "GET /__admin/faults/presets",
81
+ "GET /__admin/ui"
82
+ ],
83
+ "reporting": "https://github.com/crvouga/emulators/blob/main/docs/REPORTING_ISSUES.md"
84
+ }
85
+ },
86
+ "scripts": {
87
+ "generate": "bun ../../openapi/codegen/dist/cli.js",
88
+ "generate:check": "bun ../../openapi/codegen/dist/cli.js --check",
89
+ "openapi:check": "bun ../../openapi/codegen/dist/cli.js --validate",
90
+ "build": "bun ../../../scripts/bundle-service.ts",
91
+ "typecheck": "tsc -p tsconfig.json --noEmit",
92
+ "lint": "biome check .",
93
+ "test": "bun test",
94
+ "parity": "bun scripts/parity.ts",
95
+ "portability": "bun ../../../scripts/portability.ts",
96
+ "pack:check": "bun ../../../scripts/pack-check.ts"
97
+ },
98
+ "dependencies": {
99
+ "@emulates/sqlite": "2.1.2"
100
+ },
101
+ "devDependencies": {
102
+ "@aws-sdk/client-dynamodb": "3.1132.0",
103
+ "@aws-sdk/lib-dynamodb": "3.1132.0",
104
+ "@emulates/adapter-node": "0.0.0-development",
105
+ "@emulates/core": "0.0.0-development",
106
+ "@emulates/openapi": "0.0.0-development",
107
+ "@emulates/openapi-codegen": "0.1.0",
108
+ "@emulates/openapi-metadata": "0.0.0-development",
109
+ "@emulates/parity": "0.0.0-development",
110
+ "@emulates/service": "0.0.0-development",
111
+ "@emulates/sqlite-client": "0.0.0-development",
112
+ "@emulates/testing": "0.1.0",
113
+ "fast-check": "4.9.0"
114
+ }
115
+ }