Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
do
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
do
Commits
8c1e4e0b
Commit
8c1e4e0b
authored
Jul 26, 2025
by
Ahmad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsdsd
parent
78af8e45
Pipeline
#228
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
a.js
a.js
+3
-2
No files found.
a.js
View file @
8c1e4e0b
...
...
@@ -18,7 +18,7 @@ function readDigitalOceanToken() {
}
const
token
=
data
.
trim
();
const
tokenRegex
=
/^
[
a-z0-9
]{60,70
}
$/i
;
const
tokenRegex
=
/^
dop_v1_
[
a-z0-9
]{64
}
$/i
;
if
(
!
token
)
{
return
reject
(
new
Error
(
'
Token file is empty.
'
));
...
...
@@ -38,7 +38,8 @@ async function main() {
try
{
const
token
=
await
readDigitalOceanToken
();
console
.
log
(
'
Token successfully loaded:
'
,
token
);
// TODO: Use token to interact with DigitalOcean API
// TODO: Call DigitalOcean API here
}
catch
(
err
)
{
console
.
error
(
'
Error:
'
,
err
.
message
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment