@oh-my-ghaad/gitlab 0.0.10 → 0.0.12
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/CHANGELOG.md +18 -0
- package/dist/index.cjs +1 -3
- package/dist/index.js +1 -3
- package/package.json +2 -2
- package/src/adapter.ts +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [0.0.12](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.11...v0.0.12) (2025-10-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* make existing file check be an exclusive if else if ([ce355be](https://github.com/cmgriffing/oh-my-ghaad/commit/ce355bed7a8f21bbc7f4cc149ec43e547288d1dc))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [0.0.11](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.10...v0.0.11) (2025-10-06)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* remove thrown error when creating a file and it not existing yet ([3ed41b7](https://github.com/cmgriffing/oh-my-ghaad/commit/3ed41b79cbdb0115fe1640549fd76ff5a452728e))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [0.0.10](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.9...v0.0.10) (2025-10-06)
|
|
2
20
|
|
|
3
21
|
|
package/dist/index.cjs
CHANGED
|
@@ -177,9 +177,7 @@ var GitlabAdapter = class extends import_core.Adapter {
|
|
|
177
177
|
if (existingFileOrError.cause.response.status === 401 && this.unauthorizedHandler) {
|
|
178
178
|
this.unauthorizedHandler();
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
if (existingFileOrError) {
|
|
180
|
+
} else if (existingFileOrError) {
|
|
183
181
|
throw new Error("File already exists");
|
|
184
182
|
}
|
|
185
183
|
const createdFileOrError = await this.api.Commits.create(
|
package/dist/index.js
CHANGED
|
@@ -152,9 +152,7 @@ var GitlabAdapter = class extends Adapter {
|
|
|
152
152
|
if (existingFileOrError.cause.response.status === 401 && this.unauthorizedHandler) {
|
|
153
153
|
this.unauthorizedHandler();
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
if (existingFileOrError) {
|
|
155
|
+
} else if (existingFileOrError) {
|
|
158
156
|
throw new Error("File already exists");
|
|
159
157
|
}
|
|
160
158
|
const createdFileOrError = await this.api.Commits.create(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-ghaad/gitlab",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@gitbeaker/rest": "^43.5.0",
|
|
13
|
-
"@oh-my-ghaad/core": "0.0.
|
|
13
|
+
"@oh-my-ghaad/core": "0.0.12"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"tsup": "^8.5.0",
|
package/src/adapter.ts
CHANGED
|
@@ -168,10 +168,7 @@ export class GitlabAdapter extends Adapter implements IAdapter {
|
|
|
168
168
|
) {
|
|
169
169
|
this.unauthorizedHandler();
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if (existingFileOrError) {
|
|
171
|
+
} else if (existingFileOrError) {
|
|
175
172
|
throw new Error("File already exists");
|
|
176
173
|
}
|
|
177
174
|
|