@ms-cloudpack/app-server 0.1.3 → 0.1.5

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":"getInlineScripts.d.ts","sourceRoot":"","sources":["../../src/inlineScripts/getInlineScripts.ts"],"names":[],"mappings":"AAcA,wBAAsB,gBAAgB,sBAQrC"}
1
+ {"version":3,"file":"getInlineScripts.d.ts","sourceRoot":"","sources":["../../src/inlineScripts/getInlineScripts.ts"],"names":[],"mappings":"AAmBA,wBAAsB,gBAAgB,sBAQrC"}
@@ -1,8 +1,13 @@
1
1
  import fsPromises from 'fs/promises';
2
2
  import path from 'path';
3
3
  import { fileURLToPath } from 'url';
4
- import { dynamicImportExtension } from '../utilities/dynamicImportExtension.js';
5
- const currentPath = fileURLToPath(path.dirname(import.meta.url));
4
+ const currentFile = fileURLToPath(import.meta.url);
5
+ const currentPath = path.dirname(currentFile);
6
+ /**
7
+ * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:
8
+ * compiled (`.js`) or Jest test in this package (`.ts`).
9
+ */
10
+ const dynamicImportExtension = path.extname(currentFile);
6
11
  let inlineScripts;
7
12
  // List of files that we will load on demand.
8
13
  const inlineScriptFiles = ['defineProcess', 'errorHandler', 'getBrowserCacheRatio', 'getPageLoadTime'].map((file) => `${file}.inline${dynamicImportExtension}`);
@@ -1 +1 @@
1
- {"version":3,"file":"getInlineScripts.js","sourceRoot":"","sources":["../../src/inlineScripts/getInlineScripts.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAEjE,IAAI,aAAmC,CAAC;AAExC,6CAA6C;AAC7C,MAAM,iBAAiB,GAAG,CAAC,eAAe,EAAE,cAAc,EAAE,sBAAsB,EAAE,iBAAiB,CAAC,CAAC,GAAG,CACxG,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,UAAU,sBAAsB,EAAE,CACpD,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,iBAAiB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,CACpG,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import fsPromises from 'fs/promises';\nimport path from 'path';\nimport { fileURLToPath } from 'url';\nimport { dynamicImportExtension } from '../utilities/dynamicImportExtension.js';\n\nconst currentPath = fileURLToPath(path.dirname(import.meta.url));\n\nlet inlineScripts: string[] | undefined;\n\n// List of files that we will load on demand.\nconst inlineScriptFiles = ['defineProcess', 'errorHandler', 'getBrowserCacheRatio', 'getPageLoadTime'].map(\n (file) => `${file}.inline${dynamicImportExtension}`,\n);\n\nexport async function getInlineScripts() {\n if (!inlineScripts) {\n inlineScripts = await Promise.all(\n inlineScriptFiles.map((filename) => fsPromises.readFile(path.join(currentPath, filename), 'utf-8')),\n );\n }\n\n return inlineScripts;\n}\n"]}
1
+ {"version":3,"file":"getInlineScripts.js","sourceRoot":"","sources":["../../src/inlineScripts/getInlineScripts.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAC9C;;;GAGG;AACH,MAAM,sBAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAEzD,IAAI,aAAmC,CAAC;AAExC,6CAA6C;AAC7C,MAAM,iBAAiB,GAAG,CAAC,eAAe,EAAE,cAAc,EAAE,sBAAsB,EAAE,iBAAiB,CAAC,CAAC,GAAG,CACxG,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,UAAU,sBAAsB,EAAE,CACpD,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,iBAAiB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,CACpG,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import fsPromises from 'fs/promises';\nimport path from 'path';\nimport { fileURLToPath } from 'url';\n\nconst currentFile = fileURLToPath(import.meta.url);\nconst currentPath = path.dirname(currentFile);\n/**\n * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:\n * compiled (`.js`) or Jest test in this package (`.ts`).\n */\nconst dynamicImportExtension = path.extname(currentFile);\n\nlet inlineScripts: string[] | undefined;\n\n// List of files that we will load on demand.\nconst inlineScriptFiles = ['defineProcess', 'errorHandler', 'getBrowserCacheRatio', 'getPageLoadTime'].map(\n (file) => `${file}.inline${dynamicImportExtension}`,\n);\n\nexport async function getInlineScripts() {\n if (!inlineScripts) {\n inlineScripts = await Promise.all(\n inlineScriptFiles.map((filename) => fsPromises.readFile(path.join(currentPath, filename), 'utf-8')),\n );\n }\n\n return inlineScripts;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/app-server",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "An implementation of the App server for Cloudpack.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,13 +14,13 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@ms-cloudpack/api-server": "^0.29.10",
18
- "@ms-cloudpack/bundle-server": "^0.2.3",
17
+ "@ms-cloudpack/api-server": "^0.29.11",
18
+ "@ms-cloudpack/bundle-server": "^0.2.4",
19
19
  "@ms-cloudpack/bundler-types": "^0.23.9",
20
20
  "@ms-cloudpack/config-types": "^0.4.0",
21
21
  "@ms-cloudpack/create-express-app": "^1.3.16",
22
- "@ms-cloudpack/overlay": "^0.16.51",
23
- "@ms-cloudpack/package-hashes": "^0.3.9",
22
+ "@ms-cloudpack/overlay": "^0.16.52",
23
+ "@ms-cloudpack/package-hashes": "^0.3.10",
24
24
  "@ms-cloudpack/package-utilities": "^5.7.8",
25
25
  "@ms-cloudpack/path-string-parsing": "^1.1.3",
26
26
  "@ms-cloudpack/task-reporter": "^0.11.0",
@@ -1,6 +0,0 @@
1
- /**
2
- * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:
3
- * compiled (`.js`) or Jest test in this package (`.ts`).
4
- */
5
- export declare const dynamicImportExtension: string;
6
- //# sourceMappingURL=dynamicImportExtension.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamicImportExtension.d.ts","sourceRoot":"","sources":["../../src/utilities/dynamicImportExtension.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAA+C,CAAC"}
@@ -1,8 +0,0 @@
1
- import path from 'path';
2
- import { fileURLToPath } from 'url';
3
- /**
4
- * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:
5
- * compiled (`.js`) or Jest test in this package (`.ts`).
6
- */
7
- export const dynamicImportExtension = path.extname(fileURLToPath(import.meta.url));
8
- //# sourceMappingURL=dynamicImportExtension.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamicImportExtension.js","sourceRoot":"","sources":["../../src/utilities/dynamicImportExtension.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC","sourcesContent":["import path from 'path';\nimport { fileURLToPath } from 'url';\n\n/**\n * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:\n * compiled (`.js`) or Jest test in this package (`.ts`).\n */\nexport const dynamicImportExtension = path.extname(fileURLToPath(import.meta.url));\n"]}