Skip to content

Commit

Permalink
Merge b16bae0 into af99506
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Sep 28, 2019
2 parents af99506 + b16bae0 commit 454ee68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions lib/models/types/moment.js
Expand Up @@ -2,14 +2,13 @@

const moment = require('moment-timezone');
const { SchemaType } = require('warehouse');
const util = require('util');

function SchemaTypeMoment(name, options) {
Reflect.apply(SchemaType, this, [name, options]);
class SchemaTypeMoment extends SchemaType {
constructor(name, options = {}) {
super(name, options);
}
}

util.inherits(SchemaTypeMoment, SchemaType);

function toMoment(value) {
// FIXME: Something is wrong when using a moment instance. I try to get the
// original date object and create a new moment object again.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -61,7 +61,7 @@
"text-table": "^0.2.0",
"tildify": "^2.0.0",
"titlecase": "^1.1.2",
"warehouse": "^2.2.0"
"warehouse": "^3.0.0"
},
"devDependencies": {
"@easyops/git-exec-and-restage": "^1.0.4",
Expand Down

0 comments on commit 454ee68

Please sign in to comment.