@driveflux/vercel 2.0.3-next.1 → 3.0.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import crypto from 'node:crypto';
|
|
2
|
-
var slugify = function(str) {
|
|
2
|
+
var slugify = function slugify(str) {
|
|
3
3
|
var slug = str.toLowerCase() // Convert to lowercase
|
|
4
4
|
.replace(/\//, '-') // replace one forward slash with hyphen
|
|
5
5
|
.replace(/[^a-z0-9-]/g, '') // Replace any non-alphanumeric characters with hyphens
|
|
@@ -8,7 +8,7 @@ var slugify = function(str) {
|
|
|
8
8
|
;
|
|
9
9
|
return slug;
|
|
10
10
|
};
|
|
11
|
-
export var truncate = function(prefix, branch, projectName, org) {
|
|
11
|
+
export var truncate = function truncate(prefix, branch, projectName, org) {
|
|
12
12
|
var branchSlug = slugify(branch);
|
|
13
13
|
var deploymentName = "".concat(projectName, "-").concat(prefix, "-").concat(branchSlug, "-").concat(org);
|
|
14
14
|
if (deploymentName.length < 64) {
|
|
@@ -19,12 +19,12 @@ export var truncate = function(prefix, branch, projectName, org) {
|
|
|
19
19
|
var truncatedName = deploymentName.slice(0, 61 - suffix.length);
|
|
20
20
|
return "https://".concat(truncatedName, "-").concat(suffix, ".vercel.app");
|
|
21
21
|
};
|
|
22
|
-
export var buildVercelUrl = function(projectName, branchName) {
|
|
22
|
+
export var buildVercelUrl = function buildVercelUrl(projectName, branchName) {
|
|
23
23
|
var scopeSlug = 'driveflux';
|
|
24
24
|
var prefix = 'git';
|
|
25
25
|
return truncate(prefix, branchName, projectName, scopeSlug);
|
|
26
26
|
};
|
|
27
|
-
export var isPreviewButNotStaging = function() {
|
|
27
|
+
export var isPreviewButNotStaging = function isPreviewButNotStaging() {
|
|
28
28
|
var KNOWN_BRANCHES = [
|
|
29
29
|
'develop',
|
|
30
30
|
'master'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/vercel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@driveflux/fab": "
|
|
20
|
-
"@driveflux/tsconfig": "
|
|
21
|
-
"@swc/cli": "^0.
|
|
22
|
-
"@swc/core": "^1.
|
|
23
|
-
"@types/lodash": "^4.17.
|
|
24
|
-
"@types/node": "^
|
|
19
|
+
"@driveflux/fab": "4.0.1",
|
|
20
|
+
"@driveflux/tsconfig": "3.0.1",
|
|
21
|
+
"@swc/cli": "^0.8.1",
|
|
22
|
+
"@swc/core": "^1.15.33",
|
|
23
|
+
"@types/lodash": "^4.17.24",
|
|
24
|
+
"@types/node": "^25.7.0",
|
|
25
25
|
"del-cli": "^7.0.0",
|
|
26
|
-
"typescript": "^
|
|
26
|
+
"typescript": "^6.0.3"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "fab",
|