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

@ndla/util

Package Overview
Dependencies
Maintainers
10
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndla/util - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

es/createUniversalPortal.js

@@ -9,3 +9,3 @@ /**

// N.B This helper is intended to be used in https://github.com/ndlano/article-converter. It is not a general soultion for using portals in SSR applications.
import * as React from 'react';
import React from 'react';
import ReactDOM from 'react-dom';

@@ -12,0 +12,0 @@ import { jsx as ___EmotionJSX } from "@emotion/core";

@@ -8,3 +8,3 @@ /**

*/
import * as React from 'react';
export declare function createUniversalPortal(children: React.ReactNode, selector: string): JSX.Element;
import { ReactNode } from 'react';
export declare function createUniversalPortal(children: ReactNode, selector: string): JSX.Element;
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
Object.defineProperty(exports, "__esModule", {

@@ -10,3 +8,3 @@ value: true

var React = _interopRequireWildcard(require("react"));
var _react = _interopRequireDefault(require("react"));

@@ -19,6 +17,2 @@ var _reactDom = _interopRequireDefault(require("react-dom"));

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
/**

@@ -25,0 +19,0 @@ * Copyright (c) 2016-present, NDLA.

@@ -8,4 +8,4 @@ /**

*/
import * as React from 'react';
declare const getComponentName: (component: React.ComponentClass) => string;
import { ComponentClass } from 'react';
declare const getComponentName: (component: ComponentClass) => string;
export default getComponentName;
{
"name": "@ndla/util",
"version": "2.0.1",
"version": "2.0.2",
"description": "Collection of util functions used by NDLA",

@@ -37,3 +37,3 @@ "license": "GPL-3.0",

},
"gitHead": "2ea6dd8341da40057df18969093c0da56db91473"
"gitHead": "945a8b2de5a073402d54163db7f8b38692344911"
}

@@ -48,6 +48,6 @@ # ndla-util

const withHOC = (WrappedComponent) => {
class NameOfHoc extends React.Component {
class NameOfHoc extends Component {
....
render() {
return React.createElement(WrappedComponent, nextProps);
return createElement(WrappedComponent, nextProps);
}

@@ -54,0 +54,0 @@ }

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