@heliofi/withdraw-core 0.0.1 → 0.0.2-alpha.1780508272

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/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @heliofi/withdraw-core
2
+
3
+ Core JS/TS SDK for MoonPay Commerce withdrawals — routes, quotes, balance checks, and transaction submission.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @heliofi/withdraw-core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { VERSION } from '@heliofi/withdraw-core';
15
+
16
+ console.log(VERSION); // '0.0.1'
17
+ ```
18
+
19
+ > **Note:** This package is in early development. The API surface will expand as withdraw features are built out.
20
+
21
+ ## Development
22
+
23
+ ```bash
24
+ # Install dependencies
25
+ npm install
26
+
27
+ # Run tests
28
+ npm test
29
+
30
+ # Typecheck
31
+ npm run typecheck
32
+
33
+ # Lint
34
+ npm run lint
35
+
36
+ # Build
37
+ npm run build
38
+ ```
39
+
40
+ ## Publishing
41
+
42
+ Releases are published to npm automatically via GitHub Actions when a [GitHub Release](https://github.com/heliofi/withdraw-core/releases) is created.
43
+
44
+ ## License
45
+
46
+ Private — © MoonPay
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.1";exports.VERSION=e;
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "name": "@heliofi/withdraw-core",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.2-alpha.1780508272",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
8
8
  "build": "tsc && vite build",
9
- "lint": "eslint . --ext ts --report-unused-disable-directives --max-warnings 0",
10
- "lint:strict": "yarn lint",
11
- "lint:fix": "yarn lint --fix && yarn format",
12
- "format": "prettier -w .",
13
- "format:check": "prettier -c .",
14
- "prepublishOnly": "rimraf dist && yarn build",
9
+ "lint": "biome check src/",
10
+ "lint:fix": "biome check --fix src/",
11
+ "format": "biome format --fix src/",
12
+ "format:check": "biome format src/",
13
+ "prepublishOnly": "rm -rf dist && npm run build",
15
14
  "test": "vitest run",
16
15
  "test:watch": "vitest",
17
- "typecheck": "tsc -p tsconfig.json --noEmit",
18
- "typecheck:fast": "tsc --noEmit --incremental"
16
+ "typecheck": "tsc -p tsconfig.json --noEmit"
19
17
  },
20
- "main": "./dist/withdraw-core.es.js",
21
- "module": "./dist/withdraw-core.es.js",
18
+ "main": "./dist/withdraw-core.cjs",
19
+ "module": "./dist/withdraw-core.js",
22
20
  "types": "./dist/index.d.ts",
21
+ "sideEffects": false,
23
22
  "exports": {
24
23
  ".": {
25
24
  "types": "./dist/index.d.ts",
26
- "import": "./dist/withdraw-core.es.js"
25
+ "import": "./dist/withdraw-core.js",
26
+ "require": "./dist/withdraw-core.cjs"
27
27
  }
28
28
  },
29
+ "engines": {
30
+ "node": ">=18"
31
+ },
29
32
  "files": [
30
33
  "dist"
31
34
  ],
32
35
  "devDependencies": {
33
- "@typescript-eslint/eslint-plugin": "6.7.4",
34
- "@typescript-eslint/parser": "6.7.4",
35
- "eslint": "8.45.0",
36
- "rimraf": "3.0.2",
36
+ "@biomejs/biome": "^2.4.16",
37
37
  "typescript": "5.1.6",
38
38
  "vite": "6.4.2",
39
39
  "vite-plugin-dts": "3.7.1",
File without changes