INNER CODE UNIT · JavaScript

newDisplay

localstack/serverless-localstack · src/index.js:969

      const newDisplay = function () {
        const regex = /.*:\/\/([^.]+)\.execute-api[^/]+\/([^/]+)(\/.*)?/g;
        const newEndpoint =
          this.localstackEndpoint + '/restapis/$1/$2/_user_request_$3';
        if (this.endpointInfo) {
          this.endpointInfo = this.endpointInfo.replace(regex, newEndpoint);
        }
        this.originalDisplay();
      };

      newDisplay.bind(plugin);
      plugin.display = newDisplay;
    }
  }
  patchCustomResourceLambdaS3ForcePathStyle() {
    const awsProvider = this.awsProvider;
    const patchMarker = path.join(
      awsProvider.serverless.serviceDir,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…