@digipair/skill-web-editor 0.28.6 → 0.28.7

Sign up to get free protection for your applications and to get access to all the features.
package/index.cjs2.js CHANGED
@@ -2934,9 +2934,8 @@ class EditorElement extends s {
2934
2934
  ...await Promise.all(Object.keys(libraries).filter((library)=>!privateSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>{
2935
2935
  let res;
2936
2936
  if (this.language !== 'en') {
2937
- try {
2938
- res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.${this.language}.json`);
2939
- } catch (e) {
2937
+ res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.${this.language}.json`);
2938
+ if (!res.ok) {
2940
2939
  res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`);
2941
2940
  }
2942
2941
  } else {
package/index.esm2.js CHANGED
@@ -2932,9 +2932,8 @@ class EditorElement extends s {
2932
2932
  ...await Promise.all(Object.keys(libraries).filter((library)=>!privateSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>{
2933
2933
  let res;
2934
2934
  if (this.language !== 'en') {
2935
- try {
2936
- res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.${this.language}.json`);
2937
- } catch (e) {
2935
+ res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.${this.language}.json`);
2936
+ if (!res.ok) {
2938
2937
  res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`);
2939
2938
  }
2940
2939
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.28.6",
3
+ "version": "0.28.7",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.fr.json CHANGED
@@ -67,6 +67,15 @@
67
67
  "schema": {
68
68
  "type": "string"
69
69
  }
70
+ },
71
+ {
72
+ "name": "language",
73
+ "summary": "Langue",
74
+ "required": false,
75
+ "description": "Langue de l'éditeur",
76
+ "schema": {
77
+ "type": "string"
78
+ }
70
79
  }
71
80
  ],
72
81
  "x-events": []
package/schema.json CHANGED
@@ -67,6 +67,15 @@
67
67
  "schema": {
68
68
  "type": "string"
69
69
  }
70
+ },
71
+ {
72
+ "name": "language",
73
+ "summary": "Language",
74
+ "required": false,
75
+ "description": "Editor language",
76
+ "schema": {
77
+ "type": "string"
78
+ }
70
79
  }
71
80
  ],
72
81
  "x-events": []