Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bandwidth-throttle-stream

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bandwidth-throttle-stream - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

dist/node/BandwidthThrottle.d.ts

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 0.2.1
- Fix node.js build
- Build deno as ES2019 for compatibility
### 0.2.0

@@ -2,0 +6,0 @@

3

dist/deno/BaseTransformStream/BaseTransformStream.deno.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc