New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@recogito/recogito-client-core

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@recogito/recogito-client-core - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

package.json
{
"name": "@recogito/recogito-client-core",
"version": "1.2.1",
"version": "1.2.2",
"description": "Core functions, classes and components for RecogitoJS",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -6,2 +6,9 @@ import React from 'react';

/**
* We'll add React to the global window, so that
* plugins can use it without re-bundling. Also,
* without this, hooks won't work!
*/
window.React = React;
/** Standard widgets included by default **/

@@ -22,3 +29,3 @@ const BUILTIN_WIDGETS = {

const isClassComponent = component =>
typeof component === 'function' && !!component.prototype.isReactComponent;
typeof component === 'function' && !!component.prototype?.isReactComponent;

@@ -32,3 +39,4 @@ const isFunctionComponent = component =>

String(component).match(/return .+\(['|"].+['|"],\s*\{/g) ||
String(component).match(/return .+preact_compat/)
String(component).match(/return .+preact_compat/) ||
String(component).match(/return .+\.createElement/g)
);

@@ -35,0 +43,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