@cloud-copilot/iam-expand 0.1.11 → 0.2.0

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/README.md CHANGED
@@ -6,6 +6,11 @@ Use this to:
6
6
  2) Get an exhaustive list of actions that are included in a policy to quickly search it for interesting actions.
7
7
  3) Investigate where interesting or dubious actions are being used in your policies.
8
8
 
9
+ <!-- Image of demo.svg -->
10
+ ![Demo](assets/demo.svg)
11
+
12
+ Extended demo [on YouTube](https://www.youtube.com/watch?v=357-uGru7300).
13
+
9
14
  Published as an [npm package](#typescriptnodejs-usage) in ESM and CommonJS plus available as a [CLI](#cli).
10
15
 
11
16
  All information is sourced from [@cloud-copilot/iam-data](https://github.com/cloud-copilot/iam-data) which is updated daily.
@@ -156,10 +161,10 @@ When reading from stdin (see [below](#read-from-stdin)) the CLI will wait 10 sec
156
161
 
157
162
  ```bash
158
163
  cat policy.json | iam-expand
159
- # Will wait for 10 seconds for input, which is plenty of time for a local file.
164
+ # Will wait up to 10 seconds for input to start, which is plenty of time for a local file.
160
165
 
161
166
  curl "https://government-secrets.s3.amazonaws.com/secret-policy.json" | iam-expand --read-wait-ms=20_000
162
- # Will wait for 20 seconds for the first byte from curl before timing out. Adjust as needed
167
+ # Will wait up to 20 seconds to receive first byte from curl before timing out. Adjust as needed
163
168
  ```
164
169
 
165
170
  ### Read from stdin
@@ -1,2 +1,4 @@
1
- export * from './expand.js';
1
+ export { extractActionsFromLineOfInput } from './cli_utils.js';
2
+ export { ExpandIamActionsOptions, InvalidActionBehavior, expandIamActions } from './expand.js';
3
+ export { expandJsonDocument } from './expand_file.js';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -1,18 +1,11 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./expand.js"), exports);
3
+ exports.expandJsonDocument = exports.expandIamActions = exports.InvalidActionBehavior = exports.extractActionsFromLineOfInput = void 0;
4
+ var cli_utils_js_1 = require("./cli_utils.js");
5
+ Object.defineProperty(exports, "extractActionsFromLineOfInput", { enumerable: true, get: function () { return cli_utils_js_1.extractActionsFromLineOfInput; } });
6
+ var expand_js_1 = require("./expand.js");
7
+ Object.defineProperty(exports, "InvalidActionBehavior", { enumerable: true, get: function () { return expand_js_1.InvalidActionBehavior; } });
8
+ Object.defineProperty(exports, "expandIamActions", { enumerable: true, get: function () { return expand_js_1.expandIamActions; } });
9
+ var expand_file_js_1 = require("./expand_file.js");
10
+ Object.defineProperty(exports, "expandJsonDocument", { enumerable: true, get: function () { return expand_file_js_1.expandJsonDocument; } });
18
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+D;AAAtD,6HAAA,6BAA6B,OAAA;AACtC,yCAA+F;AAA7D,kHAAA,qBAAqB,OAAA;AAAE,6GAAA,gBAAgB,OAAA;AACzE,mDAAsD;AAA7C,oHAAA,kBAAkB,OAAA"}
@@ -1,2 +1,4 @@
1
- export * from './expand.js';
1
+ export { extractActionsFromLineOfInput } from './cli_utils.js';
2
+ export { ExpandIamActionsOptions, InvalidActionBehavior, expandIamActions } from './expand.js';
3
+ export { expandJsonDocument } from './expand_file.js';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1,4 @@
1
- export * from './expand.js';
1
+ export { extractActionsFromLineOfInput } from './cli_utils.js';
2
+ export { InvalidActionBehavior, expandIamActions } from './expand.js';
3
+ export { expandJsonDocument } from './expand_file.js';
2
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAA2B,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-copilot/iam-expand",
3
- "version": "0.1.11",
3
+ "version": "0.2.0",
4
4
  "description": "Expand AWS IAM Actions with Wildcards",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,6 +41,6 @@
41
41
  "vitest": "^2.0.5"
42
42
  },
43
43
  "peerDependencies": {
44
- "@cloud-copilot/iam-data": ">=0.3.0 <1.0.0"
44
+ "@cloud-copilot/iam-data": ">=0.5.0 <1.0.0"
45
45
  }
46
46
  }