Socket
Socket
Sign inDemoInstall

@mongoosejs/studio

Package Overview
Dependencies
78
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.12 to 0.0.13

frontend/src/list-mixed/list-mixed.css

2

backend/actions/Model/getDocument.js

@@ -39,3 +39,3 @@ 'use strict';

return { doc: doc.toJSON({ virtuals: false, getters: false, transform: false }), schemaPaths };
return { doc: doc.toJSON({ virtuals: true, getters: false, transform: false }), schemaPaths };
};
'use strict';
const api = require('../api');
const mpath = require('mpath');
const template = require('./document.html');

@@ -55,4 +56,7 @@ const vanillatoast = require('vanillatoasts');

},
getValueForPath(path) {
return mpath.get(path, this.document);
},
getEditValueForPath({ path }) {
return path in this.changes ? this.changes[path] : this.document[path];
return path in this.changes ? this.changes[path] : mpath.get(path, this.document);
},

@@ -91,2 +95,2 @@ cancelEdit() {

}
});
});

@@ -19,2 +19,3 @@ 'use strict';

require('./list-default/list-default')(app);
require('./list-mixed/list-mixed')(app);
require('./list-string/list-string')(app);

@@ -21,0 +22,0 @@ require('./list-subdocument/list-subdocument')(app);

@@ -12,8 +12,3 @@ 'use strict';

displayValue() {
return JSON.stringify(this.value, (key, value) => {
if (typeof value === 'string' && value.length > 30) {
return value.slice(0, 27) + '...';
}
return value;
}, ' ').trim();
return this.value;
}

@@ -24,2 +19,2 @@ },

}
});
});

@@ -42,2 +42,5 @@ 'use strict';

}
if (this.value.length > 30) {
return this.value.substring(0,30) + '...';
}
return this.value;

@@ -44,0 +47,0 @@ },

@@ -6,8 +6,15 @@ 'use strict';

require('../appendCSS')(require('./list-subdocument.css'));
module.exports = app => app.component('list-subdocument', {
template: template,
props: ['value'],
computed: {
shortenValue() {
return this.value;
}
},
mounted: function() {
Prism.highlightElement(this.$refs.SubDocCode);
}
});
});

@@ -157,2 +157,5 @@ 'use strict';

}
if (schemaPath.instance == 'Mixed') {
return 'list-mixed';
}
return 'list-default';

@@ -159,0 +162,0 @@ },

{
"name": "@mongoosejs/studio",
"version": "0.0.12",
"version": "0.0.13",
"dependencies": {

@@ -5,0 +5,0 @@ "archetype": "0.13.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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc