Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
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
bs
node-bigstream
Commits
8e181241
Commit
8e181241
authored
Dec 01, 2024
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ondev-gcs' into 'dev'
1.2.6 b20241201 See merge request
!50
parents
055609ba
d706b73a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
Changelog
Changelog
+2
-1
perform.js
plugins/do/do-http/perform.js
+7
-0
perform.js
plugins/dt/dt-http/perform.js
+7
-0
version.json
version.json
+1
-1
No files found.
Changelog
View file @
8e181241
# Changelog
## [1.2.6dev] - 202
3-07-13
## [1.2.6dev] - 202
4-12-01
### Added
- TRIGGER :: http trigger callback
- PLUGIN :: do-http-callback
...
...
@@ -7,6 +7,7 @@
### Update
- PLUGIN :: dt-http add method delete patch
- PLUGIN :: do-http add method delete patch
- PLUGIN :: do-http,dt-http add body_type=form-data
### Removed
- PLUGIN :: di-gistda-air
- PLUGIN :: di-tanpibut
...
...
plugins/do/do-http/perform.js
View file @
8e181241
...
...
@@ -54,6 +54,13 @@ function send_request(prm,cb)
if
(
prm
.
body_type
==
'json'
&&
typeof
prm
.
body
==
'object'
){
options
.
headers
[
'content-type'
]
=
'application/json'
;
options
.
json
=
prm
.
body
;
}
else
if
(
prm
.
body_type
==
'form-data'
&&
typeof
prm
.
body
==
'object'
){
options
.
formData
=
{}
Object
.
keys
(
prm
.
body
).
forEach
((
el
)
=>
{
if
(
typeof
prm
.
body
[
el
]
==
'string'
){
options
.
formData
[
el
]
=
prm
.
body
[
el
]
}
})
}
else
if
(
prm
.
body_type
==
'text'
||
typeof
prm
.
body
==
'string'
){
options
.
headers
[
'content-type'
]
=
'text/plain'
;
options
.
body
=
prm
.
body
;
...
...
plugins/dt/dt-http/perform.js
View file @
8e181241
...
...
@@ -91,6 +91,13 @@ function send_request(prm,cb)
if
(
prm
.
body_type
==
'json'
&&
typeof
prm
.
body
==
'object'
){
options
.
headers
[
'content-type'
]
=
'application/json'
;
options
.
json
=
prm
.
body
;
}
else
if
(
prm
.
body_type
==
'form-data'
&&
typeof
prm
.
body
==
'object'
){
options
.
formData
=
{}
Object
.
keys
(
prm
.
body
).
forEach
((
el
)
=>
{
if
(
typeof
prm
.
body
[
el
]
==
'string'
){
options
.
formData
[
el
]
=
prm
.
body
[
el
]
}
})
}
else
if
(
prm
.
body_type
==
'text'
||
typeof
prm
.
body
==
'string'
){
options
.
headers
[
'content-type'
]
=
'text/plain'
;
options
.
body
=
prm
.
body
;
...
...
version.json
View file @
8e181241
{
"version"
:
"1.2.6dev"
,
"build"
:
"202
30713
1200"
"build"
:
"202
41201
1200"
}
\ No newline at end of file
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