From 31b955aa1876f01b9cf6b2a6ea27797a87842419 Mon Sep 17 00:00:00 2001 From: Jonas Scheiwiller Date: Tue, 5 Nov 2019 13:23:06 +0100 Subject: [PATCH 1/2] [Update] Export isWordPressPreview --- dist/index.js | 8 ++++++++ src/index.js | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index ad07a4e..1c74298 100644 --- a/dist/index.js +++ b/dist/index.js @@ -99,6 +99,12 @@ Object.defineProperty(exports, "verifyTrailingSlash", { return _verifyTrailingSlash.default; } }); +Object.defineProperty(exports, "isWordPressPreview", { + enumerable: true, + get: function get() { + return _isWordPressPreview.default; + } +}); var _cleanString = _interopRequireDefault(require("./misc/cleanString")); @@ -132,4 +138,6 @@ var _verifyLeadingSlash = _interopRequireDefault(require("./url/verifyLeadingSla var _verifyTrailingSlash = _interopRequireDefault(require("./url/verifyTrailingSlash")); +var _isWordPressPreview = _interopRequireDefault(require("./wp/misc/isWordPressPreview")); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } \ No newline at end of file diff --git a/src/index.js b/src/index.js index 251164d..f26d68f 100644 --- a/src/index.js +++ b/src/index.js @@ -22,6 +22,10 @@ import removeTrailingSlash from './url/removeTrailingSlash' import verifyLeadingSlash from './url/verifyLeadingSlash' import verifyTrailingSlash from './url/verifyTrailingSlash' +// WP helpers +import isWordPressPreview from './wp/misc/isWordPressPreview' + + export { // Misc utilities cleanString, @@ -42,5 +46,6 @@ export { removeLeadingSlash, removeTrailingSlash, verifyLeadingSlash, - verifyTrailingSlash + verifyTrailingSlash, + isWordPressPreview } From c21357806a868c1ce2e07ab629996f4b77450e51 Mon Sep 17 00:00:00 2001 From: Jonas Scheiwiller Date: Tue, 5 Nov 2019 15:05:55 +0100 Subject: [PATCH 2/2] [Update] Re-add generateMetaInfo --- dist/index.js | 8 ++++++++ src/index.js | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 1c74298..2eeca24 100644 --- a/dist/index.js +++ b/dist/index.js @@ -105,6 +105,12 @@ Object.defineProperty(exports, "isWordPressPreview", { return _isWordPressPreview.default; } }); +Object.defineProperty(exports, "generateMetaInfo", { + enumerable: true, + get: function get() { + return _generateMetaInfo.default; + } +}); var _cleanString = _interopRequireDefault(require("./misc/cleanString")); @@ -140,4 +146,6 @@ var _verifyTrailingSlash = _interopRequireDefault(require("./url/verifyTrailingS var _isWordPressPreview = _interopRequireDefault(require("./wp/misc/isWordPressPreview")); +var _generateMetaInfo = _interopRequireDefault(require("./wp/meta/generateMetaInfo")); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } \ No newline at end of file diff --git a/src/index.js b/src/index.js index f26d68f..5f8dfb2 100644 --- a/src/index.js +++ b/src/index.js @@ -24,6 +24,7 @@ import verifyTrailingSlash from './url/verifyTrailingSlash' // WP helpers import isWordPressPreview from './wp/misc/isWordPressPreview' +import generateMetaInfo from './wp/meta/generateMetaInfo' export { @@ -47,5 +48,6 @@ export { removeTrailingSlash, verifyLeadingSlash, verifyTrailingSlash, - isWordPressPreview + isWordPressPreview, + generateMetaInfo }