@dereekb/util 9.1.0 → 9.1.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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/lib/contact/phone.d.ts +10 -2
- package/src/lib/contact/phone.js +7 -0
- package/src/lib/contact/phone.js.map +1 -1
- package/test/CHANGELOG.md +4 -0
- package/test/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.1.1](https://github.com/dereekb/dbx-components/compare/v9.1.0-dev...v9.1.1) (2022-08-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
# [9.1.0](https://github.com/dereekb/dbx-components/compare/v9.0.0-dev...v9.1.0) (2022-08-15)
|
|
6
10
|
|
|
7
11
|
|
package/package.json
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare type PhoneNumber = string;
|
|
5
5
|
/**
|
|
6
|
-
* E.164 Standardized Phone Number
|
|
6
|
+
* E.164 Standardized Phone Number. Always starts with a +
|
|
7
|
+
*
|
|
8
|
+
* https://en.wikipedia.org/wiki/E.164
|
|
7
9
|
*/
|
|
8
|
-
export declare type E164PhoneNumber =
|
|
10
|
+
export declare type E164PhoneNumber = `+${PhoneNumber}`;
|
|
11
|
+
/**
|
|
12
|
+
* E164PhoneNumber regex validator.
|
|
13
|
+
*
|
|
14
|
+
* Requires the + to be provided.
|
|
15
|
+
*/
|
|
16
|
+
export declare const E164PHONE_NUMBER_REGEX: RegExp;
|
package/src/lib/contact/phone.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.E164PHONE_NUMBER_REGEX = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* E164PhoneNumber regex validator.
|
|
6
|
+
*
|
|
7
|
+
* Requires the + to be provided.
|
|
8
|
+
*/
|
|
9
|
+
exports.E164PHONE_NUMBER_REGEX = /^\+[1-9]\d{1,14}$/;
|
|
3
10
|
//# sourceMappingURL=phone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/contact/phone.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"phone.js","sourceRoot":"","sources":["../../../../../../packages/util/src/lib/contact/phone.ts"],"names":[],"mappings":";;;AAYA;;;;GAIG;AACU,QAAA,sBAAsB,GAAG,mBAAmB,CAAC"}
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.1.1](https://github.com/dereekb/dbx-components/compare/v9.1.0-dev...v9.1.1) (2022-08-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
# [9.1.0](https://github.com/dereekb/dbx-components/compare/v9.0.0-dev...v9.1.0) (2022-08-15)
|
|
6
10
|
|
|
7
11
|
|
package/test/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/util/test",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/util": "9.1.
|
|
9
|
+
"@dereekb/util": "9.1.1",
|
|
10
10
|
"lodash.isequal": "^4.5.0",
|
|
11
11
|
"make-error": "^1.3.0",
|
|
12
12
|
"ts-essentials": "^9.1.2",
|