The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/message-parser/package.json

78 lines
2.2 KiB

{
"name": "@rocket.chat/message-parser",
"version": "0.31.36",
"description": "Rocket.Chat parser for messages",
"homepage": "https://github.com/RocketChat/fuselage#readme",
"bugs": {
"url": "https://github.com/RocketChat/fuselage/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RocketChat/fuselage.git",
"directory": "packages/message-parser"
},
"license": "MIT",
"author": {
"name": "Rocket.Chat",
"url": "https://rocket.chat/"
},
"exports": {
".": {
"default": "./dist/messageParser.js",
"types": "./dist/index.d.ts"
}
},
"main": "dist/messageParser.js",
"module": "dist/messageParser.js",
"types": "dist/index.d.ts",
"directories": {
"test": "test"
},
"files": [
"/dist"
],
"scripts": {
".:build:bundle": "webpack-cli",
".:build:clean": "rimraf dist",
"build": "run-s .:build:clean .:build:bundle",
"bench": "ts-node --compiler-options '{\"module\":\"commonjs\"}' -r ./loaders/pegjs-register.js benchmarks/parser.bench.ts",
"bench:size": "node -e \"const fs=require('fs'),zlib=require('zlib'),p='dist/messageParser.js';try{const s=fs.statSync(p),c=fs.readFileSync(p),g=zlib.gzipSync(c);console.log('Bundle:',p);console.log('Raw:',s.size,'bytes ('+(s.size/1024).toFixed(1),'KB)');console.log('Gzip:',g.length,'bytes ('+(g.length/1024).toFixed(1),'KB)')}catch(e){console.error('Build first: yarn build');process.exit(1)}\"",
"lint": "eslint .",
"test": "jest",
"testunit": "jest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"tldts": "~6.1.86"
},
"devDependencies": {
"@rocket.chat/jest-presets": "workspace:~",
"@rocket.chat/peggy-loader": "workspace:~",
"@rocket.chat/prettier-config": "~0.31.25",
"@types/jest": "~30.0.0",
"@types/node": "~22.19.17",
"eslint": "~9.39.4",
"fast-check": "^4.6.0",
"jest": "~30.2.0",
"npm-run-all": "^4.1.5",
"peggy": "4.1.1",
"prettier": "~3.3.3",
"prettier-plugin-pegjs": "~0.5.4",
"rimraf": "^6.0.1",
"tinybench": "^3.0.7",
"ts-loader": "~9.5.7",
"ts-node": "~10.9.2",
"typescript": "~5.9.3",
"webpack": "~5.104.1",
"webpack-cli": "~5.1.4"
},
"engines": {
"node": "22.22.2"
},
"volta": {
"extends": "../../package.json"
},
"publishConfig": {
"access": "public"
}
}