@breadstone-tools/localizator-core 0.0.139 → 0.0.140
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.
|
@@ -5,7 +5,7 @@ exports.ResourceFactory = void 0;
|
|
|
5
5
|
const utilities_1 = require("@breadstone-infrastructure/utilities");
|
|
6
6
|
const ResourceType_1 = require("./Models/Interfaces/ResourceType");
|
|
7
7
|
const JsonResourceInfo_1 = require("./Models/JsonResourceInfo");
|
|
8
|
-
const
|
|
8
|
+
const ResxResourceInfo_1 = require("../Resources/Models/ResxResourceInfo");
|
|
9
9
|
// #endregion
|
|
10
10
|
/**
|
|
11
11
|
* The `Name` class.
|
|
@@ -50,7 +50,7 @@ class ResourceFactory {
|
|
|
50
50
|
path: filePath
|
|
51
51
|
});
|
|
52
52
|
case ResourceType_1.ResourceType.Resx:
|
|
53
|
-
return new
|
|
53
|
+
return new ResxResourceInfo_1.ResxResourceInfo({
|
|
54
54
|
type: ResourceType_1.ResourceType.Resx,
|
|
55
55
|
content: () => this._fileSystem.fileReadAllResx(filePath),
|
|
56
56
|
locale: this._fileSystem.fileGetLocale(filePath),
|
|
@@ -84,7 +84,7 @@ class ResourceFactory {
|
|
|
84
84
|
locale: locale
|
|
85
85
|
});
|
|
86
86
|
case ResourceType_1.ResourceType.Resx:
|
|
87
|
-
return new
|
|
87
|
+
return new ResxResourceInfo_1.ResxResourceInfo({
|
|
88
88
|
type: ResourceType_1.ResourceType.Resx,
|
|
89
89
|
content: () => {
|
|
90
90
|
const p = utilities_1.Resx.parse(content).entries;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceFactory.js","sourceRoot":"","sources":["../../src/Resources/ResourceFactory.ts"],"names":[],"mappings":";AAAA,kBAAkB;;;AAElB,oEAAoF;AAEpF,mEAAsF;AACtF,gEAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"ResourceFactory.js","sourceRoot":"","sources":["../../src/Resources/ResourceFactory.ts"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C;oBAChD,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,QAAQ,CAAC;iBACnD,CAAC,CAAC;YACP,KAAK,2BAAY,CAAC,UAAU,CAAC;YAC7B;gBACI,MAAM,IAAI,KAAK,CAAC,gCAAgC,YAAY,EAAE,CAAC,CAAC;QACxE,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACI,yBAAyB,CAAC,OAAe,EAAE,IAAkB,EAAE,MAAc;QAChF,QAAQ,IAAI,EAAE,CAAC;YACX,KAAK,2BAAY,CAAC,IAAI;gBAClB,OAAO,IAAI,mCAAgB,CAAC;oBACxB,IAAI,EAAE,2BAAY,CAAC,IAAI;oBACvB,OAAO,EAAE,GAAG,EAAE;wBACV,MAAM,CAAC,GAAG,gBAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;wBACtC,OAAO,CAAC,CAAC;oBACb,CAAC;oBACD,MAAM,EAAE,MAAM;iBACjB,CAAC,CAAC;YACP,KAAK,2BAAY,CAAC,IAAI;gBAClB,OAAO,IAAI,mCAAgB,CAAC;oBACxB,IAAI,EAAE,2BAAY,CAAC,IAAI;oBACvB,OAAO,EAAE,GAAG,EAAE;wBACV,MAAM,CAAC,GAAG,gBAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;wBACtC,OAAO,CAAC,CAAC;oBACb,CAAC;oBACD,MAAM,EAAE,MAAM;iBACjB,CAAC,CAAC;YACP,KAAK,2BAAY,CAAC,UAAU,CAAC;YAC7B;gBACI,MAAM,IAAI,KAAK,CAAC,gCAAgC,IAAI,EAAE,CAAC,CAAC;QAChE,CAAC;IACL,CAAC;CAIJ;AAnGD,0CAmGC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone-tools/localizator-core",
|
|
3
3
|
"description": "Localizator core library",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.140",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
7
7
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"module": "./Index.js",
|
|
14
14
|
"types": "./Index.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@breadstone-infrastructure/utilities": "^0.0.
|
|
16
|
+
"@breadstone-infrastructure/utilities": "^0.0.140",
|
|
17
17
|
"cheerio": "^1.1.2"
|
|
18
18
|
}
|
|
19
19
|
}
|