@ms-cloudpack/app-server 0.20.38 → 0.20.39
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPageSessionContext.d.ts","sourceRoot":"","sources":["../src/createPageSessionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,GAAG,UAAU,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAC,EAC7E,WAAW,EAAE,MAAM,GAClB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"createPageSessionContext.d.ts","sourceRoot":"","sources":["../src/createPageSessionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,GAAG,UAAU,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAC,EAC7E,WAAW,EAAE,MAAM,GAClB,kBAAkB,CAepB"}
|
|
@@ -12,6 +12,9 @@ export function createPageSessionContext(session, requestPath) {
|
|
|
12
12
|
define: session.config.define,
|
|
13
13
|
hostApiServerUrls: session.urls.hostApiServer,
|
|
14
14
|
showOverlay: session.config.server?.showOverlay,
|
|
15
|
+
features: {
|
|
16
|
+
hmr: !!session.config.features?.hmr,
|
|
17
|
+
},
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
20
|
//# sourceMappingURL=createPageSessionContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPageSessionContext.js","sourceRoot":"","sources":["../src/createPageSessionContext.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACtC,OAA6E,EAC7E,WAAmB;IAEnB,OAAO;QACL,SAAS,EAAE,OAAO,CAAC,EAAE;QACrB,eAAe,EAAE,OAAO,CAAC,QAAQ;QACjC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE;QACpC,eAAe,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY,IAAI,EAAE;QAChD,WAAW;QACX,4BAA4B,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,4BAA4B;QACpF,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM;QAC7B,iBAAiB,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa;QAC7C,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW;
|
|
1
|
+
{"version":3,"file":"createPageSessionContext.js","sourceRoot":"","sources":["../src/createPageSessionContext.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACtC,OAA6E,EAC7E,WAAmB;IAEnB,OAAO;QACL,SAAS,EAAE,OAAO,CAAC,EAAE;QACrB,eAAe,EAAE,OAAO,CAAC,QAAQ;QACjC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE;QACpC,eAAe,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY,IAAI,EAAE;QAChD,WAAW;QACX,4BAA4B,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,4BAA4B;QACpF,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM;QAC7B,iBAAiB,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa;QAC7C,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW;QAC/C,QAAQ,EAAE;YACR,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG;SACpC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { Session } from '@ms-cloudpack/common-types';\nimport type { PageSessionContext } from '@ms-cloudpack/common-types-browser';\n\n/**\n * Create a page session context that needs to be on the page for Cloudpack to work properly.\n */\nexport function createPageSessionContext(\n session: Pick<Session, 'id' | 'sequence' | 'projectName' | 'urls' | 'config'>,\n requestPath: string,\n): PageSessionContext {\n return {\n sessionId: session.id,\n currentSequence: session.sequence,\n apiUrl: session.urls.apiServer ?? '',\n bundleServerUrl: session.urls.bundleServer ?? '',\n requestPath,\n pageLoadTimePerformanceEntry: session.config.telemetry?.pageLoadTimePerformanceEntry,\n define: session.config.define,\n hostApiServerUrls: session.urls.hostApiServer,\n showOverlay: session.config.server?.showOverlay,\n features: {\n hmr: !!session.config.features?.hmr,\n },\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/app-server",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.39",
|
|
4
4
|
"description": "Internal app server for Cloudpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"test": "cloudpack-scripts test"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ms-cloudpack/api-server": "^0.
|
|
28
|
-
"@ms-cloudpack/bundle-server": "^0.8.
|
|
29
|
-
"@ms-cloudpack/common-types": "^0.33.
|
|
30
|
-
"@ms-cloudpack/create-express-app": "^1.10.
|
|
27
|
+
"@ms-cloudpack/api-server": "^0.66.0",
|
|
28
|
+
"@ms-cloudpack/bundle-server": "^0.8.39",
|
|
29
|
+
"@ms-cloudpack/common-types": "^0.33.2",
|
|
30
|
+
"@ms-cloudpack/create-express-app": "^1.10.67",
|
|
31
31
|
"@ms-cloudpack/environment": "^0.1.1",
|
|
32
|
-
"@ms-cloudpack/import-map": "^0.10.
|
|
33
|
-
"@ms-cloudpack/inline-scripts": "^0.2.
|
|
34
|
-
"@ms-cloudpack/path-string-parsing": "^1.
|
|
35
|
-
"@ms-cloudpack/path-utilities": "^3.2.
|
|
32
|
+
"@ms-cloudpack/import-map": "^0.10.64",
|
|
33
|
+
"@ms-cloudpack/inline-scripts": "^0.2.61",
|
|
34
|
+
"@ms-cloudpack/path-string-parsing": "^1.3.0",
|
|
35
|
+
"@ms-cloudpack/path-utilities": "^3.2.3",
|
|
36
36
|
"@ms-cloudpack/task-reporter": "^0.17.4",
|
|
37
37
|
"@ms-cloudpack/worker-pool": "^0.4.1",
|
|
38
38
|
"happy-dom": "^20.0.2",
|
|
39
39
|
"http-proxy-middleware": "^2.0.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@ms-cloudpack/common-types-browser": "^0.6.
|
|
43
|
-
"@ms-cloudpack/config": "^0.38.
|
|
42
|
+
"@ms-cloudpack/common-types-browser": "^0.6.5",
|
|
43
|
+
"@ms-cloudpack/config": "^0.38.23",
|
|
44
44
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
45
45
|
"@ms-cloudpack/scripts": "^0.0.1",
|
|
46
46
|
"@ms-cloudpack/test-utilities": "^0.5.0"
|