Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-helmet-async

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-helmet-async - npm Package Compare versions

Comparing version 0.2.0-beta.0 to 0.2.0-beta.1

3

es/constants.js

@@ -35,3 +35,4 @@ 'use strict';

STYLE: 'style',
TITLE: 'title'
TITLE: 'title',
FRAGMENT: 'Symbol(react.fragment)'
};

@@ -38,0 +39,0 @@

@@ -8,2 +8,4 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

@@ -38,6 +40,2 @@

var _Context = require('./Context');
var _Context2 = _interopRequireDefault(_Context);
var _Dispatcher = require('./Dispatcher');

@@ -206,5 +204,15 @@

_this2.warnOnInvalidChildren(child, nestedChildren);
var type = child.type;
switch (child.type) {
if ((typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'symbol') {
type = type.toString();
} else {
_this2.warnOnInvalidChildren(child, nestedChildren);
}
switch (type) {
case _constants.TAG_NAMES.FRAGMENT:
newProps = _this2.mapChildrenToProps(nestedChildren, newProps);
break;
case _constants.TAG_NAMES.LINK:

@@ -250,3 +258,3 @@ case _constants.TAG_NAMES.META:

return _react2.default.createElement(
_Context2.default.Consumer,
_Provider.Context.Consumer,
null,

@@ -253,0 +261,0 @@ function (context) {

@@ -6,3 +6,3 @@ 'use strict';

});
exports.providerShape = undefined;
exports.providerShape = exports.Context = undefined;

@@ -19,6 +19,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _Context = require('./Context');
var _Context2 = _interopRequireDefault(_Context);
var _server = require('./server');

@@ -38,2 +34,6 @@

var defaultValue = {};
var Context = exports.Context = _react2.default.createContext(defaultValue);
var providerShape = exports.providerShape = _propTypes2.default.shape({

@@ -100,3 +100,3 @@ setHelmet: _propTypes2.default.func,

return _react2.default.createElement(
_Context2.default.Provider,
Context.Provider,
{ value: this.value },

@@ -103,0 +103,0 @@ this.props.children

@@ -35,3 +35,4 @@ 'use strict';

STYLE: 'style',
TITLE: 'title'
TITLE: 'title',
FRAGMENT: 'Symbol(react.fragment)'
};

@@ -38,0 +39,0 @@

@@ -8,2 +8,4 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

@@ -38,6 +40,2 @@

var _Context = require('./Context');
var _Context2 = _interopRequireDefault(_Context);
var _Dispatcher = require('./Dispatcher');

@@ -206,5 +204,15 @@

_this2.warnOnInvalidChildren(child, nestedChildren);
var type = child.type;
switch (child.type) {
if ((typeof type === 'undefined' ? 'undefined' : _typeof(type)) === 'symbol') {
type = type.toString();
} else {
_this2.warnOnInvalidChildren(child, nestedChildren);
}
switch (type) {
case _constants.TAG_NAMES.FRAGMENT:
newProps = _this2.mapChildrenToProps(nestedChildren, newProps);
break;
case _constants.TAG_NAMES.LINK:

@@ -250,3 +258,3 @@ case _constants.TAG_NAMES.META:

return _react2.default.createElement(
_Context2.default.Consumer,
_Provider.Context.Consumer,
null,

@@ -253,0 +261,0 @@ function (context) {

@@ -6,3 +6,3 @@ 'use strict';

});
exports.providerShape = undefined;
exports.providerShape = exports.Context = undefined;

@@ -19,6 +19,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _Context = require('./Context');
var _Context2 = _interopRequireDefault(_Context);
var _server = require('./server');

@@ -38,2 +34,6 @@

var defaultValue = {};
var Context = exports.Context = _react2.default.createContext(defaultValue);
var providerShape = exports.providerShape = _propTypes2.default.shape({

@@ -100,3 +100,3 @@ setHelmet: _propTypes2.default.func,

return _react2.default.createElement(
_Context2.default.Provider,
Context.Provider,
{ value: this.value },

@@ -103,0 +103,0 @@ this.props.children

{
"name": "react-helmet-async",
"version": "0.2.0-beta.0",
"version": "0.2.0-beta.1",
"description": "Thread-safe Helmet for React 16+ and friends",

@@ -54,3 +54,3 @@ "main": "lib/index.js",

"compile:es": "babel src --out-dir es",
"prepublish": "npm run compile"
"prepare": "npm run compile"
},

@@ -57,0 +57,0 @@ "jest": {

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