@lifi/types 9.0.0-alpha.7 → 9.0.0-alpha.9

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 CHANGED
@@ -1,9 +1,37 @@
1
- ### Installation
1
+ <div align="center">
2
2
 
3
+ [![license](https://img.shields.io/badge/license-Apache%202-blue)](/LICENSE.md)
4
+ [![npm latest package](https://img.shields.io/npm/v/@lifi/types/latest.svg)](https://www.npmjs.com/package/@lifi/types)
5
+ [![npm downloads](https://img.shields.io/npm/dm/@lifi/types.svg)](https://www.npmjs.com/package/@lifi/types)
6
+ [![Follow on Twitter](https://img.shields.io/twitter/follow/lifiprotocol.svg?label=follow+LI.FI)](https://twitter.com/lifiprotocol)
7
+
8
+ </div>
9
+
10
+ # LI.FI - Types
11
+
12
+ Types for the LI.FI stack.
13
+
14
+ ## Summary
15
+
16
+ This package contains all common types for the [LI.FI SDK](https://github.com/lifinance/sdk).
17
+ Learn more about LI.FI on (https://li.fi).
18
+
19
+ Check out the [Changelog](./CHANGELOG.md) to see what changed in the last releases.
20
+
21
+ ## Installation
22
+
23
+ Install dependencies with yarn:
24
+
25
+ ```bash
26
+ yarn add @lifi/types
3
27
  ```
28
+
29
+ or
30
+
31
+ ```bash
4
32
  npm install --save @lifi/types
5
33
  ```
6
34
 
7
- ### Summary
35
+ ## Summary
8
36
 
9
37
  This package contains type definitions for LI.FI projects (https://github.com/lifinance).
@@ -1,4 +1,4 @@
1
- import { StaticToken } from '.';
1
+ import { StaticToken } from './tokens';
2
2
  export interface ExchangeAggregator {
3
3
  key: string;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { Substatus, TransactionRequest } from '.';
1
+ import { Substatus, TransactionRequest } from './api';
2
2
  import { Token } from './tokens/token';
3
3
  export interface FeeCost {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { StaticToken } from '.';
1
+ import { StaticToken } from './tokens';
2
2
  export interface ExchangeAggregator {
3
3
  key: string;
4
4
  name: string;
package/dist/step.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Substatus, TransactionRequest } from '.';
1
+ import { Substatus, TransactionRequest } from './api';
2
2
  import { Token } from './tokens/token';
3
3
  export interface FeeCost {
4
4
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "9.0.0-alpha.7",
3
+ "version": "9.0.0-alpha.9",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",
@@ -10,23 +10,15 @@
10
10
  "import": "./dist/index.js"
11
11
  },
12
12
  "scripts": {
13
- "addscope": "node tools/packagejson name @lifi/types",
14
- "build": "node tools/cleanup types && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json",
15
- "clean": "node tools/cleanup",
13
+ "build": "tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json",
16
14
  "lint:fix": "eslint --ext .tsx --ext .ts ./src --fix",
17
15
  "package": "npm run build && npm pack",
18
- "postpublish": "npm run use:gitReadme && pinst --enable",
19
16
  "pre-commit": "lint-staged",
20
17
  "pre-push": "yarn build",
21
- "prepare": "husky install",
22
- "prepublishOnly": "run-s build use:npmReadme && pinst --enable",
23
18
  "prettier:fix": "prettier --write ./src/.",
24
19
  "release": "standard-version -a",
25
20
  "release:alpha": "standard-version -a --prerelease alpha --skip.changelog",
26
- "release:beta": "standard-version -a --prerelease beta --skip.changelog",
27
- "use:gitReadme": "mv 'README.md' 'npm.README.md' && mv 'git.README.md' 'README.md'",
28
- "use:npmReadme": "mv 'README.md' 'git.README.md' && mv 'npm.README.md' 'README.md'",
29
- "watch": "tsc -w -p ./tsconfig.json"
21
+ "release:beta": "standard-version -a --prerelease beta --skip.changelog"
30
22
  },
31
23
  "lint-staged": {
32
24
  "src/**/*.{ts,tsx}": [
@@ -69,20 +61,17 @@
69
61
  "url": "https://github.com/lifinance/types"
70
62
  },
71
63
  "devDependencies": {
72
- "@commitlint/cli": "^17.5.1",
73
- "@commitlint/config-conventional": "^17.4.4",
74
- "@typescript-eslint/eslint-plugin": "^5.58.0",
75
- "@typescript-eslint/parser": "^5.58.0",
76
- "eslint": "^8.38.0",
77
- "eslint-config-prettier": "^8.8.0",
78
- "eslint-plugin-prettier": "^4.2.1",
79
- "husky": "^8.0.3",
80
- "lint-staged": "^13.2.1",
81
- "npm-run-all": "^4.1.5",
82
- "pinst": "^3.0.0",
83
- "prettier": "^2.8.7",
64
+ "@commitlint/cli": "^17.7.1",
65
+ "@commitlint/config-conventional": "^17.7.0",
66
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
67
+ "@typescript-eslint/parser": "^6.4.1",
68
+ "eslint": "^8.48.0",
69
+ "eslint-config-prettier": "^9.0.0",
70
+ "eslint-plugin-prettier": "^5.0.0",
71
+ "lint-staged": "^14.0.1",
72
+ "prettier": "^3.0.2",
84
73
  "standard-version": "^9.5.0",
85
- "typescript": "^5.0.4"
74
+ "typescript": "^5.2.2"
86
75
  },
87
- "packageManager": "yarn@3.5.0"
76
+ "packageManager": "yarn@3.6.3"
88
77
  }