Comparing version 0.0.1 to 1.0.0
11
index.js
var Transform = require('stream').Transform; | ||
var util = require('util'); | ||
var inherits = require('inherits'); | ||
var Volume = function() { | ||
this.setVolume(1.0); | ||
function Volume (volume) { | ||
if (!(this instanceof Volume)) return new Volume(volume); | ||
if (volume === undefined) volume = 1; | ||
this.setVolume(volume); | ||
Transform.call(this); | ||
}; | ||
util.inherits(Volume, Transform); | ||
inherits(Volume, Transform); | ||
@@ -10,0 +13,0 @@ Volume.prototype.setVolume = function(volume) { |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.0.1", | ||
"version": "1.0.0", | ||
"author": { | ||
@@ -23,3 +23,6 @@ "name": "René Raab", | ||
}, | ||
"dependencies": { | ||
"inherits": "^2.0.1" | ||
}, | ||
"homepage": "https://github.com/reneraab/pcm-volume" | ||
} |
@@ -6,2 +6,7 @@ pcm-volume | ||
Install | ||
------- | ||
Install with `npm install pcm-volume` or clone from GitHub and `npm install`. | ||
How to use | ||
@@ -8,0 +13,0 @@ ---------- |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4797
34
0
58
1
+ Addedinherits@^2.0.1
+ Addedinherits@2.0.4(transitive)