@sudobility/heavymath_types 0.0.1 → 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/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /**
3
2
  * @heavymath/types
4
3
  *
@@ -7,21 +6,6 @@
7
6
  *
8
7
  * @packageDocumentation
9
8
  */
10
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- var desc = Object.getOwnPropertyDescriptor(m, k);
13
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
- desc = { enumerable: true, get: function() { return m[k]; } };
15
- }
16
- Object.defineProperty(o, k2, desc);
17
- }) : (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- o[k2] = m[k];
20
- }));
21
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
9
  // Re-export all types from the types directory
26
- __exportStar(require("./types"), exports);
10
+ export * from './types';
27
11
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;AAEH,+CAA+C;AAC/C,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,+CAA+C;AAC/C,cAAc,SAAS,CAAC"}
package/dist/types/api.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /**
3
2
  * @fileoverview API Type Definitions for Heavymath Indexer
4
3
  * @description Centralized type definitions for API requests/responses
@@ -7,5 +6,5 @@
7
6
  * Note: API responses use ApiResponse from @sudobility/types
8
7
  * This file defines the data payload types used within those responses
9
8
  */
10
- Object.defineProperty(exports, "__esModule", { value: true });
9
+ export {};
11
10
  //# sourceMappingURL=api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
@@ -1,6 +1,5 @@
1
- "use strict";
2
1
  /**
3
2
  * Common utility types used throughout the Heavymath application
4
3
  */
5
- Object.defineProperty(exports, "__esModule", { value: true });
4
+ export {};
6
5
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":";AAAA;;GAEG"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,8 +1,7 @@
1
- "use strict";
2
1
  /**
3
2
  * @fileoverview Database Entity Type Definitions
4
3
  * @description Centralized type definitions for all database entities
5
4
  * @version 1.0.0
6
5
  */
7
- Object.defineProperty(exports, "__esModule", { value: true });
6
+ export {};
8
7
  //# sourceMappingURL=entities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/types/entities.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
