@fgv/ts-res 5.0.0-30 → 5.0.0-31
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/ts-res.d.ts +317 -158
- package/lib/packlets/common/convert.d.ts +5 -0
- package/lib/packlets/common/convert.js +6 -1
- package/lib/packlets/common/helpers/context.js +1 -0
- package/lib/packlets/common/helpers/resources.js +1 -0
- package/lib/packlets/common/validate/conditions.d.ts +17 -1
- package/lib/packlets/common/validate/conditions.js +32 -6
- package/lib/packlets/common/validate/resources.js +1 -0
- package/lib/packlets/conditions/condition.js +1 -0
- package/lib/packlets/conditions/conditionSet.js +1 -0
- package/lib/packlets/import/fsItem.d.ts +2 -1
- package/lib/packlets/import/fsItem.js +2 -1
- package/lib/packlets/import/importManager.d.ts +2 -1
- package/lib/packlets/import/importers/pathImporter.d.ts +2 -1
- package/lib/packlets/import/importers/pathImporter.js +2 -1
- package/lib/packlets/qualifier-types/literalValueHierarchy.js +1 -0
- package/lib/packlets/qualifier-types/territoryQualifierType.js +3 -0
- package/lib/packlets/resources/candidateReducer.js +3 -0
- package/lib/packlets/resources/resourceBuilder.js +1 -0
- package/lib/packlets/resources/resourceManagerBuilder.js +3 -0
- package/lib/packlets/runtime/compiledResourceCollection.js +38 -29
- package/lib/packlets/runtime/conditionSetResolutionResult.js +3 -0
- package/lib/packlets/runtime/context/contextQualifierProvider.d.ts +53 -3
- package/lib/packlets/runtime/context/contextQualifierProviderValidator.d.ts +82 -37
- package/lib/packlets/runtime/context/contextQualifierProviderValidator.js +49 -77
- package/lib/packlets/runtime/context/simpleContextQualifierProvider.d.ts +23 -2
- package/lib/packlets/runtime/context/simpleContextQualifierProvider.js +53 -31
- package/lib/packlets/runtime/context/validatingSimpleContextQualifierProvider.d.ts +4 -4
- package/lib/packlets/runtime/context/validatingSimpleContextQualifierProvider.js +2 -2
- package/lib/packlets/runtime/resourceResolver.js +5 -0
- package/lib/packlets/zip-archive/types.d.ts +1 -1
- package/lib/packlets/zip-archive/zipArchiveCreator.js +3 -2
- package/package.json +7 -7
|
@@ -24,6 +24,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
exports.ZipArchiveCreator = void 0;
|
|
25
25
|
const fflate_1 = require("fflate");
|
|
26
26
|
const ts_utils_1 = require("@fgv/ts-utils");
|
|
27
|
+
const ts_json_base_1 = require("@fgv/ts-json-base");
|
|
27
28
|
const zipArchiveFormat_1 = require("./zipArchiveFormat");
|
|
28
29
|
/**
|
|
29
30
|
* ZIP archive creator using fflate for universal compatibility
|
|
@@ -169,7 +170,7 @@ class ZipArchiveCreator {
|
|
|
169
170
|
}
|
|
170
171
|
_getInputFileTreeItem(options) {
|
|
171
172
|
if ('inputPath' in options && options.inputPath !== undefined) {
|
|
172
|
-
return
|
|
173
|
+
return ts_json_base_1.FileTree.forFilesystem()
|
|
173
174
|
.withErrorFormat((msg) => `Failed to create file tree: ${msg}`)
|
|
174
175
|
.onSuccess((fileTree) => fileTree.getItem(options.inputPath).withErrorFormat((msg) => `Failed to get item: ${msg}`));
|
|
175
176
|
}
|
|
@@ -180,7 +181,7 @@ class ZipArchiveCreator {
|
|
|
180
181
|
}
|
|
181
182
|
_getConfigFileTreeItem(options) {
|
|
182
183
|
if ('configPath' in options && options.configPath !== undefined) {
|
|
183
|
-
return
|
|
184
|
+
return ts_json_base_1.FileTree.forFilesystem()
|
|
184
185
|
.withErrorFormat((msg) => `Failed to create file tree: ${msg}`)
|
|
185
186
|
.onSuccess((fileTree) => fileTree.getFile(options.configPath).withErrorFormat((msg) => `Failed to get config file: ${msg}`));
|
|
186
187
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fgv/ts-res",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-31",
|
|
4
4
|
"description": "Multi-dimensional Resource Runtime",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "dist/ts-res.d.ts",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@rushstack/heft-node-rig": "2.9.5",
|
|
45
45
|
"@types/heft-jest": "1.0.6",
|
|
46
46
|
"eslint-plugin-tsdoc": "~0.4.0",
|
|
47
|
-
"@fgv/ts-utils-jest": "5.0.0-
|
|
48
|
-
"@fgv/ts-extras": "5.0.0-
|
|
47
|
+
"@fgv/ts-utils-jest": "5.0.0-31",
|
|
48
|
+
"@fgv/ts-extras": "5.0.0-31"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"luxon": "^3.7.2",
|
|
52
52
|
"fflate": "~0.8.2",
|
|
53
|
-
"@fgv/ts-
|
|
54
|
-
"@fgv/ts-
|
|
55
|
-
"@fgv/ts-
|
|
56
|
-
"@fgv/ts-
|
|
53
|
+
"@fgv/ts-utils": "5.0.0-31",
|
|
54
|
+
"@fgv/ts-json-base": "5.0.0-31",
|
|
55
|
+
"@fgv/ts-bcp47": "5.0.0-31",
|
|
56
|
+
"@fgv/ts-json": "5.0.0-31"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "heft build --clean",
|