From d227d857b4130930c5a861b0c6867f5d3a249362 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 21 Aug 2017 14:28:59 +0200 Subject: [PATCH] add moment --- dist/index.d.ts | 1 + dist/index.js | 4 +++- dist/smarttime.plugins.d.ts | 2 ++ dist/smarttime.plugins.js | 4 +++- package.json | 1 + ts/index.ts | 2 ++ ts/smarttime.plugins.ts | 6 ++++++ yarn.lock | 4 ++++ 8 files changed, 22 insertions(+), 2 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 573bacc..38f3da4 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,3 +1,4 @@ export * from './smarttime.classes.hrtmeasurement'; export * from './smarttime.classes.timestamp'; export * from './smarttime.units'; +export { moment } from './smarttime.plugins'; diff --git a/dist/index.js b/dist/index.js index 63e45c0..d1196f4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6,4 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); __export(require("./smarttime.classes.hrtmeasurement")); __export(require("./smarttime.classes.timestamp")); __export(require("./smarttime.units")); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLHdEQUFrRDtBQUNsRCxtREFBNkM7QUFDN0MsdUNBQWlDIn0= \ No newline at end of file +var smarttime_plugins_1 = require("./smarttime.plugins"); +exports.moment = smarttime_plugins_1.moment; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUVBLHdEQUFrRDtBQUNsRCxtREFBNkM7QUFDN0MsdUNBQWlDO0FBRWpDLHlEQUE0QztBQUFuQyxxQ0FBQSxNQUFNLENBQUEifQ== \ No newline at end of file diff --git a/dist/smarttime.plugins.d.ts b/dist/smarttime.plugins.d.ts index 317822d..5af701a 100644 --- a/dist/smarttime.plugins.d.ts +++ b/dist/smarttime.plugins.d.ts @@ -1 +1,3 @@ import 'typings-global'; +import * as moment from 'moment'; +export { moment }; diff --git a/dist/smarttime.plugins.js b/dist/smarttime.plugins.js index 5647d8f..b367207 100644 --- a/dist/smarttime.plugins.js +++ b/dist/smarttime.plugins.js @@ -1,4 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("typings-global"); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHRpbWUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDBCQUF1QiJ9 \ No newline at end of file +const moment = require("moment"); +exports.moment = moment; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHRpbWUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDBCQUF1QjtBQUV2QixpQ0FBZ0M7QUFHOUIsd0JBQU0ifQ== \ No newline at end of file diff --git a/package.json b/package.json index 255c92a..f3667cb 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "tapbundle": "^1.0.13" }, "dependencies": { + "moment": "^2.18.1", "typings-global": "^1.0.16" } } diff --git a/ts/index.ts b/ts/index.ts index be8af2e..694bbfb 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -3,3 +3,5 @@ import * as plugins from './smarttime.plugins' export * from './smarttime.classes.hrtmeasurement' export * from './smarttime.classes.timestamp' export * from './smarttime.units' + +export { moment } from './smarttime.plugins' diff --git a/ts/smarttime.plugins.ts b/ts/smarttime.plugins.ts index 97b63a3..b612f3c 100644 --- a/ts/smarttime.plugins.ts +++ b/ts/smarttime.plugins.ts @@ -1 +1,7 @@ import 'typings-global' + +import * as moment from 'moment' + +export { + moment +} diff --git a/yarn.lock b/yarn.lock index 809c42a..47268f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -249,6 +249,10 @@ minimist@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" +moment@^2.18.1: + version "2.18.1" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.18.1.tgz#c36193dd3ce1c2eed2adb7c802dbbc77a81b1c0f" + nan@^2.3.2: version "2.6.2" resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45"