@teambit/api-server 1.0.142 → 1.0.143

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.
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuites>
3
+ <testsuite name="teambit.harmony/api-server@1.0.143" tests="0" failures="0" errors="0" skipped="0"/>
4
+ </testsuites>
@@ -92,9 +92,9 @@ export declare class APIForIDE {
92
92
  logFile(filePath: string): Promise<import("@teambit/component-log/component-log.main.runtime").FileLog[]>;
93
93
  changedFilesFromParent(id: string): Promise<FileHashDiffFromParent[]>;
94
94
  getConfigForDiff(id: string): Promise<{
95
- version?: string;
96
- dependencies?: string[];
97
- aspects?: Record<string, any>;
95
+ version?: string | undefined;
96
+ dependencies?: string[] | undefined;
97
+ aspects?: Record<string, any> | undefined;
98
98
  }>;
99
99
  setDefaultScope(scopeName: string): Promise<string>;
100
100
  getCompFilesDirPathFromLastSnapUsingCompFiles(compFiles: CompFiles): Promise<{
@@ -110,17 +110,17 @@ export declare class APIForIDE {
110
110
  rippleJobs: string[];
111
111
  }>;
112
112
  checkoutHead(): Promise<{
113
- succeed: string[];
114
- skipped: string[];
115
- failed: string[];
113
+ succeed: string[] | undefined;
114
+ skipped: string[] | undefined;
115
+ failed: string[] | undefined;
116
116
  }>;
117
117
  getTemplates(): Promise<import("@teambit/generator/generator.main.runtime").TemplateDescriptor[]>;
118
118
  createComponent(templateName: string, idIncludeScope: string): Promise<import("@teambit/generator").GenerateResult[]>;
119
119
  removeComponent(id: string): Promise<import("@teambit/legacy/dist/scope/removed-components").RemovedObjectSerialized>;
120
120
  switchLane(name: string): Promise<{
121
- succeed: string[];
122
- skipped: string[];
123
- failed: string[];
121
+ succeed: string[] | undefined;
122
+ skipped: string[] | undefined;
123
+ failed: string[] | undefined;
124
124
  }>;
125
125
  private adjustCheckoutResultsToIde;
126
126
  getModifiedByConfig(): Promise<ModifiedByConfig[]>;
@@ -130,7 +130,7 @@ export declare class APIForIDE {
130
130
  [relativePath: string]: string;
131
131
  }>;
132
132
  getCurrentLaneName(): string;
133
- tagOrSnap(message?: string): Promise<import("@teambit/snapping").TagResults | import("@teambit/snapping").SnapResults>;
133
+ tagOrSnap(message?: string): Promise<import("@teambit/snapping").TagResults | import("@teambit/snapping").SnapResults | null>;
134
134
  tag(message?: string): Promise<string[]>;
135
135
  snap(message?: string): Promise<string[]>;
136
136
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/api-server",
3
- "version": "1.0.142",
3
+ "version": "1.0.143",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/api-server",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "api-server",
9
- "version": "1.0.142"
9
+ "version": "1.0.143"
10
10
  },
11
11
  "dependencies": {
12
12
  "fs-extra": "10.0.0",
@@ -14,32 +14,31 @@
14
14
  "p-map": "4.0.0",
15
15
  "pretty-time": "1.1.0",
16
16
  "@teambit/harmony": "0.4.6",
17
- "@teambit/checkout": "1.0.142",
18
- "@teambit/component-compare": "1.0.142",
19
- "@teambit/component-log": "1.0.142",
20
- "@teambit/config": "0.0.893",
21
- "@teambit/export": "1.0.142",
22
- "@teambit/generator": "1.0.143",
23
- "@teambit/install": "1.0.142",
24
- "@teambit/lanes": "1.0.142",
25
- "@teambit/merging": "1.0.142",
26
- "@teambit/remove": "1.0.142",
27
- "@teambit/snapping": "1.0.142",
28
- "@teambit/workspace": "1.0.142",
29
- "@teambit/cli": "0.0.848",
30
- "@teambit/component": "1.0.142",
31
- "@teambit/express": "0.0.947",
32
- "@teambit/importer": "1.0.142",
33
- "@teambit/logger": "0.0.941",
34
- "@teambit/watcher": "1.0.142"
17
+ "@teambit/checkout": "1.0.143",
18
+ "@teambit/component-compare": "1.0.143",
19
+ "@teambit/component-log": "1.0.143",
20
+ "@teambit/config": "0.0.894",
21
+ "@teambit/export": "1.0.143",
22
+ "@teambit/generator": "1.0.144",
23
+ "@teambit/install": "1.0.143",
24
+ "@teambit/lanes": "1.0.143",
25
+ "@teambit/merging": "1.0.143",
26
+ "@teambit/remove": "1.0.143",
27
+ "@teambit/snapping": "1.0.143",
28
+ "@teambit/workspace": "1.0.143",
29
+ "@teambit/cli": "0.0.849",
30
+ "@teambit/component": "1.0.143",
31
+ "@teambit/express": "0.0.948",
32
+ "@teambit/importer": "1.0.143",
33
+ "@teambit/logger": "0.0.942",
34
+ "@teambit/watcher": "1.0.143"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/fs-extra": "9.0.7",
38
38
  "@types/lodash": "4.14.165",
39
39
  "@types/mocha": "9.1.0",
40
- "@types/jest": "^29.2.2",
41
- "@types/testing-library__jest-dom": "^5.9.5",
42
- "@teambit/harmony.envs.core-aspect-env": "0.0.19"
40
+ "chai": "4.3.0",
41
+ "@teambit/harmony.envs.core-aspect-env": "0.0.24"
43
42
  },
44
43
  "peerDependencies": {
45
44
  "@teambit/legacy": "1.0.624"
@@ -56,7 +55,8 @@
56
55
  "default": "./dist/index.js"
57
56
  },
58
57
  "./dist/*": "./dist/*",
59
- "./artifacts/*": "./artifacts/*"
58
+ "./artifacts/*": "./artifacts/*",
59
+ "./*": "./*.ts"
60
60
  },
61
61
  "private": false,
62
62
  "engines": {
package/tsconfig.json CHANGED
@@ -17,7 +17,10 @@
17
17
  "resolveJsonModule": true,
18
18
  "allowJs": true,
19
19
  "outDir": "dist",
20
- "emitDeclarationOnly": true
20
+ "emitDeclarationOnly": true,
21
+ "strict": true,
22
+ "strictPropertyInitialization": false,
23
+ "noImplicitAny": false
21
24
  },
22
25
  "exclude": [
23
26
  "artifacts",