@trackunit/iris-app-build-utilities 0.0.41 → 0.0.43
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,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.43](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.42...iris-app-build-utilities/0.0.43) (2022-08-04)
|
|
6
|
+
|
|
7
|
+
### [0.0.42](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.41...iris-app-build-utilities/0.0.42) (2022-07-29)
|
|
8
|
+
|
|
9
|
+
### Dependency Updates
|
|
10
|
+
|
|
11
|
+
* `iris-app-api` updated to version `0.0.1`
|
|
5
12
|
### [0.0.41](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.40...iris-app-build-utilities/0.0.41) (2022-07-29)
|
|
6
13
|
|
|
7
14
|
### Dependency Updates
|
package/README.md
CHANGED
|
@@ -3,13 +3,13 @@ The `@trackunit/iris-app-build-utilities` package contains several tools used fo
|
|
|
3
3
|
|
|
4
4
|
Trackunit Iris Apps are used by external developers to integrate custom functionality into [the Trackunit Manager platform](https://www.trackunit.com/services/manager/).
|
|
5
5
|
|
|
6
|
-
For a full guide on
|
|
6
|
+
For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
|
|
7
7
|
|
|
8
8
|
## Basic Usage
|
|
9
9
|
This package is not meant for isolated usage but is a part of the [`@trackunit/iris-app`](https://www.npmjs.com/package/@trackunit/iris-app) package.
|
|
10
10
|
|
|
11
11
|
## Trackunit
|
|
12
|
-
This package was developed by Trackunit ApS.
|
|
12
|
+
This package was developed by Trackunit ApS.
|
|
13
13
|
Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
|
|
14
14
|
|
|
15
15
|

|
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.43",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tsconfig-paths": "^3.14.0",
|
|
10
10
|
"typescript": "4.7.3",
|
|
11
|
-
"@trackunit/iris-app-api": "0.0.
|
|
11
|
+
"@trackunit/iris-app-api": "0.0.41",
|
|
12
12
|
"tslib": "^2.3.1"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {}
|
|
@@ -20,8 +20,13 @@ const getTileWebpackDevServer = (webpackDevServerConfiguration = {}) => tslib_1.
|
|
|
20
20
|
middlewares.push({
|
|
21
21
|
name: "cors-preflight",
|
|
22
22
|
path: "/",
|
|
23
|
-
middleware: (req, res) => {
|
|
24
|
-
|
|
23
|
+
middleware: (req, res, next) => {
|
|
24
|
+
if (req.method === "GET") {
|
|
25
|
+
next();
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
res.send("GET, HEAD");
|
|
29
|
+
}
|
|
25
30
|
},
|
|
26
31
|
});
|
|
27
32
|
(_a = devServer.app) === null || _a === void 0 ? void 0 : _a.use("/", (request, response, next) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTileWebpackDevServer.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getTileWebpackDevServer.ts"],"names":[],"mappings":";;;;AAEA;;;;GAIG;AACI,MAAM,uBAAuB,GAAG,CACrC,gCAA+C,EAAE,EACzB,EAAE;IAC1B,uBACE,IAAI,EAAE,KAAK,EACX,OAAO,EAAE;YACP,kCAAkC,EAAE,MAAM;YAC1C,wBAAwB,EAAE,MAAM;YAChC,8BAA8B,EAAE,iCAAiC;YACjE,8BAA8B,EAC5B,gGAAgG;SACnG,EACD,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,8DAA8D,CAAC;SACzE,EACD,WAAW,EAAE,CAAC,MAAc,EAAE,EAAE,GAAE,CAAC,EACnC,gBAAgB,EAAE,CAAC,WAAyB,EAAE,SAAiB,EAAE,EAAE;;YACjE,WAAW,CAAC,IAAI,CAAC;gBACf,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,GAAG;gBACT,UAAU,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"getTileWebpackDevServer.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getTileWebpackDevServer.ts"],"names":[],"mappings":";;;;AAEA;;;;GAIG;AACI,MAAM,uBAAuB,GAAG,CACrC,gCAA+C,EAAE,EACzB,EAAE;IAC1B,uBACE,IAAI,EAAE,KAAK,EACX,OAAO,EAAE;YACP,kCAAkC,EAAE,MAAM;YAC1C,wBAAwB,EAAE,MAAM;YAChC,8BAA8B,EAAE,iCAAiC;YACjE,8BAA8B,EAC5B,gGAAgG;SACnG,EACD,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,8DAA8D,CAAC;SACzE,EACD,WAAW,EAAE,CAAC,MAAc,EAAE,EAAE,GAAE,CAAC,EACnC,gBAAgB,EAAE,CAAC,WAAyB,EAAE,SAAiB,EAAE,EAAE;;YACjE,WAAW,CAAC,IAAI,CAAC;gBACf,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,GAAG;gBACT,UAAU,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,IAAgB,EAAE,EAAE;oBAC5D,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,EAAE;wBACxB,IAAI,EAAE,CAAC;qBACR;yBAAM;wBACL,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;qBACvB;gBACH,CAAC;aACF,CAAC,CAAC;YACH,MAAA,SAAS,CAAC,GAAG,0CAAE,GAAG,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;gBAClD,QAAQ,CAAC,MAAM,CAAC,6BAA6B,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,IAAI,mCAAmC,CAAC,CAAC;gBAC9G,IAAI,EAAE,CAAC;YACT,CAAC,CAAC,CAAC;YACH,OAAO,WAAW,CAAC;QACrB,CAAC,IACE,6BAA6B,EAChC;AACJ,CAAC,CAAA,CAAC;AApCW,QAAA,uBAAuB,2BAoClC","sourcesContent":["import Server, { Configuration, Middleware, Request, Response } from \"webpack-dev-server\";\n\n/**\n * Generates a dev server configuration for webpack configuration.\n * @param webpackDevServerConfiguration The configuration to extend.\n * @returns {Configuration} The dev server for tiles.\n */\nexport const getTileWebpackDevServer = async (\n webpackDevServerConfiguration: Configuration = {}\n): Promise<Configuration> => {\n return {\n port: 22220,\n headers: {\n \"Access-Control-Allow-Credentials\": \"true\",\n \"Access-Control-Max-Age\": \"3600\",\n \"Access-Control-Allow-Methods\": \"GET, POST, PUT, DELETE, OPTIONS\",\n \"Access-Control-Allow-Headers\":\n \"X-Requested-With, content-type, Authorization, sentry-trace, session-id, x-trackunitappversion\",\n },\n open: {\n target: [\"https://dev.manager.trackunit.com/tiles-portal/main#runLocal\"],\n },\n onListening: (server: Server) => {},\n setupMiddlewares: (middlewares: Middleware[], devServer: Server) => {\n middlewares.push({\n name: \"cors-preflight\",\n path: \"/\",\n middleware: (req: Request, res: Response, next: () => void) => {\n if (req.method === \"GET\") {\n next();\n } else {\n res.send(\"GET, HEAD\");\n }\n },\n });\n devServer.app?.use(\"/\", (request, response, next) => {\n response.header(\"Access-Control-Allow-Origin\", request.headers.origin || \"https://dev.manager.trackunit.com\");\n next();\n });\n return middlewares;\n },\n ...webpackDevServerConfiguration,\n };\n};\n"]}
|