@escapenavigator/utils 2.1.6 → 2.1.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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/is-valid-pt-nif.d.ts +1 -1
- package/dist/is-valid-pt-nif.js +1 -1
- package/dist/pt-fatura.d.ts +11 -0
- package/dist/pt-fatura.js +14 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './is-axios-error';
|
|
|
24
24
|
export * from './is-network-error';
|
|
25
25
|
export * from './is-stale-chunk-error';
|
|
26
26
|
export * from './is-valid-pt-nif';
|
|
27
|
+
export * from './pt-fatura';
|
|
27
28
|
export * from './phone';
|
|
28
29
|
export * from './pick';
|
|
29
30
|
export * from './promocode-error-codes';
|
package/dist/index.js
CHANGED
|
@@ -40,6 +40,7 @@ __exportStar(require("./is-axios-error"), exports);
|
|
|
40
40
|
__exportStar(require("./is-network-error"), exports);
|
|
41
41
|
__exportStar(require("./is-stale-chunk-error"), exports);
|
|
42
42
|
__exportStar(require("./is-valid-pt-nif"), exports);
|
|
43
|
+
__exportStar(require("./pt-fatura"), exports);
|
|
43
44
|
__exportStar(require("./phone"), exports);
|
|
44
45
|
__exportStar(require("./pick"), exports);
|
|
45
46
|
__exportStar(require("./promocode-error-codes"), exports);
|
package/dist/is-valid-pt-nif.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isValidPtNif = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Portuguese NIF checksum (9 digits).
|
|
6
|
-
* Used
|
|
6
|
+
* Used when a booking should appear on a fatura (person or company).
|
|
7
7
|
*/
|
|
8
8
|
const isValidPtNif = (value) => {
|
|
9
9
|
const nif = (value || '').replace(/\s+/g, '');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Подписи только для Португалии — не ключи i18n.
|
|
3
|
+
* «Fatura com NIF» это частник или фирма, не «как компания».
|
|
4
|
+
*/
|
|
5
|
+
export declare const PT_FATURA: {
|
|
6
|
+
readonly checkbox: "Fatura com NIF";
|
|
7
|
+
readonly name: "Nome";
|
|
8
|
+
readonly nif: "NIF";
|
|
9
|
+
readonly nifInvalid: "NIF inválido";
|
|
10
|
+
readonly address: "Morada";
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PT_FATURA = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Подписи только для Португалии — не ключи i18n.
|
|
6
|
+
* «Fatura com NIF» это частник или фирма, не «как компания».
|
|
7
|
+
*/
|
|
8
|
+
exports.PT_FATURA = {
|
|
9
|
+
checkbox: 'Fatura com NIF',
|
|
10
|
+
name: 'Nome',
|
|
11
|
+
nif: 'NIF',
|
|
12
|
+
nifInvalid: 'NIF inválido',
|
|
13
|
+
address: 'Morada',
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/utils",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.1.
|
|
17
|
+
"@escapenavigator/types": "^2.1.7",
|
|
18
18
|
"axios": "^0.21.4",
|
|
19
19
|
"class-transformer": "^0.5.1",
|
|
20
20
|
"class-validator": "^0.13.2",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"ts-jest": "^29.1.1",
|
|
30
30
|
"typescript": "^5.6"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "c3cfced66cea79b0a59f8168f8a759d54d91462d"
|
|
33
33
|
}
|