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.
@@ -18,7 +18,12 @@ export const check: FileCheckFunction = async (contents, context) => {
18
18
  { template: context.declaredFileContents },
19
19
  context,
20
20
  );
21
- if (contents === expected) throw new Error('file matches expected content');
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
  /**
@@ -18,7 +18,12 @@ export const check: FileCheckFunction = async (contents, context) => {
18
18
  { template: context.declaredFileContents },
19
19
  context,
20
20
  );
21
- if (contents === expected) throw new Error('file matches expected content');
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
  /**
@@ -18,7 +18,12 @@ export const check: FileCheckFunction = async (contents, context) => {
18
18
  { template: context.declaredFileContents },
19
19
  context,
20
20
  );
21
- if (contents === expected) throw new Error('file matches expected content');
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.30",
5
+ "version": "0.47.31",
6
6
  "license": "MIT",
7
7
  "main": "src/index.js",
8
8
  "repository": "ehmpathy/declapract-typescript-ehmpathy",