Skip to content

Commit 28e5e7d

Browse files
build: 3.0.0
* build: 3.0.0
1 parent 42bb986 commit 28e5e7d

File tree

8 files changed

+334
-161
lines changed

8 files changed

+334
-161
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"global": true
1010
},
1111
"parserOptions": {
12-
"ecmaVersion": 2018,
12+
"ecmaVersion": 2020,
1313
"sourceType": "module",
1414
"ecmaFeatures": {
1515
"jsx": true

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Runnerty Tech S.L.
3+
Copyright (c) 2021 Runnerty Tech S.L.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,33 @@
55
<p align="center">Smart Processes Management</p>
66
</p>
77

8-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Dependency Status][david-badge]][david-badge-url]
8+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Dependency Status][david-badge]][david-badge-url]
99
<a href="#badge">
1010
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg">
1111
</a>
1212

1313
# Executor for [Runnerty]: HTTP
14-
14+
1515
### Installation:
16+
Through NPM
17+
1618
```bash
1719
npm i @runnerty/executor-http
1820
```
1921

22+
You can also add modules to your project with [runnerty-cli]
23+
24+
```bash
25+
npx runnerty-cli add @runnerty/executor-http
26+
```
27+
28+
This command installs the module in your project, adds example configuration in your `config.json` and creates an example plan of use.
29+
30+
If you have installed [runnerty-cli] globally you can include the module with this command:
31+
32+
```bash
33+
rty add @runnerty/executor-http
34+
```
2035

2136
### Configuration sample:
2237
Add in [config.json]:
@@ -83,7 +98,7 @@ Add in [plan.json]:
8398
```
8499

85100
### Pagination:
86-
It is possible to make calls to APIs that return 'JSON' data that requires paging.
101+
It is possible to make calls to APIs that return `JSON` data that requires paging.
87102
The parameters available for paging are:
88103
```
89104
start - page from which the query is initiated, by default 1
@@ -192,4 +207,5 @@ If the result is very large, you should consider using the "noReturnDataOutput"
192207
[david-badge-url]: https://david-dm.org/runnerty/executor-http
193208
[GETVALUE]: http://docs.runnerty.io/functions/
194209
[config.json]: http://docs.runnerty.io/config/
195-
[plan.json]: http://docs.runnerty.io/plan/
210+
[plan.json]: http://docs.runnerty.io/plan/
211+
[runnerty-cli]: https://www.npmjs.com/package/runnerty-cli

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const formData = require('form-data');
66
const qs = require('qs');
77
const fs = require('fs');
88

9-
const Execution = global.ExecutionClass;
9+
const Executor = require('@runnerty/module-core').Executor;
1010

11-
class httpExecutor extends Execution {
11+
class httpExecutor extends Executor {
1212
constructor(process) {
1313
super(process);
1414
this.pagination;

0 commit comments

Comments
 (0)