blueflag-record
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -18,4 +18,2 @@ "use strict"; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
@@ -77,5 +75,2 @@ | ||
(0, _classCallCheck2.default)(this, Record); | ||
(0, _defineProperty2.default)(this, "inspect", function () { | ||
return "Record ".concat(JSON.stringify(_this.toObject(), null, 2)); | ||
}); | ||
@@ -164,3 +159,9 @@ var setter = function setter(key, value) { | ||
(0, _createClass2.default)(Record, null, [{ | ||
(0, _createClass2.default)(Record, [{ | ||
key: "inspect", | ||
// for printing records with console.log() in node | ||
value: function inspect() { | ||
return "Record ".concat(JSON.stringify(this.toObject(), null, 2)); | ||
} | ||
}], [{ | ||
key: "fromUnknown", | ||
@@ -181,4 +182,3 @@ value: function fromUnknown(unknown) { | ||
}); | ||
} // for printing records with console.log() in node | ||
} | ||
}]); | ||
@@ -185,0 +185,0 @@ return Record; |
{ | ||
"main": "lib/index.js", | ||
"name": "blueflag-record", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "An Unmutable compatible record", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
453
18359