wirejs-deploy-amplify-basic 0.0.158-payments → 0.0.160-payments
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.
|
@@ -92,7 +92,6 @@ function isBackgroundJob(o: any): o is BackgroundJob<any> {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
function extractSetCookies(context: Context) {
|
|
95
|
-
console.log('setting cookies', context.cookies.getSetCookies());
|
|
96
95
|
const cookies: string[] = [];
|
|
97
96
|
for (const cookie of context.cookies.getSetCookies()) {
|
|
98
97
|
const cookieOptions = [];
|
|
@@ -151,7 +150,6 @@ export const handler: LambdaFunctionURLHandler = async (event) => {
|
|
|
151
150
|
) {
|
|
152
151
|
const responses = [];
|
|
153
152
|
for (const call of calls) {
|
|
154
|
-
console.log('handling API call', call);
|
|
155
153
|
responses.push(await callApiMethod(api, call, wjsContext));
|
|
156
154
|
}
|
|
157
155
|
return {
|
|
@@ -270,7 +270,7 @@ async function tryAPIPath(context, res) {
|
|
|
270
270
|
|
|
271
271
|
const path = context.location.pathname;
|
|
272
272
|
|
|
273
|
-
if (
|
|
273
|
+
if (path !== '/api' && !path.startsWith('/api/')) {
|
|
274
274
|
return false;
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -285,6 +285,8 @@ async function tryAPIPath(context, res) {
|
|
|
285
285
|
*/
|
|
286
286
|
async function tryEndpointPath(context, res) {
|
|
287
287
|
const endpoints = GENERATED.filter(r => r.type === 'Endpoint');
|
|
288
|
+
console.log('discovered endpoints', JSON.stringify(endpoints, null, 2));
|
|
289
|
+
|
|
288
290
|
const matchingEndpoints = endpoints
|
|
289
291
|
.filter(e => globMatch(e.path, context.location.pathname));
|
|
290
292
|
if (matchingEndpoints.length === 0) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-deploy-amplify-basic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.160-payments",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"recursive-copy": "^2.0.14",
|
|
43
43
|
"rimraf": "^6.0.1",
|
|
44
44
|
"wirejs-dom": "^1.0.42",
|
|
45
|
-
"wirejs-resources": "^0.1.
|
|
45
|
+
"wirejs-resources": "^0.1.128-payments"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@aws-amplify/backend": "^1.14.0",
|