declapract-typescript-ehmpathy 0.47.30 → 0.47.31
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.
- package/dist/practices/cicd-common/best-practice/.github/workflows/test.yml.declapract.ts +6 -1
- package/dist/practices/cicd-package/best-practice/.github/workflows/publish.yml.declapract.ts +6 -1
- package/dist/practices/cicd-service/best-practice/.github/workflows/deploy.yml.declapract.ts +6 -1
- package/package.json +1 -1
|
@@ -18,7 +18,12 @@ export const check: FileCheckFunction = async (contents, context) => {
|
|
|
18
18
|
{ template: context.declaredFileContents },
|
|
19
19
|
context,
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
// if contents don't match expected, best practice is violated
|
|
23
|
+
if (contents !== expected)
|
|
24
|
+
throw new Error('file does not match expected content with apikey secrets');
|
|
25
|
+
|
|
26
|
+
// return = file matches expected (best practice followed)
|
|
22
27
|
};
|
|
23
28
|
|
|
24
29
|
/**
|
package/dist/practices/cicd-package/best-practice/.github/workflows/publish.yml.declapract.ts
CHANGED
|
@@ -18,7 +18,12 @@ export const check: FileCheckFunction = async (contents, context) => {
|
|
|
18
18
|
{ template: context.declaredFileContents },
|
|
19
19
|
context,
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
// if contents don't match expected, best practice is violated
|
|
23
|
+
if (contents !== expected)
|
|
24
|
+
throw new Error('file does not match expected content with apikey secrets');
|
|
25
|
+
|
|
26
|
+
// return = file matches expected (best practice followed)
|
|
22
27
|
};
|
|
23
28
|
|
|
24
29
|
/**
|
package/dist/practices/cicd-service/best-practice/.github/workflows/deploy.yml.declapract.ts
CHANGED
|
@@ -18,7 +18,12 @@ export const check: FileCheckFunction = async (contents, context) => {
|
|
|
18
18
|
{ template: context.declaredFileContents },
|
|
19
19
|
context,
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
// if contents don't match expected, best practice is violated
|
|
23
|
+
if (contents !== expected)
|
|
24
|
+
throw new Error('file does not match expected content with apikey secrets');
|
|
25
|
+
|
|
26
|
+
// return = file matches expected (best practice followed)
|
|
22
27
|
};
|
|
23
28
|
|
|
24
29
|
/**
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "declapract-typescript-ehmpathy",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "declapract best practices declarations for typescript",
|
|
5
|
-
"version": "0.47.
|
|
5
|
+
"version": "0.47.31",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|