@aidc-toolkit/gs1 0.9.11-beta → 0.9.13-beta
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.cjs +1 -2041
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1968
- package/package.json +10 -12
- package/src/idkey.ts +13 -2
- package/src/locale/en/locale-strings.ts +1 -0
- package/src/locale/fr/locale-strings.ts +1 -0
- package/test/idkey.test.ts +4 -1
- /package/{eslint.config.js → eslint.config.ts} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -31,6 +31,7 @@ declare const localeStrings: {
|
|
|
31
31
|
readonly gs1CompanyPrefix: "GS1 Company Prefix";
|
|
32
32
|
readonly upcCompanyPrefix: "U.P.C. Company Prefix";
|
|
33
33
|
readonly gs18Prefix: "GS1-8 Prefix";
|
|
34
|
+
readonly invalidPrefixType: "Invalid prefix type";
|
|
34
35
|
readonly gs1CompanyPrefixCantStartWith0: "GS1 Company Prefix can't start with \"0\"";
|
|
35
36
|
readonly gs1CompanyPrefixCantStartWith00000: "GS1 Company Prefix can't start with \"00000\"";
|
|
36
37
|
readonly gs1CompanyPrefixCantStartWith000000: "GS1 Company Prefix can't start with \"000000\"";
|
|
@@ -78,6 +79,7 @@ declare const gs1Resources: {
|
|
|
78
79
|
readonly gs1CompanyPrefix: "GS1 Company Prefix";
|
|
79
80
|
readonly upcCompanyPrefix: "U.P.C. Company Prefix";
|
|
80
81
|
readonly gs18Prefix: "GS1-8 Prefix";
|
|
82
|
+
readonly invalidPrefixType: "Invalid prefix type";
|
|
81
83
|
readonly gs1CompanyPrefixCantStartWith0: "GS1 Company Prefix can't start with \"0\"";
|
|
82
84
|
readonly gs1CompanyPrefixCantStartWith00000: "GS1 Company Prefix can't start with \"00000\"";
|
|
83
85
|
readonly gs1CompanyPrefixCantStartWith000000: "GS1 Company Prefix can't start with \"000000\"";
|
|
@@ -116,6 +118,7 @@ declare const gs1Resources: {
|
|
|
116
118
|
readonly gs1CompanyPrefix: "Préfixe de l'entreprise GS1";
|
|
117
119
|
readonly upcCompanyPrefix: "Préfixe de l'entreprise U.P.C.";
|
|
118
120
|
readonly gs18Prefix: "Préfixe GS1-8";
|
|
121
|
+
readonly invalidPrefixType: "Type de préfixe invalide";
|
|
119
122
|
readonly gs1CompanyPrefixCantStartWith0: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"0\"";
|
|
120
123
|
readonly gs1CompanyPrefixCantStartWith00000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"00000\"";
|
|
121
124
|
readonly gs1CompanyPrefixCantStartWith000000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"000000\"";
|
|
@@ -1299,6 +1302,10 @@ declare class PrefixManager {
|
|
|
1299
1302
|
* GS1-8 Prefix if prefix type is {@link PrefixType.GS18Prefix}.
|
|
1300
1303
|
*/
|
|
1301
1304
|
private readonly _gs18Prefix;
|
|
1305
|
+
/**
|
|
1306
|
+
* Default tweak factor.
|
|
1307
|
+
*/
|
|
1308
|
+
private readonly _defaultTweakFactor;
|
|
1302
1309
|
/**
|
|
1303
1310
|
* Tweak factor.
|
|
1304
1311
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare const localeStrings: {
|
|
|
31
31
|
readonly gs1CompanyPrefix: "GS1 Company Prefix";
|
|
32
32
|
readonly upcCompanyPrefix: "U.P.C. Company Prefix";
|
|
33
33
|
readonly gs18Prefix: "GS1-8 Prefix";
|
|
34
|
+
readonly invalidPrefixType: "Invalid prefix type";
|
|
34
35
|
readonly gs1CompanyPrefixCantStartWith0: "GS1 Company Prefix can't start with \"0\"";
|
|
35
36
|
readonly gs1CompanyPrefixCantStartWith00000: "GS1 Company Prefix can't start with \"00000\"";
|
|
36
37
|
readonly gs1CompanyPrefixCantStartWith000000: "GS1 Company Prefix can't start with \"000000\"";
|
|
@@ -78,6 +79,7 @@ declare const gs1Resources: {
|
|
|
78
79
|
readonly gs1CompanyPrefix: "GS1 Company Prefix";
|
|
79
80
|
readonly upcCompanyPrefix: "U.P.C. Company Prefix";
|
|
80
81
|
readonly gs18Prefix: "GS1-8 Prefix";
|
|
82
|
+
readonly invalidPrefixType: "Invalid prefix type";
|
|
81
83
|
readonly gs1CompanyPrefixCantStartWith0: "GS1 Company Prefix can't start with \"0\"";
|
|
82
84
|
readonly gs1CompanyPrefixCantStartWith00000: "GS1 Company Prefix can't start with \"00000\"";
|
|
83
85
|
readonly gs1CompanyPrefixCantStartWith000000: "GS1 Company Prefix can't start with \"000000\"";
|
|
@@ -116,6 +118,7 @@ declare const gs1Resources: {
|
|
|
116
118
|
readonly gs1CompanyPrefix: "Préfixe de l'entreprise GS1";
|
|
117
119
|
readonly upcCompanyPrefix: "Préfixe de l'entreprise U.P.C.";
|
|
118
120
|
readonly gs18Prefix: "Préfixe GS1-8";
|
|
121
|
+
readonly invalidPrefixType: "Type de préfixe invalide";
|
|
119
122
|
readonly gs1CompanyPrefixCantStartWith0: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"0\"";
|
|
120
123
|
readonly gs1CompanyPrefixCantStartWith00000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"00000\"";
|
|
121
124
|
readonly gs1CompanyPrefixCantStartWith000000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"000000\"";
|
|
@@ -1299,6 +1302,10 @@ declare class PrefixManager {
|
|
|
1299
1302
|
* GS1-8 Prefix if prefix type is {@link PrefixType.GS18Prefix}.
|
|
1300
1303
|
*/
|
|
1301
1304
|
private readonly _gs18Prefix;
|
|
1305
|
+
/**
|
|
1306
|
+
* Default tweak factor.
|
|
1307
|
+
*/
|
|
1308
|
+
private readonly _defaultTweakFactor;
|
|
1302
1309
|
/**
|
|
1303
1310
|
* Tweak factor.
|
|
1304
1311
|
*/
|