Socket
Socket
Sign inDemoInstall

next-i18next

Package Overview
Dependencies
Maintainers
1
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-i18next - npm Package Compare versions

Comparing version 0.18.1 to 0.18.2

15

dist/components/Link.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc