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

bitdepth

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitdepth - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

3

CHANGELOG.md
# CHANGELOG
## 3.1.2
- Better packaging.
## 3.1.1
- Fix: always writing to output array

26

index.js

@@ -16,5 +16,5 @@ /**

* @param {!Array<number>} samples The samples.
* @param {!string} original The original bit depth of the data.
* @param {string} original The original bit depth of the data.
* One of "8" ... "53", "32f", "64"
* @param {!string} target The desired bit depth for the data.
* @param {string} target The desired bit depth for the data.
* One of "8" ... "53", "32f", "64"

@@ -56,5 +56,5 @@ * @param {Array<number>=} outputArray An optional array to write converted samples to.

* Change the bit depth from int to int.
* @param {!number} sample The sample.
* @param {number} sample The sample.
* @param {!Object} args Data about the original and target bit depths.
* @return {!number}
* @return {number}
* @private

@@ -73,5 +73,5 @@ */

* Change the bit depth from float to int.
* @param {!number} sample The sample.
* @param {number} sample The sample.
* @param {!Object} args Data about the original and target bit depths.
* @return {!number}
* @return {number}
* @private

@@ -86,5 +86,5 @@ */

* Change the bit depth from int to float.
* @param {!number} sample The sample.
* @param {number} sample The sample.
* @param {!Object} args Data about the original and target bit depths.
* @return {!number}
* @return {number}
* @private

@@ -98,4 +98,4 @@ */

* Change the bit depth from float to float.
* @param {!number} sample The sample.
* @return {!number}
* @param {number} sample The sample.
* @return {number}
* @private

@@ -110,5 +110,5 @@ */

* Return the function to change the bit depth of a sample.
* @param {!string} original The original bit depth of the data.
* @param {string} original The original bit depth of the data.
* One of "8" ... "53", "32f", "64"
* @param {!string} target The new bit depth of the data.
* @param {string} target The new bit depth of the data.
* One of "8" ... "53", "32f", "64"

@@ -142,3 +142,3 @@ * @return {!Function}

* Validate the bit depth.
* @param {!string} bitDepth The original bit depth.
* @param {string} bitDepth The original bit depth.
* Should be one of "8" ... "53", "32f" or "64".

@@ -145,0 +145,0 @@ * @throws {Error} If any argument does not meet the criteria.

{
"name": "bitdepth",
"version": "3.1.1",
"description": "Change the resolution of samples to and from 8, 11, 12, 16, 20, 24, 32, 48 & 64-bit.",
"version": "3.1.2",
"description": "Change the resolution of samples to and from any bit depth.",
"homepage": "https://github.com/rochars/bitdepth",

@@ -39,3 +39,4 @@ "author": "Rafael da Silva Rocha <rocha.rafaelsilva@gmail.com>",

"pack": "webpack && npm run test-dist",
"build": "npm run lint && npm run pack && npm test && npm run doc"
"build": "npm run lint && npm test && npm run pack && npm run doc",
"build-ci": "npm run lint && npm run pack && npm test && npm run doc"
},

@@ -42,0 +43,0 @@ "devDependencies": {

# bitdepth
Change the resolution of samples to and from 8, 11, 12, 16, 20, 24, 32, 48 & 64-bit.
Copyright (c) 2017-2018 Rafael da Silva Rocha.

@@ -9,2 +8,5 @@ https://github.com/rochars/bitdepth

## About
Change the resolution of samples to and from any bit depth. Works in Node.js and the in the browser.
## Install

@@ -11,0 +13,0 @@ ```

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