New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gun

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gun - npm Package Compare versions

Comparing version

to
0.9.9999991

3

lib/upload.js

@@ -28,5 +28,6 @@ ;(function(){

var file = (((e.event || e).target || e).result || e), img = new Image();
img.crossOrigin = "Anonymous";
img.src = file;
img.onload = function(){
if(img.width < w && img.height < (h||Infinity)){
if(img.width < (w = w || 1000) && img.height < (h||Infinity) && "data:" == file.slice(0,5)){
e.base64 = file;

@@ -33,0 +34,0 @@ return cb(e || file);

{
"name": "gun",
"version": "0.9.999999",
"version": "0.9.9999991",
"description": "A realtime, decentralized, offline-first, graph data synchronization engine.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -320,2 +320,42 @@ var root;

})
it('set user ref should be found', function(done){
var gun = Gun();
var user = gun.user();
var msg = {what: 'hello world'};
user.create('zach', 'password');
gun.on('auth', function(){
var ref = user.get('who').get('all').set(msg);
user.get('who').get('said').set(ref);
user.get('who').get('said').map().once(function(data){
expect(data.what).to.be.ok();
done();
})
})
});
it('set user ref null override', function(done){
this.timeout(9000);
var gun = Gun();
var user = gun.user();
var msg = {what: 'hello world'};
user.create('xavier', 'password');
gun.on('auth', function(){
var ref = user.get('who').get('all').set(msg);
var tmp = ref._.dub || ref._.link;
setTimeout(function(){
user.get('who').put(1);
setTimeout(function(){
user.get('who').get('all').get(tmp).put({boom: 'ah'});
setTimeout(function(){
user.get('who').get('all').map().once(function(data){
expect(data).to.be.ok();
expect(data.what).to.not.be.ok();
done();
});
},9);
},9);
},9);
});
});
});

@@ -322,0 +362,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display