@ms-cloudpack/bundle-server 0.3.0 → 0.4.0
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/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/startBundleServer.d.ts +3 -5
- package/lib/startBundleServer.d.ts.map +1 -1
- package/lib/startBundleServer.js +7 -14
- package/lib/startBundleServer.js.map +1 -1
- package/lib/types/BundleServerContext.d.ts +1 -3
- package/lib/types/BundleServerContext.d.ts.map +1 -1
- package/lib/types/BundleServerContext.js.map +1 -1
- package/lib/types/BundleServerOptions.d.ts +4 -0
- package/lib/types/BundleServerOptions.d.ts.map +1 -0
- package/lib/types/BundleServerOptions.js +2 -0
- package/lib/types/BundleServerOptions.js.map +1 -0
- package/package.json +6 -6
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { startBundleServer } from './startBundleServer.js';
|
|
2
2
|
export type { BundleServer } from './types/BundleServer.js';
|
|
3
3
|
export type { BundleServerContext } from './types/BundleServerContext.js';
|
|
4
|
+
export type { BundleServerOptions } from './types/BundleServerOptions.js';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,YAAY,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC","sourcesContent":["export { startBundleServer } from './startBundleServer.js';\nexport type { BundleServer } from './types/BundleServer.js';\nexport type { BundleServerContext } from './types/BundleServerContext.js';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC","sourcesContent":["export { startBundleServer } from './startBundleServer.js';\nexport type { BundleServer } from './types/BundleServer.js';\nexport type { BundleServerContext } from './types/BundleServerContext.js';\nexport type { BundleServerOptions } from './types/BundleServerOptions.js';\n"]}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { BundleServer } from './types/BundleServer.js';
|
|
2
|
+
import type { BundleServerOptions } from './types/BundleServerOptions.js';
|
|
2
3
|
import type { BundleServerContext } from './types/BundleServerContext.js';
|
|
3
4
|
/**
|
|
4
5
|
* The bundle server handles package requests and returns bundled resources.
|
|
5
|
-
* Resources are bundled on demand and cached locally to avoid re-bundling
|
|
6
|
-
* on each request.
|
|
6
|
+
* Resources are bundled on demand and cached locally to avoid re-bundling on each request.
|
|
7
7
|
*/
|
|
8
|
-
export declare function startBundleServer(options:
|
|
9
|
-
context: BundleServerContext;
|
|
10
|
-
}): Promise<BundleServer>;
|
|
8
|
+
export declare function startBundleServer(options: BundleServerOptions, context: BundleServerContext): Promise<BundleServer>;
|
|
11
9
|
//# sourceMappingURL=startBundleServer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startBundleServer.d.ts","sourceRoot":"","sources":["../src/startBundleServer.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E
|
|
1
|
+
{"version":3,"file":"startBundleServer.d.ts","sourceRoot":"","sources":["../src/startBundleServer.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,CAiBvB"}
|
package/lib/startBundleServer.js
CHANGED
|
@@ -6,13 +6,10 @@ import { slash } from '@ms-cloudpack/path-string-parsing';
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
/**
|
|
8
8
|
* The bundle server handles package requests and returns bundled resources.
|
|
9
|
-
* Resources are bundled on demand and cached locally to avoid re-bundling
|
|
10
|
-
* on each request.
|
|
9
|
+
* Resources are bundled on demand and cached locally to avoid re-bundling on each request.
|
|
11
10
|
*/
|
|
12
|
-
export async function startBundleServer(options) {
|
|
13
|
-
const {
|
|
14
|
-
const { session } = context;
|
|
15
|
-
const { config } = session;
|
|
11
|
+
export async function startBundleServer(options, context) {
|
|
12
|
+
const { config } = context.session;
|
|
16
13
|
const { app, port, close, url } = await createExpressApp({
|
|
17
14
|
portRange: [5500, 5501, 5502, 5503],
|
|
18
15
|
hostname: config.devServer?.domain,
|
|
@@ -20,20 +17,16 @@ export async function startBundleServer(options) {
|
|
|
20
17
|
});
|
|
21
18
|
// Set up the express app routes.
|
|
22
19
|
app.get('*', (req, res) => {
|
|
23
|
-
handleRequest({ req, res }, context).catch((err) => {
|
|
20
|
+
handleRequest({ ...options, req, res }, context).catch((err) => {
|
|
24
21
|
console.error(err?.stack || err);
|
|
25
22
|
res.status(500).send(`Error bundling: ${err}`);
|
|
26
23
|
});
|
|
27
24
|
});
|
|
28
|
-
return {
|
|
29
|
-
close,
|
|
30
|
-
port,
|
|
31
|
-
url,
|
|
32
|
-
};
|
|
25
|
+
return { close, port, url };
|
|
33
26
|
}
|
|
34
27
|
async function handleRequest(options, context) {
|
|
35
|
-
const { req, res } = options;
|
|
36
|
-
const { session, packageHashes
|
|
28
|
+
const { req, res, disableCache } = options;
|
|
29
|
+
const { session, packageHashes } = context;
|
|
37
30
|
const { resolveMap } = session;
|
|
38
31
|
const requestPath = slash(req.path.substring(1));
|
|
39
32
|
const force = req.query.force !== undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startBundleServer.js","sourceRoot":"","sources":["../src/startBundleServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAA+B,MAAM,kCAAkC,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"startBundleServer.js","sourceRoot":"","sources":["../src/startBundleServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAA+B,MAAM,kCAAkC,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,K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BAAsB,WAAW,IAAI,OAAO,GAAG,QAAQ,GAAG,CAAC,CAAC;IAC1E,4BAA4B;IAC5B,IACE,MAAM,CAAC,UAAU;QACjB,CAAC,IAAI,KAAK,SAAS;YACjB,IAAI,KAAK,CAAC,MAAM,aAAa,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,YAAY,CAAC,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EACvG,CAAC;QACD,GAAG,CAAC,SAAS,CAAC,eAAe,EAAE,0BAA0B,CAAC,CAAC;IAC7D,CAAC;IAED,4EAA4E;IAC5E,GAAG,CAAC,SAAS,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;IAE1C,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AACvD,CAAC","sourcesContent":["import { ensurePackageBundled } from '@ms-cloudpack/api-server';\nimport { createExpressApp, type Request, type Response } from '@ms-cloudpack/create-express-app';\nimport { parseRequestInfo } from '@ms-cloudpack/import-map';\nimport { findResolveMapEntry, isExternalPackage } from '@ms-cloudpack/package-utilities';\nimport { slash } from '@ms-cloudpack/path-string-parsing';\nimport path from 'path';\nimport type { BundleServer } from './types/BundleServer.js';\nimport type { BundleServerOptions } from './types/BundleServerOptions.js';\nimport type { BundleServerContext } from './types/BundleServerContext.js';\n\n/**\n * The bundle server handles package requests and returns bundled resources.\n * Resources are bundled on demand and cached locally to avoid re-bundling on each request.\n */\nexport async function startBundleServer(\n options: BundleServerOptions,\n context: BundleServerContext,\n): Promise<BundleServer> {\n const { config } = context.session;\n const { app, port, close, url } = await createExpressApp({\n portRange: [5500, 5501, 5502, 5503],\n hostname: config.devServer?.domain,\n sslOptions: config.devServer?.https,\n });\n\n // Set up the express app routes.\n app.get('*', (req, res) => {\n handleRequest({ ...options, req, res }, context).catch((err) => {\n console.error((err as Error)?.stack || err);\n res.status(500).send(`Error bundling: ${err}`);\n });\n });\n\n return { close, port, url };\n}\n\nasync function handleRequest(\n options: BundleServerOptions & {\n req: Request;\n res: Response;\n },\n context: BundleServerContext,\n) {\n const { req, res, disableCache } = options;\n const { session, packageHashes } = context;\n const { resolveMap } = session;\n const requestPath = slash(req.path.substring(1));\n const force = req.query.force !== undefined;\n const { packageName, version, hash, bundled, filePath } = parseRequestInfo(requestPath);\n const packageEntry = findResolveMapEntry({ packageName, version, resolveMap });\n\n if (!packageEntry) {\n // If the package is missing, invalid arguments.\n console.debug(`Response (404): Unrecognized package \"${packageName}\"`);\n res.status(404).send(`Unrecognized package \"${packageName}\".`);\n return;\n }\n\n console.debug(`Request: \"${packageName}@${version}${filePath}\"`);\n\n // If the package is missing, invalid arguments.\n if (!requestPath || !packageName) {\n console.debug(`Response (400): \"${packageName}@${version}${filePath}\"`);\n\n res.status(400).send(`Requests must be in the format \"/{packageName}@{version}/{type}/path/file.ext\".`);\n return;\n }\n\n // If the version is missing, redirect to the primary version.\n if (!version) {\n res.redirect(`/${packageName}@${packageEntry.version}${filePath}`);\n return;\n }\n\n // If we are accessing a non-bundled asset, return the file directly.\n if (!bundled) {\n const fullPath = path.join(packageEntry.path, filePath);\n\n if (fullPath.length < packageEntry.path.length) {\n console.debug(`Response (400): \"${packageName}@${version}${filePath}\"`);\n\n res.status(400).send(`Invalid file path.`);\n } else {\n console.debug(`Unbundled response returning: \"${packageName}@${version}${filePath}\"`);\n // If the package is external, set cache headers.\n if (isExternalPackage(packageEntry.path)) {\n res.setHeader('Cache-Control', 'public, max-age=31536000');\n }\n\n res.sendFile(path.join(packageEntry.path, filePath));\n }\n return;\n }\n\n console.debug(`Trying to bundle \"${packageName}@${version}\"`);\n const { result } = await ensurePackageBundled({\n input: {\n name: packageName,\n version,\n shouldForce: force,\n shouldRerun: force,\n shouldWatch: true, // This will only watch the package if it is internal.\n disableCache,\n },\n ctx: context,\n });\n\n if (result.errors?.length) {\n res.status(500).type('json').send(result);\n return;\n }\n\n console.debug(`Bundle returning: \"${packageName}@${version}${filePath}\"`);\n // Try to return the result.\n if (\n result.isExternal ||\n (hash !== 'pending' &&\n hash === (await packageHashes.get({ packagePath: packageEntry.path, isSourceHashingEnabled: true })))\n ) {\n res.setHeader('Cache-Control', 'public, max-age=31536000');\n }\n\n // The below header is need to be able to track the browser cache hit ratio.\n res.setHeader('Timing-Allow-Origin', '*');\n\n res.sendFile(path.join(result.outputPath, filePath));\n}\n"]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { Context } from '@ms-cloudpack/api-server';
|
|
2
|
-
export type BundleServerContext = Pick<Context, 'bus' | 'taskRunner' | 'watcher' | 'telemetryClient' | 'packageImportPaths' | 'packages' | 'reporter' | 'session' | 'packageHashes'
|
|
3
|
-
disableCache: boolean;
|
|
4
|
-
};
|
|
2
|
+
export type BundleServerContext = Pick<Context, 'bus' | 'taskRunner' | 'watcher' | 'telemetryClient' | 'packageImportPaths' | 'packages' | 'reporter' | 'session' | 'packageHashes'>;
|
|
5
3
|
//# sourceMappingURL=BundleServerContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleServerContext.d.ts","sourceRoot":"","sources":["../../src/types/BundleServerContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,OAAO,EACL,KAAK,GACL,YAAY,GACZ,SAAS,GACT,iBAAiB,GACjB,oBAAoB,GACpB,UAAU,GACV,UAAU,GACV,SAAS,GACT,eAAe,CAClB,
|
|
1
|
+
{"version":3,"file":"BundleServerContext.d.ts","sourceRoot":"","sources":["../../src/types/BundleServerContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,OAAO,EACL,KAAK,GACL,YAAY,GACZ,SAAS,GACT,iBAAiB,GACjB,oBAAoB,GACpB,UAAU,GACV,UAAU,GACV,SAAS,GACT,eAAe,CAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleServerContext.js","sourceRoot":"","sources":["../../src/types/BundleServerContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { Context } from '@ms-cloudpack/api-server';\n\nexport type BundleServerContext = Pick<\n Context,\n | 'bus'\n | 'taskRunner'\n | 'watcher'\n | 'telemetryClient'\n | 'packageImportPaths'\n | 'packages'\n | 'reporter'\n | 'session'\n | 'packageHashes'\n
|
|
1
|
+
{"version":3,"file":"BundleServerContext.js","sourceRoot":"","sources":["../../src/types/BundleServerContext.ts"],"names":[],"mappings":"","sourcesContent":["import type { Context } from '@ms-cloudpack/api-server';\n\nexport type BundleServerContext = Pick<\n Context,\n | 'bus'\n | 'taskRunner'\n | 'watcher'\n | 'telemetryClient'\n | 'packageImportPaths'\n | 'packages'\n | 'reporter'\n | 'session'\n | 'packageHashes'\n>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BundleServerOptions.d.ts","sourceRoot":"","sources":["../../src/types/BundleServerOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BundleServerOptions.js","sourceRoot":"","sources":["../../src/types/BundleServerOptions.ts"],"names":[],"mappings":"","sourcesContent":["export interface BundleServerOptions {\n disableCache: boolean;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/bundle-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "An implementation of the Bundle server for Cloudpack.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@ms-cloudpack/api-server": "^0.42.
|
|
18
|
-
"@ms-cloudpack/create-express-app": "^1.6.
|
|
19
|
-
"@ms-cloudpack/import-map": "^0.
|
|
20
|
-
"@ms-cloudpack/package-utilities": "^7.4.
|
|
21
|
-
"@ms-cloudpack/path-string-parsing": "^1.2.
|
|
17
|
+
"@ms-cloudpack/api-server": "^0.42.1",
|
|
18
|
+
"@ms-cloudpack/create-express-app": "^1.6.10",
|
|
19
|
+
"@ms-cloudpack/import-map": "^0.4.0",
|
|
20
|
+
"@ms-cloudpack/package-utilities": "^7.4.2",
|
|
21
|
+
"@ms-cloudpack/path-string-parsing": "^1.2.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|