@hestia-earth/api 0.11.3-0 → 0.11.3

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.
@@ -135,7 +135,9 @@ exports.fileToExt = function (path, extension) {
135
135
  exports.validPathChars = 'A-Za-z\\d.\\-_';
136
136
  exports.replaceInvalidChars = function (value) {
137
137
  return value
138
+ .replace(/\s/g, '_')
138
139
  .replace(new RegExp("[^" + exports.validPathChars + "]", 'g'), '')
140
+ .replace(new RegExp("(\\.)[^(" + Object.values(SupportedExtensions).map(function (v) { return "." + v; }).join('|') + ")]", 'g'), function (v) { return v.replace('.', '_'); })
139
141
  .replace(/\^/g, '');
140
142
  };
141
143
  exports.folderFromPath = function (path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.11.3-0",
3
+ "version": "0.11.3",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",