@cloud-copilot/iam-simulate 0.1.42 → 0.1.43

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.
@@ -68,7 +68,7 @@ export declare function isNotDefined<T>(value: T | undefined): value is undefine
68
68
  */
69
69
  export declare function isWildcardOnlyAction(service: string, action: string): Promise<boolean>;
70
70
  /**
71
- * Get the the possible reource types for an action and resource
71
+ * Get the the possible resource types for an action and resource
72
72
  *
73
73
  * @param service the service the action belongs to
74
74
  * @param action the action to get the resource type for
package/dist/cjs/util.js CHANGED
@@ -57,7 +57,7 @@ function convertIamString(value, request, replaceOptions) {
57
57
  const variableName = defaultParts.at(0).trim();
58
58
  const { value: requestValue, error: requestValueError } = getContextSingleValue(request, variableName);
59
59
  if (requestValue) {
60
- //TODO: Maybe escpae the * in the resolved value to ${*}
60
+ //TODO: Maybe escape the * in the resolved value to ${*}
61
61
  return options.convertToRegex ? escapeRegexCharacters(requestValue) : requestValue;
62
62
  }
63
63
  else if (defaultValue) {
@@ -65,7 +65,7 @@ function convertIamString(value, request, replaceOptions) {
65
65
  TODO: What happens in a request if a multi value context key is used in a string and there
66
66
  is a default value? Will it use the default value or will it fail the condition test?
67
67
  */
68
- //TODO: Maybe escpae the * in the resolved value to ${*}
68
+ //TODO: Maybe escape the * in the resolved value to ${*}
69
69
  return options.convertToRegex ? escapeRegexCharacters(defaultValue) : defaultValue;
70
70
  }
71
71
  else {
@@ -222,7 +222,7 @@ async function isWildcardOnlyAction(service, action) {
222
222
  return actionDetails.resourceTypes.length === 0;
223
223
  }
224
224
  /**
225
- * Get the the possible reource types for an action and resource
225
+ * Get the the possible resource types for an action and resource
226
226
  *
227
227
  * @param service the service the action belongs to
228
228
  * @param action the action to get the resource type for
@@ -68,7 +68,7 @@ export declare function isNotDefined<T>(value: T | undefined): value is undefine
68
68
  */
69
69
  export declare function isWildcardOnlyAction(service: string, action: string): Promise<boolean>;
70
70
  /**
71
- * Get the the possible reource types for an action and resource
71
+ * Get the the possible resource types for an action and resource
72
72
  *
73
73
  * @param service the service the action belongs to
74
74
  * @param action the action to get the resource type for
package/dist/esm/util.js CHANGED
@@ -42,7 +42,7 @@ export function convertIamString(value, request, replaceOptions) {
42
42
  const variableName = defaultParts.at(0).trim();
43
43
  const { value: requestValue, error: requestValueError } = getContextSingleValue(request, variableName);
44
44
  if (requestValue) {
45
- //TODO: Maybe escpae the * in the resolved value to ${*}
45
+ //TODO: Maybe escape the * in the resolved value to ${*}
46
46
  return options.convertToRegex ? escapeRegexCharacters(requestValue) : requestValue;
47
47
  }
48
48
  else if (defaultValue) {
@@ -50,7 +50,7 @@ export function convertIamString(value, request, replaceOptions) {
50
50
  TODO: What happens in a request if a multi value context key is used in a string and there
51
51
  is a default value? Will it use the default value or will it fail the condition test?
52
52
  */
53
- //TODO: Maybe escpae the * in the resolved value to ${*}
53
+ //TODO: Maybe escape the * in the resolved value to ${*}
54
54
  return options.convertToRegex ? escapeRegexCharacters(defaultValue) : defaultValue;
55
55
  }
56
56
  else {
@@ -207,7 +207,7 @@ export async function isWildcardOnlyAction(service, action) {
207
207
  return actionDetails.resourceTypes.length === 0;
208
208
  }
209
209
  /**
210
- * Get the the possible reource types for an action and resource
210
+ * Get the the possible resource types for an action and resource
211
211
  *
212
212
  * @param service the service the action belongs to
213
213
  * @param action the action to get the resource type for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-copilot/iam-simulate",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "Simulate evaluation of AWS IAM policies",
5
5
  "repository": {
6
6
  "type": "git",