@things-factory/integration-git 9.0.20 → 9.0.25
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/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/engine/connector/git.d.ts +0 -1
- package/dist-server/engine/connector/git.js +8 -9
- package/dist-server/engine/connector/git.js.map +1 -1
- package/dist-server/engine/task/git-clone.js +1 -1
- package/dist-server/engine/task/git-clone.js.map +1 -1
- package/dist-server/engine/task/git-pull.js +1 -1
- package/dist-server/engine/task/git-pull.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/engine/connector/git.ts +8 -8
- package/server/engine/task/git-clone.ts +1 -1
- package/server/engine/task/git-pull.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-git",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.25",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@things-factory/integration-base": "^9.0.
|
|
30
|
+
"@things-factory/integration-base": "^9.0.25",
|
|
31
31
|
"simple-git": "^3.27.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "f15d38b26438fe7e14edefdeb0b752ce9fe5fa83"
|
|
34
34
|
}
|
|
@@ -8,14 +8,14 @@ export class GitConnector implements Connector {
|
|
|
8
8
|
ConnectionManager.logger.info('Git connections are ready')
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
checkConnectionInstance(domain, connectionName): boolean {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
11
|
+
// async checkConnectionInstance(domain, connectionName): Promise<boolean> {
|
|
12
|
+
// try {
|
|
13
|
+
// const connection = await ConnectionManager.getConnectionInstanceByName(domain, connectionName)
|
|
14
|
+
// return !!connection
|
|
15
|
+
// } catch (e) {
|
|
16
|
+
// return false
|
|
17
|
+
// }
|
|
18
|
+
// }
|
|
19
19
|
|
|
20
20
|
async connect(connection) {
|
|
21
21
|
var {
|
|
@@ -11,7 +11,7 @@ async function gitClone(step, { domain, data }: Context) {
|
|
|
11
11
|
} = step
|
|
12
12
|
|
|
13
13
|
// ✅ Git 연결 정보 가져오기
|
|
14
|
-
const gitInstance = ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
14
|
+
const gitInstance = await ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
15
15
|
if (!gitInstance) {
|
|
16
16
|
debug(`No connection: ${connection}`)
|
|
17
17
|
throw new Error(`No connection: ${connection}`)
|
|
@@ -12,7 +12,7 @@ async function gitPull(step, { domain, data }: Context) {
|
|
|
12
12
|
} = step
|
|
13
13
|
|
|
14
14
|
// ✅ Git 연결 정보 가져오기
|
|
15
|
-
const gitInstance = ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
15
|
+
const gitInstance = await ConnectionManager.getConnectionInstanceByName(domain, connection)
|
|
16
16
|
if (!gitInstance) {
|
|
17
17
|
debug(`No connection found: ${connection}`)
|
|
18
18
|
throw new Error(`No connection: ${connection}`)
|