@dhyasama/totem-models 9.1.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/CapTable.js +0 -11
  2. package/package.json +1 -1
package/lib/CapTable.js CHANGED
@@ -34,19 +34,11 @@ module.exports = function(mongoose, config) {
34
34
  // optional reference to download the cap table file
35
35
  document: { type: Schema.ObjectId, ref: 'Document', required: false },
36
36
 
37
- // single pool of unissued options for the org
38
- unissued: { type: Number, default: 0 },
39
-
40
37
  // computed on save (via pre-save hook); don't set directly;
41
38
  shares: { type: Number, default: 0 },
42
39
 
43
40
  stakeholders: [{
44
41
 
45
- // Note that name will always be pulled from sheet and used by default when rendering a cap table.
46
- // The stakeholder will be programmatically linked to a person or fund in the event of an exact text match on person.name.full or fund.name.
47
- // Manual creation and linking of stakeholder and entity will happen within Admin.
48
- // The corollary of this is that neither person nor fund is required and the name from the sheet will be used in their absence.
49
-
50
42
  // verbatim text from the cap table
51
43
  name: { type: String, trim: true, required: true },
52
44
 
@@ -131,8 +123,6 @@ module.exports = function(mongoose, config) {
131
123
 
132
124
  });
133
125
 
134
-
135
-
136
126
  ///////////////////////////////////////////////////////////////////////////////////////
137
127
  // VIRTUALS
138
128
  // Properties that are not persisted to the database
@@ -382,7 +372,6 @@ module.exports = function(mongoose, config) {
382
372
  self.shares = _.reduce(self.stakeholders, function(memo, stakeholder) {
383
373
  return memo + stakeholder.shares;
384
374
  }, 0);
385
- self.shares = self.shares + self.unissued;
386
375
 
387
376
  // Calculate each stakeholders ownership
388
377
  _.each(self.stakeholders, function(stakeholder) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.1.0",
3
+ "version": "9.3.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",