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

socketio-file-upload

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socketio-file-upload - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

client.js

@@ -57,3 +57,3 @@ /*

self.serializedOctets = false;
self.useBuffer = false;
self.useBuffer = true;

@@ -60,0 +60,0 @@ /**

@@ -7,3 +7,3 @@ /* Socket IO File Upload Client-Side Library

(function(k,e,f){"function"===typeof define&&define.amd?define(e,f):k[e]=f()})(this,"SocketIOFileUpload",function(){return function(k){var e=this;if(!window.File||!window.FileReader)throw Error("Socket.IO File Upload: Browser Not Supported");var f={},p=[],v=[];e.fileInputElementId="siofu_input";e.useText=!1;e.serializedOctets=!1;e.useBuffer=!1;var r=function(a,b){var c=document.createEvent("Event");c.initEvent(a,!1,!1);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return e.dispatchEvent(c)},n=[],
(function(k,e,f){"function"===typeof define&&define.amd?define(e,f):k[e]=f()})(this,"SocketIOFileUpload",function(){return function(k){var e=this;if(!window.File||!window.FileReader)throw Error("Socket.IO File Upload: Browser Not Supported");var f={},p=[],v=[];e.fileInputElementId="siofu_input";e.useText=!1;e.serializedOctets=!1;e.useBuffer=!0;var r=function(a,b){var c=document.createEvent("Event");c.initEvent(a,!1,!1);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return e.dispatchEvent(c)},n=[],
g=function(a,b,c,d){a.addEventListener(b,c,d);n.push(arguments)},w=function(a,b,c,d){a.removeEventListener&&a.removeEventListener(b,c,d)},x=function(){for(var a=n.length-1;0<=a;a--)w.apply(this,n[a]);n=[]},y=function(a){if(null!==e.maxFileSize&&a.size>e.maxFileSize)r("error",{file:a,message:"Attempt by client to upload file exceeding the maximum file size",code:1});else if(r("start",{file:a})){var b=new FileReader,c=0,d=p.length,f=e.useText,n;p.push(a);g(b,"progress",function(a){});g(b,"load",function(t){a:{t=

@@ -10,0 +10,0 @@ t.loaded;var g,p=!1;if(f)g=b.result.slice(c,t);else try{var m=new Uint8Array(b.result,c,t);if(e.serializedOctets)g=m;else if(e.useBuffer)g=m.buffer;else{var p=!0,l,q=m.buffer.byteLength,h="";for(l=0;l<q;l+=3)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[m[l]>>2],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(m[l]&3)<<4|m[l+1]>>4],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(m[l+1]&15)<<2|m[l+2]>>6],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[m[l+

{
"name": "socketio-file-upload",
"version": "0.3.1",
"version": "0.3.2",
"description": "Uploads files to a Node.JS server using Socket.IO",

@@ -30,3 +30,3 @@ "keywords": [

"license": "X11",
"readmeFilename": "README.md"
"readmeFilename": "Readme.md"
}
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