simple-websocket
Advanced tools
Comparing version 8.1.0 to 8.1.1
{ | ||
"name": "simple-websocket", | ||
"description": "Simple, EventEmitter API for WebSockets (browser)", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"author": { | ||
@@ -25,2 +25,3 @@ "name": "Feross Aboukhadijeh", | ||
"airtap": "^2.0.3", | ||
"babel-minify": "^0.5.1", | ||
"browserify": "^16.1.0", | ||
@@ -30,4 +31,3 @@ "prettier-bytes": "^1.0.3", | ||
"standard": "*", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.5.2" | ||
"tape": "^4.0.0" | ||
}, | ||
@@ -50,3 +50,3 @@ "homepage": "https://github.com/feross/simple-websocket", | ||
"scripts": { | ||
"build": "browserify --plugin tinyify -s SimpleWebsocket -r ./ > simplewebsocket.min.js", | ||
"build": "browserify -s SimpleWebsocket -r . | minify > simplewebsocket.min.js", | ||
"size": "npm run build && cat simplewebsocket.min.js | gzip | wc -c", | ||
@@ -53,0 +53,0 @@ "test": "standard && npm run test-node && npm run test-browser", |
@@ -23,3 +23,3 @@ # simple-websocket [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] | ||
This module works in the browser with [browserify](http://browserify.org/), and it's used by [WebTorrent](http://webtorrent.io)! | ||
This package is used by [WebTorrent](https://webtorrent.io). | ||
@@ -32,2 +32,8 @@ ## install | ||
This package works in the browser with [browserify](https://browserify.org). If | ||
you do not use a bundler, you can use the `simplewebsocket.min.js` standalone script | ||
directly in a `<script>` tag. This exports a `SimpleWebsocket` constructor on | ||
`window`. Wherever you see `Socket` in the examples below, substitute that with | ||
`SimpleWebsocket`. | ||
## real-world applications that use simple-websocket | ||
@@ -59,7 +65,2 @@ | ||
**Note:** If you're **NOT** using browserify, then use the included standalone file | ||
`simplewebsocket.min.js`. This exports a `SimpleWebsocket` constructor on `window`. | ||
Wherever you see `Socket` in the examples below, substitute that with | ||
`SimpleWebsocket`. | ||
## api | ||
@@ -66,0 +67,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98265
282
158
1
2