@ttoss/cloud-auth 0.13.2 → 0.13.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.
package/dist/esm/index.js CHANGED
@@ -1,4 +1,9 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", {
4
+ value,
5
+ configurable: true
6
+ });
2
7
 
3
8
  // src/config.ts
4
9
  var PASSWORD_MINIMUM_LENGTH = 8;
@@ -18,7 +23,7 @@ var defaultPrincipalTags = {
18
23
  appClientId: "aud",
19
24
  userId: "sub"
20
25
  };
21
- var createAuthTemplate = ({
26
+ var createAuthTemplate = /* @__PURE__ */__name(({
22
27
  autoVerifiedAttributes = ["email"],
23
28
  identityPool,
24
29
  schema,
@@ -32,8 +37,8 @@ var createAuthTemplate = ({
32
37
  Resources: {
33
38
  [CognitoUserPoolLogicalId]: {
34
39
  /**
35
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html
36
- */
40
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html
41
+ */
37
42
  Type: "AWS::Cognito::UserPool",
38
43
  Properties: {
39
44
  AutoVerifiedAttributes,
@@ -61,8 +66,8 @@ var createAuthTemplate = ({
61
66
  },
62
67
  [CognitoUserPoolClientLogicalId]: {
63
68
  /**
64
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html
65
- */
69
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html
70
+ */
66
71
  Type: "AWS::Cognito::UserPoolClient",
67
72
  Properties: {
68
73
  SupportedIdentityProviders: ["COGNITO"],
@@ -148,8 +153,8 @@ var createAuthTemplate = ({
148
153
  if (identityPool?.enabled) {
149
154
  template.Resources[CognitoIdentityPoolLogicalId] = {
150
155
  /**
151
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html
152
- */
156
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html
157
+ */
153
158
  Type: "AWS::Cognito::IdentityPool",
154
159
  Properties: {
155
160
  AllowUnauthenticatedIdentities: identityPool.allowUnauthenticatedIdentities || false,
@@ -171,8 +176,8 @@ var createAuthTemplate = ({
171
176
  }
172
177
  template.Resources.CognitoIdentityPoolRoleAttachment = {
173
178
  /**
174
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html
175
- */
179
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html
180
+ */
176
181
  Type: "AWS::Cognito::IdentityPoolRoleAttachment",
177
182
  Properties: {
178
183
  IdentityPoolId: {
@@ -368,7 +373,7 @@ var createAuthTemplate = ({
368
373
  }
369
374
  }
370
375
  return template;
371
- };
376
+ }, "createAuthTemplate");
372
377
  createAuthTemplate.CognitoUserPoolLogicalId = CognitoUserPoolLogicalId;
373
378
  createAuthTemplate.CognitoUserPoolClientLogicalId = CognitoUserPoolClientLogicalId;
374
379
  createAuthTemplate.CognitoIdentityPoolLogicalId = CognitoIdentityPoolLogicalId;
package/dist/index.js CHANGED
@@ -5,6 +5,10 @@ var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", {
9
+ value,
10
+ configurable: true
11
+ });
8
12
  var __export = (target, all) => {
9
13
  for (var name in all) __defProp(target, name, {
10
14
  get: all[name],
@@ -50,7 +54,7 @@ var defaultPrincipalTags = {
50
54
  appClientId: "aud",
51
55
  userId: "sub"
52
56
  };
53
- var createAuthTemplate = ({
57
+ var createAuthTemplate = /* @__PURE__ */__name(({
54
58
  autoVerifiedAttributes = ["email"],
55
59
  identityPool,
56
60
  schema,
@@ -64,8 +68,8 @@ var createAuthTemplate = ({
64
68
  Resources: {
65
69
  [CognitoUserPoolLogicalId]: {
66
70
  /**
67
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html
68
- */
71
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html
72
+ */
69
73
  Type: "AWS::Cognito::UserPool",
70
74
  Properties: {
71
75
  AutoVerifiedAttributes,
@@ -93,8 +97,8 @@ var createAuthTemplate = ({
93
97
  },
94
98
  [CognitoUserPoolClientLogicalId]: {
95
99
  /**
96
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html
97
- */
100
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolclient.html
101
+ */
98
102
  Type: "AWS::Cognito::UserPoolClient",
99
103
  Properties: {
100
104
  SupportedIdentityProviders: ["COGNITO"],
@@ -180,8 +184,8 @@ var createAuthTemplate = ({
180
184
  if (identityPool?.enabled) {
181
185
  template.Resources[CognitoIdentityPoolLogicalId] = {
182
186
  /**
183
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html
184
- */
187
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html
188
+ */
185
189
  Type: "AWS::Cognito::IdentityPool",
186
190
  Properties: {
187
191
  AllowUnauthenticatedIdentities: identityPool.allowUnauthenticatedIdentities || false,
@@ -203,8 +207,8 @@ var createAuthTemplate = ({
203
207
  }
204
208
  template.Resources.CognitoIdentityPoolRoleAttachment = {
205
209
  /**
206
- * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html
207
- */
210
+ * https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypoolroleattachment.html
211
+ */
208
212
  Type: "AWS::Cognito::IdentityPoolRoleAttachment",
209
213
  Properties: {
210
214
  IdentityPoolId: {
@@ -400,7 +404,7 @@ var createAuthTemplate = ({
400
404
  }
401
405
  }
402
406
  return template;
403
- };
407
+ }, "createAuthTemplate");
404
408
  createAuthTemplate.CognitoUserPoolLogicalId = CognitoUserPoolLogicalId;
405
409
  createAuthTemplate.CognitoUserPoolClientLogicalId = CognitoUserPoolClientLogicalId;
406
410
  createAuthTemplate.CognitoIdentityPoolLogicalId = CognitoIdentityPoolLogicalId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/cloud-auth",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,14 +19,14 @@
19
19
  ],
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@ttoss/cloudformation": "^0.11.0"
22
+ "@ttoss/cloudformation": "^0.11.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "^30.0.0",
26
26
  "jest": "^30.0.4",
27
27
  "tsup": "^8.5.0",
28
28
  "typescript": "~5.7.2",
29
- "@ttoss/config": "^1.35.6"
29
+ "@ttoss/config": "^1.35.7"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",