bandwidth-throttle-stream
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,1 +1,5 @@ | ||
### 0.2.1 | ||
- Fix node.js build | ||
- Build deno as ES2019 for compatibility | ||
### 0.2.0 | ||
@@ -2,0 +6,0 @@ |
@@ -17,3 +17,4 @@ // @deno-types="./BaseTransformStream.deno.d.ts" | ||
destroy() { | ||
this.controller?.terminate(); | ||
var _a; | ||
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.terminate(); | ||
} | ||
@@ -20,0 +21,0 @@ } |
{ | ||
"name": "bandwidth-throttle-stream", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A Node.js and Deno transform stream for throttling bandwidth", | ||
@@ -26,3 +26,3 @@ "author": "KunkaLabs Limited", | ||
"build:deno": "ttsc -p ./config/typescript/tsconfig.build.deno.json", | ||
"build": "npm run clean:dist npm run build:node && npm run build:deno", | ||
"build": "npm run clean:dist && npm run build:node && npm run build:deno", | ||
"lint": "tslint --project tsconfig.json -c ./config/tslint/tslint.json \"./src/**/*.ts\"" | ||
@@ -29,0 +29,0 @@ }, |
@@ -41,8 +41,14 @@ ![CI](https://github.com/patrickkunka/bandwidth-throttle-stream/workflows/CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/patrickkunka/bandwidth-throttle-stream/badge.svg?branch=master)](https://coveralls.io/github/patrickkunka/bandwidth-throttle-stream?branch=master) | ||
In Deno, all libraries are imported from URLs as ES modules. Versioned releases of `bandwidth-throttle-stream` are available from TBC: | ||
In Deno, all libraries are imported from URLs as ES modules. Versioned releases of `bandwidth-throttle-stream` are available from the [Pika](http://pika.dev) CDN: | ||
```js | ||
import {createBandwidthThrottleGroup} from 'https://path/to/cdn/bandwidth-throttle-stream@0.2.0/mod.ts' | ||
import {createBandwidthThrottleGroup} from 'https://cdn.pika.dev/bandwidth-throttle-sream/mod.ts'; | ||
``` | ||
The above URL will return the latest release, but it is strongly advised to lock your import to a specific version using the following syntax, where `.x.y.z` can be any published version of the library: | ||
```js | ||
import {createBandwidthThrottleGroup} from 'https://cdn.pika.dev/bandwidth-throttle-sream@x.y.z/mod.ts'; | ||
``` | ||
## Usage | ||
@@ -135,3 +141,3 @@ | ||
```ts | ||
import {readerToDenoReader} from 'TBC'; | ||
import {readerToDenoReader} from 'https://cdn.pika.dev/bandwidth-throttle-sream@^0.2.0/mod.ts'; | ||
@@ -138,0 +144,0 @@ ... |
Sorry, the diff of this file is not supported yet
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
111264
111
1714
252
0