wirejs-deploy-amplify-basic 0.0.159-payments → 0.0.161-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.
@@ -11,7 +11,6 @@ import {
11
11
 
12
12
  // @ts-ignore
13
13
  import * as api from '../../../api/index';
14
- import { flushCompileCache } from 'module';
15
14
 
16
15
  function deriveLocation(event: APIGatewayProxyEventV2) {
17
16
  if (event.headers['x-wirejs-location']) {
@@ -48,7 +48,7 @@ function byLength(a, b) {
48
48
  }
49
49
 
50
50
  /**
51
- * @param {string} pattern - string pattern, where `*` matches anything
51
+ * @param {string} pattern - string pattern, where `%` matches anything
52
52
  * @param {string} text
53
53
  * @returns
54
54
  */
@@ -285,8 +285,10 @@ 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
- .filter(e => globMatch(e.path, context.location.pathname));
291
+ .filter(e => globMatch(e.options.path, context.location.pathname));
290
292
  if (matchingEndpoints.length === 0) return;
291
293
 
292
294
  proxyRequest(context, res, API_URL);
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.42",
6
- "wirejs-resources": "^0.1.127-payments"
6
+ "wirejs-resources": "^0.1.129-payments"
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.159-payments",
3
+ "version": "0.0.161-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.127-payments"
45
+ "wirejs-resources": "^0.1.129-payments"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@aws-amplify/backend": "^1.14.0",