@seamapi/http 1.16.0 → 1.17.1
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/connect.cjs +5 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1 -1
- package/lib/seam/connect/auth.js +6 -1
- package/lib/seam/connect/auth.js.map +1 -1
- package/lib/seam/connect/routes/access-codes.d.ts +1 -1
- package/lib/seam/connect/routes/access-codes.js +1 -1
- package/lib/seam/connect/routes/access-codes.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +6 -4
- package/src/lib/seam/connect/auth.ts +5 -2
- package/src/lib/seam/connect/routes/access-codes.ts +2 -5
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -449,7 +449,10 @@ var warnOnInsecureuserIdentifierKey = (userIdentifierKey) => {
|
|
|
449
449
|
);
|
|
450
450
|
}
|
|
451
451
|
};
|
|
452
|
-
var isEmail = (value) =>
|
|
452
|
+
var isEmail = (value) => {
|
|
453
|
+
if (value.includes("!")) return false;
|
|
454
|
+
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
|
455
|
+
};
|
|
453
456
|
|
|
454
457
|
// src/lib/seam/connect/seam-http-error.ts
|
|
455
458
|
var SeamHttpApiError = class extends Error {
|
|
@@ -1197,7 +1200,7 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1197
1200
|
path: "/access_codes/pull_backup_access_code",
|
|
1198
1201
|
method: "post",
|
|
1199
1202
|
body,
|
|
1200
|
-
responseKey: "
|
|
1203
|
+
responseKey: "access_code"
|
|
1201
1204
|
});
|
|
1202
1205
|
}
|
|
1203
1206
|
update(body) {
|