Skip to content

Commit c588a6a

Browse files
authored
fix module imports (#135)
1 parent 25ff65d commit c588a6a

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/execute-localstack-test.sh

100644100755
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export TEST_URL=$(jq -r .CdkStack.GraphQLURL outputs.json)
2323
export TEST_API_KEY=$(jq -r .CdkStack.ApiKey outputs.json)
2424

2525
log "Accessing URL ${TEST_URL} with api key ${TEST_API_KEY}"
26-
curl \
26+
RESULT=$(curl \
2727
--connect-timeout 30 \
2828
--retry 10 \
2929
--retry-delay 6 \
@@ -33,5 +33,10 @@ curl \
3333
-H "Content-Type:application/json" \
3434
$TEST_URL \
3535
-d '{"query": "query { foo }"}'
36-
36+
)
37+
foo=$(jq .data.foo <<< "$RESULT")
38+
errors=$(jq .errors <<< "$RESULT")
39+
if [[ "$errors" != "null" || "$foo" != '"my-string"' ]]; then
40+
exit 1
41+
fi
3742
)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This package provides an implementation for the `@aws-appsync/utils` package that is available on AWS.
44

5+
## Changelog:
6+
7+
- v0.1.0: first pinned version of the library
8+
59
> [!TIP]
610
> To ensure you are using the latest version of this package with LocalStack, start LocalStack with the environment variable
711
>

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"description": "Implementation of the AppSync utils helpers",
55
"type": "module",
66
"main": "index.js",
7+
"exports": {
8+
".": "./index.js",
9+
"./rds": "./rds/index.js",
10+
"./dynamodb": "./dynamodb/index.js"
11+
},
712
"scripts": {
813
"test:aws": "NODE_OPTIONS=\"--experimental-vm-modules\" TEST_TARGET=AWS_CLOUD jest -u",
914
"test": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --ci",

0 commit comments

Comments
 (0)