@c-rex/constants 0.0.4 → 0.0.6

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/package.json CHANGED
@@ -1,27 +1,24 @@
1
1
  {
2
2
  "name": "@c-rex/constants",
3
- "version": "0.0.4",
4
- "main": "dist/index.js",
5
- "module": "dist/index.mjs",
6
- "types": "dist/index.d.ts",
3
+ "version": "0.0.6",
7
4
  "files": [
8
- "dist"
5
+ "src"
9
6
  ],
10
7
  "publishConfig": {
11
8
  "access": "public"
12
9
  },
13
10
  "exports": {
14
11
  ".": {
15
- "types": "./dist/index.d.ts",
16
- "import": "./dist/index.mjs",
17
- "require": "./dist/index.js",
18
- "default": "./dist/index.js"
12
+ "types": "./src/index.ts",
13
+ "import": "./src/index.ts",
14
+ "require": "./src/index.ts",
15
+ "default": "./src/index.ts"
19
16
  },
20
17
  "./package.json": "./package.json"
21
18
  },
22
19
  "scripts": {
23
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
24
- "build": "tsup src/index.ts --format cjs,esm --dts"
20
+ "dev": "echo 'Nothing to build using raw TypeScript files'",
21
+ "build": "echo 'No build needed'"
25
22
  },
26
23
  "devDependencies": {
27
24
  "@c-rex/eslint-config": "*",
package/src/index.ts ADDED
@@ -0,0 +1,30 @@
1
+ export const ALL = "*"
2
+
3
+ export const LOG_CATEGORIES = [
4
+ "NoLicense",
5
+ "Scenario",
6
+ "Favorites",
7
+ "Subscription",
8
+ "Share",
9
+ "Document",
10
+ "Search",
11
+ "History",
12
+ "Notification",
13
+ "UserProfile",
14
+ ] as const;
15
+
16
+ export const LOG_LEVELS = {
17
+ critical: 2,
18
+ error: 3,
19
+ warning: 4,
20
+ info: 6,
21
+ debug: 7,
22
+ } as const;
23
+
24
+ export const API = {
25
+ MAX_RETRY: 3,
26
+ API_TIMEOUT: 10000,
27
+ API_HEADERS: {
28
+ "content-Type": "application/json",
29
+ },
30
+ };
package/dist/index.d.mts DELETED
@@ -1,18 +0,0 @@
1
- declare const ALL = "*";
2
- declare const LOG_CATEGORIES: readonly ["NoLicense", "Scenario", "Favorites", "Subscription", "Share", "Document", "Search", "History", "Notification", "UserProfile"];
3
- declare const LOG_LEVELS: {
4
- readonly critical: 2;
5
- readonly error: 3;
6
- readonly warning: 4;
7
- readonly info: 6;
8
- readonly debug: 7;
9
- };
10
- declare const API: {
11
- MAX_RETRY: number;
12
- API_TIMEOUT: number;
13
- API_HEADERS: {
14
- "content-Type": string;
15
- };
16
- };
17
-
18
- export { ALL, API, LOG_CATEGORIES, LOG_LEVELS };
package/dist/index.d.ts DELETED
@@ -1,18 +0,0 @@
1
- declare const ALL = "*";
2
- declare const LOG_CATEGORIES: readonly ["NoLicense", "Scenario", "Favorites", "Subscription", "Share", "Document", "Search", "History", "Notification", "UserProfile"];
3
- declare const LOG_LEVELS: {
4
- readonly critical: 2;
5
- readonly error: 3;
6
- readonly warning: 4;
7
- readonly info: 6;
8
- readonly debug: 7;
9
- };
10
- declare const API: {
11
- MAX_RETRY: number;
12
- API_TIMEOUT: number;
13
- API_HEADERS: {
14
- "content-Type": string;
15
- };
16
- };
17
-
18
- export { ALL, API, LOG_CATEGORIES, LOG_LEVELS };
package/dist/index.js DELETED
@@ -1,63 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- ALL: () => ALL,
24
- API: () => API,
25
- LOG_CATEGORIES: () => LOG_CATEGORIES,
26
- LOG_LEVELS: () => LOG_LEVELS
27
- });
28
- module.exports = __toCommonJS(index_exports);
29
- var ALL = "*";
30
- var LOG_CATEGORIES = [
31
- "NoLicense",
32
- "Scenario",
33
- "Favorites",
34
- "Subscription",
35
- "Share",
36
- "Document",
37
- "Search",
38
- "History",
39
- "Notification",
40
- "UserProfile"
41
- ];
42
- var LOG_LEVELS = {
43
- critical: 2,
44
- error: 3,
45
- warning: 4,
46
- info: 6,
47
- debug: 7
48
- };
49
- var API = {
50
- MAX_RETRY: 3,
51
- API_TIMEOUT: 1e4,
52
- API_HEADERS: {
53
- "content-Type": "application/json"
54
- }
55
- };
56
- // Annotate the CommonJS export names for ESM import in node:
57
- 0 && (module.exports = {
58
- ALL,
59
- API,
60
- LOG_CATEGORIES,
61
- LOG_LEVELS
62
- });
63
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export const ALL = \"*\"\n\nexport const LOG_CATEGORIES = [\n \"NoLicense\",\n \"Scenario\",\n \"Favorites\",\n \"Subscription\",\n \"Share\",\n \"Document\",\n \"Search\",\n \"History\",\n \"Notification\",\n \"UserProfile\",\n] as const;\n\nexport const LOG_LEVELS = {\n critical: 2,\n error: 3,\n warning: 4,\n info: 6,\n debug: 7,\n} as const;\n\nexport const API = {\n MAX_RETRY: 3,\n API_TIMEOUT: 10000,\n API_HEADERS: {\n \"content-Type\": \"application/json\",\n },\n};"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,MAAM;AAEZ,IAAM,iBAAiB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AAEO,IAAM,aAAa;AAAA,EACtB,UAAU;AAAA,EACV,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX;AAEO,IAAM,MAAM;AAAA,EACf,WAAW;AAAA,EACX,aAAa;AAAA,EACb,aAAa;AAAA,IACT,gBAAgB;AAAA,EACpB;AACJ;","names":[]}
package/dist/index.mjs DELETED
@@ -1,35 +0,0 @@
1
- // src/index.ts
2
- var ALL = "*";
3
- var LOG_CATEGORIES = [
4
- "NoLicense",
5
- "Scenario",
6
- "Favorites",
7
- "Subscription",
8
- "Share",
9
- "Document",
10
- "Search",
11
- "History",
12
- "Notification",
13
- "UserProfile"
14
- ];
15
- var LOG_LEVELS = {
16
- critical: 2,
17
- error: 3,
18
- warning: 4,
19
- info: 6,
20
- debug: 7
21
- };
22
- var API = {
23
- MAX_RETRY: 3,
24
- API_TIMEOUT: 1e4,
25
- API_HEADERS: {
26
- "content-Type": "application/json"
27
- }
28
- };
29
- export {
30
- ALL,
31
- API,
32
- LOG_CATEGORIES,
33
- LOG_LEVELS
34
- };
35
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export const ALL = \"*\"\n\nexport const LOG_CATEGORIES = [\n \"NoLicense\",\n \"Scenario\",\n \"Favorites\",\n \"Subscription\",\n \"Share\",\n \"Document\",\n \"Search\",\n \"History\",\n \"Notification\",\n \"UserProfile\",\n] as const;\n\nexport const LOG_LEVELS = {\n critical: 2,\n error: 3,\n warning: 4,\n info: 6,\n debug: 7,\n} as const;\n\nexport const API = {\n MAX_RETRY: 3,\n API_TIMEOUT: 10000,\n API_HEADERS: {\n \"content-Type\": \"application/json\",\n },\n};"],"mappings":";AAAO,IAAM,MAAM;AAEZ,IAAM,iBAAiB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AAEO,IAAM,aAAa;AAAA,EACtB,UAAU;AAAA,EACV,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACX;AAEO,IAAM,MAAM;AAAA,EACf,WAAW;AAAA,EACX,aAAa;AAAA,EACb,aAAa;AAAA,IACT,gBAAgB;AAAA,EACpB;AACJ;","names":[]}