Skip to content

Commit

Permalink
chore(deps): update warehouse requirement from ^2.2.0 to ^3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Sep 28, 2019
1 parent af99506 commit b16bae0
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 b16bae0

Please sign in to comment.