1
+ {"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/types/entities.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /**
3
2
  * @fileoverview Type Definitions for Blockchain Events
4
3
  * @description Centralized type definitions for all contract events and their arguments
@@ -8,8 +7,6 @@
8
7
  * making it easier for AI assistants to understand event structures and
9
8
  * provide accurate code suggestions.
10
9
  */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.OracleType = void 0;
13
10
  // ============================================================================
14
11
  // OracleResolver Event Types
15
12
  // ============================================================================
@@ -17,7 +14,7 @@ exports.OracleType = void 0;
17
14
  * Oracle Type Enum
18
15
  * Types of oracles supported by the system
19
16
  */
20
- exports.OracleType = {
17
+ export const OracleType = {
21
18
  Manual: 0,
22
19
  PriceFeed: 1,
23
20
  CustomData: 2,
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AA2KH,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E;;;GAGG;AACU,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,UAAU,EAAE,CAAC;CACL,CAAC"}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA2KH,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,UAAU,EAAE,CAAC;CACL,CAAC"}
@@ -1,10 +1,6 @@
1
- "use strict";
2
1
  /**
3
2
  * @fileoverview Type exports for @heavymath/types
4
3
  */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.OracleType = void 0;
7
4
  // Export const values separately
8
- var events_1 = require("./events");
9
- Object.defineProperty(exports, "OracleType", { enumerable: true, get: function () { return events_1.OracleType; } });
5
+ export { OracleType } from './events';
10
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAmCH,iCAAiC;AACjC,mCAAsC;AAA7B,oGAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmCH,iCAAiC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,53 +1,36 @@
1
1
  {
2
2
  "name": "@sudobility/heavymath_types",
3
- "version": "0.0.1",
3
+ "version": "0.0.6",
4
4
  "description": "Comprehensive TypeScript types, interfaces, and utilities for Heavymath prediction market applications",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "types": "./dist/index.d.ts",
11
10
  "import": "./dist/index.js",
12
- "require": "./dist/index.cjs"
13
- },
14
- "./api": {
15
- "types": "./dist/types/api.d.ts",
16
- "import": "./dist/types/api.js",
17
- "require": "./dist/types/api.cjs"
18
- },
19
- "./events": {
20
- "types": "./dist/types/events.d.ts",
21
- "import": "./dist/types/events.js",
22
- "require": "./dist/types/events.cjs"
23
- },
24
- "./entities": {
25
- "types": "./dist/types/entities.d.ts",
26
- "import": "./dist/types/entities.js",
27
- "require": "./dist/types/entities.cjs"
11
+ "require": "./dist/index.cjs",
12
+ "types": "./dist/index.d.ts"
28
13
  }
29
14
  },
30
15
  "scripts": {
31
- "build": "npm run build:esm && npm run build:cjs",
32
- "build:esm": "tsc -p tsconfig.esm.json",
33
- "build:cjs": "tsc -p tsconfig.cjs.json && npm run build:cjs-rename",
34
- "build:cjs-rename": "find dist -name '*.js' -not -name '*.cjs' -exec sh -c 'cp \"$1\" \"${1%.js}.cjs\"' _ {} \\;",
35
- "clean": "rimraf dist",
36
- "dev": "tsc --watch",
16
+ "build": "bun run build:esm && bun run build:cjs",
17
+ "build:esm": "bunx tsc -p tsconfig.esm.json",
18
+ "build:cjs": "bunx tsc -p tsconfig.cjs.json && bun run build:cjs-rename && rm -rf dist-cjs",
19
+ "build:cjs-rename": "find dist-cjs -name '*.js' -exec sh -c 'cp \"$1\" \"dist/$(basename \"${1%.js}.cjs\")\"' _ {} \\;",
20
+ "clean": "rm -rf dist",
21
+ "dev": "bunx tsc --watch",
22
+ "typecheck": "bunx tsc --noEmit",
23
+ "lint": "bunx eslint src/",
24
+ "lint:fix": "bunx eslint src/ --fix",
25
+ "format": "bunx prettier --write \"src/**/*.ts\"",
26
+ "format:check": "bunx prettier --check \"src/**/*.ts\"",
37
27
  "test": "vitest run",
38
- "test:watch": "vitest --watch",
39
- "test:coverage": "vitest --coverage",
40
- "lint": "eslint src --ext .ts",
41
- "lint:fix": "eslint src --ext .ts --fix",
42
- "format": "prettier --write \"src/**/*.{ts,js,json,md}\"",
43
- "format:check": "prettier --check \"src/**/*.{ts,js,json,md}\"",
44
- "typecheck": "tsc --noEmit",
45
- "verify": "npm run typecheck && npm run lint && npm run test && npm run build",
46
- "prepublishOnly": "npm run clean && npm run verify"
28
+ "test:watch": "vitest",
29
+ "verify": "bun run typecheck && bun run lint && bun run build",
30
+ "prepublishOnly": "bun run clean && bun run verify"
47
31
  },
48
32
  "files": [
49
- "dist/**/*",
50
- "README.md"
33
+ "dist/**/*"
51
34
  ],
52
35
  "keywords": [
53
36
  "typescript",
@@ -62,16 +45,15 @@
62
45
  "author": "Heavymath",
63
46
  "license": "MIT",
64
47
  "devDependencies": {
65
- "@eslint/js": "^9.38.0",
48
+ "@eslint/js": "^9.39.2",
66
49
  "@types/node": "^24.9.1",
67
- "@typescript-eslint/eslint-plugin": "^8.46.2",
68
- "@typescript-eslint/parser": "^8.46.2",
69
- "eslint": "^9.38.0",
70
- "globals": "^16.4.0",
71
- "prettier": "^3.6.2",
72
- "rimraf": "^6.0.1",
50
+ "@typescript-eslint/eslint-plugin": "^8.50.0",
51
+ "@typescript-eslint/parser": "^8.50.0",
52
+ "eslint": "^9.39.2",
53
+ "globals": "^16.5.0",
54
+ "prettier": "^3.7.4",
73
55
  "typescript": "^5.9.3",
74
- "vitest": "^4.0.15"
56
+ "vitest": "^4.0.16"
75
57
  },
76
58
  "peerDependencies": {
77
59
  "viem": "^2.0.0"
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /**
3
- * @fileoverview Type exports for @heavymath/types
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.OracleType = void 0;
7
- // Export const values separately
8
- var events_1 = require("./events");
9
- Object.defineProperty(exports, "OracleType", { enumerable: true, get: function () { return events_1.OracleType; } });
10
- //# sourceMappingURL=index.js.map
File without changes
File without changes
File without changes
File without changes