@digipair/skill-factory 0.43.4 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +6 -2
- package/index.esm.js +11 -7
- package/package.json +1 -1
- package/schema.fr.json +19 -9
- package/schema.json +19 -9
package/index.cjs.js
CHANGED
|
@@ -21,8 +21,12 @@ let FactoryService = class FactoryService {
|
|
|
21
21
|
throw 'DIGIPAIR_KEEPALIVE';
|
|
22
22
|
}
|
|
23
23
|
async send(params, _pinsSettingsList, context) {
|
|
24
|
-
const {
|
|
25
|
-
return context.protected.res.send(
|
|
24
|
+
const { body } = params;
|
|
25
|
+
return context.protected.res.send(body);
|
|
26
|
+
}
|
|
27
|
+
async status(params, _pinsSettingsList, context) {
|
|
28
|
+
const { code = 200 } = params;
|
|
29
|
+
return context.protected.res.status(code);
|
|
26
30
|
}
|
|
27
31
|
};
|
|
28
32
|
let instance;
|
package/index.esm.js
CHANGED
|
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
|
|
|
23899
23899
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23900
23900
|
// match is required
|
|
23901
23901
|
if (!match) {
|
|
23902
|
-
return nextMatch = nextMatch1,
|
|
23902
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23903
23903
|
v: nextMatch1
|
|
23904
23904
|
};
|
|
23905
23905
|
}
|
|
23906
23906
|
var token = match.token, offset = match.offset;
|
|
23907
23907
|
i1 += offset;
|
|
23908
23908
|
if (token === " ") {
|
|
23909
|
-
return nextMatch = nextMatch1,
|
|
23909
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23910
23910
|
}
|
|
23911
23911
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23912
23912
|
token
|
|
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
|
|
|
23925
23925
|
if (contextKeys.some(function(el) {
|
|
23926
23926
|
return el.startsWith(name);
|
|
23927
23927
|
})) {
|
|
23928
|
-
return nextMatch = nextMatch1,
|
|
23928
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23929
23929
|
}
|
|
23930
23930
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23931
23931
|
return el === name;
|
|
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
|
|
|
23944
23944
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23945
23945
|
return el.startsWith(name);
|
|
23946
23946
|
})) {
|
|
23947
|
-
return nextMatch = nextMatch1,
|
|
23947
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23948
23948
|
}
|
|
23949
|
-
return nextMatch = nextMatch1,
|
|
23949
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23950
23950
|
v: nextMatch1
|
|
23951
23951
|
};
|
|
23952
23952
|
};
|
|
@@ -27970,8 +27970,12 @@ let FactoryService = class FactoryService {
|
|
|
27970
27970
|
throw 'DIGIPAIR_KEEPALIVE';
|
|
27971
27971
|
}
|
|
27972
27972
|
async send(params, _pinsSettingsList, context) {
|
|
27973
|
-
const {
|
|
27974
|
-
return context.protected.res.send(
|
|
27973
|
+
const { body } = params;
|
|
27974
|
+
return context.protected.res.send(body);
|
|
27975
|
+
}
|
|
27976
|
+
async status(params, _pinsSettingsList, context) {
|
|
27977
|
+
const { code = 200 } = params;
|
|
27978
|
+
return context.protected.res.status(code);
|
|
27975
27979
|
}
|
|
27976
27980
|
};
|
|
27977
27981
|
let instance;
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -91,15 +91,6 @@
|
|
|
91
91
|
"summary": "Envoi de données HTTP",
|
|
92
92
|
"description": "Envoi de données à la connection HTTP",
|
|
93
93
|
"parameters": [
|
|
94
|
-
{
|
|
95
|
-
"name": "code",
|
|
96
|
-
"required": false,
|
|
97
|
-
"summary": "Code de retour",
|
|
98
|
-
"description": "Code de retour",
|
|
99
|
-
"schema": {
|
|
100
|
-
"type": "number"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
94
|
{
|
|
104
95
|
"name": "body",
|
|
105
96
|
"required": false,
|
|
@@ -112,6 +103,25 @@
|
|
|
112
103
|
],
|
|
113
104
|
"x-events": []
|
|
114
105
|
}
|
|
106
|
+
},
|
|
107
|
+
"/status": {
|
|
108
|
+
"post": {
|
|
109
|
+
"tags": ["service"],
|
|
110
|
+
"summary": "Code de retour HTTP",
|
|
111
|
+
"description": "Envoi d'un code de retour à la connection HTTP",
|
|
112
|
+
"parameters": [
|
|
113
|
+
{
|
|
114
|
+
"name": "code",
|
|
115
|
+
"required": true,
|
|
116
|
+
"summary": "Code de retour",
|
|
117
|
+
"description": "Code de retour",
|
|
118
|
+
"schema": {
|
|
119
|
+
"type": "number"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"x-events": []
|
|
124
|
+
}
|
|
115
125
|
}
|
|
116
126
|
},
|
|
117
127
|
"components": {
|
package/schema.json
CHANGED
|
@@ -91,15 +91,6 @@
|
|
|
91
91
|
"summary": "Send HTTP",
|
|
92
92
|
"description": "Send an HTTP request",
|
|
93
93
|
"parameters": [
|
|
94
|
-
{
|
|
95
|
-
"name": "code",
|
|
96
|
-
"required": false,
|
|
97
|
-
"summary": "Return code",
|
|
98
|
-
"description": "HTTP return code",
|
|
99
|
-
"schema": {
|
|
100
|
-
"type": "number"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
94
|
{
|
|
104
95
|
"name": "body",
|
|
105
96
|
"required": false,
|
|
@@ -112,6 +103,25 @@
|
|
|
112
103
|
],
|
|
113
104
|
"x-events": []
|
|
114
105
|
}
|
|
106
|
+
},
|
|
107
|
+
"/status": {
|
|
108
|
+
"post": {
|
|
109
|
+
"tags": ["service"],
|
|
110
|
+
"summary": "Send HTTP status",
|
|
111
|
+
"description": "Send an HTTP status",
|
|
112
|
+
"parameters": [
|
|
113
|
+
{
|
|
114
|
+
"name": "code",
|
|
115
|
+
"required": true,
|
|
116
|
+
"summary": "Return code",
|
|
117
|
+
"description": "HTTP return code",
|
|
118
|
+
"schema": {
|
|
119
|
+
"type": "number"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"x-events": []
|
|
124
|
+
}
|
|
115
125
|
}
|
|
116
126
|
},
|
|
117
127
|
"components": {
|