|
7 | 7 | "url": "git+https://github.com/near/near-api-js.git"
|
8 | 8 | },
|
9 | 9 | "homepage": "https://github.com/near/near-api-js",
|
10 |
| - "main": "lib/esm/index.js", |
11 |
| - "browser": "lib/commonjs/browser-index.cjs", |
12 |
| - "types": "lib/esm/index.d.ts", |
13 |
| - "type": "module", |
| 10 | + "main": "lib/index.js", |
| 11 | + "browser": "lib/browser-index.js", |
| 12 | + "types": "lib/index.d.ts", |
14 | 13 | "dependencies": {
|
15 | 14 | "@near-js/accounts": "workspace:*",
|
16 | 15 | "@near-js/crypto": "workspace:*",
|
|
23 | 22 | "@near-js/types": "workspace:*",
|
24 | 23 | "@near-js/utils": "workspace:*",
|
25 | 24 | "@near-js/wallet-account": "workspace:*",
|
| 25 | + "@noble/curves": "1.2.0", |
26 | 26 | "borsh": "1.0.0",
|
27 | 27 | "depd": "2.0.0",
|
28 | 28 | "http-errors": "1.7.2",
|
29 |
| - "near-abi": "0.1.1" |
| 29 | + "near-abi": "0.1.1", |
| 30 | + "node-fetch": "2.6.7" |
30 | 31 | },
|
31 | 32 | "devDependencies": {
|
32 | 33 | "@types/http-errors": "1.6.1",
|
33 |
| - "@types/node": "20.0.0", |
| 34 | + "@types/node": "18.11.18", |
34 | 35 | "bs58": "4.0.0",
|
35 |
| - "buffer": "6.0.3", |
36 |
| - "build": "workspace:*", |
37 |
| - "bundlewatch": "0.3.1", |
38 | 36 | "concurrently": "7.3.0",
|
39 |
| - "esbuild": "0.23.0", |
40 | 37 | "in-publish": "2.0.0",
|
41 | 38 | "jest": "29.7.0",
|
42 |
| - "localstorage-memory": "1.0.3", |
43 | 39 | "near-hello": "0.5.1",
|
44 | 40 | "near-workspaces": "3.5.0",
|
45 |
| - "process": "^0.11.10", |
46 |
| - "rimraf": "6.0.1", |
| 41 | + "rimraf": "^6.0.1", |
47 | 42 | "semver": "7.1.1",
|
48 |
| - "ts-jest": "29.1.5", |
49 |
| - "tsconfig": "workspace:*", |
50 |
| - "util": "^0.12.5" |
| 43 | + "ts-jest": "29.1.5" |
51 | 44 | },
|
52 | 45 | "keywords": [],
|
53 | 46 | "license": "(MIT AND Apache-2.0)",
|
54 | 47 | "scripts": {
|
55 |
| - "dist": "pnpm bundle:all", |
56 |
| - "bundle:all": "pnpm bundle && pnpm bundle:minified", |
57 |
| - "bundle": "esbuild browser-exports.js --bundle --outfile=dist/near-api-js.js --define:global=window --inject:esbuild.inject.js", |
58 |
| - "bundle:minified": "esbuild browser-exports.js --bundle --minify --outfile=dist/near-api-js.min.js --define:global=window --inject:esbuild.inject.js", |
59 |
| - "compile:esm": "tsc -p ./tsconfig.json", |
60 |
| - "compile:cjs": "tsc -p ./tsconfig.cjs.json && cjsify ./lib/commonjs", |
| 48 | + "compile": "tsc -p ./tsconfig.json", |
61 | 49 | "dev": "pnpm compile -w",
|
62 |
| - "build": "pnpm compile:esm && pnpm compile:cjs && pnpm dist", |
63 |
| - "test": "jest --passWithNoTests", |
| 50 | + "build": "pnpm compile", |
| 51 | + "test": "jest test --passWithNoTests", |
64 | 52 | "lint": "concurrently \"pnpm:lint:*(!fix) --no-error-on-unmatched-pattern\"",
|
65 | 53 | "lint:src": "eslint --ext .ts src",
|
| 54 | + "lint:fix": "concurrently \"pnpm:lint:*:fix\"", |
| 55 | + "lint:src:fix": "eslint --ext .ts --fix src", |
| 56 | + "lint:test:fix": "eslint --ext .js --fix test", |
66 | 57 | "prefuzz": "pnpm build",
|
67 | 58 | "fuzz": "jsfuzz test/fuzz/borsh-roundtrip.js test/fuzz/corpus/",
|
68 |
| - "clean": "pnpm rimraf lib", |
69 |
| - "bundlewatch": "bundlewatch" |
70 |
| - }, |
71 |
| - "bundlewatch": { |
72 |
| - "files": [ |
73 |
| - { |
74 |
| - "path": "dist/near-api-js.min.js", |
75 |
| - "maxSize": "150kB" |
76 |
| - } |
77 |
| - ] |
| 59 | + "clean": "pnpm rimraf lib" |
78 | 60 | },
|
79 | 61 | "files": [
|
80 | 62 | "lib",
|
81 |
| - "dist", |
82 |
| - "browser-exports.js" |
| 63 | + "dist" |
83 | 64 | ],
|
84 |
| - "author": "NEAR Inc", |
85 |
| - "exports": { |
86 |
| - "require": "./lib/commonjs/index.cjs", |
87 |
| - "import": "./lib/esm/index.js" |
88 |
| - } |
| 65 | + "author": "NEAR Inc" |
89 | 66 | }
|
0 commit comments