Socket
Socket
Sign inDemoInstall

react-is

Package Overview
Dependencies
Maintainers
7
Versions
1833
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-is - npm Package Compare versions

Comparing version 1.0.0 to 16.3.0-alpha.1

cjs/react-is.development.js

36

index.js

@@ -1,37 +0,7 @@

/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var REACT_ELEMENT_TYPE;
var REACT_COROUTINE_TYPE;
var REACT_YIELD_TYPE;
if (typeof Symbol === 'function' && Symbol.for) {
REACT_ELEMENT_TYPE = Symbol.for('react.element);
REACT_COROUTINE_TYPE = Symbol.for('react.coroutine');
REACT_YIELD_TYPE = Symbol.for('react.yield');
if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-is.production.min.js');
} else {
REACT_ELEMENT_TYPE = 0xeac7;
REACT_COROUTINE_TYPE = 0xeac8;
REACT_YIELD_TYPE = 0xeac9;
module.exports = require('./cjs/react-is.development.js');
}
function is(object, type) {
return object !== null && typeof object === 'object' && object.$$typeof === type;
}
module.exports = {
isElement(object) {
return is(object, REACT_ELEMENT_TYPE);
},
isCoroutine(object) {
return is(object, REACT_COROUTINE_TYPE);
},
isYield(object) {
return is(object, REACT_YIELD_TYPE);
},
};
{
"name": "react-is",
"version": "16.3.0-alpha.1",
"description": "Brand checking of React Elements.",
"main": "index.js",
"repository": "facebook/react",
"keywords": [
"react"
],
"version": "1.0.0",
"license": "MIT",
"bugs": {
"url": "https://github.com/facebook/react/issues"
},
"homepage": "https://reactjs.org/",
"bugs": "https://github.com/facebook/react/issues",
"license": "MIT",
"peerDependencies": {
"react": "^16.0.0 || 16.3.0-alpha.1"
},
"files": [
"index.js"
],
"main": "index.js",
"repository": "facebook/react",
"engines": {
"node": ">=0.10.0"
}
"LICENSE",
"README.md",
"index.js",
"cjs/",
"umd/"
]
}
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