Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge with recent update #76

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f8a73f7
addition of mongo plugin
williamnwogbo Nov 23, 2019
a2c1421
Change Component Name
williamnwogbo Nov 23, 2019
d19ffcf
Addition of Axios to the package
williamnwogbo Nov 26, 2019
30bdc79
=Addition of Date format
williamnwogbo Oct 5, 2020
0d04beb
=Addition of Date format
williamnwogbo Oct 5, 2020
8c5bfad
=Addition of UUID
williamnwogbo Oct 22, 2020
807bb0e
=Jsonata Addition
williamnwogbo Nov 6, 2020
d0fd9b6
=Addition of timezone moment
williamnwogbo Mar 30, 2021
0054d95
=Addition of xml
williamnwogbo Apr 1, 2021
eb0fa32
=Updating the code component and the package version
williamnwogbo Jun 29, 2021
6e3a7d0
=Updating the code component and the package version
williamnwogbo Jun 29, 2021
d0ed085
=...
williamnwogbo Jun 29, 2021
67e0263
=...
williamnwogbo Jun 29, 2021
7a8f038
=...
williamnwogbo Jun 29, 2021
be814fe
=Package update
williamnwogbo Jun 29, 2021
b9a7f38
=changing the loop structure
williamnwogbo Jun 30, 2021
daccac0
=changing the loop structure
williamnwogbo Jun 30, 2021
c62b595
=changing the loop structure
williamnwogbo Jun 30, 2021
9c66a23
=changing the loop structure
williamnwogbo Jun 30, 2021
8aacb45
=changing the loop structure
williamnwogbo Jun 30, 2021
6736cb9
=Package update
williamnwogbo Jun 30, 2021
29b834a
=updating Sailor version
williamnwogbo Jun 30, 2021
cfafe08
=updating Sailor version
williamnwogbo Jun 30, 2021
a21900c
=removing the try and catch
williamnwogbo Jul 7, 2021
05b9d92
=Updating the component
williamnwogbo Oct 29, 2021
a2d4899
Addition of the Json beautify
williamnwogbo Oct 29, 2021
7aa2a51
=addition of the base64 module
williamnwogbo Jun 21, 2022
b0b5c00
=Addition of the co packages
williamnwogbo Jun 21, 2022
835379c
Update Code Component
williamnwogbo Jun 21, 2022
8e2a8d8
Update Code Component
williamnwogbo Jun 21, 2022
44c5f96
Update Code Component
williamnwogbo Jun 21, 2022
3c82926
...
williamnwogbo Apr 3, 2023
23e8770
Update The component package numbers
williamnwogbo Aug 23, 2024
3bde827
Update The component package numbers
williamnwogbo Aug 23, 2024
12ece70
Update The component package numbers
williamnwogbo Aug 23, 2024
757ad23
Update The component package numbers
williamnwogbo Aug 23, 2024
fe6a092
Update The component package numbers
williamnwogbo Aug 23, 2024
96b93b8
Merge branch 'master' into master
williamnwogbo Aug 26, 2024
6cb731f
Fixing the the package.json file
williamnwogbo Aug 26, 2024
f61991a
Update component version
williamnwogbo Aug 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

## 1.2.11 (April 21, 2023)

