From 90a65560fdc34bd61b1b458ed9b23132024cd19e Mon Sep 17 00:00:00 2001 From: Adrien Castex Date: Mon, 26 Jun 2017 19:13:22 +0200 Subject: [PATCH] Exported the v2 --- lib/index.d.ts | 2 ++ lib/index.js | 2 ++ lib/index.v2.d.ts | 6 ++++++ lib/index.v2.js | 12 ++++++++++++ src/index.ts | 3 +++ src/index.v2.ts | 9 +++++++++ 6 files changed, 34 insertions(+) create mode 100644 lib/index.v2.d.ts create mode 100644 lib/index.v2.js create mode 100644 src/index.v2.ts diff --git a/lib/index.d.ts b/lib/index.d.ts index aab9abae..e5efa0d2 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -4,3 +4,5 @@ export * from './resource/export'; export * from './user/export'; export * from './helper/export'; export * from './Errors'; +import * as v2 from './index.v2'; +export { v2 }; diff --git a/lib/index.js b/lib/index.js index 395ac079..7912bf3b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -10,3 +10,5 @@ __export(require("./resource/export")); __export(require("./user/export")); __export(require("./helper/export")); __export(require("./Errors")); +var v2 = require("./index.v2"); +exports.v2 = v2; diff --git a/lib/index.v2.d.ts b/lib/index.v2.d.ts new file mode 100644 index 00000000..2a47b3b6 --- /dev/null +++ b/lib/index.v2.d.ts @@ -0,0 +1,6 @@ +export * from './manager/v2/export'; +export * from './server/v2/export'; +export * from './user/v2/export'; +export * from './helper/v2/export'; +export * from './resource/export.v2'; +export * from './Errors'; diff --git a/lib/index.v2.js b/lib/index.v2.js new file mode 100644 index 00000000..3b8eea0d --- /dev/null +++ b/lib/index.v2.js @@ -0,0 +1,12 @@ +"use strict"; +// the order matters because of import dependencies +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(require("./manager/v2/export")); +__export(require("./server/v2/export")); +__export(require("./user/v2/export")); +__export(require("./helper/v2/export")); +__export(require("./resource/export.v2")); +__export(require("./Errors")); diff --git a/src/index.ts b/src/index.ts index bcff3327..68bb91e3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,3 +7,6 @@ export * from './resource/export'; export * from './user/export'; export * from './helper/export'; export * from './Errors'; + +import * as v2 from './index.v2' +export { v2 } diff --git a/src/index.v2.ts b/src/index.v2.ts new file mode 100644 index 00000000..1d3920b0 --- /dev/null +++ b/src/index.v2.ts @@ -0,0 +1,9 @@ + +// the order matters because of import dependencies + +export * from './manager/v2/export'; +export * from './server/v2/export'; +export * from './user/v2/export'; +export * from './helper/v2/export'; +export * from './resource/export.v2'; +export * from './Errors';