@certik/serverless-api 1.0.11 → 1.0.12

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 1.0.12
2
+
3
+ - fixed incorrect parsing of empty request body in startLocalApp
4
+
5
+ # 1.0.11
6
+
7
+ - fixed dynamic import on windows
8
+
1
9
  # 1.0.10
2
10
 
3
11
  - fixed unicode handling
package/lib/dev.js CHANGED
@@ -14,9 +14,7 @@ export function mapRequestToEvent(req) {
14
14
  headers: req.headers,
15
15
  multiValueHeaders: {},
16
16
  queryStringParameters: req.query,
17
- body: Buffer.isBuffer(req.body)
18
- ? req.body.toString("base64")
19
- : Buffer.from(req.body, "utf-8").toString("base64"),
17
+ body: Buffer.isBuffer(req.body) ? req.body.toString("base64") : "",
20
18
  isBase64Encoded: true,
21
19
  };
22
20
  }
package/package.json CHANGED
@@ -4,13 +4,13 @@
4
4
  "author": "CertiK Engineering",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
- "version": "1.0.11",
7
+ "version": "1.0.12",
8
8
  "scripts": {
9
9
  "start": "doppler run -- nodemon start-dev.js",
10
10
  "lint": "eslint lib test routes *.js",
11
11
  "lint:fix": "eslint lib routes test index.js --fix",
12
12
  "format": "prettier --ignore-unknown --write lib/**/*.js test/**/*.js index.js",
13
- "test": "ava test",
13
+ "test": "ava test --timeout=1m",
14
14
  "test:coverage": "c8 ava test",
15
15
  "up": "doppler run -- pulumi up --stack dev",
16
16
  "up:production": "doppler run --config prd -- pulumi up --stack production",
@@ -60,4 +60,4 @@
60
60
  ],
61
61
  "ext": "js json"
62
62
  }
63
- }
63
+ }