@digipair/skill-editor 0.64.6 → 0.64.8

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 CHANGED
@@ -15167,12 +15167,10 @@ let EditorService = class EditorService {
15167
15167
  async schemas(params, _pinsSettingsList, _context) {
15168
15168
  const { libraries, language } = params;
15169
15169
  const list = Promise.all(Object.keys(libraries).map(async (library)=>{
15170
- let modulePath = require.resolve(`${library}`);
15171
- modulePath = modulePath.substring(0, modulePath.lastIndexOf('/'));
15172
- let schemasPath = modulePath + '/schema.json';
15170
+ let schemasPath = require.resolve(`${library}/schema.json`);
15173
15171
  if (language !== 'en') {
15174
15172
  try {
15175
- schemasPath = modulePath + `/schema.${language}.json`;
15173
+ schemasPath = require.resolve(`${library}/schema.${language}.json`);
15176
15174
  } catch (e) {}
15177
15175
  }
15178
15176
  return JSON.parse(await promises.readFile(schemasPath, 'utf8'));
package/index.esm.js CHANGED
@@ -15163,12 +15163,10 @@ let EditorService = class EditorService {
15163
15163
  async schemas(params, _pinsSettingsList, _context) {
15164
15164
  const { libraries, language } = params;
15165
15165
  const list = Promise.all(Object.keys(libraries).map(async (library)=>{
15166
- let modulePath = require.resolve(`${library}`);
15167
- modulePath = modulePath.substring(0, modulePath.lastIndexOf('/'));
15168
- let schemasPath = modulePath + '/schema.json';
15166
+ let schemasPath = require.resolve(`${library}/schema.json`);
15169
15167
  if (language !== 'en') {
15170
15168
  try {
15171
- schemasPath = modulePath + `/schema.${language}.json`;
15169
+ schemasPath = require.resolve(`${library}/schema.${language}.json`);
15172
15170
  } catch (e) {}
15173
15171
  }
15174
15172
  return JSON.parse(await readFile(schemasPath, 'utf8'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-editor",
3
- "version": "0.64.6",
3
+ "version": "0.64.8",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
File without changes