Socket
Socket
Sign inDemoInstall

react-script

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-script - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

spec/helpers.coffee

9

lib/react-script.js

@@ -97,3 +97,8 @@ // Generated by CoffeeScript 1.9.1

case "function":
elementClass = args[0], attrArgs = args[1], childArgs = 3 <= args.length ? slice.call(args, 2) : [];
if (is_plainish_object(args[1])) {
elementClass = args[0], attrArgs = args[1], childArgs = 3 <= args.length ? slice.call(args, 2) : [];
} else {
elementClass = args[0], childArgs = 2 <= args.length ? slice.call(args, 1) : [];
attrArgs = null;
}
return createElement(elementClass, {

@@ -108,3 +113,3 @@ attrArgs: attrArgs,

selector = args[0], childArgs = 2 <= args.length ? slice.call(args, 1) : [];
attrArgs = {};
attrArgs = null;
}

@@ -111,0 +116,0 @@ tagName = "div";

{
"name": "react-script",
"version": "1.1.2",
"version": "1.2.0",
"description": "Elegant DSL for React",

@@ -39,4 +39,4 @@ "keywords": [

"prepublish": "coffee -c -o lib/ react-script.coffee",
"test": "mocha --compilers coffee:coffee-script/register --require spec/helper spec/tests/*"
"test": "mocha --compilers coffee:coffee-script/register --require spec/helpers spec/tests/*"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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