* Add json-bigint library
Expand Down
4 changes: 2 additions & 2 deletions component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Node.js Code",
"version": "1.2.11",
"title": "Node.js Code(ThatAPP)",
"version": "1.3.4",
"description": "You can write your own code and deploy it as part of integration process.",
"docsUrl": "http://go2.elastic.io/code-component",
"fields": {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,26 @@
"author": "elastic.io GmbH",
"license": "BSD-2-Clause",
"dependencies": {
"@sentry/node": "^7.54.0",
"@sentry/tracing": "^7.54.0",
"axios": "^1.4.0",
"co": "4.6.0",
"co-request": "1.0.0",
"dateformat": "^3.0.3",
"elasticio-node": "0.0.9",
"json-beautify": "^1.1.1",
"jsonata": "^1.8.4",
"moment-timezone": "^0.5.33",
"mongodb": "^4.13.0",
"nodejs-base64": "^2.0.0",
"oauth-1.0a": "^2.2.6",
"tedious": "^14.6.0",
"uuid": "^8.3.2",
"xml-writer": "^1.7.0",
"xml2js": "^0.4.23",
"elasticio-sailor-nodejs": "2.7.1",
"json-bigint": "1.0.0"

},
"devDependencies": {
"@elastic.io/component-logger": "0.0.1",
Expand Down
167 changes: 167 additions & 0 deletions test/fixture.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"fixtures":{
"code":{
"msg":{
"oauth": {
"access_token": "d0a02fa8421442c1a584359d5c416dda",
"token_type": "bearer",
"refresh_token": "d53b599ec18f4098bce11def7289d92b"
},
"headers":{},
"body":{
"appId" : 22758086
}
},
"cfg": {
"appId" : 22758086,
"oauth": {
"access_token": "d0a02fa8421442c1a584359d5c416dda",
"token_type": "bearer",
"refresh_token": "d53b599ec18f4098bce11def7289d92b"
}
}
},
"hooks":{
"msg":{
"oauth": {
"access_token": "b4129822bf5a45dd814de90735553eb7",
"token_type": "bearer",
"refresh_token": "60fb6420b41d4ac4a1f97ee327e31523"
},
"headers":{},
"body":{
"ItemId" : 980503737
}
},
"cfg": {
"ItemId" : 980503737,
"url": "http://google.com",
"hook_type": ["item.update","item.create"],
"hookType": "app",
"ref_id": 21738954,
"oauth": {
"access_token": "b4129822bf5a45dd814de90735553eb7",
"token_type": "bearer",
"refresh_token": "60fb6420b41d4ac4a1f97ee327e31523"
}
}
},
"apps":{
"msg":{
"headers":{},
"body":{
"AppId" : 21727299
}
},
"cfg": {
"AppId" : 21727299
}
},
"spaces":{
"msg":{
"headers":{},
"body":{
"SpaceId" : 6269904
}
},
"cfg": {
"SpaceId" : 6269904
}
},
"files":{
"msg":{
"headers":{},
"body":{
"FileId" : 988492515
}
},
"cfg": {
"FileId" : 988492515
}
},
"comments":{
"msg":{
"headers":{},
"body":{
"CommentId" : 988492515
}
},
"cfg": {
"CommentId" : 988492515
}
},
"tasks":{
"msg":{
"headers":{},
"body":{
"taskId" : 988492515
}
},
"cfg": {
"taskId" : 988492515
}
},
"updateItem":{
"msg":{
"oauth": {
"access_token": "b4129822bf5a45dd814de90735553eb7",
"token_type": "bearer",
"refresh_token": "60fb6420b41d4ac4a1f97ee327e31523"
},
"headers":{},
"body": {
"appId" : 21732468,
"password":"eiusmod",
"username":"ex do",
"platform":"ipsum do",
"item_id":"1298870607",
"query" : "update"
}
},
"cfg": {
"oauth": {
"access_token": "b4129822bf5a45dd814de90735553eb7",
"token_type": "bearer",
"refresh_token": "60fb6420b41d4ac4a1f97ee327e31523"
},
"appId" : 21732468,
"password":"eiusmod",
"username":"ex do",
"platform":"ipsum do",
"item_id":"1298870607",
"query" : "update"
}
},
"getItemsbyApp":{
"msg":{
"oauth": {
"access_token": "1cd547105db34387a0a2d93a8ca033e7",
"token_type": "bearer",
"refresh_token": "60fb6420b41d4ac4a1f97ee327e31523"
},
"headers":{},
"body": {
"appId" : 21738954,
"password":"eiusmod",
"username":"ex do",
"platform":"ipsum do",
"item_id":"1298870607",
"query" : "update"
}
},
"cfg": {
"oauth": {
"access_token": "1cd547105db34387a0a2d93a8ca033e7",
"token_type": "bearer",
"refresh_token": "60fb6420b41d4ac4a1f97ee327e31523"
},
"appId" : 21738954,
"password":"eiusmod",
"username":"ex do",
"platform":"ipsum do",
"item_id":"1298870607",
"query" : "update"
}
}
}
}