mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08: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
|
||||
types = []
|
||||
$$('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({
|
||||
name: value
|
||||
.replace(/(\.|_)/, ' ')
|
||||
.split(' ')
|
||||
.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
|
||||
.join(' '),
|
||||
value,
|
||||
description: el.querySelector('.method-list-item-description').innerText
|
||||
})
|
||||
types.push({
|
||||
name: value
|
||||
.replace(/(\.|_)/, ' ')
|
||||
.split(' ')
|
||||
.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
|
||||
.join(' '),
|
||||
value,
|
||||
description: el.querySelector('.method-list-item-description').innerText
|
||||
})
|
||||
})
|
||||
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 = {
|
||||
method,
|
||||
auth: {
|
||||
user: credentials.secretKey as string,
|
||||
user: credentials.secretKey as string,
|
||||
},
|
||||
form: body,
|
||||
qs: query,
|
||||
|
|
Loading…
Reference in a new issue