ts-ag 1.0.29 → 1.0.30
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/dist/cognito/client.d.ts +1 -1
- package/dist/cognito/client.js +2 -5
- package/dist/s3/client.d.ts.map +1 -1
- package/dist/s3/client.js +1 -1
- package/package.json +3 -3
- package/src/cognito/client.ts +3 -3
- package/src/s3/client.ts +4 -1
package/dist/cognito/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
/**
|
|
3
|
-
* Convenience function if process.env.
|
|
3
|
+
* Convenience function if process.env.AWS_REGION is set
|
|
4
4
|
*/
|
|
5
5
|
export declare function getCognitoClient(): CognitoIdentityProviderClient;
|
|
6
6
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/cognito/client.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
/**
|
|
3
|
-
* Convenience function if process.env.
|
|
3
|
+
* Convenience function if process.env.AWS_REGION is set
|
|
4
4
|
*/
|
|
5
5
|
export function getCognitoClient() {
|
|
6
|
-
return new CognitoIdentityProviderClient({
|
|
7
|
-
region: process.env.REGION,
|
|
8
|
-
endpoint: `https://cognito-idp.${process.env.REGION}.amazonaws.com`
|
|
9
|
-
});
|
|
6
|
+
return new CognitoIdentityProviderClient({});
|
|
10
7
|
}
|
package/dist/s3/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/s3/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C;;GAEG;AACH,wBAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/s3/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C;;GAEG;AACH,wBAAgB,KAAK,aAKpB"}
|
package/dist/s3/client.js
CHANGED
|
@@ -3,5 +3,5 @@ import { S3Client } from '@aws-sdk/client-s3';
|
|
|
3
3
|
* Convenience function for S3Client when process.env.REGION is set
|
|
4
4
|
*/
|
|
5
5
|
export function getS3() {
|
|
6
|
-
return new S3Client({
|
|
6
|
+
return new S3Client({});
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-ag",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"description": "Useful TS stuff",
|
|
5
5
|
"bugs": "https://github.com/ageorgeh/ts-ag/issues",
|
|
6
6
|
"author": "Alexander Hornung",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"@actions/languageserver": "^0.3.46",
|
|
70
70
|
"@types/aws-lambda": "8.10.161",
|
|
71
71
|
"@types/hast": "3.0.4",
|
|
72
|
-
"@types/node": "^24.
|
|
72
|
+
"@types/node": "^24.12.0",
|
|
73
73
|
"@types/ungap__structured-clone": "1.2.0",
|
|
74
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
74
|
+
"@typescript/native-preview": "7.0.0-dev.20260306.1",
|
|
75
75
|
"concurrently": "^9.2.1",
|
|
76
76
|
"globals": "^17.4.0",
|
|
77
77
|
"husky": "^9.1.7",
|
package/src/cognito/client.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Convenience function if process.env.
|
|
4
|
+
* Convenience function if process.env.AWS_REGION is set
|
|
5
5
|
*/
|
|
6
6
|
export function getCognitoClient() {
|
|
7
7
|
return new CognitoIdentityProviderClient({
|
|
8
|
-
region: process.env.
|
|
9
|
-
endpoint: `https://cognito-idp.${process.env.REGION}.amazonaws.com`
|
|
8
|
+
// region: process.env.AWS_REGION
|
|
9
|
+
// endpoint: `https://cognito-idp.${process.env.REGION}.amazonaws.com`
|
|
10
10
|
});
|
|
11
11
|
}
|
package/src/s3/client.ts
CHANGED
|
@@ -4,5 +4,8 @@ import { S3Client } from '@aws-sdk/client-s3';
|
|
|
4
4
|
* Convenience function for S3Client when process.env.REGION is set
|
|
5
5
|
*/
|
|
6
6
|
export function getS3() {
|
|
7
|
-
return new S3Client({
|
|
7
|
+
return new S3Client({
|
|
8
|
+
// endpoint: `https://s3.${process.env.REGION}.amazonaws.com`,
|
|
9
|
+
// region: process.env.REGION
|
|
10
|
+
});
|
|
8
11
|
}
|