From b16bae05c0f9e2e1432d6531e6c732e6ec60b1d3 Mon Sep 17 00:00:00 2001 From: YoshinoriN Date: Sat, 28 Sep 2019 09:41:37 +0900 Subject: [PATCH] chore(deps): update warehouse requirement from ^2.2.0 to ^3.0.0 --- lib/models/types/moment.js | 9 ++++----- package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/models/types/moment.js b/lib/models/types/moment.js index 9012663984..3996f6a6e0 100644 --- a/lib/models/types/moment.js +++ b/lib/models/types/moment.js @@ -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. diff --git a/package.json b/package.json index d2be457a63..ed5b9cdd67 100644 --- a/package.json +++ b/package.json @@ -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",