UNPKG

mock-socket-with-protocol

Version:

Javascript mocking library for websockets and socket.io, compatible with apollographql subscriptions-transport-ws

79 lines (78 loc) 2.04 kB
{ "name": "mock-socket-with-protocol", "version": "7.1.1", "description": "Javascript mocking library for websockets and socket.io, compatible with apollographql subscriptions-transport-ws", "main": "./dist/mock-socket", "directories": { "test": "tests" }, "engines": { "node": ">= 4" }, "scripts": { "test": "cross-env NODE_ENV=test ava --serial --verbose", "test:coverage": "cross-env NODE_ENV=test nyc ava --serial", "build": "rm -rf dist && rollup -c rollup.config.js", "lint": "eslint src tests", "format": "prettier --print-width 120 --single-quote --write '{src,tests}/**/*.js'", "precommit": "lint-staged", "prepublishOnly": "yarn build" }, "repository": { "type": "git", "url": "https://github.com/TheBrainFamily/mock-socket-with-protocol.git" }, "keywords": [ "websockets", "mock", "mocksocket", "sockets" ], "author": "Travis Hoover", "license": "MIT", "bugs": { "url": "https://github.com/TheBrainFamily/mock-socket-with-protocol/issues" }, "homepage": "https://github.com/TheBrainFamily/mock-socket-with-protocol", "devDependencies": { "ava": "^0.19.1", "babel-core": "^6.24.1", "babel-loader": "^7.0.0", "babel-polyfill": "^6.23.0", "babel-preset-latest": "^6.24.1", "cross-env": "^5.0.0", "eslint": "^3.19.0", "eslint-config-airbnb-base": "^11.2.0", "eslint-plugin-import": "^2.0.1", "husky": "^0.13.3", "jsdom": "^11.5.1", "lint-staged": "^3.4.1", "nyc": "^10.3.2", "prettier": "^1.3.1", "rollup": "^0.41.6", "rollup-plugin-buble": "^0.15.0", "rollup-plugin-commonjs": "^8.2.6", "rollup-plugin-node-resolve": "^3.0.0", "systemjs": "^0.20.12" }, "ava": { "files": [ "tests/**/*.test.js" ], "require": [ "babel-register", "babel-polyfill" ], "babel": "inherit" }, "lint-staged": { "*.js": [ "format", "lint", "git add" ] }, "dependencies": { "url-parse": "^1.2.0" } }