Socket
Socket
Sign inDemoInstall

@candidpartners/snitch-types

Package Overview
Dependencies
0
Maintainers
8
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.3 to 4.0.0

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

## [4.0.0] - 2021-11-12
### Fix
- Fix Principal Model to handle multiple types
- Note: As this changes the model, it is a breaking change upon upgrade
- Fix: Resource and Action shld both be optional
### Features
- Add NotResource, NotAction, NotPrincipal
## [3.2.3] - 2021-11-12

@@ -9,0 +17,0 @@ ### Features

@@ -17,2 +17,16 @@ "use strict";

Object.defineProperty(exports, "IAWSResourceType", { enumerable: true, get: function () { return resource_type_1.IAWSResourceType; } });
var cli_response_1 = require("./cli-response");
var messages_1 = require("./messages");
var rule_result_1 = require("./rule-result");
var check_context_1 = require("./check-context");
var control_tag_1 = require("./control-tag");
var livecheck_context_1 = require("./livecheck-context");
var remediation_result_1 = require("./remediation-result");
var resource_result_1 = require("./resource-result");
var snitch_remediation_result_1 = require("./snitch-remediation-result");
var snitch_rule_1 = require("./snitch-rule");
var snitch_rule_result_1 = require("./snitch-rule-result");
var static_check_context_1 = require("./static-check-context");
var terraform_example_1 = require("./terraform-example");
var aws_config_event_1 = require("./aws-config-event");
__exportStar(require("./snitch-config"), exports);

@@ -19,0 +33,0 @@ __exportStar(require("./providers"), exports);

4

lib/cjs/providers/index.js

@@ -14,2 +14,6 @@ "use strict";

__exportStar(require("./aws"), exports);
var aws_provider_1 = require("./aws-provider");
var azure_provider_1 = require("./azure-provider");
var gcp_provider_1 = require("./gcp-provider");
var service_provider_1 = require("./service-provider");
//# sourceMappingURL=index.js.map
// Main exports
export { IAWSResourceType } from "./resource-type";
export {} from "./cli-response";
export {} from "./messages";
export {} from "./rule-result";
export {} from "./check-context";
export {} from "./control-tag";
export {} from "./livecheck-context";
export {} from "./remediation-result";
export {} from "./resource-result";
export {} from "./snitch-remediation-result";
export {} from "./snitch-rule";
export {} from "./snitch-rule-result";
export {} from "./static-check-context";
export {} from "./terraform-example";
export {} from "./aws-config-event";
export * from "./snitch-config";

@@ -4,0 +18,0 @@ export * from "./providers";

export * from "./aws";
export {} from "./aws-provider";
export {} from "./azure-provider";
export {} from "./gcp-provider";
export {} from "./service-provider";
//# sourceMappingURL=index.js.map

15

lib/types/providers/aws/index.d.ts

@@ -218,5 +218,3 @@ import { CloudFormation, CloudFront, CloudTrail, CloudWatchLogs, ConfigService, DynamoDB, EC2, ECS, ELBv2, IAM, KMS, Lambda, RDS, Route53, S3, SNS } from "aws-sdk";

principalType: "AWS" | "CanonicalUser" | "Federated" | "Service";
identifiers: string[];
canShareAcrossAccounts: boolean;
limitedToKnownAccounts: (knownAccountIds: string[]) => boolean;
identifier: string;
}

@@ -252,8 +250,13 @@ /**

export interface IPolicyStatement {
Action: string[];
Action?: string[];
NotAction?: string[];
Condition?: ICondition[];
Effect: "Allow" | "Deny";
Principal?: IPrincipal | string;
Resource: string[];
Principal?: IPrincipal[] | "*";
NotPrincipal?: IPrincipal[];
Resource?: string[];
NotResource?: string[];
Sid?: string;
canShareAcrossAccounts: boolean;
limitedToKnownAccounts: (knownAccountIds: string[]) => boolean;
}

@@ -260,0 +263,0 @@ export interface IIAMPolicy {

@@ -23,3 +23,3 @@ {

"types": "./lib/types/index.d.ts",
"version": "3.2.3",
"version": "4.0.0",
"scripts": {

@@ -61,21 +61,21 @@ "audit:ci": "audit-ci --moderate --config audit-ci.json",

"@azure/graph": "5.0.2",
"@azure/identity": "1.3.0",
"@azure/ms-rest-nodeauth": "3.0.10",
"@azure/identity": "^2.0.1",
"@azure/ms-rest-nodeauth": "3.1.1",
"@candidpartners/eslint-config-base": "^1.0.3",
"@google-cloud/kms": "2.4.2",
"@google-cloud/kms": "2.10.0",
"@google-cloud/storage": "5.8.5",
"@types/node": "^15.12.5",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"@types/node": "^15.14.9",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"audit-ci": "^4.2.0",
"aws-sdk": "2.937.0",
"check-outdated": "^2.8.0",
"eslint": "^7.28.0",
"eslint-plugin-import": "^2.23.4",
"check-outdated": "^2.10.2",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.25.4",
"googleapis": "80.0.0",
"prettier": "^2.3.2",
"ts-node": "^10.0.0",
"typedoc": "^0.21.2",
"typescript": "^4.3.5"
"prettier": "^2.5.1",
"ts-node": "^10.4.0",
"typedoc": "^0.22.11",
"typescript": "^4.5.5"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc