@zauru-sdk/common 2.0.7 → 2.0.11
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 +16 -0
- package/dist/common.d.ts +1 -1
- package/package.json +3 -3
- package/src/common.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.11](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.10...v2.0.11) (2024-10-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zauru-sdk/common
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.10](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.9...v2.0.10) (2024-10-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @zauru-sdk/common
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.0.7](https://github.com/intuitiva/zauru-typescript-sdk/compare/v2.0.6...v2.0.7) (2024-10-03)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @zauru-sdk/common
|
package/dist/common.d.ts
CHANGED
|
@@ -178,7 +178,7 @@ export declare function calculateTimeDifference(timestamp: string): {
|
|
|
178
178
|
* // With suffix
|
|
179
179
|
* createCode("INV"); // Returns something like "INV-1A2B3C4D"
|
|
180
180
|
*/
|
|
181
|
-
export declare function createCode(suffix
|
|
181
|
+
export declare function createCode(suffix?: string | null): string;
|
|
182
182
|
/**
|
|
183
183
|
* Parses a code generated by createCode function to extract its components.
|
|
184
184
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Funciones de uso común en el desarrollo de webapps en Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@remix-run/node": "^2.8.1",
|
|
23
|
-
"@zauru-sdk/types": "^2.0.
|
|
23
|
+
"@zauru-sdk/types": "^2.0.10",
|
|
24
24
|
"moment": "^2.30.1",
|
|
25
25
|
"moment-timezone": "^0.5.45"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "5856b04400b375d8d879ee30311d90b43d3c78a0"
|
|
28
28
|
}
|
package/src/common.ts
CHANGED
|
@@ -718,7 +718,7 @@ export function calculateTimeDifference(timestamp: string): {
|
|
|
718
718
|
* // With suffix
|
|
719
719
|
* createCode("INV"); // Returns something like "INV-1A2B3C4D"
|
|
720
720
|
*/
|
|
721
|
-
export function createCode(suffix
|
|
721
|
+
export function createCode(suffix?: string | null): string {
|
|
722
722
|
const timestamp = Math.floor(Date.now() / 1000)
|
|
723
723
|
.toString(36)
|
|
724
724
|
.toUpperCase(); // Timestamp in base 36 and converted to uppercase
|