animated-gif-detector
Advanced tools
Comparing version 1.1.6 to 1.1.7
var Writable = require('stream').Writable | ||
, inherits = require('inherits') | ||
, types = require('typechecker') | ||
// GIF CONSTANTS: http://www.matthewflickinger.com/lab/whatsinagif/bits_and_bytes.asp | ||
@@ -45,3 +44,3 @@ , BLOCK_TERMINATOR = { value: new Buffer('00') } | ||
this.buffer = Buffer.concat([this.buffer, chunk]) | ||
, animated = this.isAnimated(this.buffer) | ||
var animated = this.isAnimated(this.buffer) | ||
; | ||
@@ -66,4 +65,4 @@ | ||
if (buffer) { | ||
var valid = types.isString(buffer) | ||
|| types.isNumber(buffer) | ||
var valid = typeof buffer === 'string' | ||
|| typeof buffer === 'number' | ||
|| Buffer.isBuffer(buffer) | ||
@@ -70,0 +69,0 @@ ; |
{ | ||
"name": "animated-gif-detector", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Detect animated GIFs from JavaScript buffers.", | ||
@@ -18,4 +18,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"inherits": "^2.0.1", | ||
"typechecker": "^4.0.0" | ||
"inherits": "^2.0.1" | ||
}, | ||
@@ -22,0 +21,0 @@ "repository": { |
@@ -72,3 +72,4 @@ animated-gif-detector | ||
Bradley Spaulding - [GitHub/bspaulding](https://github.com/bspaulding) | ||
Vilson Vieira - [GitHub/automata](https://github.com/automata) | ||
- Bradley Spaulding - [GitHub/bspaulding](https://github.com/bspaulding) | ||
- Vilson Vieira - [GitHub/automata](https://github.com/automata) | ||
- Andreas Lind - [GitHub/papandreou](https://github.com/papandreou) |
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
2513844
1
75
345
- Removedtypechecker@^4.0.0
- Removededitions@2.3.1(transitive)
- Removederrlop@2.2.0(transitive)
- Removedsemver@6.3.1(transitive)
- Removedtypechecker@4.11.0(transitive)