Comparing version 0.0.3 to 0.0.4
@@ -250,3 +250,3 @@ 'use strict'; | ||
case 0: | ||
data = this.format(); | ||
data = this.getCurrentData(); | ||
_context4.prev = 1; | ||
@@ -316,4 +316,4 @@ validated = void 0; | ||
}, { | ||
key: 'format', | ||
value: function format() { | ||
key: 'getCurrentData', | ||
value: function getCurrentData() { | ||
return this.data; | ||
@@ -331,3 +331,3 @@ } | ||
rules = this.rules; | ||
data = this.format(); | ||
data = this.getCurrentData(); | ||
options = { | ||
@@ -485,4 +485,4 @@ abortEarly: false | ||
}, { | ||
key: 'toJSON', | ||
value: function toJSON() { | ||
key: 'format', | ||
value: function format() { | ||
var _this2 = this; | ||
@@ -533,2 +533,7 @@ | ||
} | ||
}, { | ||
key: 'toJSON', | ||
value: function toJSON() { | ||
return this.format(); | ||
} | ||
}]); | ||
@@ -535,0 +540,0 @@ |
{ | ||
"name": "arpeggio", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "extremely opinionated ORM/ODM", | ||
@@ -5,0 +5,0 @@ "main": "lib/arpeggio.js", |
@@ -108,3 +108,3 @@ /** | ||
async save(...args) { | ||
let data = this.format() | ||
let data = this.getCurrentData() | ||
@@ -133,3 +133,3 @@ try { | ||
format() { | ||
getCurrentData() { | ||
return this.data | ||
@@ -140,3 +140,3 @@ } | ||
let rules = this.rules | ||
let data = this.format() | ||
let data = this.getCurrentData() | ||
let options = { | ||
@@ -218,3 +218,3 @@ abortEarly: false | ||
toJSON() { | ||
format() { | ||
let _id = this.getKey() | ||
@@ -261,2 +261,6 @@ let currentData = Object.assign({ | ||
toJSON() { | ||
return this.format() | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40812
1220