@trackunit/iris-app-build-utilities 0.0.141 → 0.0.144
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.144](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.143...iris-app-build-utilities/0.0.144) (2023-05-25)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `css-components` updated to version `0.0.334`
|
|
10
|
+
## [0.0.143](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.142...iris-app-build-utilities/0.0.143) (2023-05-25)
|
|
11
|
+
|
|
12
|
+
### Dependency Updates
|
|
13
|
+
|
|
14
|
+
* `css-components` updated to version `0.0.333`
|
|
15
|
+
## [0.0.142](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.141...iris-app-build-utilities/0.0.142) (2023-05-25)
|
|
16
|
+
|
|
5
17
|
## [0.0.141](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.140...iris-app-build-utilities/0.0.141) (2023-05-24)
|
|
6
18
|
|
|
7
19
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-build-utilities",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.144",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"dependencies": {
|
|
@@ -13,131 +13,24 @@
|
|
|
13
13
|
"node-fetch": "2.6.8",
|
|
14
14
|
"react": "18.2.0",
|
|
15
15
|
"react-dom": "18.2.0",
|
|
16
|
-
"react-i18next": "12.
|
|
16
|
+
"react-i18next": "12.3.1",
|
|
17
17
|
"react-virtualized-auto-sizer": "1.0.7",
|
|
18
18
|
"tsconfig-paths": "3.14.1",
|
|
19
|
-
"@apollo/client": "3.7.10",
|
|
20
19
|
"@babel/core": "7.18.9",
|
|
21
20
|
"@babel/template": "7.18.10",
|
|
22
|
-
"@bmatei/apollo-prometheus-exporter": "2.1.1",
|
|
23
|
-
"@faker-js/faker": "7.6.0",
|
|
24
21
|
"@floating-ui/react": "0.22.2",
|
|
25
|
-
"@graphql-hive/client": "0.22.0",
|
|
26
|
-
"@graphql-tools/delegate": "9.0.35",
|
|
27
|
-
"@graphql-tools/links": "8.3.36",
|
|
28
|
-
"@graphql-tools/load": "7.8.14",
|
|
29
|
-
"@graphql-tools/mock": "8.7.15",
|
|
30
|
-
"@graphql-tools/stitch": "8.7.49",
|
|
31
|
-
"@graphql-tools/stitching-directives": "2.3.34",
|
|
32
|
-
"@graphql-tools/utils": "9.2.1",
|
|
33
|
-
"@graphql-tools/wrap": "9.4.2",
|
|
34
22
|
"@heroicons/react": "2.0.16",
|
|
35
|
-
"@
|
|
36
|
-
"@opentelemetry/api": "1.4.1",
|
|
37
|
-
"@opentelemetry/exporter-zipkin": "1.12.0",
|
|
38
|
-
"@opentelemetry/instrumentation": "0.38.0",
|
|
39
|
-
"@opentelemetry/instrumentation-dns": "0.31.3",
|
|
40
|
-
"@opentelemetry/instrumentation-express": "0.32.2",
|
|
41
|
-
"@opentelemetry/instrumentation-graphql": "0.34.1",
|
|
42
|
-
"@opentelemetry/instrumentation-http": "0.38.0",
|
|
43
|
-
"@opentelemetry/instrumentation-winston": "0.31.2",
|
|
44
|
-
"@opentelemetry/propagator-b3": "1.12.0",
|
|
45
|
-
"@opentelemetry/resources": "1.12.0",
|
|
46
|
-
"@opentelemetry/sdk-trace-node": "1.12.0",
|
|
47
|
-
"@opentelemetry/semantic-conventions": "1.12.0",
|
|
48
|
-
"@sentry/browser": "7.50.0",
|
|
49
|
-
"@sentry/node": "7.50.0",
|
|
50
|
-
"@sentry/react": "7.50.0",
|
|
51
|
-
"@sentry/tracing": "7.50.0",
|
|
52
|
-
"@sentry/types": "7.50.0",
|
|
53
|
-
"@tanstack/react-table": "8.7.9",
|
|
54
|
-
"@tanstack/react-virtual": "3.0.0-beta.54",
|
|
55
|
-
"@terraformer/wkt": "2.2.0",
|
|
56
|
-
"@trackunit/css-component-tokens": "0.0.27",
|
|
57
|
-
"@trackunit/css-components": "0.0.332",
|
|
58
|
-
"@trackunit/css-core": "0.0.82",
|
|
59
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.19",
|
|
60
|
-
"@trackunit/i18n-library-translation": "0.0.48",
|
|
23
|
+
"@trackunit/css-components": "0.0.334",
|
|
61
24
|
"@trackunit/iris-app-api": "0.0.93",
|
|
62
|
-
"@trackunit/iris-app-runtime-core": "0.3.43",
|
|
63
|
-
"@trackunit/iris-app-runtime-core-api": "0.3.37",
|
|
64
|
-
"@trackunit/react-core-contexts-api": "0.2.34",
|
|
65
|
-
"@trackunit/react-core-hooks": "0.2.56",
|
|
66
|
-
"@trackunit/tailwind-styled-components": "0.0.56",
|
|
67
|
-
"@trackunit/ui-design-tokens": "0.0.66",
|
|
68
|
-
"apollo-datasource": "3.3.2",
|
|
69
|
-
"apollo-server-core": "3.12.0",
|
|
70
|
-
"apollo-server-errors": "3.3.1",
|
|
71
|
-
"apollo-server-express": "3.12.0",
|
|
72
|
-
"apollo-server-plugin-base": "3.7.2",
|
|
73
|
-
"apollo-server-plugin-response-cache": "3.8.2",
|
|
74
|
-
"apollo-server-types": "3.8.0",
|
|
75
|
-
"apollo-upload-client": "17.0.0",
|
|
76
25
|
"camelcase": "5.3.1",
|
|
77
26
|
"capitalize": "2.0.4",
|
|
78
|
-
"chalk": "4.1.2",
|
|
79
|
-
"cors": "2.8.5",
|
|
80
|
-
"crossfilter2": "1.5.4",
|
|
81
|
-
"dataloader": "2.1.0",
|
|
82
27
|
"date-fns": "2.29.3",
|
|
83
|
-
"date-fns-tz": "1.3.7",
|
|
84
|
-
"dotenv": "16.0.3",
|
|
85
|
-
"echarts": "5.4.0",
|
|
86
|
-
"echarts-for-react": "3.0.2",
|
|
87
|
-
"express": "4.18.2",
|
|
88
|
-
"express-winston": "4.2.0",
|
|
89
|
-
"file-saver": "2.0.5",
|
|
90
|
-
"form-data": "4.0.0",
|
|
91
|
-
"geo-tz": "7.0.6",
|
|
92
28
|
"glob": "7.2.3",
|
|
93
|
-
"graphql": "15.8.0",
|
|
94
|
-
"graphql-parse-resolve-info": "4.13.0",
|
|
95
|
-
"graphql-query-complexity": "0.12.0",
|
|
96
|
-
"graphql-upload": "15.0.2",
|
|
97
|
-
"highcharts": "10.3.2",
|
|
98
|
-
"highcharts-react-official": "3.1.0",
|
|
99
|
-
"history": "5.3.0",
|
|
100
|
-
"i18next-browser-languagedetector": "6.1.8",
|
|
101
|
-
"i18next-resources-to-backend": "1.1.0",
|
|
102
|
-
"immutability-helper": "3.1.1",
|
|
103
|
-
"intermock": "0.2.5",
|
|
104
|
-
"jose": "4.13.1",
|
|
105
|
-
"jwt-decode": "3.1.2",
|
|
106
|
-
"libphonenumber-js": "1.10.30",
|
|
107
|
-
"memoize-one": "5.2.1",
|
|
108
|
-
"moment": "2.29.4",
|
|
109
|
-
"murmurhash": "2.0.1",
|
|
110
|
-
"node-cache": "5.1.2",
|
|
111
|
-
"node-vault": "0.9.22",
|
|
112
|
-
"node-xlsx": "0.21.0",
|
|
113
|
-
"open": "8.4.0",
|
|
114
|
-
"prom-client": "14.2.0",
|
|
115
|
-
"query-string": "7.1.3",
|
|
116
29
|
"react-day-picker": "8.7.1",
|
|
117
|
-
"react-dnd": "14.0.5",
|
|
118
|
-
"react-dnd-html5-backend": "14.1.0",
|
|
119
|
-
"react-error-boundary": "3.1.4",
|
|
120
30
|
"react-helmet-async": "1.3.0",
|
|
121
|
-
"react-minimal-pie-chart": "8.4.0",
|
|
122
|
-
"react-moment": "1.1.2",
|
|
123
31
|
"react-router-dom": "6.4.5",
|
|
124
|
-
"react-select": "5.7.3",
|
|
125
|
-
"react-slider": "2.0.4",
|
|
126
|
-
"react-table": "7.8.0",
|
|
127
32
|
"react-use": "17.4.0",
|
|
128
33
|
"react-useportal": "1.0.17",
|
|
129
|
-
"react-window": "1.8.8",
|
|
130
|
-
"reflect-metadata": "0.1.13",
|
|
131
|
-
"source-map-support": "0.5.21",
|
|
132
|
-
"styled-components": "5.3.10",
|
|
133
|
-
"styled-media-query": "2.1.2",
|
|
134
|
-
"type-graphql": "1.1.1",
|
|
135
|
-
"typedi": "0.10.0",
|
|
136
|
-
"uuid": "8.3.2",
|
|
137
|
-
"wildcard-match": "5.1.2",
|
|
138
|
-
"winston": "3.8.2",
|
|
139
|
-
"zipcelx": "1.6.2",
|
|
140
|
-
"zod": "3.14.1",
|
|
141
34
|
"tslib": "2.4.1"
|
|
142
35
|
},
|
|
143
36
|
"main": "./src/index.js",
|
|
@@ -5,7 +5,7 @@ interface IAliasesFromTsConfigOptions {
|
|
|
5
5
|
/**
|
|
6
6
|
* Generates a list of aliases from the options.tsConfigFilePath defaults to tsconfig.base.json.
|
|
7
7
|
*
|
|
8
|
-
* @returns aliases Exposes object for module federation.
|
|
8
|
+
* @returns { Promise<Record<string, string>> } aliases Exposes object for module federation.
|
|
9
9
|
*/
|
|
10
10
|
export declare const getAliasesFromTsConfig: (options: IAliasesFromTsConfigOptions) => Promise<Record<string, string>>;
|
|
11
11
|
export {};
|
|
@@ -4,6 +4,12 @@ exports.getAliasesFromTsConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path = tslib_1.__importStar(require("path"));
|
|
6
6
|
const ts = tslib_1.__importStar(require("typescript"));
|
|
7
|
+
/**
|
|
8
|
+
* Removes the /* from the end of the alias if it exists.
|
|
9
|
+
*
|
|
10
|
+
* @param tsAlias the alias from the tsconfig.json
|
|
11
|
+
* @returns { string } substring of the alias if it ends with /*
|
|
12
|
+
*/
|
|
7
13
|
const fromTsAlias = (tsAlias) => {
|
|
8
14
|
return tsAlias.indexOf("/*") === tsAlias.length - 2 ? tsAlias.substring(0, tsAlias.length - 2) : `${tsAlias}$`;
|
|
9
15
|
};
|
|
@@ -13,7 +19,7 @@ const fromTsPath = (tsPath) => {
|
|
|
13
19
|
/**
|
|
14
20
|
* Generates a list of aliases from the options.tsConfigFilePath defaults to tsconfig.base.json.
|
|
15
21
|
*
|
|
16
|
-
* @returns aliases Exposes object for module federation.
|
|
22
|
+
* @returns { Promise<Record<string, string>> } aliases Exposes object for module federation.
|
|
17
23
|
*/
|
|
18
24
|
const getAliasesFromTsConfig = (options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
19
25
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAliasesFromTsConfig.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getAliasesFromTsConfig.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAC7B,uDAAiC;AAMjC,MAAM,WAAW,GAAG,CAAC,OAAe,EAAE,EAAE;IACtC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC;AACjH,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE;IACpC,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACtG,CAAC,CAAC;AAEF;;;;GAIG;AACI,MAAM,sBAAsB,GAAG,CAAO,OAAoC,EAAE,EAAE;;IACnF,MAAM,QAAQ,GAAG,EAAE,CAAC,cAAc,CAChC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,gBAAgB,IAAI,oBAAoB,CAAC,EAC9E,EAAE,CAAC,GAAG,CAAC,QAAQ,CAChB,CAAC;IAEF,IAAI,CAAC,CAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,eAAe,0CAAE,KAAK,CAAA,EAAE;QAC5C,MAAM,KAAK,CAAC,oFAAoF,CAAC,CAAC;KACnG;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,eAAe,0CAAE,KAAiC,CAAC,CAAC,MAAM,CAE/F,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACtB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACtB,MAAM,IAAI,SAAS,CAAC,wBAAwB,GAAG,eAAe,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;SAC/E;QACD,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAA,CAAC;AAlBW,QAAA,sBAAsB,0BAkBjC","sourcesContent":["import * as path from \"path\";\nimport * as ts from \"typescript\";\ninterface IAliasesFromTsConfigOptions {\n nxRootDir: string;\n tsConfigFilePath?: string;\n}\n\nconst fromTsAlias = (tsAlias: string) => {\n return tsAlias.indexOf(\"/*\") === tsAlias.length - 2 ? tsAlias.substring(0, tsAlias.length - 2) : `${tsAlias}$`;\n};\n\nconst fromTsPath = (tsPath: string) => {\n return tsPath.indexOf(\"/*\") === tsPath.length - 2 ? tsPath.substring(0, tsPath.length - 2) : tsPath;\n};\n\n/**\n * Generates a list of aliases from the options.tsConfigFilePath defaults to tsconfig.base.json.\n *\n * @returns aliases Exposes object for module federation.\n */\nexport const getAliasesFromTsConfig = async (options: IAliasesFromTsConfigOptions) => {\n const tsConfig = ts.readConfigFile(\n path.join(options.nxRootDir, options.tsConfigFilePath || \"tsconfig.base.json\"),\n ts.sys.readFile\n );\n\n if (!tsConfig?.config.compilerOptions?.paths) {\n throw Error(`option tsconfigFilePath missing paths property in (tsConfig.compilerOptions.paths)`);\n }\n return Object.entries(tsConfig?.config.compilerOptions?.paths as Record<string, string[]>).reduce<\n Record<string, string>\n >((acc, [key, value]) => {\n if (value.length !== 1) {\n throw new TypeError(`Unsupported TS alias ${key} has length ${value.length}`);\n }\n acc[fromTsAlias(key)] = path.join(options.nxRootDir, fromTsPath(value[0]));\n return acc;\n }, {});\n};\n"]}
|
|
1
|
+
{"version":3,"file":"getAliasesFromTsConfig.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getAliasesFromTsConfig.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAC7B,uDAAiC;AAMjC;;;;;GAKG;AACH,MAAM,WAAW,GAAG,CAAC,OAAe,EAAE,EAAE;IACtC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC;AACjH,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE;IACpC,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACtG,CAAC,CAAC;AAEF;;;;GAIG;AACI,MAAM,sBAAsB,GAAG,CAAO,OAAoC,EAAE,EAAE;;IACnF,MAAM,QAAQ,GAAG,EAAE,CAAC,cAAc,CAChC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,gBAAgB,IAAI,oBAAoB,CAAC,EAC9E,EAAE,CAAC,GAAG,CAAC,QAAQ,CAChB,CAAC;IAEF,IAAI,CAAC,CAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,eAAe,0CAAE,KAAK,CAAA,EAAE;QAC5C,MAAM,KAAK,CAAC,oFAAoF,CAAC,CAAC;KACnG;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,eAAe,0CAAE,KAAiC,CAAC,CAAC,MAAM,CAE/F,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACtB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACtB,MAAM,IAAI,SAAS,CAAC,wBAAwB,GAAG,eAAe,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;SAC/E;QACD,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAA,CAAC;AAlBW,QAAA,sBAAsB,0BAkBjC","sourcesContent":["import * as path from \"path\";\nimport * as ts from \"typescript\";\ninterface IAliasesFromTsConfigOptions {\n nxRootDir: string;\n tsConfigFilePath?: string;\n}\n\n/**\n * Removes the /* from the end of the alias if it exists.\n *\n * @param tsAlias the alias from the tsconfig.json\n * @returns { string } substring of the alias if it ends with /*\n */\nconst fromTsAlias = (tsAlias: string) => {\n return tsAlias.indexOf(\"/*\") === tsAlias.length - 2 ? tsAlias.substring(0, tsAlias.length - 2) : `${tsAlias}$`;\n};\n\nconst fromTsPath = (tsPath: string) => {\n return tsPath.indexOf(\"/*\") === tsPath.length - 2 ? tsPath.substring(0, tsPath.length - 2) : tsPath;\n};\n\n/**\n * Generates a list of aliases from the options.tsConfigFilePath defaults to tsconfig.base.json.\n *\n * @returns { Promise<Record<string, string>> } aliases Exposes object for module federation.\n */\nexport const getAliasesFromTsConfig = async (options: IAliasesFromTsConfigOptions) => {\n const tsConfig = ts.readConfigFile(\n path.join(options.nxRootDir, options.tsConfigFilePath || \"tsconfig.base.json\"),\n ts.sys.readFile\n );\n\n if (!tsConfig?.config.compilerOptions?.paths) {\n throw Error(`option tsconfigFilePath missing paths property in (tsConfig.compilerOptions.paths)`);\n }\n return Object.entries(tsConfig?.config.compilerOptions?.paths as Record<string, string[]>).reduce<\n Record<string, string>\n >((acc, [key, value]) => {\n if (value.length !== 1) {\n throw new TypeError(`Unsupported TS alias ${key} has length ${value.length}`);\n }\n acc[fromTsAlias(key)] = path.join(options.nxRootDir, fromTsPath(value[0]));\n return acc;\n }, {});\n};\n"]}
|