@squiz/component-cli-lib 1.32.1-alpha.9 → 1.33.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/component-cli-lib",
3
- "version": "1.32.1-alpha.9",
3
+ "version": "1.33.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -13,12 +13,12 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "devDependencies": {
16
- "@squiz/component-lib": "1.32.1-alpha.9",
17
- "@squiz/component-web-api-lib": "1.32.1-alpha.9",
18
- "@squiz/dx-common-lib": "1.32.1-alpha.9",
19
- "@squiz/dx-json-schema-lib": "1.32.1-alpha.9",
20
- "@squiz/dx-logger-lib": "1.32.1-alpha.9",
21
- "@squiz/virus-scanner-lib": "1.32.1-alpha.9",
16
+ "@squiz/component-lib": "1.33.0",
17
+ "@squiz/component-web-api-lib": "1.33.0",
18
+ "@squiz/dx-common-lib": "1.33.0",
19
+ "@squiz/dx-json-schema-lib": "1.33.0",
20
+ "@squiz/dx-logger-lib": "1.33.0",
21
+ "@squiz/virus-scanner-lib": "1.33.0",
22
22
  "@types/cli-color": "2.0.2",
23
23
  "@types/express": "4.17.17",
24
24
  "@types/jest": "28.1.8",
@@ -32,12 +32,12 @@
32
32
  "typescript": "4.9.4"
33
33
  },
34
34
  "dependencies": {
35
- "@squiz/render-runtime-lib": "1.32.1-alpha.9",
35
+ "@squiz/render-runtime-lib": "1.33.0",
36
36
  "archiver": "5.3.1",
37
37
  "axios": "1.3.2",
38
38
  "cli-color": "^2.0.2",
39
39
  "open": "^8.4.0",
40
40
  "supertest": "^6.2.3"
41
41
  },
42
- "gitHead": "61f757e6b67833114010b04397303c1cd41a180d"
42
+ "gitHead": "39f24b55ea7d5077df241753f723d549a117e91d"
43
43
  }
@@ -9,6 +9,7 @@ import path from 'path';
9
9
  import { ComponentFunctionService, ComponentSetServiceForLocalDev, ManifestServiceForDev } from '@squiz/component-lib';
10
10
  import open from 'open';
11
11
  import { DevelopmentApiKeyService } from '@squiz/dx-common-lib';
12
+ import { ComponentLogger } from '@squiz/component-logger-lib';
12
13
 
13
14
  /**
14
15
  * startDevelopmentRender starts a dev-mode render stack for any
@@ -27,6 +28,15 @@ export function startDevelopmentRender(
27
28
  format: options.loggingFormat || 'human',
28
29
  silent: process.env.NODE_ENV === 'test',
29
30
  });
31
+
32
+ const devComponentLogger = new ComponentLogger({
33
+ enabled: false,
34
+ tenantId: 'dev-tenant-id',
35
+ logUrl: '',
36
+ key: '',
37
+ tags: 'tag-foo tag-foo2',
38
+ });
39
+
30
40
  const dataMountPoint = path.resolve(process.cwd(), componentPath);
31
41
 
32
42
  const rootUrl = `http://localhost:${options.port}`;
@@ -40,6 +50,7 @@ export function startDevelopmentRender(
40
50
  maxWorkers: 2,
41
51
  },
42
52
  logger,
53
+ devComponentLogger,
43
54
  );
44
55
  const componentFunctionService = new ComponentFunctionService(rootUrl);
45
56
  const componentSetService = new ComponentSetServiceForLocalDev(logger);
@@ -32,7 +32,7 @@
32
32
  "inputData": {
33
33
  "type": "inline",
34
34
  "value": {
35
- "text": "matrix-asset://canary.uat.matrix.squiz.cloud/abc123"
35
+ "text": "matrix-asset://canary.uat.matrix.squiz.cloud/123"
36
36
  }
37
37
  }
38
38
  }
@@ -191,7 +191,7 @@ describe('uploading a component', () => {
191
191
  id: contentItemId,
192
192
  schemaName: 'smoke-test-components/matrix-asset-uri/1.0.0/main',
193
193
  content: {
194
- text: 'matrix-asset://canary.uat.matrix.squiz.cloud/abc123',
194
+ text: 'matrix-asset://canary.uat.matrix.squiz.cloud/123',
195
195
  },
196
196
  });
197
197
 
@@ -199,7 +199,7 @@ describe('uploading a component', () => {
199
199
  `/r/smoke-test-components/matrix-asset-uri/1.0.0?_componentSet=${webPath}&_contentItemId=${contentItemId}`,
200
200
  );
201
201
  expect(response.status).toEqual(200);
202
- expect(response.data).toEqual(`<div>Input: matrix-asset://canary.uat.matrix.squiz.cloud/abc123</div>`);
202
+ expect(response.data).toEqual(`<div>Input: matrix-asset://canary.uat.matrix.squiz.cloud/123</div>`);
203
203
  });
204
204
  });
205
205