@outlawdesigns/armorysdk 1.0.0 → 1.0.2

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.
package/modelFactory.js CHANGED
@@ -14,19 +14,19 @@ const Vendor = require('./models/vendor.js');
14
14
 
15
15
 
16
16
  const models = {
17
- ammopurchase: () => new AmmoPurchase(id),
18
- ammo: () => new Ammunition(id),
17
+ ammopurchase: (id) => new AmmoPurchase(id),
18
+ ammo: (id) => new Ammunition(id),
19
19
  ammotype: (id) => new AmmunitionType(id),
20
20
  caliber: (id) => new Caliber(id),
21
21
  firearmimage: (id) => new FirearmImage(id),
22
22
  firearm: (id) => new Firearm(id),
23
- firearmtype: () => new FirearmType(id),
24
- manufacturer: ()=> new Manufacturer(id),
25
- optic: ()=> new Optic(id),
26
- optictype: ()=> new OpticType(id),
27
- shoot: ()=> new Shoot(id),
28
- targetimage: ()=> new TargetImage(id),
29
- vendor: ()=> new Vendor(id),
23
+ firearmtype: (id) => new FirearmType(id),
24
+ manufacturer: (id)=> new Manufacturer(id),
25
+ optic: (id)=> new Optic(id),
26
+ optictype: (id)=> new OpticType(id),
27
+ shoot: (id)=> new Shoot(id),
28
+ targetimage: (id)=> new TargetImage(id),
29
+ vendor: (id)=> new Vendor(id),
30
30
  }
31
31
 
32
32
  const modelClasses = {
@@ -15,7 +15,7 @@ class AmmoPurchase extends Record{
15
15
  constructor(id){
16
16
  super(AmmoPurchase.database,AmmoPurchase.table,AmmoPurchase.primaryKey,id);
17
17
  this.publicKeys = [
18
- 'Id','Ammunition','Vendor','Rounds','Price','DatePurchased','DateReceived','User'
18
+ 'Id','AmmunitionType','Vendor','Rounds','Price','DatePurchased','DateReceived','User'
19
19
  ];
20
20
  }
21
21
  static async new(ammoId,vendorId,rounds,price,datePurchased,dateReceived,user){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outlawdesigns/armorysdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"