file-component
Advanced tools
+14
-0
@@ -437,2 +437,3 @@ | ||
| this.file = file; | ||
| file.slice = file.slice || file.webkitSlice || file.mozSlice; | ||
| for (var key in file) this[key] = file[key]; | ||
@@ -488,2 +489,3 @@ } | ||
| File.prototype.to = function(type, fn){ | ||
| if (!window.FileReader) return fn(); | ||
| var reader = Reader(); | ||
@@ -497,2 +499,13 @@ reader.on('error', fn); | ||
| /** | ||
| * Slice the file. | ||
| * | ||
| * @return {File} | ||
| * @api public | ||
| */ | ||
| File.prototype.slice = function(a, b){ | ||
| return file(this.file.slice(a, b)); | ||
| }; | ||
| /** | ||
| * Convert to an `ArrayBuffer`. | ||
@@ -640,3 +653,4 @@ * | ||
| require.alias("component-emitter/index.js", "file/deps/emitter/index.js"); | ||
| require.alias("component-emitter/index.js", "emitter/index.js"); | ||
| require.alias("component-indexof/index.js", "component-emitter/deps/indexof/index.js"); | ||
+1
-1
| { | ||
| "name": "file", | ||
| "description": "File & FileReader wrappers", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "keywords": ["file", "utility"], | ||
@@ -6,0 +6,0 @@ "dependencies": { |
+1
-1
@@ -44,3 +44,3 @@ | ||
| File.prototype.__proto__ = Emitter.prototype; | ||
| Emitter(File.prototype); | ||
@@ -47,0 +47,0 @@ /** |
+5
-0
| 0.0.3 / 2013-05-08 | ||
| ================== | ||
| * use Emiiter() mixin | ||
| 0.0.2 / 2013-04-17 | ||
@@ -3,0 +8,0 @@ ================== |
+1
-1
| { | ||
| "name": "file-component", | ||
| "description": "File & FileReader wrappers", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "keywords": ["file", "utility"], | ||
@@ -6,0 +6,0 @@ "dependencies": { |
+1
-1
@@ -56,3 +56,3 @@ | ||
| Reader.prototype.__proto__ = Emitter.prototype; | ||
| Emitter(Reader.prototype); | ||
@@ -59,0 +59,0 @@ /** |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
21519
1.59%913
1.33%0
-100%