@wildix/xbees-conversations-utils 1.2.6 → 1.2.7

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.
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isAnonymousUserEmail = exports.generateAnonymousUserEmailOrThrowError = void 0;
4
- const ANONYMOUS_EMAIL_DOMAIN = 'wildix.com';
4
+ const ANONYMOUS_EMAIL_DOMAIN = 'anonymous.wildix.com';
5
5
  const ANONYMOUS_EMAIL_PREFIX = 'anonymous-';
6
6
  const ANONYMOUS_STREAM_ID_REGEXP = /^[0-9A-Za-z]{12}$/;
7
- const ANONYMOUS_USER_EMAIL_REGEXP = /^anonymous-[0-9A-Za-z]{12}@wildix\.com$/;
7
+ const ANONYMOUS_USER_EMAIL_REGEXP = /^anonymous-[0-9A-Za-z]{12}@anonymous\.wildix\.com$/;
8
8
  function generateAnonymousUserEmailOrThrowError(streamId) {
9
9
  if (!streamId.trim()) {
10
10
  throw new Error('Anonymous stream id must not be empty');
@@ -1,7 +1,7 @@
1
- const ANONYMOUS_EMAIL_DOMAIN = 'wildix.com';
1
+ const ANONYMOUS_EMAIL_DOMAIN = 'anonymous.wildix.com';
2
2
  const ANONYMOUS_EMAIL_PREFIX = 'anonymous-';
3
3
  const ANONYMOUS_STREAM_ID_REGEXP = /^[0-9A-Za-z]{12}$/;
4
- const ANONYMOUS_USER_EMAIL_REGEXP = /^anonymous-[0-9A-Za-z]{12}@wildix\.com$/;
4
+ const ANONYMOUS_USER_EMAIL_REGEXP = /^anonymous-[0-9A-Za-z]{12}@anonymous\.wildix\.com$/;
5
5
  export function generateAnonymousUserEmailOrThrowError(streamId) {
6
6
  if (!streamId.trim()) {
7
7
  throw new Error('Anonymous stream id must not be empty');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-utils",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",