@oh-my-ghaad/gitlab 0.0.11 → 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 +9 -0
- package/dist/index.cjs +1 -2
- package/dist/index.js +1 -2
- package/package.json +2 -2
- package/src/adapter.ts +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
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
|
+
|
|
1
10
|
## [0.0.11](https://github.com/cmgriffing/oh-my-ghaad/compare/v0.0.10...v0.0.11) (2025-10-06)
|
|
2
11
|
|
|
3
12
|
|
package/dist/index.cjs
CHANGED
|
@@ -177,8 +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
|
-
if (existingFileOrError) {
|
|
180
|
+
} else if (existingFileOrError) {
|
|
182
181
|
throw new Error("File already exists");
|
|
183
182
|
}
|
|
184
183
|
const createdFileOrError = await this.api.Commits.create(
|
package/dist/index.js
CHANGED
|
@@ -152,8 +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
|
-
if (existingFileOrError) {
|
|
155
|
+
} else if (existingFileOrError) {
|
|
157
156
|
throw new Error("File already exists");
|
|
158
157
|
}
|
|
159
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