@squiz/component-cli-lib 1.21.1-alpha.13 → 1.21.1-alpha.19

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.21.1-alpha.13",
3
+ "version": "1.21.1-alpha.19",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -13,16 +13,16 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "devDependencies": {
16
- "@squiz/component-lib": "1.21.1-alpha.13",
17
- "@squiz/component-web-api-lib": "1.21.1-alpha.13",
18
- "@squiz/dx-common-lib": "1.21.1-alpha.13",
19
- "@squiz/dx-json-schema-lib": "1.21.1-alpha.13",
20
- "@squiz/dx-logger-lib": "1.21.1-alpha.13",
21
- "@squiz/virus-scanner-lib": "1.21.1-alpha.13",
16
+ "@squiz/component-lib": "1.21.1-alpha.19",
17
+ "@squiz/component-web-api-lib": "1.21.1-alpha.19",
18
+ "@squiz/dx-common-lib": "1.21.1-alpha.19",
19
+ "@squiz/dx-json-schema-lib": "1.21.1-alpha.19",
20
+ "@squiz/dx-logger-lib": "1.21.1-alpha.19",
21
+ "@squiz/virus-scanner-lib": "1.21.1-alpha.19",
22
22
  "@types/cli-color": "2.0.2",
23
23
  "@types/express": "4.17.17",
24
24
  "@types/jest": "28.1.8",
25
- "@types/node": "17.0.27",
25
+ "@types/node": "18.15.2",
26
26
  "@types/supertest": "2.0.12",
27
27
  "dotenv": "16.0.3",
28
28
  "jest": "29.4.1",
@@ -32,12 +32,12 @@
32
32
  "typescript": "4.9.4"
33
33
  },
34
34
  "dependencies": {
35
- "@squiz/render-runtime-lib": "1.21.1-alpha.13",
35
+ "@squiz/render-runtime-lib": "1.21.1-alpha.19",
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": "4d6aa4982ad220602d31fddf081abab79b9128c6"
42
+ "gitHead": "401a8492ae51c8cd377d0676ec9ce4fccffca7ff"
43
43
  }
@@ -9,7 +9,6 @@ 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 { JsonValidationService } from '@squiz/dx-json-schema-lib';
13
12
 
14
13
  /**
15
14
  * startDevelopmentRender starts a dev-mode render stack for any
@@ -42,10 +41,9 @@ export function startDevelopmentRender(
42
41
  },
43
42
  logger,
44
43
  );
45
- const jsonValidationService = new JsonValidationService();
46
- const componentFunctionService = new ComponentFunctionService(rootUrl, jsonValidationService);
44
+ const componentFunctionService = new ComponentFunctionService(rootUrl);
47
45
  const componentSetService = new ComponentSetServiceForLocalDev(logger);
48
- const manifestService = new ManifestServiceForDev(dataMountPoint, logger, jsonValidationService);
46
+ const manifestService = new ManifestServiceForDev(dataMountPoint, logger);
49
47
  const contentItemService = undefined;
50
48
  const renderInputService = new RenderInputService(
51
49
  componentSetService,
@@ -9,7 +9,6 @@ import { ContentApi } from '@squiz/component-web-api-lib';
9
9
  import { config } from 'dotenv';
10
10
  import { execSync } from 'child_process';
11
11
  import { getLogger } from '@squiz/dx-logger-lib';
12
- import { JsonValidationService } from '@squiz/dx-json-schema-lib';
13
12
 
14
13
  config();
15
14
 
@@ -112,11 +111,7 @@ export const ci_buildBranch = configObj.ci_buildBranch;
112
111
 
113
112
  export async function getTestComponents() {
114
113
  const componentsDir = path.join(__dirname, '/__components__/');
115
- const manifestService = new ManifestServiceForDev(
116
- componentsDir,
117
- getLogger({ name: 'getTestComponents' }),
118
- new JsonValidationService(),
119
- );
114
+ const manifestService = new ManifestServiceForDev(componentsDir, getLogger({ name: 'getTestComponents' }));
120
115
  return await manifestService.listAllComponentManifests();
121
116
  }
122
117
  export async function createFile(filePath: string, sizeInMB: number) {
@@ -7,7 +7,6 @@ import path from 'path';
7
7
  import { AxiosResponse, AxiosError, AxiosInstance } from 'axios';
8
8
  import color from 'cli-color';
9
9
  import { getLogger, Logger } from '@squiz/dx-logger-lib';
10
- import { JsonValidationService } from '@squiz/dx-json-schema-lib';
11
10
 
12
11
  export const logger: Logger = getLogger({ name: 'upload-component', format: 'human' });
13
12
 
@@ -54,7 +53,7 @@ export async function uploadComponentFolder(
54
53
  }
55
54
 
56
55
  async function preUploadChecks(apiClient: AxiosInstance, managementURL: string, folderPath: string) {
57
- const service = new ManifestServiceForDev(folderPath, logger, new JsonValidationService());
56
+ const service = new ManifestServiceForDev(folderPath, logger);
58
57
  const manifestPath = path.join(folderPath, `manifest.json`);
59
58
 
60
59
  const result = await service.readManifest(manifestPath);