@bigbinary/neeto-audit-frontend 1.0.5 → 1.0.6
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/index.js +5 -5
- package/package.json +1 -1
- package/src/utils/index.js +5 -5
package/dist/index.js
CHANGED
|
@@ -18471,11 +18471,11 @@ const getNanoType = async () => {
|
|
|
18471
18471
|
const git = simpleGit();
|
|
18472
18472
|
const { value: remoteOriginUrl } = await git.getConfig("remote.origin.url");
|
|
18473
18473
|
|
|
18474
|
-
const
|
|
18475
|
-
.split("
|
|
18476
|
-
.at(1)
|
|
18477
|
-
|
|
18478
|
-
|
|
18474
|
+
const projectGitName =
|
|
18475
|
+
remoteOriginUrl.split("git@github.com:bigbinary/").at(1) ||
|
|
18476
|
+
remoteOriginUrl.split("https://github.com/bigbinary/").at(1);
|
|
18477
|
+
|
|
18478
|
+
const projectName = projectGitName.split(".git").at(0);
|
|
18479
18479
|
|
|
18480
18480
|
return last$2(split$1("-", projectName));
|
|
18481
18481
|
};
|
package/package.json
CHANGED
package/src/utils/index.js
CHANGED
|
@@ -250,11 +250,11 @@ export const getNanoType = async () => {
|
|
|
250
250
|
const git = simpleGit();
|
|
251
251
|
const { value: remoteOriginUrl } = await git.getConfig("remote.origin.url");
|
|
252
252
|
|
|
253
|
-
const
|
|
254
|
-
.split("
|
|
255
|
-
.at(1)
|
|
256
|
-
|
|
257
|
-
|
|
253
|
+
const projectGitName =
|
|
254
|
+
remoteOriginUrl.split("git@github.com:bigbinary/").at(1) ||
|
|
255
|
+
remoteOriginUrl.split("https://github.com/bigbinary/").at(1);
|
|
256
|
+
|
|
257
|
+
const projectName = projectGitName.split(".git").at(0);
|
|
258
258
|
|
|
259
259
|
return last(split("-", projectName));
|
|
260
260
|
};
|