@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.js
CHANGED
|
@@ -1884,6 +1884,19 @@ AppUtilityProxy = __decorateClass([
|
|
|
1884
1884
|
ProxyClass()
|
|
1885
1885
|
], AppUtilityProxy);
|
|
1886
1886
|
|
|
1887
|
+
// src/utility/index.ts
|
|
1888
|
+
var utility_exports = {};
|
|
1889
|
+
__export(utility_exports, {
|
|
1890
|
+
AlphabeticProxy: () => AlphabeticProxy,
|
|
1891
|
+
AlphanumericProxy: () => AlphanumericProxy,
|
|
1892
|
+
CharacterSetCreatorProxy: () => CharacterSetCreatorProxy,
|
|
1893
|
+
CharacterSetValidatorProxy: () => CharacterSetValidatorProxy,
|
|
1894
|
+
HexadecimalProxy: () => HexadecimalProxy,
|
|
1895
|
+
NumericProxy: () => NumericProxy,
|
|
1896
|
+
RegExpProxy: () => RegExpProxy,
|
|
1897
|
+
TransformerProxy: () => TransformerProxy
|
|
1898
|
+
});
|
|
1899
|
+
|
|
1887
1900
|
// src/utility/transformer-proxy.ts
|
|
1888
1901
|
import { mapIterable as mapIterable2, Sequence, Transformer } from "@aidc-toolkit/utility";
|
|
1889
1902
|
|
|
@@ -3192,6 +3205,9 @@ GMNCreatorProxy = __decorateClass([
|
|
|
3192
3205
|
|
|
3193
3206
|
// src/generator/generator.ts
|
|
3194
3207
|
import { I18nEnvironments } from "@aidc-toolkit/core";
|
|
3208
|
+
function registerProxies(..._proxies) {
|
|
3209
|
+
}
|
|
3210
|
+
registerProxies(AppUtilityProxy, utility_exports, gs1_exports);
|
|
3195
3211
|
var Generator = class _Generator {
|
|
3196
3212
|
/**
|
|
3197
3213
|
* Documentation base URL.
|
|
@@ -3257,7 +3273,7 @@ var Generator = class _Generator {
|
|
|
3257
3273
|
getFunctionLocalization(namespaceFunctionName, locale) {
|
|
3258
3274
|
const functionLocalization = this._functionLocalizationsMapsMap.get(namespaceFunctionName)?.get(locale);
|
|
3259
3275
|
if (functionLocalization === void 0) {
|
|
3260
|
-
throw new Error(
|
|
3276
|
+
throw new Error(`${locale} localization for function ${namespaceFunctionName} not found`);
|
|
3261
3277
|
}
|
|
3262
3278
|
return functionLocalization;
|
|
3263
3279
|
}
|
|
@@ -3279,7 +3295,7 @@ var Generator = class _Generator {
|
|
|
3279
3295
|
getParameterLocalization(namespaceFunctionName, parameterName, locale) {
|
|
3280
3296
|
const parameterLocalization = this._parameterLocalizationsMapsMap.get(`${namespaceFunctionName}.${parameterName}`)?.get(locale);
|
|
3281
3297
|
if (parameterLocalization === void 0) {
|
|
3282
|
-
throw new Error(
|
|
3298
|
+
throw new Error(`${locale} localization for function ${namespaceFunctionName} parameter ${parameterName} not found`);
|
|
3283
3299
|
}
|
|
3284
3300
|
return parameterLocalization;
|
|
3285
3301
|
}
|
|
@@ -3345,7 +3361,7 @@ var Generator = class _Generator {
|
|
|
3345
3361
|
} else {
|
|
3346
3362
|
const insertIndex = methodName.indexOf(infixBefore);
|
|
3347
3363
|
if (insertIndex === -1) {
|
|
3348
|
-
throw new Error(`Cannot find "${infixBefore}" in method
|
|
3364
|
+
throw new Error(`Cannot find "${infixBefore}" in method ${methodName}`);
|
|
3349
3365
|
}
|
|
3350
3366
|
functionName = `${methodName.substring(0, insertIndex)}${methodInfix}${methodName.substring(insertIndex)}`;
|
|
3351
3367
|
}
|