f5976a2d74
* feat: moved tl-runtime to esm and native ArrayBuffers * feat: migration to esm * fix(core): web-related fixes * test: finally, some good fucking e2e * chore: fixed linters etc * ci: added e2e to ci * build(tl): fixed gen-code on node 20 * fix: codegen Uint8Array, not Buffer never `git reset --hard` kids * build: only do type-aware linting for `packages/*` * build: ignore no-unresolved in ci for e2e * fix: node 16 doesn't have subtle crypto apparently? * fix(tests): use Uint8Array for gods sake please can i just merge this already * ci: don't parallel tasks in ci because machines are utter garbage and it may just randomly break * ci: pass secrets to e2e tests * ci: separate cli command for ci apparently im retarded * fix: run codegen in e2e im actually retarded * ci: more fixes for e2e * ci: debugging stuff * ci: still debugging * ci: hopefully fix ci???
58 lines
2 KiB
JSON
58 lines
2 KiB
JSON
{
|
|
"name": "@mtcute/core",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"description": "Core functions and base MTProto client",
|
|
"author": "Alina Sireneva <alina@tei.su>",
|
|
"license": "MIT",
|
|
"main": "src/index.ts",
|
|
"type": "module",
|
|
"scripts": {
|
|
"test": "mocha \"tests/**/*.spec.ts\"",
|
|
"build": "pnpm run -w build-package core",
|
|
"docs": "typedoc"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@mtcute/tl": "workspace:^165.0.0",
|
|
"@mtcute/tl-runtime": "workspace:^1.0.0",
|
|
"@types/events": "3.0.0",
|
|
"@types/node": "18.16.0",
|
|
"big-integer": "1.6.51",
|
|
"events": "3.2.0",
|
|
"long": "5.2.3"
|
|
},
|
|
"devDependencies": {
|
|
"@cryptography/aes": "^0.1.1",
|
|
"@types/ws": "8.5.4",
|
|
"node-forge": "1.3.1",
|
|
"ws": "8.13.0"
|
|
}
|
|
}
|