mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 12:35:46 +03:00
⚡ Fix indentation on Stripe-Trigger Node
This commit is contained in:
parent
3267006921
commit
f982854245
@ -11,17 +11,17 @@ To get the entire list of events as a JS array, scrape the website:
|
|||||||
```js
|
```js
|
||||||
types = []
|
types = []
|
||||||
$$('ul#event-types li').forEach(el => {
|
$$('ul#event-types li').forEach(el => {
|
||||||
const value = el.querySelector('.method-list-item-label-name').innerText
|
const value = el.querySelector('.method-list-item-label-name').innerText
|
||||||
|
|
||||||
types.push({
|
types.push({
|
||||||
name: value
|
name: value
|
||||||
.replace(/(\.|_)/, ' ')
|
.replace(/(\.|_)/, ' ')
|
||||||
.split(' ')
|
.split(' ')
|
||||||
.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
|
.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
|
||||||
.join(' '),
|
.join(' '),
|
||||||
value,
|
value,
|
||||||
description: el.querySelector('.method-list-item-description').innerText
|
description: el.querySelector('.method-list-item-description').innerText
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
copy(types)
|
copy(types)
|
||||||
```
|
```
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -21,7 +21,7 @@ export async function stripeApiRequest(this: IHookFunctions | IExecuteFunctions,
|
|||||||
const options = {
|
const options = {
|
||||||
method,
|
method,
|
||||||
auth: {
|
auth: {
|
||||||
user: credentials.secretKey as string,
|
user: credentials.secretKey as string,
|
||||||
},
|
},
|
||||||
form: body,
|
form: body,
|
||||||
qs: query,
|
qs: query,
|
||||||
|
Loading…
Reference in New Issue
Block a user