Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Update] Export isWordPressPreview #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ Object.defineProperty(exports, "verifyTrailingSlash", {
return _verifyTrailingSlash.default;
}
});
Object.defineProperty(exports, "isWordPressPreview", {
enumerable: true,
get: function get() {
return _isWordPressPreview.default;
}
});
Object.defineProperty(exports, "generateMetaInfo", {
enumerable: true,
get: function get() {
return _generateMetaInfo.default;
}
});

var _cleanString = _interopRequireDefault(require("./misc/cleanString"));

Expand Down Expand Up @@ -132,4 +144,8 @@ var _verifyLeadingSlash = _interopRequireDefault(require("./url/verifyLeadingSla

var _verifyTrailingSlash = _interopRequireDefault(require("./url/verifyTrailingSlash"));

var _isWordPressPreview = _interopRequireDefault(require("./wp/misc/isWordPressPreview"));

var _generateMetaInfo = _interopRequireDefault(require("./wp/meta/generateMetaInfo"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9 changes: 8 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ import removeTrailingSlash from './url/removeTrailingSlash'
import verifyLeadingSlash from './url/verifyLeadingSlash'
import verifyTrailingSlash from './url/verifyTrailingSlash'

// WP helpers
import isWordPressPreview from './wp/misc/isWordPressPreview'
import generateMetaInfo from './wp/meta/generateMetaInfo'


export {
// Misc utilities
cleanString,
Expand All @@ -42,5 +47,7 @@ export {
removeLeadingSlash,
removeTrailingSlash,
verifyLeadingSlash,
verifyTrailingSlash
verifyTrailingSlash,
isWordPressPreview,
generateMetaInfo
}