Skip to content

Commit

Permalink
fix(import): Main
Browse files Browse the repository at this point in the history
Revert to the main export being the Helmet component.
  • Loading branch information
adam-26 committed Dec 6, 2017
1 parent b595a43 commit de6b6b7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "react-cap",
"description": "A fork of react-helmet with modified public API",
"version": "5.2.0",
"main": "./lib/HelmetUtils.js",
"version": "5.2.1",
"main": "./lib/Helmet.js",
"author": "NFL <engineers@nfl.com>",
"contributors": [
"Chris Welch <chris.welch@nfl.com>"
Expand Down
6 changes: 3 additions & 3 deletions test/Helmet.js → src/Helmet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
handleClientStateChange,
reducePropsToState,
warn
} from "../src/HelmetUtils.js";
import {mapStateOnServer} from "../src/HelmetServerUtils";
import {TAG_NAMES, VALID_TAG_NAMES} from "../src/HelmetConstants.js";
} from "./HelmetUtils.js";
import {mapStateOnServer} from "./HelmetServerUtils";
import {TAG_NAMES, VALID_TAG_NAMES} from "./HelmetConstants.js";

const Helmet = Component =>
class HelmetWrapper extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion test/HelmetDeclarativeTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import React from "react";
import ReactDOM from "react-dom";
import ReactServer from "react-dom/server";
import {Helmet} from "./Helmet";
import {Helmet} from "../src/Helmet";
import {HTML_TAG_MAP, HELMET_IGNORE_ATTRIBUTE} from "../src/HelmetConstants";
import {requestAnimationFrame} from "../src/HelmetUtils.js";

Expand Down
2 changes: 1 addition & 1 deletion test/HelmetTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import React from "react";
import ReactDOM from "react-dom";
import ReactServer from "react-dom/server";
import {Helmet} from "./Helmet";
import {Helmet} from "../src/Helmet";
import {requestAnimationFrame} from "../src/HelmetUtils.js";
import {HELMET_IGNORE_ATTRIBUTE} from "../src/HelmetConstants";

Expand Down

0 comments on commit de6b6b7

Please sign in to comment.