declapract-typescript-ehmpathy 0.37.2 → 0.37.3

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "@ehmpathy/error-fns": "@declapract{check.minVersion('1.0.2')}"
3
+ "@ehmpathy/error-fns": "@declapract{check.minVersion('1.3.7')}"
4
4
  }
5
5
  }
@@ -44,5 +44,6 @@ module.exports = {
44
44
  'no-return-await': 'off', // this does not help anything and actually leads to bugs if we subsequently wrap the return in a try catch without remembering to _then_ add await
45
45
  '@typescript-eslint/return-await': 'off',
46
46
  '@typescript-eslint/no-unsafe-declaration-merging': 'off', // dobjs are built off of this
47
+ '@typescript-eslint/default-param-last': 'off', // interferes with input vs context
47
48
  },
48
49
  };
@@ -49,6 +49,7 @@ module.exports = {
49
49
  'no-return-await': 'off', // this does not help anything and actually leads to bugs if we subsequently wrap the return in a try catch without remembering to _then_ add await
50
50
  '@typescript-eslint/return-await': 'off',
51
51
  '@typescript-eslint/no-unsafe-declaration-merging': 'off',
52
+ '@typescript-eslint/default-param-last': 'off', // interferes with input vs context
52
53
  },
53
54
  settings: {
54
55
  'import/ignore': ['react-native'], // https://github.com/facebook/react-native/issues/28549
@@ -83,3 +83,30 @@ provider:
83
83
  Action:
84
84
  - SNS:Publish
85
85
  Resource: arn:aws:sns:${aws:region}:${aws:accountId}:${self:service}-*
86
+ # allow publishing to kinesis firehose streams namespaced by this service
87
+ - Effect: Allow
88
+ Action:
89
+ - firehose:PutRecord
90
+ Resource: arn:aws:firehose:${aws:region}:${aws:accountId}:deliverystream/${self:service}-* # allow publishing to any streams w/ this services name prefix
91
+ # allow reading and writing to glue tables namespaced to this service
92
+ - Effect: Allow
93
+ Action:
94
+ - glue:GetDatabase
95
+ - glue:GetTable
96
+ - glue:GetTableVersion
97
+ - glue:GetTableVersions
98
+ - glue:GetPartition
99
+ - glue:GetPartitions
100
+ - glue:CreatePartition
101
+ - glue:BatchCreatePartition
102
+ Resource:
103
+ - arn:aws:glue:${aws:region}:${aws:accountId}:catalog
104
+ - arn:aws:glue:${aws:region}:${aws:accountId}:database/@declapract{variable.databaseName}_${self:provider.stage}
105
+ - arn:aws:glue:${aws:region}:${aws:accountId}:table/@declapract{variable.databaseName}_${self:provider.stage}/*
106
+ # allow athena queries
107
+ - Effect: Allow
108
+ Action:
109
+ - athena:StartQueryExecution
110
+ - athena:GetQueryExecution
111
+ - athena:GetQueryResults
112
+ Resource: '*'
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.37.2",
5
+ "version": "0.37.3",
6
6
  "license": "MIT",
7
7
  "main": "src/index.js",
8
8
  "repository": "ehmpathy/declapract-typescript-ehmpathy",