wirejs-deploy-amplify-basic 0.0.95-realtime → 0.0.96-realtime

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.
@@ -143,7 +143,7 @@ if (generated.some(isRealtimeService)) {
143
143
  publisher: backend.api,
144
144
  namespaces: generated
145
145
  .filter(isRealtimeService)
146
- .map(r => r.options.absoluteId),
146
+ .map(r => r.options.id),
147
147
  });
148
148
  // TODO: is there a better way to ensure we grant access specifically
149
149
  // to what `Secret` uses to store its creds without creating N places to
@@ -69,11 +69,8 @@ export class RealtimeService extends Construct {
69
69
  'REALTIME_HTTP_DOMAIN', realtimeService.httpDns,
70
70
  );
71
71
 
72
- for (const namespaceBaseName of props.namespaces) {
73
- const resourceName = namespaceBaseName
74
- .replace(/[^a-zA-Z0-9-_]/g, '_')
75
- .slice(0, 50);
76
- const ns = realtimeService.addChannelNamespace(resourceName);
72
+ for (const namespace of props.namespaces) {
73
+ const ns = realtimeService.addChannelNamespace(namespace);
77
74
  ns.grantPublish(props.publisher.resources.lambda);
78
75
  }
79
76
  }
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.41",
6
- "wirejs-resources": "^0.1.63-realtime"
6
+ "wirejs-resources": "^0.1.64-realtime"
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.95-realtime",
3
+ "version": "0.0.96-realtime",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "recursive-copy": "^2.0.14",
42
42
  "rimraf": "^6.0.1",
43
43
  "wirejs-dom": "^1.0.41",
44
- "wirejs-resources": "^0.1.63-realtime"
44
+ "wirejs-resources": "^0.1.64-realtime"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@aws-amplify/backend": "^1.14.0",