mtcute/packages/core/package.json
2023-11-09 00:20:43 +03:00

58 lines
2.1 KiB
JSON

{
"name": "@mtcute/core",
"private": true,
"version": "0.1.0",
"description": "Core functions and base MTProto client",
"author": "Alina Sireneva <alina@tei.su>",
"license": "MIT",
"main": "src/index.ts",
"type": "module",
"scripts": {
"build": "pnpm run -w build-package core"
},
"browser": {
"./cjs/utils/platform/crypto.js": "./cjs/utils/platform/crypto.web.js",
"./esm/utils/platform/crypto.js": "./esm/utils/platform/crypto.web.js",
"./cjs/utils/platform/transport.js": "./cjs/utils/platform/transport.web.js",
"./esm/utils/platform/transport.js": "./esm/utils/platform/transport.web.js",
"./cjs/utils/platform/logging.js": "./cjs/utils/platform/logging.web.js",
"./esm/utils/platform/logging.js": "./esm/utils/platform/logging.web.js",
"./cjs/utils/platform/random.js": "./cjs/utils/platform/random.web.js",
"./esm/utils/platform/random.js": "./esm/utils/platform/random.web.js",
"./cjs/storage/json-file.js": false,
"./esm/storage/json-file.js": false
},
"distOnlyFields": {
"exports": {
".": {
"import": "./esm/index.js",
"require": "./cjs/index.js"
},
"./utils.js": {
"import": "./esm/utils/index.js",
"require": "./cjs/utils/index.js"
},
"./utils/crypto/*.js": {
"import": "./esm/utils/crypto/*.js",
"require": "./cjs/utils/crypto/*.js"
},
"./network/transports/*.js": {
"import": "./esm/network/transports/*.js",
"require": "./cjs/network/transports/*.js"
}
}
},
"dependencies": {
"@mtcute/tl": "workspace:^",
"@mtcute/tl-runtime": "workspace:^",
"@mtcute/wasm": "workspace:^",
"@types/events": "3.0.0",
"events": "3.2.0",
"long": "5.2.3"
},
"devDependencies": {
"@types/ws": "8.5.4",
"node-forge": "1.3.1",
"ws": "8.13.0"
}
}