@aidc-toolkit/app-extension 1.0.25-beta → 1.0.26-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 +19 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/package.json +13 -8
- package/src/app-extension.ts +2 -2
- package/src/app-utility-proxy.ts +4 -4
- package/src/descriptor.ts +3 -3
- package/src/generator/descriptor.ts +1 -1
- package/src/generator/generator.ts +24 -6
- package/src/generator/index.ts +2 -2
- package/src/generator/locale-resources-generator.ts +9 -9
- package/src/gs1/character-set-proxy.ts +5 -5
- package/src/gs1/check-proxy.ts +3 -3
- package/src/gs1/identifier-proxy.ts +8 -8
- package/src/gs1/index.ts +3 -3
- package/src/index.ts +9 -9
- package/src/lib-proxy.ts +3 -3
- package/src/locale/i18n.ts +3 -3
- package/src/locale/i18next.d.ts +1 -1
- package/src/utility/character-set-descriptor.ts +1 -1
- package/src/utility/character-set-proxy.ts +8 -8
- package/src/utility/index.ts +3 -3
- package/src/utility/reg-exp-proxy.ts +4 -4
- package/src/utility/string-descriptor.ts +1 -1
- package/src/utility/string-proxy.ts +2 -2
- package/src/utility/transformer-descriptor.ts +1 -1
- package/src/utility/transformer-proxy.ts +4 -4
- package/tsconfig-config.json +4 -0
- package/tsconfig-src.json +11 -0
- package/tsconfig.json +9 -4
- package/tsup.config.ts +3 -2
package/dist/index.cjs
CHANGED
|
@@ -1935,6 +1935,19 @@ AppUtilityProxy = __decorateClass([
|
|
|
1935
1935
|
ProxyClass()
|
|
1936
1936
|
], AppUtilityProxy);
|
|
1937
1937
|
|
|
1938
|
+
// src/utility/index.ts
|
|
1939
|
+
var utility_exports = {};
|
|
1940
|
+
__export(utility_exports, {
|
|
1941
|
+
AlphabeticProxy: () => AlphabeticProxy,
|
|
1942
|
+
AlphanumericProxy: () => AlphanumericProxy,
|
|
1943
|
+
CharacterSetCreatorProxy: () => CharacterSetCreatorProxy,
|
|
1944
|
+
CharacterSetValidatorProxy: () => CharacterSetValidatorProxy,
|
|
1945
|
+
HexadecimalProxy: () => HexadecimalProxy,
|
|
1946
|
+
NumericProxy: () => NumericProxy,
|
|
1947
|
+
RegExpProxy: () => RegExpProxy,
|
|
1948
|
+
TransformerProxy: () => TransformerProxy
|
|
1949
|
+
});
|
|
1950
|
+
|
|
1938
1951
|
// src/utility/transformer-proxy.ts
|
|
1939
1952
|
var import_utility3 = require("@aidc-toolkit/utility");
|
|
1940
1953
|
|
|
@@ -3222,6 +3235,9 @@ GMNCreatorProxy = __decorateClass([
|
|
|
3222
3235
|
|
|
3223
3236
|
// src/generator/generator.ts
|
|
3224
3237
|
var import_core4 = require("@aidc-toolkit/core");
|
|
3238
|
+
function registerProxies(..._proxies) {
|
|
3239
|
+
}
|
|
3240
|
+
registerProxies(AppUtilityProxy, utility_exports, gs1_exports);
|
|
3225
3241
|
var Generator = class _Generator {
|
|
3226
3242
|
/**
|
|
3227
3243
|
* Documentation base URL.
|
|
@@ -3287,7 +3303,7 @@ var Generator = class _Generator {
|
|
|
3287
3303
|
getFunctionLocalization(namespaceFunctionName, locale) {
|
|
3288
3304
|
const functionLocalization = this._functionLocalizationsMapsMap.get(namespaceFunctionName)?.get(locale);
|
|
3289
3305
|
if (functionLocalization === void 0) {
|
|
3290
|
-
throw new Error(
|
|
3306
|
+
throw new Error(`${locale} localization for function ${namespaceFunctionName} not found`);
|
|
3291
3307
|
}
|
|
3292
3308
|
return functionLocalization;
|
|
3293
3309
|
}
|
|
@@ -3309,7 +3325,7 @@ var Generator = class _Generator {
|
|
|
3309
3325
|
getParameterLocalization(namespaceFunctionName, parameterName, locale) {
|
|
3310
3326
|
const parameterLocalization = this._parameterLocalizationsMapsMap.get(`${namespaceFunctionName}.${parameterName}`)?.get(locale);
|
|
3311
3327
|
if (parameterLocalization === void 0) {
|
|
3312
|
-
throw new Error(
|
|
3328
|
+
throw new Error(`${locale} localization for function ${namespaceFunctionName} parameter ${parameterName} not found`);
|
|
3313
3329
|
}
|
|
3314
3330
|
return parameterLocalization;
|
|
3315
3331
|
}
|
|
@@ -3375,7 +3391,7 @@ var Generator = class _Generator {
|
|
|
3375
3391
|
} else {
|
|
3376
3392
|
const insertIndex = methodName.indexOf(infixBefore);
|
|
3377
3393
|
if (insertIndex === -1) {
|
|
3378
|
-
throw new Error(`Cannot find "${infixBefore}" in method
|
|
3394
|
+
throw new Error(`Cannot find "${infixBefore}" in method ${methodName}`);
|
|
3379
3395
|
}
|
|
3380
3396
|
functionName = `${methodName.substring(0, insertIndex)}${methodInfix}${methodName.substring(insertIndex)}`;
|
|
3381
3397
|
}
|