sst 2.24.18 → 2.24.19

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.
@@ -491,7 +491,7 @@ export class Service extends Construct {
491
491
  assumedBy: new CompositePrincipal(new AccountPrincipal(app.account), new ServicePrincipal("lambda.amazonaws.com")),
492
492
  maxSessionDuration: CdkDuration.hours(12),
493
493
  });
494
- return new Function(this, `ServerFunction`, {
494
+ const fn = new Function(this, `ServerFunction`, {
495
495
  description: "Service dev function",
496
496
  handler: path.join(__dirname, "../support/service-dev-function", "index.handler"),
497
497
  runtime: "nodejs18.x",
@@ -502,6 +502,8 @@ export class Service extends Construct {
502
502
  environment,
503
503
  permissions,
504
504
  });
505
+ fn._doNotAllowOthersToBind = true;
506
+ return fn;
505
507
  }
506
508
  bindForService(constructs) {
507
509
  // Get referenced secrets
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.24.18",
4
+ "version": "2.24.19",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },