@superblocksteam/util 1.6.0 → 1.7.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.
@@ -3,11 +3,9 @@ export declare const TOKEN_CONFIG_PATH = ".superblocks/auth.json";
3
3
  export declare const RESOURCE_CONFIG_PATH = ".superblocks/superblocks.json";
4
4
  export declare const ROOT_CONFIG_RELATIVE_PATH = "../..";
5
5
  export declare const CUSTOM_COMPONENTS_PATH = "components";
6
- export declare const ERROR_FILE_ACCESS = "FileAccessError";
7
6
  export declare class FileAccessError extends Error {
8
7
  constructor(message: string);
9
8
  }
10
- export declare const ERROR_FILE_NOT_FOUND = "FileNotFoundError";
11
9
  export declare class NotFoundError extends Error {
12
10
  constructor(message: string);
13
11
  }
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotFoundError = exports.ERROR_FILE_NOT_FOUND = exports.FileAccessError = exports.ERROR_FILE_ACCESS = exports.CUSTOM_COMPONENTS_PATH = exports.ROOT_CONFIG_RELATIVE_PATH = exports.RESOURCE_CONFIG_PATH = exports.TOKEN_CONFIG_PATH = exports.SUPERBLOCKS_HOME_FOLDER_NAME = void 0;
3
+ exports.NotFoundError = exports.FileAccessError = exports.CUSTOM_COMPONENTS_PATH = exports.ROOT_CONFIG_RELATIVE_PATH = exports.RESOURCE_CONFIG_PATH = exports.TOKEN_CONFIG_PATH = exports.SUPERBLOCKS_HOME_FOLDER_NAME = void 0;
4
4
  exports.SUPERBLOCKS_HOME_FOLDER_NAME = ".superblocks";
5
5
  exports.TOKEN_CONFIG_PATH = ".superblocks/auth.json";
6
6
  exports.RESOURCE_CONFIG_PATH = ".superblocks/superblocks.json";
@@ -19,19 +19,17 @@ exports.RESOURCE_CONFIG_PATH = ".superblocks/superblocks.json";
19
19
  */
20
20
  exports.ROOT_CONFIG_RELATIVE_PATH = "../..";
21
21
  exports.CUSTOM_COMPONENTS_PATH = "components";
22
- exports.ERROR_FILE_ACCESS = "FileAccessError";
23
22
  class FileAccessError extends Error {
24
23
  constructor(message) {
25
24
  super(message);
26
- this.name = exports.ERROR_FILE_ACCESS;
25
+ this.name = "FileAccessError";
27
26
  }
28
27
  }
29
28
  exports.FileAccessError = FileAccessError;
30
- exports.ERROR_FILE_NOT_FOUND = "FileNotFoundError";
31
29
  class NotFoundError extends Error {
32
30
  constructor(message) {
33
31
  super(message);
34
- this.name = exports.ERROR_FILE_NOT_FOUND;
32
+ this.name = "FileNotFoundError";
35
33
  }
36
34
  }
37
35
  exports.NotFoundError = NotFoundError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/util",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "main": "dist/index.js",
5
5
  "homepage": "https://www.superblocks.com",
6
6
  "scripts": {
package/src/constants.ts CHANGED
@@ -19,18 +19,16 @@ export const ROOT_CONFIG_RELATIVE_PATH = "../..";
19
19
 
20
20
  export const CUSTOM_COMPONENTS_PATH = "components";
21
21
 
22
- export const ERROR_FILE_ACCESS = "FileAccessError";
23
22
  export class FileAccessError extends Error {
24
23
  constructor(message: string) {
25
24
  super(message);
26
- this.name = ERROR_FILE_ACCESS;
25
+ this.name = "FileAccessError";
27
26
  }
28
27
  }
29
28
 
30
- export const ERROR_FILE_NOT_FOUND = "FileNotFoundError";
31
29
  export class NotFoundError extends Error {
32
30
  constructor(message: string) {
33
31
  super(message);
34
- this.name = ERROR_FILE_NOT_FOUND;
32
+ this.name = "FileNotFoundError";
35
33
  }
36
34
  }