idea-aws 3.6.2 → 3.7.2
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/.eslintrc.js +14 -138
- package/dist/index.d.ts +11 -10
- package/dist/index.js +14 -2018
- package/dist/{attachments.d.ts → src/attachments.d.ts} +0 -0
- package/dist/src/attachments.js +45 -0
- package/dist/{cognito.d.ts → src/cognito.d.ts} +16 -11
- package/dist/src/cognito.js +251 -0
- package/dist/{comprehend.d.ts → src/comprehend.d.ts} +0 -0
- package/dist/src/comprehend.js +28 -0
- package/dist/{dynamoDB.d.ts → src/dynamoDB.d.ts} +16 -19
- package/dist/src/dynamoDB.js +308 -0
- package/dist/{genericController.d.ts → src/genericController.d.ts} +0 -0
- package/dist/src/genericController.js +112 -0
- package/dist/{resourceController.d.ts → src/resourceController.d.ts} +8 -4
- package/dist/src/resourceController.js +369 -0
- package/dist/{s3.d.ts → src/s3.d.ts} +1 -1
- package/dist/src/s3.js +144 -0
- package/dist/{ses.d.ts → src/ses.d.ts} +2 -1
- package/dist/src/ses.js +89 -0
- package/dist/{sns.d.ts → src/sns.d.ts} +1 -1
- package/dist/src/sns.js +70 -0
- package/dist/{streamController.d.ts → src/streamController.d.ts} +0 -0
- package/dist/src/streamController.js +16 -0
- package/dist/{translate.d.ts → src/translate.d.ts} +3 -0
- package/dist/src/translate.js +128 -0
- package/index.ts +12 -0
- package/package.json +19 -25
- package/webpack.config.js +0 -18
package/.eslintrc.js
CHANGED
|
@@ -1,140 +1,16 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
parserOptions: {
|
|
17
|
-
project: 'tsconfig.json',
|
|
18
|
-
sourceType: 'module'
|
|
19
|
-
},
|
|
20
|
-
plugins: ['@typescript-eslint', 'eslint-plugin-import', 'eslint-plugin-jsdoc', 'eslint-plugin-prefer-arrow'],
|
|
21
|
-
rules: {
|
|
22
|
-
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
23
|
-
'@typescript-eslint/array-type': 'error',
|
|
24
|
-
'@typescript-eslint/ban-ts-comment': 'off',
|
|
25
|
-
'@typescript-eslint/ban-types': [
|
|
26
|
-
'error',
|
|
27
|
-
{
|
|
28
|
-
types: {
|
|
29
|
-
Object: {
|
|
30
|
-
message: 'Avoid using the `Object` type. Did you mean `object`?'
|
|
31
|
-
},
|
|
32
|
-
Function: {
|
|
33
|
-
message: 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.'
|
|
34
|
-
},
|
|
35
|
-
Boolean: {
|
|
36
|
-
message: 'Avoid using the `Boolean` type. Did you mean `boolean`?'
|
|
37
|
-
},
|
|
38
|
-
Number: {
|
|
39
|
-
message: 'Avoid using the `Number` type. Did you mean `number`?'
|
|
40
|
-
},
|
|
41
|
-
String: {
|
|
42
|
-
message: 'Avoid using the `String` type. Did you mean `string`?'
|
|
43
|
-
},
|
|
44
|
-
Symbol: {
|
|
45
|
-
message: 'Avoid using the `Symbol` type. Did you mean `symbol`?'
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
51
|
-
'@typescript-eslint/consistent-type-definitions': 'error',
|
|
52
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
53
|
-
'@typescript-eslint/dot-notation': 'off',
|
|
54
|
-
'@typescript-eslint/member-delimiter-style': [
|
|
55
|
-
'error',
|
|
56
|
-
{
|
|
57
|
-
multiline: { delimiter: 'semi', requireLast: true },
|
|
58
|
-
singleline: { delimiter: 'semi', requireLast: false }
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
'@typescript-eslint/member-ordering': 'off',
|
|
62
|
-
'@typescript-eslint/no-empty-function': 'off',
|
|
63
|
-
'@typescript-eslint/no-empty-interface': 'error',
|
|
64
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
65
|
-
'@typescript-eslint/no-floating-promises': 'off',
|
|
66
|
-
'@typescript-eslint/no-misused-promises': 'off',
|
|
67
|
-
'@typescript-eslint/no-inferrable-types': ['error', { ignoreParameters: true }],
|
|
68
|
-
'@typescript-eslint/no-misused-new': 'error',
|
|
69
|
-
'@typescript-eslint/no-namespace': 'error',
|
|
70
|
-
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
71
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
|
72
|
-
'@typescript-eslint/no-unused-expressions': 'error',
|
|
73
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
74
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
75
|
-
'@typescript-eslint/no-unsafe-call': 'off',
|
|
76
|
-
'@typescript-eslint/no-unsafe-return': 'off',
|
|
77
|
-
'@typescript-eslint/no-use-before-define': 'off',
|
|
78
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
79
|
-
'@typescript-eslint/prefer-for-of': 'error',
|
|
80
|
-
'@typescript-eslint/prefer-function-type': 'error',
|
|
81
|
-
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
82
|
-
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true }],
|
|
83
|
-
'@typescript-eslint/semi': ['error', 'always', { omitLastInOneLineBlock: true }],
|
|
84
|
-
'@typescript-eslint/triple-slash-reference': [
|
|
85
|
-
'error',
|
|
86
|
-
{ path: 'always', types: 'prefer-import', lib: 'always' }
|
|
87
|
-
],
|
|
88
|
-
'@typescript-eslint/type-annotation-spacing': 'error',
|
|
89
|
-
'@typescript-eslint/unified-signatures': 'error',
|
|
90
|
-
'arrow-body-style': 'error',
|
|
91
|
-
'arrow-parens': ['off', 'always'],
|
|
92
|
-
'brace-style': ['error', '1tbs'],
|
|
93
|
-
'comma-dangle': ['error', 'never'],
|
|
94
|
-
complexity: 'off',
|
|
95
|
-
'constructor-super': 'error',
|
|
96
|
-
curly: 'off',
|
|
97
|
-
'eol-last': 'error',
|
|
98
|
-
eqeqeq: ['error', 'always'],
|
|
99
|
-
'guard-for-in': 'error',
|
|
100
|
-
'max-classes-per-file': 'off',
|
|
101
|
-
'max-len': ['error', { code: 120, tabWidth: 2 }],
|
|
102
|
-
'new-parens': 'off',
|
|
103
|
-
'newline-per-chained-call': 'off',
|
|
104
|
-
'no-bitwise': 'off',
|
|
105
|
-
'no-caller': 'error',
|
|
106
|
-
'no-case-declarations': 'off',
|
|
107
|
-
'no-cond-assign': 'error',
|
|
108
|
-
'no-console': ['error', { allow: ['log'] }],
|
|
109
|
-
'no-debugger': 'error',
|
|
110
|
-
'no-empty': 'error',
|
|
111
|
-
'no-eval': 'error',
|
|
112
|
-
'no-extra-semi': 'error',
|
|
113
|
-
'no-fallthrough': 'error',
|
|
114
|
-
'no-invalid-this': 'error',
|
|
115
|
-
'no-irregular-whitespace': 'error',
|
|
116
|
-
'no-multiple-empty-lines': 'error',
|
|
117
|
-
'no-new-wrappers': 'error',
|
|
118
|
-
'no-restricted-imports': ['error', 'rxjs/Rx'],
|
|
119
|
-
'no-shadow': 'off',
|
|
120
|
-
'no-throw-literal': 'error',
|
|
121
|
-
'no-trailing-spaces': 'error',
|
|
122
|
-
'no-undef-init': 'error',
|
|
123
|
-
'no-underscore-dangle': 'off',
|
|
124
|
-
'no-unsafe-finally': 'error',
|
|
125
|
-
'no-unused-labels': 'error',
|
|
126
|
-
'no-var': 'error',
|
|
127
|
-
'object-shorthand': 'error',
|
|
128
|
-
'one-var': 'off',
|
|
129
|
-
'prefer-const': 'error',
|
|
130
|
-
'quote-props': ['error', 'as-needed'],
|
|
131
|
-
radix: 'error',
|
|
132
|
-
'space-before-function-paren': ['error', 'never'],
|
|
133
|
-
'space-in-parens': ['error', 'never'],
|
|
134
|
-
'spaced-comment': ['error', 'always', { markers: ['/'] }],
|
|
135
|
-
'use-isnan': 'error',
|
|
136
|
-
'valid-typeof': 'error'
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
]
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
browser: true,
|
|
5
|
+
es6: true,
|
|
6
|
+
node: true,
|
|
7
|
+
commonjs: true
|
|
8
|
+
},
|
|
9
|
+
parser: '@typescript-eslint/parser',
|
|
10
|
+
plugins: ['@typescript-eslint'],
|
|
11
|
+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
12
|
+
rules: {
|
|
13
|
+
'@typescript-eslint/explicit-module-boundary-types': 0,
|
|
14
|
+
'@typescript-eslint/no-explicit-any': 0
|
|
15
|
+
}
|
|
140
16
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
1
|
+
export * from './src/genericController';
|
|
2
|
+
export * from './src/resourceController';
|
|
3
|
+
export * from './src/streamController';
|
|
4
|
+
export * from './src/dynamoDB';
|
|
5
|
+
export * from './src/cognito';
|
|
6
|
+
export * from './src/comprehend';
|
|
7
|
+
export * from './src/s3';
|
|
8
|
+
export * from './src/ses';
|
|
9
|
+
export * from './src/sns';
|
|
10
|
+
export * from './src/translate';
|
|
11
|
+
export * from './src/attachments';
|