awscdk-81-patch
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [1.1.0](https://github.com/eladb/awscdk-81-patch/compare/v1.0.1...v1.1.0) (2020-12-31) | ||
### Features | ||
* add logs ([8199245](https://github.com/eladb/awscdk-81-patch/commit/8199245dbbd3a3af5d646111d21dee1ae2195267)) | ||
### 1.0.1 (2020-12-31) |
@@ -19,8 +19,13 @@ "use strict"; | ||
const layerdir = path_1.join(path_1.dirname(moduleRoot), 'layer'); | ||
const dockerfile = path_1.join(layerdir, 'Dockerfile'); | ||
if (!fs_1.existsSync(layerdir)) { | ||
fs_1.mkdirSync(layerdir); | ||
fs_1.writeFileSync(path_1.join(layerdir, 'Dockerfile'), '# dummy'); | ||
fs_1.writeFileSync(dockerfile, '# dummy'); | ||
console.error(`awscdk-81-patch: created ${dockerfile}`); | ||
} | ||
else { | ||
console.error(`awscdk-81-patch: skipped ${dockerfile}`); | ||
} | ||
} | ||
exports.patchModule = patchModule; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0Y2gtbW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3BhdGNoLW1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQkFBd0U7QUFDeEUsK0JBQXFDO0FBRXJDLFNBQWdCLFdBQVcsQ0FBQyxNQUFjLEVBQUUsZUFBdUI7SUFDakUsSUFBSSxVQUFVLENBQUM7SUFDZixJQUFJO1FBQ0YsVUFBVSxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsTUFBTSxHQUFHLGVBQWUsQ0FBQyxDQUFDO0tBQ3hEO0lBQUMsT0FBTyxDQUFDLEVBQUU7UUFDVixPQUFPLENBQUMsd0JBQXdCO0tBQ2pDO0lBRUQsTUFBTSxHQUFHLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxp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dlLmpzb24nKTtcbiAgfSBjYXRjaCAoZSkge1xuICAgIHJldHVybjsgLy8gbW9kdWxlIG5vdCBpbiBjbG9zdXJlXG4gIH1cblxuICBjb25zdCBwa2cgPSBKU09OLnBhcnNlKHJlYWRGaWxlU3luYyhtb2R1bGVSb290LCAndXRmLTgnKSk7XG4gIGlmIChwa2cudmVyc2lvbiAhPT0gZXhwZWN0ZWRWZXJzaW9uKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGB0aGlzIHBhdGNoIG9ubHkgYXBwbGllcyB0byBBV1MgQ0RLIHZlcnNpb24gJHtleHBlY3RlZFZlcnNpb259LiBnb3QgJHtwa2cudmVyc2lvbn1gKTtcbiAgfVxuXG4gIGNvbnN0IGxheWVyZGlyID0gam9pbihkaXJuYW1lKG1vZHVsZVJvb3QpLCAnbGF5ZXInKTtcbiAgY29uc3QgZG9ja2VyZmlsZSA9IGpvaW4obGF5ZXJkaXIsICdEb2NrZXJmaWxlJyk7XG4gIGlmICghZXhpc3RzU3luYyhsYXllcmRpcikpIHtcbiAgICBta2RpclN5bmMobGF5ZXJkaXIpO1xuICAgIHdyaXRlRmlsZVN5bmMoZG9ja2VyZmlsZSwgJyMgZHVtbXknKTtcbiAgICBjb25zb2xlLmVycm9yKGBhd3NjZGstODEtcGF0Y2g6IGNyZWF0ZWQgJHtkb2NrZXJmaWxlfWApO1xuICB9IGVsc2Uge1xuICAgIGNvbnNvbGUuZXJyb3IoYGF3c2Nkay04MS1wYXRjaDogc2tpcHBlZCAke2RvY2tlcmZpbGV9YCk7XG4gIH1cbn1cbiJdfQ== |
@@ -60,3 +60,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"jest": { | ||
@@ -63,0 +63,0 @@ "clearMocks": true, |
@@ -12,8 +12,13 @@ # Patch for AWS CDK 1.81.0 | ||
## Usage | ||
You can apply this patch in all supported CDK programming languages: | ||
This patch is provided for all CDK programming languages. | ||
* [JavaScript/TypeScript](#javascripttypescript) | ||
* [Java](#java) | ||
* [Python](#python) | ||
* [.NET](#net) | ||
### JavaScript/TypeScript | ||
## JavaScript/TypeScript | ||
> See [example](./examples/typescript). | ||
Install using npm/yarn: | ||
@@ -35,4 +40,6 @@ | ||
### Python | ||
## Python | ||
> See [example](./examples/python). | ||
Add this to your `requirements.txt`: | ||
@@ -44,2 +51,8 @@ | ||
Install: | ||
```sh | ||
pip install -r requirements.txt | ||
``` | ||
Add this to your `app.py`: | ||
@@ -56,3 +69,3 @@ | ||
### Java | ||
## Java | ||
@@ -63,7 +76,9 @@ Add this to your `pom.xml` file: | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.eladb</groupId> | ||
<artifactId>awscdk-81-patch</artifactId> | ||
<version>1.0.0</version> | ||
<version>LATEST</version> | ||
</dependency> | ||
</dependencies> | ||
@@ -85,3 +100,3 @@ ``` | ||
### .NET | ||
## .NET | ||
@@ -91,2 +106,3 @@ Install this module: | ||
```shell | ||
cd src/MyProject # go to where your .csproj file resides | ||
dotnet add package Eladb.AwsCdk81Patch | ||
@@ -102,3 +118,3 @@ ``` | ||
{ | ||
Patch.apply(); | ||
Patch.Apply(); | ||
@@ -105,0 +121,0 @@ var app = new App(); |
{ | ||
"version": "1.0.1" | ||
"version": "1.1.0" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26793
65
121