Skip to content

Commit 87941dc

Browse files
authored
Merge pull request #27 from owenr88/release/1.2.10
1.2.10
2 parents e3547d5 + 61ed085 commit 87941dc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/cognito-export/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cognito-export",
33
"description": "A simple CLI tool and JavaScript package for exporting users from an AWS Cognito user pool.",
4-
"version": "1.2.9",
4+
"version": "1.2.10",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"bin": "dist/cli.js",

packages/cognito-export/src/CognitoBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class CognitoBase {
8383
// Set the custom attributes
8484
userPool.UserPool?.SchemaAttributes?.forEach((attr) => {
8585
if (attr.Name && attr.Name.startsWith("custom:")) {
86-
this.customAttributes[attr.Name] = attr.AttributeDataType === "String" ? z.string() : z.number();
86+
this.customAttributes[attr.Name] = z.union([z.string(), z.number()]);
8787
}
8888
});
8989
if(Object.keys(this.customAttributes).length) {

packages/cognito-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cognito-import",
33
"description": "A simple CLI tool and JavaScript package for importing users into an AWS Cognito user pool.",
4-
"version": "1.2.9",
4+
"version": "1.2.10",
55
"main": "dist/index.js",
66
"bin": "dist/cli.js",
77
"repository": {

packages/zod-cognito/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zod-cognito",
33
"description": "Zod schemas for AWS Cognito User Pools",
4-
"version": "1.2.9",
4+
"version": "1.2.10",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"repository": {

0 commit comments

Comments
 (0)