next-i18next
Advanced tools
Comparing version 0.18.1 to 0.18.2
@@ -10,2 +10,4 @@ "use strict"; | ||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread")); | ||
@@ -15,2 +17,4 @@ | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
@@ -73,3 +77,4 @@ | ||
children = _this$props.children, | ||
href = _this$props.href; | ||
href = _this$props.href, | ||
props = (0, _objectWithoutProperties2.default)(_this$props, ["as", "children", "href"]); | ||
var lng = null; | ||
@@ -90,3 +95,3 @@ | ||
return _react.default.createElement(_link.default, { | ||
return _react.default.createElement(_link.default, (0, _extends2.default)({ | ||
href: { | ||
@@ -99,9 +104,9 @@ pathname: pathname, | ||
as: "/".concat(lng).concat(as || href) | ||
}, children); | ||
}, props), children); | ||
} | ||
return _react.default.createElement(_link.default, { | ||
return _react.default.createElement(_link.default, (0, _extends2.default)({ | ||
href: href, | ||
as: as | ||
}, children); | ||
}, props), children); | ||
} | ||
@@ -108,0 +113,0 @@ }]); |
{ | ||
"name": "next-i18next", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:isaachinman/next-i18next.git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
411412
1037