@ix-xs/metamob.api 1.0.6 → 1.0.7

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.
@@ -207,7 +207,7 @@ module.exports = class {
207
207
 
208
208
  const result = await _.json();
209
209
 
210
- if (params.etat && params.etat === "aucun") {
210
+ if (params?.etat && params?.etat === "aucun") {
211
211
  return { ok:true, result:result.filter(d => d.propose === "0" && d.recherche === "0").map(d => ({
212
212
  id:d.id,
213
213
  nom:d.nom,
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
- {
2
- "name": "@ix-xs/metamob.api",
3
- "version": "1.0.6",
4
- "description": "Metamob API JS",
5
- "main": "metamobapi.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "github.com/ix-xs/metamob.api"
12
- },
13
- "keywords": [
14
- "Metamob",
15
- "Dofus",
16
- "API",
17
- "JS"
18
- ],
19
- "author": "ix-xs",
20
- "license": "ISC"
21
- }
1
+ {
2
+ "name": "@ix-xs/metamob.api",
3
+ "version": "1.0.7",
4
+ "description": "Metamob API JS",
5
+ "main": "metamobapi.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "github.com/ix-xs/metamob.api"
12
+ },
13
+ "keywords": [
14
+ "Metamob",
15
+ "Dofus",
16
+ "API",
17
+ "JS"
18
+ ],
19
+ "author": "ix-xs",
20
+ "license": "ISC"
21
+ }