lexora 1.3.1 → 1.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import "intl-list-format";
2
2
  import "intl-list-format/locale-data/en";
3
3
  import "intl-list-format/locale-data/de";
4
- import { BoundTemplate, boundTemplate } from "./lib/BoundTemplate";
4
+ import { BoundTemplate, boundTemplate, isBoundTemplate } from "./lib/BoundTemplate";
5
5
  import { LanguageKey } from "./lib/LanguageKey";
6
6
  import { LanguagePacks } from "./lib/LanguagePack";
7
7
  import { LanguagePack } from "./lib/LanguagePack/LanguagePack";
@@ -9,4 +9,4 @@ import { LexoraContext, TranslateCallContext } from "./lib/LexoraContext";
9
9
  import { PipelineFunction } from "./lib/PipelineFunction/PipelineFunction";
10
10
  import { StringResource, StringResourceMap, SR } from "./lib/StringResource";
11
11
  import { WatchableString } from "./lib/WatchableString";
12
- export { LanguageKey, LanguagePack, LanguagePacks, LexoraContext, StringResource, StringResourceMap, PipelineFunction, WatchableString, TranslateCallContext, boundTemplate, BoundTemplate, SR };
12
+ export { LanguageKey, LanguagePack, LanguagePacks, LexoraContext, StringResource, StringResourceMap, PipelineFunction, WatchableString, TranslateCallContext, boundTemplate, isBoundTemplate, BoundTemplate, SR };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SR=exports.boundTemplate=exports.WatchableString=exports.LexoraContext=exports.LanguagePacks=void 0,require("intl-list-format"),require("intl-list-format/locale-data/en"),require("intl-list-format/locale-data/de");const BoundTemplate_1=require("./lib/BoundTemplate");Object.defineProperty(exports,"boundTemplate",{enumerable:!0,get:function(){return BoundTemplate_1.boundTemplate}});const LanguagePack_1=require("./lib/LanguagePack");Object.defineProperty(exports,"LanguagePacks",{enumerable:!0,get:function(){return LanguagePack_1.LanguagePacks}});const LexoraContext_1=require("./lib/LexoraContext");Object.defineProperty(exports,"LexoraContext",{enumerable:!0,get:function(){return LexoraContext_1.LexoraContext}});const StringResource_1=require("./lib/StringResource");Object.defineProperty(exports,"SR",{enumerable:!0,get:function(){return StringResource_1.SR}});const WatchableString_1=require("./lib/WatchableString");Object.defineProperty(exports,"WatchableString",{enumerable:!0,get:function(){return WatchableString_1.WatchableString}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SR=exports.isBoundTemplate=exports.boundTemplate=exports.WatchableString=exports.LexoraContext=exports.LanguagePacks=void 0,require("intl-list-format"),require("intl-list-format/locale-data/en"),require("intl-list-format/locale-data/de");const BoundTemplate_1=require("./lib/BoundTemplate");Object.defineProperty(exports,"boundTemplate",{enumerable:!0,get:function(){return BoundTemplate_1.boundTemplate}}),Object.defineProperty(exports,"isBoundTemplate",{enumerable:!0,get:function(){return BoundTemplate_1.isBoundTemplate}});const LanguagePack_1=require("./lib/LanguagePack");Object.defineProperty(exports,"LanguagePacks",{enumerable:!0,get:function(){return LanguagePack_1.LanguagePacks}});const LexoraContext_1=require("./lib/LexoraContext");Object.defineProperty(exports,"LexoraContext",{enumerable:!0,get:function(){return LexoraContext_1.LexoraContext}});const StringResource_1=require("./lib/StringResource");Object.defineProperty(exports,"SR",{enumerable:!0,get:function(){return StringResource_1.SR}});const WatchableString_1=require("./lib/WatchableString");Object.defineProperty(exports,"WatchableString",{enumerable:!0,get:function(){return WatchableString_1.WatchableString}});
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,4BAA0B;AAC1B,2CAAyC;AACzC,2CAAyC;AAEzC,uDAAmE;AAmB/D,8FAnBoB,6BAAa,OAmBpB;AAjBjB,qDAAmD;AAU/C,8FAVK,4BAAa,OAUL;AARjB,uDAA0E;AAStE,8FATK,6BAAa,OASL;AAPjB,yDAA6E;AAezE,mFAfwC,mBAAE,OAexC;AAdN,2DAAwD;AAUpD,gGAVK,iCAAe,OAUL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,4BAA0B;AAC1B,2CAAyC;AACzC,2CAAyC;AAEzC,uDAAoF;AAmBhF,8FAnBoB,6BAAa,OAmBpB;AACb,gGApBmC,+BAAe,OAoBnC;AAlBnB,qDAAmD;AAU/C,8FAVK,4BAAa,OAUL;AARjB,uDAA0E;AAStE,8FATK,6BAAa,OASL;AAPjB,yDAA6E;AAgBzE,mFAhBwC,mBAAE,OAgBxC;AAfN,2DAAwD;AAUpD,gGAVK,iCAAe,OAUL"}
@@ -6,5 +6,5 @@ export type BoundTemplate = {
6
6
  context: TranslateCallContext;
7
7
  [BoundTemplateKey]: true;
8
8
  };
9
- export declare function boundTemplate(template: string | StringResourceMap, context?: TranslateCallContext): BoundTemplate;
9
+ export declare function boundTemplate(template?: string | StringResourceMap, context?: TranslateCallContext): BoundTemplate;
10
10
  export declare function isBoundTemplate(value: any): value is BoundTemplate;
@@ -1 +1 @@
1
- "use strict";function boundTemplate(e,t={}){return{template:e,context:t,[exports.BoundTemplateKey]:!0}}function isBoundTemplate(e){return"object"==typeof e&&null!=e&&!0===e[exports.BoundTemplateKey]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.BoundTemplateKey=void 0,exports.boundTemplate=boundTemplate,exports.isBoundTemplate=isBoundTemplate,exports.BoundTemplateKey=Symbol("BoundTemplate");
1
+ "use strict";function boundTemplate(e="",t={}){return{template:e,context:t,[exports.BoundTemplateKey]:!0}}function isBoundTemplate(e){return"object"==typeof e&&null!=e&&!0===e[exports.BoundTemplateKey]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.BoundTemplateKey=void 0,exports.boundTemplate=boundTemplate,exports.isBoundTemplate=isBoundTemplate,exports.BoundTemplateKey=Symbol("BoundTemplate");
@@ -1 +1 @@
1
- {"version":3,"file":"BoundTemplate.js","sourceRoot":"","sources":["../../src/lib/BoundTemplate.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAaH,sCAEC;AAED,0CAEC;AAdY,QAAA,gBAAgB,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAQxD,SAAgB,aAAa,CAAC,QAAoC,EAAE,UAAgC,EAAE;IAClG,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,wBAAgB,CAAC,EAAE,IAAI,EAAE,CAAC;AAC3D,CAAC;AAED,SAAgB,eAAe,CAAC,KAAU;IACtC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,wBAAgB,CAAC,KAAK,IAAI,CAAC;AAC1F,CAAC"}
1
+ {"version":3,"file":"BoundTemplate.js","sourceRoot":"","sources":["../../src/lib/BoundTemplate.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAaH,sCAEC;AAED,0CAEC;AAdY,QAAA,gBAAgB,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAQxD,SAAgB,aAAa,CAAC,WAAuC,EAAE,EAAE,UAAgC,EAAE;IACvG,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,wBAAgB,CAAC,EAAE,IAAI,EAAE,CAAC;AAC3D,CAAC;AAED,SAAgB,eAAe,CAAC,KAAU;IACtC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,wBAAgB,CAAC,KAAK,IAAI,CAAC;AAC1F,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexora",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "A lightweight TypeScript helper for managing multi-language strings with optional grammatical support.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",