034b8db070
The earlier commit, d3ce0cb82f, has most of the juicy details on this. In addition to d3ce's changes, we also:
* Use `TestClient` in many integration tests due to subtle behaviour changes in imports when switching to ES6. Namely the behaviour where setting the request function is less reliable in the way we did it, but `TestClient` is very reliable.
* We now use the Olm loader more often to avoid having to maintain so much duplicate code. This makes the imports slightly easier to read.
89 lines
2.9 KiB
JSON
89 lines
2.9 KiB
JSON
{
|
|
"name": "matrix-js-sdk",
|
|
"version": "2.4.6",
|
|
"description": "Matrix Client-Server SDK for JavaScript",
|
|
"scripts": {
|
|
"start": "echo THIS IS FOR LEGACY PURPOSES ONLY. && babel src -w -s -d lib --verbose --extensions \".ts,.js\"",
|
|
"clean": "rimraf lib dist",
|
|
"build": "yarn clean && git rev-parse HEAD > git-revision.txt && yarn build:compile && yarn build:compile-browser && yarn build:types",
|
|
"build:types": "tsc --emitDeclarationOnly",
|
|
"build:compile": "babel src -s -d lib --verbose --extensions \".ts,.js\"",
|
|
"build:compile-browser": "mkdirp dist && browserify -d browser-index.js -t [ babelify --sourceMaps=inline ] > dist/browser-matrix.js",
|
|
"gendoc": "jsdoc -c jsdoc.json -P package.json",
|
|
"lint": "yarn lint:types && yarn lint:ts && yarn lint:js",
|
|
"lint:js": "eslint --max-warnings 93 src spec",
|
|
"lint:types": "tsc --noEmit",
|
|
"lint:ts": "tslint --project ./tsconfig.json -t stylish",
|
|
"test": "jest spec/ --coverage --testEnvironment node",
|
|
"test:watch": "jest spec/ --coverage --testEnvironment node --watch"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/matrix-org/matrix-js-sdk"
|
|
},
|
|
"keywords": [
|
|
"matrix-org"
|
|
],
|
|
"main": "./index.js",
|
|
"typings": "./lib/index.d.ts",
|
|
"browser": "browser-index.js",
|
|
"author": "matrix.org",
|
|
"license": "Apache-2.0",
|
|
"files": [
|
|
"CHANGELOG.md",
|
|
"CONTRIBUTING.rst",
|
|
"LICENSE",
|
|
"README.md",
|
|
"git-revision.txt",
|
|
"index.js",
|
|
"browser-index.js",
|
|
"lib",
|
|
"package.json",
|
|
"src"
|
|
],
|
|
"dependencies": {
|
|
"another-json": "^0.2.0",
|
|
"browser-request": "^0.3.3",
|
|
"bs58": "^4.0.1",
|
|
"content-type": "^1.0.2",
|
|
"loglevel": "^1.6.4",
|
|
"qs": "^6.5.2",
|
|
"request": "^2.88.0",
|
|
"unhomoglyph": "^1.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.7.5",
|
|
"@babel/core": "^7.7.5",
|
|
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
|
"@babel/plugin-proposal-numeric-separator": "^7.7.4",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
|
|
"@babel/plugin-transform-runtime": "^7.7.6",
|
|
"@babel/preset-env": "^7.7.6",
|
|
"@babel/preset-typescript": "^7.7.4",
|
|
"@babel/register": "^7.7.4",
|
|
"@babel/runtime": "^7.7.6",
|
|
"@types/node": "12",
|
|
"babel-eslint": "^10.0.3",
|
|
"babel-jest": "^24.9.0",
|
|
"babelify": "^10.0.0",
|
|
"better-docs": "^1.4.7",
|
|
"browserify": "^16.5.0",
|
|
"eslint": "^5.12.0",
|
|
"eslint-config-google": "^0.7.1",
|
|
"eslint-plugin-babel": "^5.3.0",
|
|
"eslint-plugin-jest": "^23.0.4",
|
|
"jest": "^24.9.0",
|
|
"jsdoc": "^3.5.5",
|
|
"matrix-mock-request": "^1.2.3",
|
|
"olm": "https://packages.matrix.org/npm/olm/olm-3.1.4.tgz",
|
|
"rimraf": "^3.0.0",
|
|
"source-map-support": "^0.5.13",
|
|
"tslint": "^5.20.1",
|
|
"typescript": "^3.7.3"
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node"
|
|
}
|
|
}
|