@c-rex/types 0.0.6 → 0.0.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.
@@ -0,0 +1,10 @@
1
+ import { LOG_LEVELS, ALL, LOG_CATEGORIES } from '@c-rex/constants';
2
+
3
+ type QueryParams = {
4
+ key: string;
5
+ value: string;
6
+ };
7
+ type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL;
8
+ type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;
9
+
10
+ export type { LogCategoriesType, LogLevelType, QueryParams };
@@ -0,0 +1,10 @@
1
+ import { LOG_LEVELS, ALL, LOG_CATEGORIES } from '@c-rex/constants';
2
+
3
+ type QueryParams = {
4
+ key: string;
5
+ value: string;
6
+ };
7
+ type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL;
8
+ type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;
9
+
10
+ export type { LogCategoriesType, LogLevelType, QueryParams };
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/index.ts
17
+ var index_exports = {};
18
+ module.exports = __toCommonJS(index_exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { LOG_CATEGORIES, LOG_LEVELS, ALL } from \"@c-rex/constants\";\n\nexport type QueryParams = { key: string; value: string };\nexport type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL\nexport type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "name": "@c-rex/types",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
+ "main": "./dist/index.js",
5
+ "types": "./dist/index.d.ts",
6
+ "module": "./dist/index.mjs",
4
7
  "files": [
5
- "src"
8
+ "dist"
6
9
  ],
7
10
  "publishConfig": {
8
11
  "access": "public"
9
12
  },
10
- "exports": {
11
- ".": {
12
- "types": "./src/index.ts",
13
- "import": "./src/index.ts",
14
- "require": "./src/index.ts",
15
- "default": "./src/index.ts"
16
- },
17
- "./package.json": "./package.json"
18
- },
19
13
  "scripts": {
20
- "dev": "echo 'Nothing to build — using raw TypeScript files'",
21
- "build": "echo 'No build needed'"
14
+ "dev": "tsup --watch",
15
+ "build": "tsup",
16
+ "test:watch": "jest --watch",
17
+ "test": "jest"
22
18
  },
23
19
  "devDependencies": {
24
20
  "@c-rex/eslint-config": "*",
package/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- import { LOG_CATEGORIES, LOG_LEVELS, ALL } from "@c-rex/constants";
2
-
3
- export type QueryParams = { key: string; value: string };
4
- export type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL
5
- export type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;